Skip to content

Commit fed1a69

Browse files
authored
add Scalar.scalar (#336)
* add Scalar.scalar * fixup
1 parent 857608f commit fed1a69

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spec/API_specification/dataframe_api/scalar_object.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import TYPE_CHECKING, Protocol
3+
from typing import TYPE_CHECKING, Any, Protocol
44

55
if TYPE_CHECKING:
66
from typing_extensions import Self
@@ -40,6 +40,11 @@ def __scalar_namespace__(self) -> Namespace:
4040
"""
4141
...
4242

43+
@property
44+
def scalar(self) -> Any:
45+
"""Return underlying (not-necessarily-Standard-compliant) scalar object."""
46+
...
47+
4348
def __lt__(self, other: AnyScalar) -> Scalar:
4449
...
4550

0 commit comments

Comments
 (0)