Skip to content

Attribute#

Mypy_boto3_builder Index / Mypy Boto3 Builder / Structures / Attribute

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

Attribute#

Show source in attribute.py:13

Class or module attribute.

Attributes#

  • name - Attribute name.
  • type - Attribute type annotation.
  • value - Attribute value.
  • type_ignore - Add type: ignore comment.
  • is_reference - Whether the attribute parsed from references.
  • is_identifier - Whether the attribute parsed from identifiers.
  • is_collection - Whether the attribute parsed from collections.

Signature#

class Attribute: ...

Attribute().is_autoload_property#

Show source in attribute.py:53

Whether the attribute is an autoload property.

Signature#

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

Attribute().iterate_types#

Show source in attribute.py:35

Iterate over all type annotations used.

Yields#

Type annotation.

Signature#

def iterate_types(self) -> Iterator[FakeAnnotation]: ...

See also#

Attribute().render#

Show source in attribute.py:44

Render to a string.

Signature#

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