Skip to content

Commit a47ead6

Browse files
committed
Period.now
1 parent 6437417 commit a47ead6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas-stubs/_libs/tslibs/period.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ from pandas._libs.tslibs.offsets import (
2121
)
2222
from pandas._libs.tslibs.timestamps import Timestamp
2323
from pandas._typing import (
24-
Frequency,
2524
ShapeT,
2625
np_1darray,
2726
np_ndarray,
@@ -232,7 +231,7 @@ class Period(PeriodMixin):
232231
def day_of_week(self) -> int: ...
233232
def asfreq(self, freq: str | DateOffset, how: _PeriodFreqHow = "end") -> Period: ...
234233
@classmethod
235-
def now(cls, freq: Frequency = ...) -> Period: ...
234+
def now(cls, freq: str | DateOffset | None = None) -> Period: ...
236235
def strftime(self, fmt: str) -> str: ...
237236
def to_timestamp(
238237
self,

0 commit comments

Comments
 (0)