TypeClass

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

Wrapper for classes like Paginator.

TypeClass

[find in source code]

class TypeClass(FakeAnnotation):
    def __init__(value: type, alias: str = '') -> None:

Wrapper for classes like Paginator.

Arguments

  • value - Any Class.
  • alias - Local name.

See also

TypeClass().copy

[find in source code]

def copy() -> 'TypeClass':

Create a copy of type annotation wrapper.

TypeClass().get_import_name

[find in source code]

def get_import_name() -> str:

Get name for import string.

TypeClass().get_import_record

[find in source code]

def get_import_record() -> ImportRecord:

Create an impoort record to insert where TypeClass is used.

See also

TypeClass().render

[find in source code]

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.