The composite types for Sphinx.
Function | get |
Return a dictionary containing type hints for a function, method, module or class object. |
Function | is |
Check *obj* is an invalid built-in class. |
Function | is_system_ |
Check *typ* is system defined TypeVar. |
Function | restify |
Convert python class to a reST reference. |
Function | stringify |
Stringify type annotation object. |
Constant | INVALID |
Undocumented |
Type Alias |
|
Undocumented |
Type Alias |
|
Undocumented |
Type Alias |
|
Undocumented |
Type Alias |
|
Undocumented |
Type Alias |
|
Undocumented |
Type Alias |
|
Undocumented |
Type Alias |
|
Undocumented |
Variable |
|
Undocumented |
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:Any | Undocumented |
globalns:dict[ | Undocumented |
localns:dict|None | Undocumented |
Returns | |
dict[ | Undocumented |
Convert python class to a reST reference. :param mode: 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.
Parameters | |
cls:type|None | Undocumented |
mode:str | Undocumented |
Returns | |
str | Undocumented |
Stringify type annotation object. :param annotation: The annotation to stringified. :param mode: 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.
Parameters | |
annotation:Any | Undocumented |
mode:str | Undocumented |
Returns | |
str | Undocumented |