Skip to content

Commit

Permalink
add Scalar.scalar (#336)
Browse files Browse the repository at this point in the history
* add Scalar.scalar

* fixup
  • Loading branch information
MarcoGorelli committed Dec 4, 2023
1 parent 857608f commit fed1a69
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/API_specification/dataframe_api/scalar_object.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
...

Expand Down

0 comments on commit fed1a69

Please sign in to comment.