Skip to content

Commit a5e9218

Browse files
committed
add to namespace, type return as scalar
1 parent eb03b45 commit a5e9218

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

spec/API_specification/dataframe_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def is_dtype(dtype: DType, kind: str | tuple[str, ...]) -> bool:
243243
bool
244244
"""
245245

246-
def date(year: int, month: int, day: int) -> Any:
246+
def date(year: int, month: int, day: int) -> Scalar:
247247
"""
248248
Create date object which can be used for filtering.
249249

spec/API_specification/dataframe_api/typing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ def is_null(value: object, /) -> bool:
148148
def is_dtype(dtype: Any, kind: str | tuple[str, ...]) -> bool:
149149
...
150150

151+
@staticmethod
152+
def date(year: int, month: int, day: int) -> Scalar:
153+
...
151154

152155
class SupportsDataFrameAPI(Protocol):
153156
def __dataframe_consortium_standard__(

0 commit comments

Comments
 (0)