Skip to content

TypeDefSortable#

Mypy_boto3_builder Index / Mypy Boto3 Builder / Type Annotations / TypeDefSortable

Auto-generated documentation for mypy_boto3_builder.type_annotations.type_def_sortable module.

TypeDefSortable#

Show source in type_def_sortable.py:14

Sortable protocol for TypeDefSorter.

Signature#

class TypeDefSortable(Protocol): ...

TypeDefSortable().gt#

Show source in type_def_sortable.py:22

Compare with another TypeDefSortable. Has to be implemented.

Signature#

def __gt__(self, other: FakeAnnotation) -> bool: ...

See also#

TypeDefSortable().lt#

Show source in type_def_sortable.py:28

Compare with another TypeDefSortable. Has to be implemented.

Signature#

def __lt__(self, other: FakeAnnotation) -> bool: ...

See also#

TypeDefSortable().get_children_literals#

Show source in type_def_sortable.py:64

Extract required TypeLiteral list from attributes.

Signature#

def get_children_literals(self, processed: Iterable[str] = ()) -> set[TypeLiteral]: ...

See also#

TypeDefSortable().get_children_types#

Show source in type_def_sortable.py:52

Extract required type annotations from attributes.

Signature#

def get_children_types(self) -> set[FakeAnnotation]: ...

See also#

TypeDefSortable().get_definition_import_records#

Show source in type_def_sortable.py:83

Get import record required for using TypeAnnotation.

Signature#

def get_definition_import_records(self) -> set[ImportRecord]: ...

See also#

TypeDefSortable().get_sortable_children#

Show source in type_def_sortable.py:34

Extract required sortable TypeDef list from attributes.

Signature#

def get_sortable_children(self) -> list["TypeDefSortable"]: ...

TypeDefSortable().is_stringified#

Show source in type_def_sortable.py:40

Whether TypeDef usage should be rendered as a string.

Signature#

def is_stringified(self) -> bool: ...

TypeDefSortable().is_type_def#

Show source in type_def_sortable.py:70

Whether type annotation is a TypeDef.

Signature#

def is_type_def(self) -> bool: ...

TypeDefSortable().is_typed_dict#

Show source in type_def_sortable.py:89

Whether type annotation is a TypedDict.

Signature#

def is_typed_dict(self) -> bool: ...

TypeDefSortable().is_union#

Show source in type_def_sortable.py:95

Whether type annotation is a TypeUnion.

Signature#

def is_union(self) -> bool: ...

TypeDefSortable().iterate_children#

Show source in type_def_sortable.py:101

Iterate over children.

Signature#

def iterate_children(self) -> Iterator[Any]: ...

TypeDefSortable().render_definition#

Show source in type_def_sortable.py:58

Render type annotation for debug purposes.

Signature#

def render_definition(self) -> str: ...

TypeDefSortable().stringify#

Show source in type_def_sortable.py:46

Render TypeDef usage as a string.

Signature#

def stringify(self) -> None: ...

TypeDefSortable().type_hint_annotations#

Show source in type_def_sortable.py:76

Type annotations list from arguments and return type with internal types.

Signature#

@property
def type_hint_annotations(self) -> list[FakeAnnotation]: ...

See also#