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: TypeConstant | None = None,
        type_ignore: bool = False,
    ):

Class or module attribute.

Attributes

  • name - Attribute name.
  • type - Attribute type annotation.
  • value - Attribute value.
  • type_ignore - Add type: ignore comment.

See also

Attribute().iterate_types

[find in source code]

def iterate_types() -> Iterator[FakeAnnotation]:

Iterate over all type annotations used.

Yields

Type annotation.

See also

Attribute().render

[find in source code]

def render() -> str:

Render to a string.