Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update parse_star_args_type docstring
  • Loading branch information
randolf-scholz committed Aug 15, 2025
commit 0139c12a1b366edd708856897a4a036987e5573c
3 changes: 2 additions & 1 deletion mypy/argmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ def parse_star_args_type(
) -> TupleType | IterableType | ParamSpecType | AnyType:
"""Parse the type of a ``*args`` argument.

Returns one of TupleType, TupleInstance or AnyType.
Returns one of TupleType, IterableType, ParamSpecType (ARGS flavor),
or AnyType(TypeOfAny.from_error) if the type cannot be parsed or is invalid.
"""
p_t = get_proper_type(typ)
if isinstance(p_t, (TupleType, ParamSpecType, AnyType)):
Expand Down
Loading