There are some inconsistencies in types in `pandas._typing.py` and `pandas-stubs._typing.pyi` . These should be reconciled. In addition, types that are only in the stubs should probably be private with a leading underscore `_`