Skip to content

Commit 6b49be5

Browse files
authored
Add nanoseconds to timestamps stub file
I also found the documentation to be lacking. I had to try it out to determine if `nanoseconds` would be giving me all nanoseconds until the next full second or just until the next full microsecond (the latter is the case).
1 parent 8469f74 commit 6b49be5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/_libs/tslibs/timestamps.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ class Timestamp(datetime):
7070
@property
7171
def microsecond(self) -> int: ...
7272
@property
73+
def nanosecond(self) -> int: ...
74+
@property
7375
def tzinfo(self) -> _tzinfo | None: ...
7476
@property
7577
def tz(self) -> _tzinfo | None: ...

0 commit comments

Comments
 (0)