API reference
python:arx:arx.parser.base.ParserMixinBase.parse_type
method parse_type
parse_type(*, allow_template_vars: bool = True, allow_union: bool = False, type_context: TypeUseContext = TypeUseContext.GENERAL) -> astx.DataType
Source: packages/arx/src/arx/parser/base.py:442
Parse one type annotation.
Parameters
-
allow_template_vars โ Whether to use allow template vars.; Type: bool
-
allow_union โ Whether to consume unparenthesized union members.; Type: bool
-
type_context โ Type context.; Type: TypeUseContext
Returns
Parsed one type annotation.; Type: astx.DataType