We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 857608f commit fed1a69Copy full SHA for fed1a69
spec/API_specification/dataframe_api/scalar_object.py
@@ -1,6 +1,6 @@
1
from __future__ import annotations
2
3
-from typing import TYPE_CHECKING, Protocol
+from typing import TYPE_CHECKING, Any, Protocol
4
5
if TYPE_CHECKING:
6
from typing_extensions import Self
@@ -40,6 +40,11 @@ def __scalar_namespace__(self) -> Namespace:
40
"""
41
...
42
43
+ @property
44
+ def scalar(self) -> Any:
45
+ """Return underlying (not-necessarily-Standard-compliant) scalar object."""
46
+ ...
47
+
48
def __lt__(self, other: AnyScalar) -> Scalar:
49
50
0 commit comments