kittycad.models.path_segment.line

class kittycad.models.path_segment.line(end=<kittycad.types.Unset object>, type='line')[source][source]

Bases: object

A straight line segment. Goes from the current path “pen” to the given endpoint.

Method generated by attrs for class line.

__init__(end=<kittycad.types.Unset object>, type='line')[source]

Method generated by attrs for class line.

Methods

__init__([end, type])

Method generated by attrs for class line.

from_dict(src_dict)

rtype:

TypeVar(XI, bound= line)

to_dict()

rtype:

Dict[str, Any]

Attributes

additional_keys

end

type

additional_properties

__annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'end': typing.Union[kittycad.types.Unset, kittycad.models.point3d.Point3d], 'type': <class 'str'>}[source]
__attrs_attrs__ = (Attribute(name='end', 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.point3d.Point3d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='end'), Attribute(name='type', default='line', 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.path_segment', '__annotations__': {'end': typing.Union[kittycad.types.Unset, kittycad.models.point3d.Point3d], 'type': <class 'str'>, 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'A straight line segment. Goes from the current path "pen" to the given endpoint.', 'to_dict': <function line.to_dict>, 'from_dict': <classmethod(<function line.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function line.__getitem__>, '__setitem__': <function line.__setitem__>, '__delitem__': <function line.__delitem__>, '__contains__': <function line.__contains__>, '__dict__': <attribute '__dict__' of 'line' objects>, '__weakref__': <attribute '__weakref__' of 'line' objects>, '__attrs_attrs__': (Attribute(name='end', 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.point3d.Point3d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='end'), Attribute(name='type', default='line', 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 line.__repr__>, '__eq__': <function line.__eq__>, '__ne__': <function line.__ne__>, '__lt__': <function line.__lt__>, '__le__': <function line.__le__>, '__gt__': <function line.__gt__>, '__ge__': <function line.__ge__>, '__hash__': None, '__init__': <function line.__init__>, '__match_args__': ('end', 'type')})[source]
__eq__(other)[source]

Method generated by attrs for class line.

__ge__(other)[source]

Method generated by attrs for class line.

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

Any

__gt__(other)[source]

Method generated by attrs for class line.

__hash__ = None[source]
__init__(end=<kittycad.types.Unset object>, type='line')[source]

Method generated by attrs for class line.

__le__(other)[source]

Method generated by attrs for class line.

__lt__(other)[source]

Method generated by attrs for class line.

__match_args__ = ('end', 'type')[source]
__module__ = 'kittycad.models.path_segment'[source]
__ne__(other)[source]

Method generated by attrs for class line.

__repr__()[source]

Method generated by attrs for class line.

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

None

property additional_keys: List[str][source]
additional_properties: Dict[str, Any][source]
end: Union[Unset, Point3d][source]
classmethod from_dict(src_dict)[source][source]
Return type:

TypeVar(XI, bound= line)

to_dict()[source][source]
Return type:

Dict[str, Any]

type: str[source]