Skip to content

Timestamp.as_unit #859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
amgcc opened this issue Feb 10, 2024 · 0 comments · Fixed by #864
Closed

Timestamp.as_unit #859

amgcc opened this issue Feb 10, 2024 · 0 comments · Fixed by #864

Comments

@amgcc
Copy link
Contributor

amgcc commented Feb 10, 2024

Describe the bug
Method as_unit not defined on Timestamp

To Reproduce

  1. Provide a minimal runnable pandas example that is not properly checked by the stubs.
    pd.Timestamp(2023, 1, 1).as_unit("ns")
  2. Indicate which type checker you are using (mypy or pyright).
    mypy
  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant