module documentation
(source)

Translate an Expression to a Type value.
Class ​Type​Translation​Error Exception raised when an expression is not valid as a type.
Function expr​_to​_unanalyzed​_type Translate an expression to the corresponding type.
Function _extract​_argument​_name Undocumented
def expr_to_unanalyzed_type(expr, options=None, allow_new_syntax=False, _parent=None): (source)

Translate an expression to the corresponding type.

The result is not semantically analyzed. It can be UnboundType or TypeList. Raise TypeTranslationError if the expression cannot represent a type.

If allow_new_syntax is True, allow all type syntax independent of the target Python version (used in stubs).

Parameters
expr:ExpressionUndocumented
options:Optional[Options]Undocumented
allow​_new​_syntax:boolUndocumented
_parent:Optional[Expression]Undocumented
Returns
ProperTypeUndocumented
def _extract_argument_name(expr): (source)

Undocumented

Parameters
expr:ExpressionUndocumented
Returns
Optional[str]Undocumented