Skip to content

Commit

Permalink
♻️ refactor(units): consolidate abstracts (#374) (#375)
Browse files Browse the repository at this point in the history
(cherry picked from commit 53cdf12)
Signed-off-by: Nathaniel Starkman <[email protected]>
  • Loading branch information
nstarman authored Jan 23, 2025
1 parent 04e04f0 commit 49ddc12
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/unxt/_src/units/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ def unit(obj: str, /) -> AbstractUnits:
# Get units


@dispatch.abstract
def unit_of(obj: Any, /) -> AbstractUnits:
"""Return the units of an object."""


@dispatch
def unit_of(obj: Any, /) -> None:
"""Return the units of an object.
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 49ddc12

Please sign in to comment.