TypeClass
Auto-generated documentation for builder.mypy_boto3_builder.type_annotations.type_class module.
Wrapper for classes like Paginator
.
- mypy-boto3 / Modules /
Builder
/ Mypy Boto3 Builder / Type Annotations / TypeClass
TypeClass
class TypeClass(FakeAnnotation):
def __init__(value: type, alias: str = '') -> None:
Wrapper for classes like Paginator
.
Arguments
value
- Any Class.alias
- Local name.
TypeClass().copy
def copy() -> 'TypeClass':
Create a copy of type annotation wrapper.
TypeClass().get_import_name
def get_import_name() -> str:
TypeClass().get_import_record
def get_import_record() -> ImportRecord:
TypeClass().render
def render(parent_name: str = '') -> str:
Render type annotation to a valid Python code for local usage.
Returns
A string with a valid type annotation.