Attribute

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

Class or module attribute.

Attribute

[find in source code]

class Attribute():
    def __init__(
        name: str,
        type_annotation: FakeAnnotation,
        value: Optional[TypeConstant] = None,
    ):

Class or module attribute.

Attributes

  • name - Attribute name.
  • type - Attribute type annotation.
  • value - Attribute value.

See also

Attribute().get_types

[find in source code]

def get_types() -> Set[FakeAnnotation]:

Return all type annotations used.

Returns

A set of type annotations.