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 d7b88cc commit a0b037eCopy full SHA for a0b037e
mypy/subtypes.py
@@ -2208,7 +2208,7 @@ def infer_variance(info: TypeInfo, i: int) -> bool:
2208
settable = False
2209
2210
# TODO: handle settable properties with setter type different from getter.
2211
- plain_self = Instance(info.mro[0], []) # self-type without type variables
+ plain_self = fill_typevars_with_any(info) # self-type without type variables
2212
typ = find_member(member, self_type, plain_self)
2213
if typ:
2214
# It's okay for a method in a generic class with a contravariant type
0 commit comments