Skip to content

Commit

Permalink
Update mypy/typeanal.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
  • Loading branch information
ilevkivskyi and JelleZijlstra authored Aug 24, 2023
1 parent 5d619ff commit d9b97ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/typeanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def pack_paramspec_args(self, an_args: Sequence[Type]) -> list[Type]:
count = len(an_args)
if count > 0:
if count == 1 and isinstance(get_proper_type(an_args[0]), AnyType):
# Single Any is interpreted as ..., rather that a single argument with Ay type.
# Single Any is interpreted as ..., rather that a single argument with Any type.
# I didn't find this in the PEP, but it sounds reasonable.
return list(an_args)
if any(isinstance(a, (Parameters, ParamSpecType)) for a in an_args):
Expand Down

0 comments on commit d9b97ab

Please sign in to comment.