Attribute
Auto-generated documentation for mypy_boto3_builder.structures.attribute module.
Class or module attribute.
- mypy-boto3-builder / Modules / Mypy Boto3 Builder / Structures / Attribute
Attribute
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
def iterate_types() -> Iterator[FakeAnnotation]:
Iterate over all type annotations used.
Yields
Type annotation.
See also
Attribute().render
def render() -> str:
Render to a string.