Skip to content

Commit 9244e5e

Browse files
authored
Apply suggestions from code review
1 parent 3f2daa7 commit 9244e5e

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
@@ -70,7 +70,7 @@ def __rtruediv__(self, other: Self, /) -> Self: ...
7070

7171

7272
@runtime_checkable
73-
class Unit[D: Dimension](Protocol):
73+
class Unit[D: Dimension = Any](Protocol):
7474
def __metrology_namespace__(
7575
self, /, *, api_version: str | None = None
7676
) -> MetrologyNamespace[QT, VT, Self, D]:
@@ -110,7 +110,7 @@ def __rtruediv__(self, other: Self, /) -> Self: ...
110110

111111

112112
@runtime_checkable
113-
class Quantity[V = Any, U: UT = Any, D: Dimension = Any](Protocol):
113+
class Quantity[V: VT = Any, U: UT = Any, D: Dimension = Any](Protocol):
114114
def __metrology_namespace__(
115115
self, /, *, api_version: str | None = None
116116
) -> MetrologyNamespace[Self, V, U, D]:

0 commit comments

Comments
 (0)