Pandas version checks
-
[X] I have checked that this issue has not already been reported.
-
[X] I have confirmed this bug exists on the latest version of pandas.
-
[ ] I have confirmed this bug exists on the [main branch] (https://pandas.pydata.org/docs/dev/getting_started/install.html#installing-the-development-version-of-pandas) of pandas.
Reproducible Example
from pandas.core.dtypes.cast import find_common_type
Issue Description
The above code runs when executed with python, but while checking for types with mypy, I get the error
error: Module "pandas.core.dtypes.cast" has no attribute "find_common_type" [attr-defined]
Found 1 error in 1 file (checked 1 source file)
Commands run pip install mypy mypy file.py
Expected Behavior
Mypy check should pass
Installed Versions
My mypy version is mypy 0.991 .
Comment From: phofl
Hi, thanks for your report. This needs more information. Is this within our development code base or are you trying this as a pandas user?
Comment From: arunjose696
Trying this as a pandas user.
Comment From: phofl
This is not a public area of our code base, so this is not expected to work