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:14
Parent class for all type annotation wrappers.
Signature#
FakeAnnotation().copy#
Show source in fake_annotation.py:116
Create a copy of type annotation wrapper.
Signature#
FakeAnnotation().eq#
Show source in fake_annotation.py:27
Whether two annotations are equal.
Signature#
FakeAnnotation().gt#
Show source in fake_annotation.py:42
Compare two annotations for sorting.
Signature#
FakeAnnotation().hash#
Show source in fake_annotation.py:21
Calculate hash value based on string render.
Signature#
FakeAnnotation().lt#
Show source in fake_annotation.py:36
Compare two annotations for sorting.
Signature#
FakeAnnotation().str#
Show source in fake_annotation.py:54
Render annotation usage as a valid Python statement.
Signature#
FakeAnnotation()._get_import_records#
Show source in fake_annotation.py:66
Get import record required for using type annotation.
Signature#
See also#
FakeAnnotation().copy#
Show source in fake_annotation.py:122
Create a copy of type annotation wrapper.
Signature#
FakeAnnotation().get_import_records#
Show source in fake_annotation.py:72
Get all import records required for using type annotation.
Signature#
See also#
FakeAnnotation().get_local_types#
Show source in fake_annotation.py:128
Get internal types generated by builder.
Signature#
FakeAnnotation().get_sort_key#
Show source in fake_annotation.py:48
Get string to sort annotations.
Signature#
FakeAnnotation().is_dict#
Show source in fake_annotation.py:92
Whether type annotation is Dict
or TypedDict
.
Signature#
FakeAnnotation().is_list#
Show source in fake_annotation.py:104
Whether type annotation is List
.
Signature#
FakeAnnotation().is_literal#
Show source in fake_annotation.py:110
Whether type annotation is Literal
.
Signature#
FakeAnnotation().is_typed_dict#
Show source in fake_annotation.py:98
Whether type annotation is TypedDict
.
Signature#
FakeAnnotation().iterate_types#
Show source in fake_annotation.py:86
Iterate over all used type annotations recursively including self.
Signature#
FakeAnnotation().render#
Show source in fake_annotation.py:60
Render type annotation to a valid Python code for local usage.
Signature#
FakeAnnotation().render_definition#
Show source in fake_annotation.py:134
Render type annotation for debug purposes.