Skip to content

Commit 4a595c7

Browse files
updated == and != to return literal
1 parent 115f31d commit 4a595c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/tslibs/nattype.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ class NaTType:
157157
@property
158158
def qyear(self) -> float: ...
159159
# comparisons
160-
def __eq__(self, other: object, /) -> bool: ...
161-
def __ne__(self, other: object, /) -> bool: ...
160+
def __eq__(self, other: object, /) -> Literal[False]: ...
161+
def __ne__(self, other: object, /) -> Literal[True]: ...
162162
def __lt__(self, other: Self | _TimeLike, /) -> Literal[False]: ...
163163
def __le__(self, other: Self | _TimeLike, /) -> Literal[False]: ...
164164
def __gt__(self, other: Self | _TimeLike, /) -> Literal[False]: ...

0 commit comments

Comments
 (0)