Skip to content

Commit 3766205

Browse files
committed
--amend
1 parent 4472e1e commit 3766205

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/subtypes.py

+1
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ def visit_type_type(self, left: TypeType) -> bool:
274274
if isinstance(right, TypeType):
275275
return is_subtype(left.item, right.item)
276276
if isinstance(right, CallableType):
277+
# This is unsound, we don't check the __init__ signature.
277278
return is_subtype(left.item, right.ret_type)
278279
if isinstance(right, Instance):
279280
if right.type.fullname() in ['builtins.object', 'builtins.type']:

0 commit comments

Comments
 (0)