You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…lf types (Fixespython#14943).
When finding no compatible callable right away, try to let method `ConstraintBuilderVisitor.find_matching_overload_item` return the first overloaded function with the suitable self type.
Checked by test case `TestOverloadedMethodWithExplictSelfTypes`.
This generates a false positive:
Here's a real-world example which generates the false positive on master (but doesn't generate one when using mypy 1.1.1):
This started on failing on master at 85dac76. In particular, there were changes to
tempfile
stubs that trigger this issue.If the
write
method is not overloaded, the calls are type checked correctly.This doesn't seem to cause many issues, so I don't consider this a release blocker, but it would still be nice to fix this.
The text was updated successfully, but these errors were encountered: