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
{{ message }}
Repository navigation
isinstance(x, CallableType) and x.is_type_object() is a code smell #12320
While fixing #12319 I noticed that if you grep for is_type_object, there are several instances where only CallableTypes are handled. Presumably, these all do the wrong thing for types with overloaded __new__.
Activity
Fix various type object handling
Fix cases of type object handling for overloads (#16168)
Fix some narrowing related object for types with overloaded __new__
Fix narrowing related code for types with overloaded __new__ (#20676)