Closed
Description
Describe the bug
pandas-stubs causes mypy to error on calls like pd.Series(pd.NaT)
with an error like:
No overload variant of "Series" matches argument types "NaTType"
To Reproduce
pd.Series(pd.NaT)
Using mypy
:
No overload variant of "Series" matches argument types "NaTType"
Please complete the following information:
- OS: MacOS, Linux
- OS Version: MacOS: 14.3.1, Linux: Ubuntu 22
- python version: 3.11.7
- version of type checker: mypy 1.8.0
- version of installed
pandas-stubs
: 2.2.0.240218
Additional context
n/a