Skip to content

Commit b5b7981

Browse files
committed
And only if we insist on infering *something*
1 parent afbb9e8 commit b5b7981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/constraints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def any_constraints(options: list[list[Constraint] | None], *, eager: bool) -> l
559559
if filtered_options != options:
560560
return any_constraints(filtered_options, eager=eager)
561561

562-
if all_similar:
562+
if eager and all_similar:
563563
# Now we know all constraints might be satisfiable and have similar structure.
564564
# Solver will apply meets and joins as necessary, return everything we know.
565565
# Just deduplicate to reduce the amount of work.

0 commit comments

Comments
 (0)