Skip to content

Commit 84e2c2c

Browse files
committed
tweaks
1 parent 8686220 commit 84e2c2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/metrology_apis/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def asquantity(obj: Q | V, *, unit: U) -> Q: ...
2323

2424
@runtime_checkable
2525
class Dimension(Protocol):
26-
def __metrology_namespace__[Q: Quantity, U: Unit](
26+
def __metrology_namespace__[Q: Quantity[V, U, Self], V, U: Unit[Self]](
2727
self, /, *, api_version: str | None = None
2828
) -> MetrologyNamespace[Q, U, Self]:
2929
"""
@@ -100,4 +100,4 @@ def unit(self) -> U: ...
100100
### Dunder Methods
101101

102102
@override
103-
def __eq__[B](self: "Quantity[V, U]", other: "Quantity[op.CanEq[V, B], U]", /) -> B: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
103+
def __eq__[B](self: "Quantity[V, U, D]", other: "Quantity[op.CanEq[V, B], U, D]", /) -> B: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]

0 commit comments

Comments
 (0)