You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns an object that has all the metrology API functions on it.
40
+
Parameters
41
+
----------
42
+
api_version: str or None
43
+
string representing the version of the metrology API specification to be returned. If it is ``None``, it should return the namespace corresponding to latest version of the metrology API specification. If the given version is invalid or not implemented for the given module, an error should be raised. Default: ``None``.
44
+
Returns
45
+
-------
46
+
out: Any
47
+
an object representing the metrology API namespace. It should have every top-level function defined in the specification as an attribute. It may contain other public names as well, but it is recommended to only include those names that are part of the specification.
48
+
"""
49
+
13
50
def__mul__(self, other: Self, /) ->Self: ...
14
51
def__truediv__(self, other: Self, /) ->Self: ...
15
52
def__pow__(self, other: int, /) ->Self: ...
16
53
17
54
18
55
@runtime_checkable
19
56
classUnit(Protocol):
57
+
def__metrology_namespace__(
58
+
self, /, *, api_version: str|None=None
59
+
) ->MetrologyNamespace:
60
+
"""
61
+
Returns an object that has all the metrology API functions on it.
62
+
Parameters
63
+
----------
64
+
api_version: str or None
65
+
string representing the version of the metrology API specification to be returned. If it is ``None``, it should return the namespace corresponding to latest version of the metrology API specification. If the given version is invalid or not implemented for the given module, an error should be raised. Default: ``None``.
66
+
Returns
67
+
-------
68
+
out: Any
69
+
an object representing the metrology API namespace. It should have every top-level function defined in the specification as an attribute. It may contain other public names as well, but it is recommended to only include those names that are part of the specification.
Returns an object that has all the metrology API functions on it.
91
+
Parameters
92
+
----------
93
+
api_version: str or None
94
+
string representing the version of the metrology API specification to be returned. If it is ``None``, it should return the namespace corresponding to latest version of the metrology API specification. If the given version is invalid or not implemented for the given module, an error should be raised. Default: ``None``.
95
+
Returns
96
+
-------
97
+
out: Any
98
+
an object representing the metrology API namespace. It should have every top-level function defined in the specification as an attribute. It may contain other public names as well, but it is recommended to only include those names that are part of the specification.
0 commit comments