Skip to content

Commit fa5c255

Browse files
authored
ENH: Expose NoDefault in pandas.api.extensions (#60696)
* ENH: Expose NoDefault in pandas.api.extensions * Add entry to whatsnew * Address review comment
1 parent b5d4e89 commit fa5c255

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

doc/source/whatsnew/v3.0.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Other enhancements
3030
^^^^^^^^^^^^^^^^^^
3131
- :class:`pandas.api.typing.FrozenList` is available for typing the outputs of :attr:`MultiIndex.names`, :attr:`MultiIndex.codes` and :attr:`MultiIndex.levels` (:issue:`58237`)
3232
- :class:`pandas.api.typing.SASReader` is available for typing the output of :func:`read_sas` (:issue:`55689`)
33+
- :class:`pandas.api.typing.NoDefault` is available for typing ``no_default``
3334
- :func:`DataFrame.to_excel` now raises an ``UserWarning`` when the character count in a cell exceeds Excel's limitation of 32767 characters (:issue:`56954`)
3435
- :func:`pandas.merge` now validates the ``how`` parameter input (merge type) (:issue:`59435`)
3536
- :func:`read_spss` now supports kwargs to be passed to pyreadstat (:issue:`56356`)

pandas/api/typing/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44

55
from pandas._libs import NaTType
6+
from pandas._libs.lib import NoDefault
67
from pandas._libs.missing import NAType
78

89
from pandas.core.groupby import (
@@ -44,6 +45,7 @@
4445
"JsonReader",
4546
"NAType",
4647
"NaTType",
48+
"NoDefault",
4749
"PeriodIndexResamplerGroupby",
4850
"Resampler",
4951
"Rolling",

pandas/tests/api/test_api.py

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ class TestApi(Base):
261261
"JsonReader",
262262
"NaTType",
263263
"NAType",
264+
"NoDefault",
264265
"PeriodIndexResamplerGroupby",
265266
"Resampler",
266267
"Rolling",

0 commit comments

Comments
 (0)