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 53bea14 commit 9ed812cCopy full SHA for 9ed812c
mypy/semanal.py
@@ -1081,7 +1081,9 @@ def setup_self_type(self) -> None:
1081
assert self.type is not None
1082
info = self.type
1083
if info.self_type is not None:
1084
- if has_placeholder(info.self_type.upper_bound):
+ if has_placeholder(info.self_type.upper_bound) or has_placeholder(
1085
+ info.self_type.default
1086
+ ):
1087
# Similar to regular (user defined) type variables.
1088
self.process_placeholder(
1089
None,
0 commit comments