Skip to content

Commit a0b037e

Browse files
Update mypy/subtypes.py
Co-authored-by: Stanislav Terliakov <[email protected]>
1 parent d7b88cc commit a0b037e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/subtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2208,7 +2208,7 @@ def infer_variance(info: TypeInfo, i: int) -> bool:
22082208
settable = False
22092209

22102210
# TODO: handle settable properties with setter type different from getter.
2211-
plain_self = Instance(info.mro[0], []) # self-type without type variables
2211+
plain_self = fill_typevars_with_any(info) # self-type without type variables
22122212
typ = find_member(member, self_type, plain_self)
22132213
if typ:
22142214
# It's okay for a method in a generic class with a contravariant type

0 commit comments

Comments
 (0)