Skip to content

Commit 0172f7a

Browse files
committed
Add TimeUnit type alias
1 parent c08643d commit 0172f7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas-stubs/_typing.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ RandomState: TypeAlias = (
775775
| np.random.RandomState
776776
)
777777
Frequency: TypeAlias = str | BaseOffset
778+
TimeUnit: TypeAlias = Literal["s", "ms", "us", "ns"]
778779
TimeGrouperOrigin: TypeAlias = (
779780
Timestamp | Literal["epoch", "start", "start_day", "end", "end_day"]
780781
)

0 commit comments

Comments
 (0)