FakeAnnotation#
Mypy_boto3_builder Index / Mypy Boto3 Builder / Type Annotations / FakeAnnotation
Auto-generated documentation for mypy_boto3_builder.type_annotations.fake_annotation module.
FakeAnnotation#
Show source in fake_annotation.py:17
Parent class for all type annotation wrappers.
Signature#
FakeAnnotation().copy#
Show source in fake_annotation.py:104
Create a copy of type annotation wrapper.
Signature#
FakeAnnotation()._get_import_records#
Show source in fake_annotation.py:54
Get import record required for using type annotation.
Signature#
See also#
FakeAnnotation().copy#
Show source in fake_annotation.py:110
Create a copy of type annotation wrapper.
Signature#
FakeAnnotation().get_import_records#
Show source in fake_annotation.py:60
Get all import records required for using type annotation.
Signature#
See also#
FakeAnnotation().get_local_types#
Show source in fake_annotation.py:116
Get internal types generated by builder.
Signature#
FakeAnnotation().get_sort_key#
Show source in fake_annotation.py:39
Get string to sort annotations.
Signature#
FakeAnnotation().is_dict#
Show source in fake_annotation.py:80
Whether type annotation is Dict
or TypedDict
.
Signature#
FakeAnnotation().is_list#
Show source in fake_annotation.py:92
Whether type annotation is List
.
Signature#
FakeAnnotation().is_literal#
Show source in fake_annotation.py:98
Whether type annotation is Literal
.
Signature#
FakeAnnotation().is_typed_dict#
Show source in fake_annotation.py:86
Whether type annotation is TypedDict
.
Signature#
FakeAnnotation().iterate_types#
Show source in fake_annotation.py:74
Iterate over all used type annotations recursively including self.
Signature#
FakeAnnotation().render#
Show source in fake_annotation.py:48
Render type annotation to a valid Python code for local usage.
Signature#
FakeAnnotation().render_definition#
Show source in fake_annotation.py:122
Render type annotation for debug purposes.