We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4472e1e commit 3766205Copy full SHA for 3766205
mypy/subtypes.py
@@ -274,6 +274,7 @@ def visit_type_type(self, left: TypeType) -> bool:
274
if isinstance(right, TypeType):
275
return is_subtype(left.item, right.item)
276
if isinstance(right, CallableType):
277
+ # This is unsound, we don't check the __init__ signature.
278
return is_subtype(left.item, right.ret_type)
279
if isinstance(right, Instance):
280
if right.type.fullname() in ['builtins.object', 'builtins.type']:
0 commit comments