module documentation

The composite types for Sphinx.

Unknown Field: copyright
Copyright 2007-2022 by the Sphinx team, see AUTHORS.
Unknown Field: license
BSD, see LICENSE for details.
Constant INVALID​_BUILTIN​_CLASSES Undocumented
Variable ​Inventory Undocumented
Variable ​Inventory​Item Undocumented
Variable ​None​Type Undocumented
Variable ​Option​Spec Undocumented
Variable ​Path​Matcher Undocumented
Variable ​Role​Function Undocumented
Variable ​Textlike​Node Undocumented
Variable ​Title​Getter Undocumented
Variable ​Union​Type Undocumented
Function ​_restify​_py36 Undocumented
Function ​_restify​_py37 Convert python class to a reST reference.
Function ​_stringify​_py36 stringify() for py36.
Function ​_stringify​_py37 stringify() for py37+.
Function get​_type​_hints Return a dictionary containing type hints for a function, method, module or class object.
Function is_system_​Type​Var Check typ is system defined TypeVar.
Function restify Convert python class to a reST reference.
Function stringify Stringify type annotation object.
INVALID_BUILTIN_CLASSES =

Undocumented

Value
{Struct: 'struct.Struct', TracebackType: 'types.TracebackType'}
Inventory =

Undocumented

InventoryItem =

Undocumented

NoneType =

Undocumented

OptionSpec =

Undocumented

PathMatcher =

Undocumented

RoleFunction =

Undocumented

TextlikeNode =

Undocumented

TitleGetter =

Undocumented

UnionType =

Undocumented

def _restify_py36(cls, mode='fully-qualified-except-typing'):

Undocumented

Parameters
mode:strUndocumented
Returns
strUndocumented
def _restify_py37(cls, mode='fully-qualified-except-typing'):
Convert python class to a reST reference.
Parameters
mode:strUndocumented
Returns
strUndocumented
def _stringify_py36(annotation, mode='fully-qualified-except-typing'):
stringify() for py36.
Parameters
annotation:AnyUndocumented
mode:strUndocumented
Returns
strUndocumented
def _stringify_py37(annotation, mode='fully-qualified-except-typing'):
stringify() for py37+.
Parameters
annotation:AnyUndocumented
mode:strUndocumented
Returns
strUndocumented
def get_type_hints(obj, globalns=None, localns=None):

Return a dictionary containing type hints for a function, method, module or class object.

This is a simple wrapper of typing.get_type_hints() that does not raise an error on runtime.

Parameters
obj:AnyUndocumented
globalns:DictUndocumented
localns:DictUndocumented
Returns
Dict[str, Any]Undocumented
def is_system_TypeVar(typ):
Check typ is system defined TypeVar.
Parameters
typ:AnyUndocumented
Returns
boolUndocumented
def restify(cls, mode='fully-qualified-except-typing'):
Convert python class to a reST reference.
Parameters
mode:str

Specify a method how annotations will be stringified.

'fully-qualified-except-typing'
Show the module name and qualified name of the annotation except the "typing" module.
'smart'
Show the name of the annotation.
Returns
strUndocumented
def stringify(annotation, mode='fully-qualified-except-typing'):
Stringify type annotation object.
Parameters
annotation:AnyUndocumented
mode:str

Specify a method how annotations will be stringified.

'fully-qualified-except-typing'
Show the module name and qualified name of the annotation except the "typing" module.
'smart'
Show the name of the annotation.
'fully-qualified'
Show the module name and qualified name of the annotation.
Returns
strUndocumented