Fixes (#115)
* regenerate Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes and cleanup Signed-off-by: Jess Frazelle <github@jessfraz.com> * I have generated the latest API! --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.axis_direction_pair import AxisDirectionPair
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
V = TypeVar("V", bound="System")
|
||||
EL = TypeVar("EL", bound="System")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -16,7 +16,8 @@ class System:
|
||||
|
||||
See [cglearn.eu] for background reading.
|
||||
|
||||
[cglearn.eu](https://cglearn.eu/pub/computer-graphics/introduction-to-geometry#material-coordinate-systems-1)""" # noqa: E501
|
||||
[cglearn.eu](https://cglearn.eu/pub/computer-graphics/introduction-to-geometry#material-coordinate-systems-1)
|
||||
""" # noqa: E501
|
||||
|
||||
forward: Union[Unset, AxisDirectionPair] = UNSET
|
||||
up: Union[Unset, AxisDirectionPair] = UNSET
|
||||
@ -40,21 +41,21 @@ class System:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[V], src_dict: Dict[str, Any]) -> V:
|
||||
def from_dict(cls: Type[EL], src_dict: Dict[str, Any]) -> EL:
|
||||
d = src_dict.copy()
|
||||
_forward = d.pop("forward", UNSET)
|
||||
forward: Union[Unset, AxisDirectionPair]
|
||||
if isinstance(_forward, Unset):
|
||||
forward = UNSET
|
||||
else:
|
||||
forward = AxisDirectionPair(_forward)
|
||||
forward = _forward # type: ignore[arg-type]
|
||||
|
||||
_up = d.pop("up", UNSET)
|
||||
up: Union[Unset, AxisDirectionPair]
|
||||
if isinstance(_up, Unset):
|
||||
up = UNSET
|
||||
else:
|
||||
up = AxisDirectionPair(_up)
|
||||
up = _up # type: ignore[arg-type]
|
||||
|
||||
system = cls(
|
||||
forward=forward,
|
||||
|
Reference in New Issue
Block a user