Skip to content

Commit ad2a2b9

Browse files
committed
remove isinstance(type,ProperType)
1 parent 9f38602 commit ad2a2b9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mypy/expandtype.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ def _possible_callable_varargs(
322322
elif kind.is_positional():
323323
optional_posargs.append(type)
324324
elif kind == ArgKind.ARG_STAR:
325-
# UnpackType cannot be aliased
326-
if isinstance(type, ProperType) and isinstance(type, UnpackType):
325+
if isinstance(type, UnpackType):
327326
optional_posargs.append(type)
328327
else:
329328
optional_posargs.append(UnpackType(Instance(tuple_type.type, [type])))

0 commit comments

Comments
 (0)