Skip to content

Commit 5eed30f

Browse files
committed
fixes
1 parent c0ea9fc commit 5eed30f

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818

1919
jobs:
2020
lint:
21-
name: Format
21+
name: Lint
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

src/metrology_apis/__init__.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,23 @@ def value(self) -> V: ...
3939
def unit(self) -> U: ...
4040

4141
### Dunder Methods
42-
def __ne__[B](self: "Quantity[V, U]", other: "Quantity[op.CanEq[V, B], U]", /) -> B: ...
43-
def __lt__[B](self: "Quantity[V, U]", other: "Quantity[op.CanOrd[V, B], U]", /) -> B: ...
44-
def __le__[B](self: "Quantity[V, U]", other: "Quantity[op.CanOrd[V, B], U]", /) -> B: ...
45-
def __gt__[B](self: "Quantity[V, U]", other: "Quantity[op.CanOrd[V, B], U]", /) -> B: ...
46-
def __ge__[B](self: "Quantity[V, U]", other: "Quantity[op.CanOrd[V, B], U]", /) -> B: ...
42+
43+
@override
44+
def __eq__[B](self: "Quantity[V, U]", other: "Quantity[op.CanEq[V, B], U]", /) -> B: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
45+
46+
@override
47+
def __ne__[B](self: "Quantity[V, U]", other: "Quantity[op.CanEq[V, B], U]", /) -> B: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
48+
49+
def __lt__[B](self: "Quantity[V, U]", other: "Quantity[op.CanLt[V, B], U]", /) -> B: ...
50+
def __le__[B](self: "Quantity[V, U]", other: "Quantity[op.CanLe[V, B], U]", /) -> B: ...
51+
def __gt__[B](self: "Quantity[V, U]", other: "Quantity[op.CanGt[V, B], U]", /) -> B: ...
52+
def __ge__[B](self: "Quantity[V, U]", other: "Quantity[op.CanGe[V, B], U]", /) -> B: ...
4753

4854
def __pos__[R](self: "Quantity[op.CanPos[R], U]") -> "Quantity[R, U]": ...
4955
def __neg__[R](self: "Quantity[op.CanNeg[R], U]") -> "Quantity[R, U]": ...
5056
def __abs__[R](self: "Quantity[op.CanAbs[R], U]") -> "Quantity[R, U]": ...
5157

52-
def __add__[R](self: "Quantity[V, U]", other: "Quantity[op.CanRAdd[V, R], U", /) -> "Quantity[R, U]": ...
58+
def __add__[R](self: "Quantity[V, U]", other: "Quantity[op.CanRAdd[V, R], U]", /) -> "Quantity[R, U]": ...
5359
def __radd__[R](self: "Quantity[V, U]", other: "Quantity[op.CanAdd[V, R], U]", /) -> "Quantity[R, U]": ...
5460
def __sub__[R](self: "Quantity[V, U]", other: "Quantity[op.CanRSub[V, R], U]", /) -> "Quantity[R, U]": ...
5561
def __rsub__[R](self: "Quantity[V, U]", other: "Quantity[op.CanSub[V, R], U]", /) -> "Quantity[R, U]": ...
@@ -60,5 +66,5 @@ def __truediv__[R](self: "Quantity[V, U]", other: "Quantity[op.CanRTruediv[V, R]
6066
def __rtruediv__[R](self: "Quantity[V, U]", other: "Quantity[op.CanTruediv[V, R], U]", /) -> "Quantity[R, U]": ...
6167

6268
def __pow__[R](self: "Quantity[op.CanPow2[int | float, R], U]", other: int | float, /) -> "Quantity[R, U]": ...
63-
def __rpow__[R](self: "Quantity[op.CanRPow2[int | float, R], U]", other: int | float, /) -> "Quantity[R, U]": ...
69+
def __rpow__[R](self: "Quantity[op.CanRPow[int | float, R], U]", other: int | float, /) -> "Quantity[R, U]": ...
6470

0 commit comments

Comments
 (0)