@@ -18,11 +18,13 @@ from typing import (
18
18
from pandas .core .frame import DataFrame
19
19
from typing_extensions import Self
20
20
21
+ from pandas ._libs .lib import NoDefault
21
22
from pandas ._typing import (
22
23
CompressionOptions ,
23
24
CSVEngine ,
24
25
CSVQuoting ,
25
26
DtypeArg ,
27
+ DtypeBackend ,
26
28
FilePath ,
27
29
ListLikeHashable ,
28
30
ReadCsvBuffer ,
@@ -91,6 +93,7 @@ def read_csv(
91
93
memory_map : bool = ...,
92
94
float_precision : Literal ["high" , "legacy" , "round_trip" ] | None = ...,
93
95
storage_options : StorageOptions | None = ...,
96
+ dtype_backend : DtypeBackend | NoDefault = ...,
94
97
) -> TextFileReader : ...
95
98
@overload
96
99
def read_csv (
@@ -151,6 +154,7 @@ def read_csv(
151
154
memory_map : bool = ...,
152
155
float_precision : Literal ["high" , "legacy" , "round_trip" ] | None = ...,
153
156
storage_options : StorageOptions | None = ...,
157
+ dtype_backend : DtypeBackend | NoDefault = ...,
154
158
) -> TextFileReader : ...
155
159
@overload
156
160
def read_csv (
@@ -211,6 +215,7 @@ def read_csv(
211
215
memory_map : bool = ...,
212
216
float_precision : Literal ["high" , "legacy" , "round_trip" ] | None = ...,
213
217
storage_options : StorageOptions | None = ...,
218
+ dtype_backend : DtypeBackend | NoDefault = ...,
214
219
) -> DataFrame : ...
215
220
@overload
216
221
def read_table (
@@ -396,6 +401,7 @@ def read_fwf(
396
401
colspecs : Sequence [tuple [int , int ]] | Literal ["infer" ] | None = ...,
397
402
widths : Sequence [int ] | None = ...,
398
403
infer_nrows : int = ...,
404
+ dtype_backend : DtypeBackend | NoDefault = ...,
399
405
iterator : Literal [True ],
400
406
chunksize : int | None = ...,
401
407
** kwds : Any ,
@@ -407,6 +413,7 @@ def read_fwf(
407
413
colspecs : Sequence [tuple [int , int ]] | Literal ["infer" ] | None = ...,
408
414
widths : Sequence [int ] | None = ...,
409
415
infer_nrows : int = ...,
416
+ dtype_backend : DtypeBackend | NoDefault = ...,
410
417
iterator : bool = ...,
411
418
chunksize : int ,
412
419
** kwds : Any ,
@@ -418,6 +425,7 @@ def read_fwf(
418
425
colspecs : Sequence [tuple [int , int ]] | Literal ["infer" ] | None = ...,
419
426
widths : Sequence [int ] | None = ...,
420
427
infer_nrows : int = ...,
428
+ dtype_backend : DtypeBackend | NoDefault = ...,
421
429
iterator : Literal [False ] = ...,
422
430
chunksize : None = ...,
423
431
** kwds : Any ,
0 commit comments