Skip to content

Commit f30ebb6

Browse files
authored
API: Expose api.typing.FrozenList for typing (#58237)
1 parent 8d8c855 commit f30ebb6

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
@@ -28,6 +28,7 @@ enhancement2
2828

2929
Other enhancements
3030
^^^^^^^^^^^^^^^^^^
31+
- :class:`pandas.api.typing.FrozenList` is available for typing the outputs of :attr:`MultiIndex.names`, :attr:`MultiIndex.codes` and :attr:`MultiIndex.levels` (:issue:`58237`)
3132
- :func:`DataFrame.to_excel` now raises an ``UserWarning`` when the character count in a cell exceeds Excel's limitation of 32767 characters (:issue:`56954`)
3233
- :func:`read_stata` now returns ``datetime64`` resolutions better matching those natively stored in the stata format (:issue:`55642`)
3334
- :meth:`Styler.set_tooltips` provides alternative method to storing tooltips by using title attribute of td elements. (:issue:`56981`)

pandas/api/typing/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
DataFrameGroupBy,
1010
SeriesGroupBy,
1111
)
12+
from pandas.core.indexes.frozen import FrozenList
1213
from pandas.core.resample import (
1314
DatetimeIndexResamplerGroupby,
1415
PeriodIndexResamplerGroupby,
@@ -38,6 +39,7 @@
3839
"ExpandingGroupby",
3940
"ExponentialMovingWindow",
4041
"ExponentialMovingWindowGroupby",
42+
"FrozenList",
4143
"JsonReader",
4244
"NaTType",
4345
"NAType",

pandas/tests/api/test_api.py

+1
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ class TestApi(Base):
257257
"ExpandingGroupby",
258258
"ExponentialMovingWindow",
259259
"ExponentialMovingWindowGroupby",
260+
"FrozenList",
260261
"JsonReader",
261262
"NaTType",
262263
"NAType",

0 commit comments

Comments
 (0)