Skip to content

Commit

Permalink
fix: registering self promotion
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed Jun 27, 2024
1 parent 8b99fba commit 09752c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unxt/_quantity/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def constructor(
def constructor(
cls: "type[AbstractQuantity]",
value: ArrayLike | ArrayLikeSequence,
/,
*,
unit: Any,
dtype: Any = None,
Expand Down Expand Up @@ -544,7 +545,7 @@ def constructor(

@AbstractQuantity.constructor._f.register # type: ignore[no-redef] # noqa: SLF001
def constructor(
cls: type[AbstractQuantity], value: AstropyQuantity, *, dtype: Any = None
cls: type[AbstractQuantity], value: AstropyQuantity, /, *, dtype: Any = None
) -> AbstractQuantity:
"""Construct a `Quantity` from another `Quantity`.
Expand Down

0 comments on commit 09752c3

Please sign in to comment.