kittycad.models.modeling_cmd.new_annotation

class kittycad.models.modeling_cmd.new_annotation(annotation_type=<kittycad.types.Unset object>, clobber=False, options=<kittycad.types.Unset object>, type='new_annotation')[source][source]

Bases: object

Create a new annotation

Method generated by attrs for class new_annotation.

__init__(annotation_type=<kittycad.types.Unset object>, clobber=False, options=<kittycad.types.Unset object>, type='new_annotation')[source]

Method generated by attrs for class new_annotation.

Methods

__init__([annotation_type, clobber, ...])

Method generated by attrs for class new_annotation.

from_dict(src_dict)

rtype:

TypeVar(UP, bound= new_annotation)

to_dict()

rtype:

Dict[str, Any]

Attributes

additional_keys

annotation_type

clobber

options

type

additional_properties

__annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'annotation_type': typing.Union[kittycad.types.Unset, kittycad.models.annotation_type.AnnotationType], 'clobber': typing.Union[kittycad.types.Unset, bool], 'options': typing.Union[kittycad.types.Unset, kittycad.models.annotation_options.AnnotationOptions], 'type': <class 'str'>}[source]
__attrs_attrs__ = (Attribute(name='annotation_type', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.annotation_type.AnnotationType], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='annotation_type'), Attribute(name='clobber', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, bool], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='clobber'), Attribute(name='options', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.annotation_options.AnnotationOptions], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='options'), Attribute(name='type', default='new_annotation', validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='type'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
__contains__(key)[source][source]
Return type:

bool

__delitem__(key)[source][source]
Return type:

None

__dict__ = mappingproxy({'__module__': 'kittycad.models.modeling_cmd', '__annotations__': {'annotation_type': typing.Union[kittycad.types.Unset, kittycad.models.annotation_type.AnnotationType], 'clobber': typing.Union[kittycad.types.Unset, bool], 'options': typing.Union[kittycad.types.Unset, kittycad.models.annotation_options.AnnotationOptions], 'type': <class 'str'>, 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'Create a new annotation', 'to_dict': <function new_annotation.to_dict>, 'from_dict': <classmethod(<function new_annotation.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function new_annotation.__getitem__>, '__setitem__': <function new_annotation.__setitem__>, '__delitem__': <function new_annotation.__delitem__>, '__contains__': <function new_annotation.__contains__>, '__dict__': <attribute '__dict__' of 'new_annotation' objects>, '__weakref__': <attribute '__weakref__' of 'new_annotation' objects>, '__attrs_attrs__': (Attribute(name='annotation_type', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.annotation_type.AnnotationType], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='annotation_type'), Attribute(name='clobber', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, bool], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='clobber'), Attribute(name='options', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.annotation_options.AnnotationOptions], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='options'), Attribute(name='type', default='new_annotation', validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='type'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function new_annotation.__repr__>, '__eq__': <function new_annotation.__eq__>, '__ne__': <function new_annotation.__ne__>, '__lt__': <function new_annotation.__lt__>, '__le__': <function new_annotation.__le__>, '__gt__': <function new_annotation.__gt__>, '__ge__': <function new_annotation.__ge__>, '__hash__': None, '__init__': <function new_annotation.__init__>, '__match_args__': ('annotation_type', 'clobber', 'options', 'type')})[source]
__eq__(other)[source]

Method generated by attrs for class new_annotation.

__ge__(other)[source]

Method generated by attrs for class new_annotation.

__getitem__(key)[source][source]
Return type:

Any

__gt__(other)[source]

Method generated by attrs for class new_annotation.

__hash__ = None[source]
__init__(annotation_type=<kittycad.types.Unset object>, clobber=False, options=<kittycad.types.Unset object>, type='new_annotation')[source]

Method generated by attrs for class new_annotation.

__le__(other)[source]

Method generated by attrs for class new_annotation.

__lt__(other)[source]

Method generated by attrs for class new_annotation.

__match_args__ = ('annotation_type', 'clobber', 'options', 'type')[source]
__module__ = 'kittycad.models.modeling_cmd'[source]
__ne__(other)[source]

Method generated by attrs for class new_annotation.

__repr__()[source]

Method generated by attrs for class new_annotation.

__setitem__(key, value)[source][source]
Return type:

None

property additional_keys: List[str][source]
additional_properties: Dict[str, Any][source]
annotation_type: Union[Unset, AnnotationType][source]
clobber: Union[Unset, bool][source]
classmethod from_dict(src_dict)[source][source]
Return type:

TypeVar(UP, bound= new_annotation)

options: Union[Unset, AnnotationOptions][source]
to_dict()[source][source]
Return type:

Dict[str, Any]

type: str[source]