-
-
Notifications
You must be signed in to change notification settings - Fork 157
Closed
Description
Describe the bug
Method as_unit not defined on Timestamp
To Reproduce
- Provide a minimal runnable
pandasexample that is not properly checked by the stubs.
pd.Timestamp(2023, 1, 1).as_unit("ns") - Indicate which type checker you are using (
mypyorpyright).
mypy - Show the error message received from that type checker while checking your example.
error: "Timestamp" has no attribute "as_unit" [attr-defined]
Please complete the following information:
- OS: Linux
- OS Fedora 7
- python version: 3.11
- version of type checker: 1.8
- version of installed
pandas-stubs=2.1.4
Metadata
Metadata
Assignees
Labels
No labels