Skip to content

Commit f7bcae8

Browse files
Dimension: add dunder methods (#10)
* dim dunders * remove pos neg * remove rpow
1 parent 6132413 commit f7bcae8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/metrology_apis/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ def __mul__(self, other: Self, /) -> Self: ...
1414
def __truediv__(self, other: Self, /) -> Self: ...
1515
def __pow__(self, other: int, /) -> Self: ...
1616

17+
def __rmul__(self, other: Self, /) -> Self: ...
18+
def __rtruediv__(self, other: Self, /) -> Self: ...
19+
20+
def __eq__(self, other: Self, /) -> bool: ...
21+
def __ne__(self, other: Self, /) -> bool: ...
22+
1723

1824
@runtime_checkable
1925
class Unit(Protocol):

0 commit comments

Comments
 (0)