Skip to content

Commit c08ce63

Browse files
committed
Remove get_proper_type (though it probably would be OK to increase the limit?)
1 parent e13a50d commit c08ce63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/expandtype.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ def visit_param_spec(self, t: ParamSpecType) -> Type:
293293
elif kind.is_positional():
294294
optional_posargs.append(type)
295295
elif kind == ArgKind.ARG_STAR:
296-
p_type = get_proper_type(type)
297-
if isinstance(p_type, UnpackType):
296+
# UnpackType cannot be aliased
297+
if isinstance(type, ProperType) and isinstance(type, UnpackType):
298298
optional_posargs.append(type)
299299
else:
300300
optional_posargs.append(

0 commit comments

Comments
 (0)