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
Ignore invalid self types in constructor (python#7946)
This previously caused small troubles in Dropbox internal codebase C (because of weird annotations).
For example if an `__init__()` of class `C` had its `self` argument annotated with one of its superclasses `B`, this made all calls to `C()` inferred as `B`, causing spurious errors.
This PR also makes explicit types in `__new__()` and `__init__()` treated in a more similar way.
0 commit comments