You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot access member "as_unit" for type "Timestamp"
Member "as_unit" is unknownPylance[reportGeneralTypeIssues](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportGeneralTypeIssues)
This seems like a question for the folks at https://github.com/pandas-dev/pandas-stubs. If pandas has sufficient inline types to eliminate the need for stubs, then they should ship with a py.typed file. The presence of that file would cause type checkers to favor the inline types over any available stubs.
Environment data
mcr.microsoft.com/devcontainers/universal:2
ghcr.io/devcontainers/features/python:1
on 3.11Code Snippet
Repro Steps
pip install pandas==2.1.0
Expected behavior
Type check ok because
as_unit
Actual behavior
because
as_unit
not in thepandas-stubs
.because:
But this raises the question: Do we need to use
pandas-stubs
now 2.0 has its own types?The text was updated successfully, but these errors were encountered: