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
Yes, and this is probably a hardest aspect of the problem, because I don't see an easy way to work around this using some fake TypeInfos for intersections.
Fixes#5720Fixes#8556Fixes#9778Fixes#10003Fixes#10817Fixes#11163Fixes#11664Fixes#12882Fixes#13426Fixes#13462Fixes#14941Fixes#15151Fixes#19166
This handles a (surprisingly) common edge case. The charges in
`bind_self()` and `bind_self_fast()` are tricky. I got a few "Redundant
cast" errors there, which seemed good, but then I realized that
attribute access etc. on a type variable go through slow `PyObject`
paths, so I am actually forcing `CallableType` instead of
`F(bound=CallableType)` there, since these are performance-critical
functions.
fails with
Argument 1 to "bar" of "C" has incompatible type "int"; expected "T"
, even thoughx
is obviously aT
(that was its annotated type!)Arguably this is just the Dreaded Intersection Bug (#3603) in a different manifestation?
The text was updated successfully, but these errors were encountered: