Skip to content

Commit 9ed812c

Browse files
committed
Smaller changes
1 parent 53bea14 commit 9ed812c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypy/semanal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,9 @@ def setup_self_type(self) -> None:
10811081
assert self.type is not None
10821082
info = self.type
10831083
if info.self_type is not None:
1084-
if has_placeholder(info.self_type.upper_bound):
1084+
if has_placeholder(info.self_type.upper_bound) or has_placeholder(
1085+
info.self_type.default
1086+
):
10851087
# Similar to regular (user defined) type variables.
10861088
self.process_placeholder(
10871089
None,

0 commit comments

Comments
 (0)