1
+ # pyright: strict
1
2
from datetime import (
2
3
datetime ,
3
4
timedelta ,
@@ -11,7 +12,10 @@ from typing_extensions import (
11
12
)
12
13
13
14
from pandas ._libs .tslibs .period import Period
14
- from pandas ._typing import TimeUnit
15
+ from pandas ._typing import (
16
+ NpDtype ,
17
+ TimeUnit ,
18
+ )
15
19
16
20
NaT : NaTType
17
21
iNaT : int
@@ -30,7 +34,7 @@ class NaTType:
30
34
def asm8 (self ) -> np .datetime64 : ...
31
35
def to_datetime64 (self ) -> np .datetime64 : ...
32
36
def to_numpy (
33
- self , dtype : np . dtype | str | None = ..., copy : bool = ...
37
+ self , dtype : NpDtype | None = ..., copy : bool = ...
34
38
) -> np .datetime64 | np .timedelta64 : ...
35
39
@property
36
40
def is_leap_year (self ) -> bool : ...
@@ -67,8 +71,8 @@ class NaTType:
67
71
def weekday (self ) -> float : ...
68
72
def isoweekday (self ) -> float : ...
69
73
def total_seconds (self ) -> float : ...
70
- def today (self , * args , ** kwargs ) -> NaTType : ...
71
- def now (self , * args , ** kwargs ) -> NaTType : ...
74
+ def today (self , tz : _tzinfo | str | None = ... ) -> NaTType : ...
75
+ def now (self , tz : _tzinfo | str | None = ... ) -> NaTType : ...
72
76
def to_pydatetime (self ) -> NaTType : ...
73
77
def date (self ) -> NaTType : ...
74
78
def round (self ) -> NaTType : ...
0 commit comments