Skip to content

Commit e412686

Browse files
committed
Add comment from review
1 parent 516cef7 commit e412686

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypy/constraints.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,9 @@ def any_constraints(options: list[list[Constraint] | None], *, eager: bool) -> l
556556
return any_constraints(filtered_options, eager=eager)
557557

558558
# Try harder: if that didn't work, try to strip typevars that aren't meta vars.
559+
# Note this is what we would always do, but unfortunately some callers may not
560+
# set the meta var status correctly (for historical reasons), so we use this as
561+
# a fallback only.
559562
filtered_options = [exclude_non_meta_vars(o) for o in options]
560563
if filtered_options != options:
561564
return any_constraints(filtered_options, eager=eager)

0 commit comments

Comments
 (0)