View on GitHub

mypy_boto3

Type annotations for boto3 compatible with mypy, VSCode and PyCharm

Download this project as a .zip file Download this project as a tar.gz file

InternalImport

Auto-generated documentation for builder.mypy_boto3_builder.type_annotations.internal_import module.

Wrapper for simple type annotations from this module.

InternalImport

[find in source code]

class InternalImport(FakeAnnotation):
    def __init__(
        name: str,
        service_name: Optional[ServiceName] = None,
        module_name: ServiceModuleName = ServiceModuleName.service_resource,
    ) -> None:

Wrapper for simple type annotations from this module.

Arguments

InternalImport().copy

[find in source code]

def copy() -> 'InternalImport':

Create a copy of type annotation wrapper.

InternalImport().get_import_record

[find in source code]

def get_import_record() -> ImportRecord:

Get import record required for using type annotation.

InternalImport().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.

InternalImport().scope

[find in source code]

@property
def scope() -> str: