Skip to content

Commit

Permalink
fix: Cartesian dispatch (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman authored Sep 5, 2024
1 parent 4e4edac commit f4a242c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/coordinax/_coordinax/d3/cartesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def __neg__(self) -> "Self":

@CartesianPosition3D.constructor._f.dispatch # type: ignore[attr-defined, misc] # noqa: SLF001
def constructor(
cls: type[CartesianPosition3D], obj: Shaped[AbstractQuantity, "*batch 3"], /
cls: type[CartesianPosition3D],
obj: AbstractQuantity, # TODO: Shaped[AbstractQuantity, "*batch 3"]
/,
) -> CartesianPosition3D:
"""Construct a 3D Cartesian position.
Expand Down Expand Up @@ -196,7 +198,9 @@ def norm(self, _: AbstractPosition3D | None = None, /) -> ct.BatchableSpeed:

@CartesianVelocity3D.constructor._f.dispatch # type: ignore[attr-defined,misc] # noqa: SLF001
def constructor(
cls: type[CartesianVelocity3D], obj: Shaped[AbstractQuantity, "*batch 3"], /
cls: type[CartesianVelocity3D],
obj: AbstractQuantity, # TODO: Shaped[AbstractQuantity, "*batch 3"]
/,
) -> CartesianVelocity3D:
"""Construct a 3D Cartesian velocity.
Expand Down

0 comments on commit f4a242c

Please sign in to comment.