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:11
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:
def __init__(
self,
name: str,
type_annotation: FakeAnnotation,
value: TypeConstant | None = None,
type_ignore: bool = False,
is_reference: bool = False,
is_identifier: bool = False,
is_collection: bool = False,
) -> None: ...
See also#
Attribute().is_autoload_property#
Show source in attribute.py:61
Whether the attribute is an autoload property.
Signature#
Attribute().iterate_types#
Show source in attribute.py:43
Iterate over all type annotations used.
Yields#
Type annotation.
Signature#
See also#
Attribute().render#
Show source in attribute.py:52
Render to a string.