Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas-stubs/_libs/tslibs/dtypes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from .offsets import BaseOffset

class PeriodDtypeBase:
def __init__(self, code: int) -> None: ...
def __eq__(self, other) -> bool: ...
def __eq__(self, other: object) -> bool: ...
@property
def date_offset(self) -> BaseOffset: ...
@classmethod
Expand Down
12 changes: 8 additions & 4 deletions pandas-stubs/_libs/tslibs/nattype.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyright: strict
from datetime import (
datetime,
timedelta,
Expand All @@ -11,7 +12,10 @@ from typing_extensions import (
)

from pandas._libs.tslibs.period import Period
from pandas._typing import TimeUnit
from pandas._typing import (
NpDtype,
TimeUnit,
)

NaT: NaTType
iNaT: int
Expand All @@ -30,7 +34,7 @@ class NaTType:
def asm8(self) -> np.datetime64: ...
def to_datetime64(self) -> np.datetime64: ...
def to_numpy(
self, dtype: np.dtype | str | None = ..., copy: bool = ...
self, dtype: NpDtype | None = ..., copy: bool = ...
) -> np.datetime64 | np.timedelta64: ...
@property
def is_leap_year(self) -> bool: ...
Expand Down Expand Up @@ -67,8 +71,8 @@ class NaTType:
def weekday(self) -> float: ...
def isoweekday(self) -> float: ...
def total_seconds(self) -> float: ...
def today(self, *args, **kwargs) -> NaTType: ...
def now(self, *args, **kwargs) -> NaTType: ...
def today(self, tz: _tzinfo | str | None = ...) -> NaTType: ...
def now(self, tz: _tzinfo | str | None = ...) -> NaTType: ...
def to_pydatetime(self) -> NaTType: ...
def date(self) -> NaTType: ...
def round(self) -> NaTType: ...
Expand Down