class documentation

class Type(enum.Enum):

View In Hierarchy

The type of the argument. This is currently very Python-centric, however most other languages should be able to represent the various argument types with a subset of these types without additions (e.g. Java or TypeScript only support #Positional and #PositionalRemainder arguments).
Constant KEYWORD​_ONLY Undocumented
Constant KEYWORD​_REMAINDER Undocumented
Constant POSITIONAL Undocumented
Constant POSITIONAL​_ONLY Undocumented
Constant POSITIONAL​_REMAINDER Undocumented
Class Variable ​Keyword​Only Undocumented
Class Variable ​Keyword​Remainder Undocumented
Class Variable ​Positional Undocumented
Class Variable ​Positional​Only Undocumented
Class Variable ​Positional​Remainder Undocumented
KEYWORD_ONLY: te.Annotated[int, alias(KEYWORD_ONLY, KeywordOnly)] =

Undocumented

Value
3
KEYWORD_REMAINDER: te.Annotated[int, alias(KEYWORD_REMAINDER, KeywordRemainder)] =

Undocumented

Value
4
POSITIONAL: te.Annotated[int, alias(POSITIONAL, Positional)] =

Undocumented

Value
1
POSITIONAL_ONLY: te.Annotated[int, alias(POSITIONAL_ONLY, PositionalOnly)] =

Undocumented

Value
0
POSITIONAL_REMAINDER: te.Annotated[int, alias(POSITIONAL_REMAINDER, PositionalRemainder)] =

Undocumented

Value
2
KeywordOnly: t.ClassVar[Argument.Type] =

Undocumented

KeywordRemainder: t.ClassVar[Argument.Type] =

Undocumented

Positional: t.ClassVar[Argument.Type] =

Undocumented

PositionalOnly: t.ClassVar[Argument.Type] =

Undocumented

PositionalRemainder: t.ClassVar[Argument.Type] =

Undocumented