From f1358ecf55470bb46ef1e922dce7c9be9f82a412 Mon Sep 17 00:00:00 2001 From: Dave Tapley Date: Thu, 9 Nov 2023 18:16:05 -0700 Subject: [PATCH] Update timestamps.pyi https://github.com/pandas-dev/pandas/commit/f3c46cd0899d5e11e0602798d9390c90e51e9ba7 https://github.com/pandas-dev/pandas/pull/48819 https://github.com/pandas-dev/pandas-stubs/issues/797 --- pandas-stubs/_libs/tslibs/timestamps.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandas-stubs/_libs/tslibs/timestamps.pyi b/pandas-stubs/_libs/tslibs/timestamps.pyi index 970f8980..6952082e 100644 --- a/pandas-stubs/_libs/tslibs/timestamps.pyi +++ b/pandas-stubs/_libs/tslibs/timestamps.pyi @@ -301,3 +301,6 @@ class Timestamp(datetime): def days_in_month(self) -> int: ... @property def daysinmonth(self) -> int: ... + @property + def unit(self) -> str: ... + def as_unit(self, unit: str, round_ok: bool = ...) -> Timestamp: ...