class documentation
class Parameters(ProperType): (source)
Type that represents the parameters to a function. Used for ParamSpec analysis.
Class Method | deserialize |
Undocumented |
Method | __eq__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | accept |
Undocumented |
Method | argument |
Undocumented |
Method | argument |
Undocumented |
Method | copy |
Undocumented |
Method | formal |
Yields the formal arguments corresponding to this callable, ignoring *arg and **kwargs. |
Method | kw |
The formal argument for **kwargs. |
Method | serialize |
Undocumented |
Method | try |
Undocumented |
Method | try |
Undocumented |
Method | var |
The formal argument for *args. |
Class Variable | __slots__ |
Undocumented |
Instance Variable | arg |
Undocumented |
Instance Variable | arg |
Undocumented |
Instance Variable | arg |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | min |
Undocumented |
Instance Variable | variables |
Undocumented |
Inherited from Type
(via ProperType
):
Method | __repr__ |
Undocumented |
Method | can |
Undocumented |
Method | can |
Undocumented |
Method | can |
Undocumented |
Method | can |
Undocumented |
Method | is |
Undocumented |
Property | can |
Undocumented |
Property | can |
Undocumented |
Instance Variable | _can |
Undocumented |
Instance Variable | _can |
Undocumented |
Inherited from Context
(via ProperType
, Type
):
Method | set |
If target is a node, pull line (and column) information into this node. If column is specified, this will override any column information coming from a node. |
Instance Variable | column |
Undocumented |
Instance Variable | end |
Undocumented |
Instance Variable | end |
Undocumented |
Instance Variable | line |
Undocumented |
def __init__(self, arg_types:
Sequence[ Type]
, arg_kinds: list[ ArgKind]
, arg_names: Sequence[ str|None]
, *, variables: Sequence[ TypeVarLikeType]|None
= None, is_ellipsis_args: bool
= False, line: int
= -1, column: int
= -1):
(source)
¶
overrides
mypy.types.Type.__init__
Undocumented
def copy_modified(self, arg_types:
Bogus[ Sequence[ Type]]
= _dummy, arg_kinds: Bogus[ list[ ArgKind]]
= _dummy, arg_names: Bogus[ Sequence[ str|None]]
= _dummy, *, variables: Bogus[ Sequence[ TypeVarLikeType]]
= _dummy, is_ellipsis_args: Bogus[ bool]
= _dummy) -> Parameters
:
(source)
¶
Undocumented
Yields the formal arguments corresponding to this callable, ignoring *arg and **kwargs. To handle *args and **kwargs, use the 'callable.var_args' and 'callable.kw_args' fields, if they are not None. If you really want to include star args in the yielded output, set the 'include_star_args' parameter to 'True'.