ENH: Expose pandas._libs.missing.NAType
#48388
Labels
Enhancement
Needs Triage
Issue that has not been reviewed by a pandas team member
Typing
type annotations, mypy/pyright type checking
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
When typing hinting using
pandas-stubs
, usingtype[pd.NA]
is not possible.Instead, it needs to be annotated as
NAType
which is currently hidden in the private librarypandas._libs.missing
.Feature Description
Make
NAType
accessible throughfrom pandas import NAType
.Alternative Solutions
Rework how
padnas.NA
works such thattype[pandas.NA]
is a valid type hint.Additional Context
Example
The text was updated successfully, but these errors were encountered: