Skip to content

Commit 6132413

Browse files
committed
update Unit
1 parent bb47da8 commit 6132413

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pixi.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/metrology_apis/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def dimension(self) -> Dimension: ...
2222

2323
def __mul__(self, other: Self, /) -> Self: ...
2424
def __truediv__(self, other: Self, /) -> Self: ...
25-
def __pow__(self, other: int | Self, /) -> Self: ...
26-
27-
# debatable whether this should be standardised
28-
def __rlshift__[V](self, other: V) -> "Quantity[V, Self]": ...
25+
def __pow__(self, other: int | float, /) -> Self: ...
2926

27+
def __rmul__(self, other: Self, /) -> Self: ...
28+
def __rtruediv__(self, other: Self, /) -> Self: ...
29+
def __rpow__(self, other: int | float, /) -> Self: ...
3030

3131
@runtime_checkable
3232
class Quantity[V, U: Unit](Protocol):

0 commit comments

Comments
 (0)