Skip to content

Commit 74e627e

Browse files
committed
Fix ParamSpec (2)
1 parent 3e28c43 commit 74e627e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/expandtype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def visit_param_spec(self, t: ParamSpecType) -> Type:
252252
)
253253

254254
while True:
255-
if has_param_specs(repl):
255+
if has_param_specs(repl) and not isinstance(repl, (ParamSpecType, Instance)):
256256
if repl in self.recursive_guard:
257257
break
258258
self.recursive_guard.add(repl)

0 commit comments

Comments
 (0)