From fed1a69fcd5908026f5a0e1029d2e03df2445bdd Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli Date: Mon, 4 Dec 2023 17:40:58 +0100 Subject: [PATCH] add Scalar.scalar (#336) * add Scalar.scalar * fixup --- spec/API_specification/dataframe_api/scalar_object.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spec/API_specification/dataframe_api/scalar_object.py b/spec/API_specification/dataframe_api/scalar_object.py index 55832182..39ff27ba 100644 --- a/spec/API_specification/dataframe_api/scalar_object.py +++ b/spec/API_specification/dataframe_api/scalar_object.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Protocol +from typing import TYPE_CHECKING, Any, Protocol if TYPE_CHECKING: from typing_extensions import Self @@ -40,6 +40,11 @@ def __scalar_namespace__(self) -> Namespace: """ ... + @property + def scalar(self) -> Any: + """Return underlying (not-necessarily-Standard-compliant) scalar object.""" + ... + def __lt__(self, other: AnyScalar) -> Scalar: ...