Skip to content

Commit

Permalink
♻️ refactor(units): consolidate abstracts
Browse files Browse the repository at this point in the history
  • Loading branch information
nstarman committed Jan 23, 2025
1 parent 9b6b495 commit af6720e
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 af6720e

Please sign in to comment.