Skip to content

Commit dfae702

Browse files
twoertweinpmhatre1
authored andcommitted
TYP: simplify read_csv/fwf/table overloads (pandas-dev#57476)
* TYP: simplify read_csv/fwf/table overloads * isort (keep thinking ruff is configured to do that too) * another one * fix docs? * sort whatsnew entry
1 parent cdcc393 commit dfae702

File tree

3 files changed

+97
-423
lines changed

3 files changed

+97
-423
lines changed

doc/source/whatsnew/v3.0.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Other API changes
9090
^^^^^^^^^^^^^^^^^
9191
- 3rd party ``py.path`` objects are no longer explicitly supported in IO methods. Use :py:class:`pathlib.Path` objects instead (:issue:`57091`)
9292
- :attr:`MultiIndex.codes`, :attr:`MultiIndex.levels`, and :attr:`MultiIndex.names` now returns a ``tuple`` instead of a ``FrozenList`` (:issue:`53531`)
93+
- :func:`read_table`'s ``parse_dates`` argument defaults to ``None`` to improve consistency with :func:`read_csv` (:issue:`57476`)
9394
- Made ``dtype`` a required argument in :meth:`ExtensionArray._from_sequence_of_strings` (:issue:`56519`)
9495
- Updated :meth:`DataFrame.to_excel` so that the output spreadsheet has no styling. Custom styling can still be done using :meth:`Styler.to_excel` (:issue:`54154`)
9596
- pickle and HDF (``.h5``) files created with Python 2 are no longer explicitly supported (:issue:`57387`)

pandas/_typing.py

+3
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,18 @@
107107

108108
if sys.version_info >= (3, 11):
109109
from typing import Self # pyright: ignore[reportUnusedImport]
110+
from typing import Unpack # pyright: ignore[reportUnusedImport]
110111
else:
111112
from typing_extensions import Self # pyright: ignore[reportUnusedImport]
113+
from typing_extensions import Unpack # pyright: ignore[reportUnusedImport]
112114

113115
else:
114116
npt: Any = None
115117
ParamSpec: Any = None
116118
Self: Any = None
117119
TypeGuard: Any = None
118120
Concatenate: Any = None
121+
Unpack: Any = None
119122

120123
HashableT = TypeVar("HashableT", bound=Hashable)
121124
HashableT2 = TypeVar("HashableT2", bound=Hashable)

0 commit comments

Comments
 (0)