8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81df467 commit aa15f40Copy full SHA for aa15f40
mypy/checker.py
@@ -2693,12 +2693,12 @@ def flatten(t: Expression) -> List[Expression]:
2693
2694
2695
def get_isinstance_type(expr: Expression, type_map: Dict[Expression, Type]) -> Type:
2696
- type = type_map[expr]
+ all_types = [type_map[e] for e in flatten(expr)]
2697
2698
- if isinstance(type, TupleType):
2699
- all_types = type.items
2700
- else:
2701
- all_types = [type]
+ #if isinstance(type, TupleType):
+ #all_types = type.items
+ #else:
+ #all_types = [type]
2702
2703
types = [] # type: List[Type]
2704
0 commit comments