We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe4289a commit 0139c12Copy full SHA for 0139c12
mypy/argmap.py
@@ -386,7 +386,8 @@ def parse_star_args_type(
386
) -> TupleType | IterableType | ParamSpecType | AnyType:
387
"""Parse the type of a ``*args`` argument.
388
389
- Returns one of TupleType, TupleInstance or AnyType.
+ Returns one of TupleType, IterableType, ParamSpecType (ARGS flavor),
390
+ or AnyType(TypeOfAny.from_error) if the type cannot be parsed or is invalid.
391
"""
392
p_t = get_proper_type(typ)
393
if isinstance(p_t, (TupleType, ParamSpecType, AnyType)):
0 commit comments