TypeClass
mypy-boto3-builder Index / Mypy Boto3 Builder / Type Annotations / TypeClass
Auto-generated documentation for mypy_boto3_builder.type_annotations.type_class module.
TypeClass
Show source in type_class.py:11
Wrapper for classes like Paginator
.
Arguments
value
- Any Class.alias
- Local name.
Signature
class TypeClass(FakeAnnotation):
def __init__(self, value: type, alias: str = "") -> None:
...
See also
TypeClass().copy
Show source in type_class.py:57
Create a copy of type annotation wrapper.
Signature
def copy(self) -> "TypeClass":
...
TypeClass().get_import_name
Show source in type_class.py:36
Get name for import string.
Signature
def get_import_name(self) -> str:
...
TypeClass().get_import_record
Show source in type_class.py:42
Create an impoort record to insert where TypeClass is used.
Signature
def get_import_record(self) -> ImportRecord:
...
See also
TypeClass().render
Show source in type_class.py:24
Render type annotation to a valid Python code for local usage.
Returns
A string with a valid type annotation.
Signature
def render(self, parent_name: str = "") -> str:
...