ClassRecord

Auto-generated documentation for mypy_boto3_builder.structures.class_record module.

Base class for all structures that can be rendered to a class.

ClassRecord

[find in source code]

class ClassRecord():
    def __init__(
        name: str,
        methods: Iterable[Method] = tuple(),
        attributes: Iterable[Attribute] = tuple(),
        bases: Iterable[FakeAnnotation] = tuple(),
        docstring: str = '',
        use_alias: bool = False,
    ):

Base class for all structures that can be rendered to a class.

ClassRecord().alias_name

[find in source code]

@property
def alias_name() -> str:

ClassRecord().get_internal_imports

[find in source code]

def get_internal_imports() -> List[InternalImport]:

ClassRecord().get_required_import_records

[find in source code]

def get_required_import_records() -> Set[ImportRecord]:

ClassRecord().get_types

[find in source code]

def get_types() -> Set[FakeAnnotation]:

ClassRecord().render_alias

[find in source code]

def render_alias() -> str:

ClassRecord().variable_name

[find in source code]

@property
def variable_name() -> str:

Get a proper variable name for an instance of this class.