Skip to content

Commit 3f2daa7

Browse files
Apply suggestions from code review
Co-authored-by: Joren Hammudoglu <[email protected]>
1 parent 899e975 commit 3f2daa7

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
@@ -21,7 +21,7 @@
2121

2222

2323
@runtime_checkable
24-
class MetrologyNamespace[Q: QT, V: VT, U: UT, D: Dimension](Protocol):
24+
class MetrologyNamespace[Q: QT = Any, V: VT = Any, U: UT = Any, D: Dimension = Any](Protocol):
2525
@staticmethod
2626
def asdimension(obj: str | D) -> D: ...
2727

@@ -110,7 +110,7 @@ def __rtruediv__(self, other: Self, /) -> Self: ...
110110

111111

112112
@runtime_checkable
113-
class Quantity[V, U: UT, D: Dimension](Protocol):
113+
class Quantity[V = 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)