Skip to content

Commit 0139c12

Browse files
update parse_star_args_type docstring
1 parent fe4289a commit 0139c12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/argmap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ def parse_star_args_type(
386386
) -> TupleType | IterableType | ParamSpecType | AnyType:
387387
"""Parse the type of a ``*args`` argument.
388388
389-
Returns one of TupleType, TupleInstance or AnyType.
389+
Returns one of TupleType, IterableType, ParamSpecType (ARGS flavor),
390+
or AnyType(TypeOfAny.from_error) if the type cannot be parsed or is invalid.
390391
"""
391392
p_t = get_proper_type(typ)
392393
if isinstance(p_t, (TupleType, ParamSpecType, AnyType)):

0 commit comments

Comments
 (0)