Skip to content

Commit ab926eb

Browse files
committed
fix
1 parent 1c4e237 commit ab926eb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mypy/constraints.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,8 @@ def _infer_constraints(
403403

404404
# Check if any actual items are NOT subtypes of the non-type-var part
405405
compatible_items = []
406-
actual_proper = get_proper_type(actual)
407-
if isinstance(actual_proper, UnionType):
408-
for actual_item in actual_proper.items:
406+
if isinstance(actual, UnionType):
407+
for actual_item in actual.items:
409408
if not mypy.subtypes.is_subtype(actual_item, non_type_var):
410409
compatible_items.append(actual_item)
411410

0 commit comments

Comments
 (0)