Closed
Description
Describe the bug
import pandas
x = pandas.DatetimeIndex()
x.month
Fails to typecheck in mypy even though this attribute is documented here https://pandas.pydata.org/docs/reference/api/pandas.DatetimeIndex.month.html
To Reproduce
- Run type checker of your choice on the above snippet with latest version of pandas and pandas-stubs
Please complete the following information:
- OS: Linux
- OS Version NixOS unstable
- python version 3.9.13
- version of type checker mypy 0.971
- version of installed
pandas-stubs
1.4.3.220807
Additional context
Also tested with pyright language server and got same error, not sure what version of pyright.
Metadata
Metadata
Assignees
Labels
No labels