Skip to content

Commit 70a66ed

Browse files
GH1317 PR feedback
1 parent 64b7c5f commit 70a66ed

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

pandas-stubs/io/parsers/readers.pyi

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def read_csv(
133133
| Mapping[str, Sequence[int | str]]
134134
| None
135135
) = None,
136-
keep_date_col: bool = ...,
136+
keep_date_col: bool = False,
137137
date_format: dict[Hashable, str] | str | None = None,
138138
dayfirst: bool = False,
139139
cache_dates: bool = True,
@@ -196,7 +196,7 @@ def read_csv(
196196
| Mapping[str, Sequence[int | str]]
197197
| None
198198
) = ...,
199-
keep_date_col: bool = ...,
199+
keep_date_col: bool = False,
200200
date_format: dict[Hashable, str] | str | None = ...,
201201
dayfirst: bool = ...,
202202
cache_dates: bool = ...,
@@ -250,7 +250,6 @@ def read_table(
250250
na_values: Sequence[str] | Mapping[str, Sequence[str]] | None = None,
251251
keep_default_na: bool = True,
252252
na_filter: bool = True,
253-
verbose: bool = ...,
254253
skip_blank_lines: bool = True,
255254
parse_dates: (
256255
bool
@@ -260,8 +259,7 @@ def read_table(
260259
| Mapping[str, Sequence[int | str]]
261260
| None
262261
) = False,
263-
infer_datetime_format: bool = ...,
264-
keep_date_col: bool = ...,
262+
keep_date_col: bool = False,
265263
date_format: dict[Hashable, str] | str | None = None,
266264
dayfirst: bool = False,
267265
cache_dates: bool = True,
@@ -282,8 +280,7 @@ def read_table(
282280
on_bad_lines: (
283281
Literal["error", "warn", "skip"] | Callable[[list[str]], list[str] | None]
284282
) = "error",
285-
delim_whitespace: bool = ...,
286-
low_memory: bool = ...,
283+
low_memory: bool = True,
287284
memory_map: bool = False,
288285
float_precision: Literal["high", "legacy", "round_trip"] | None = None,
289286
storage_options: StorageOptions | None = None,
@@ -316,7 +313,6 @@ def read_table(
316313
na_values: Sequence[str] | Mapping[str, Sequence[str]] | None = None,
317314
keep_default_na: bool = True,
318315
na_filter: bool = True,
319-
verbose: bool = ...,
320316
skip_blank_lines: bool = True,
321317
parse_dates: (
322318
bool
@@ -326,8 +322,7 @@ def read_table(
326322
| Mapping[str, Sequence[int | str]]
327323
| None
328324
) = False,
329-
infer_datetime_format: bool = ...,
330-
keep_date_col: bool = ...,
325+
keep_date_col: bool = False,
331326
date_format: dict[Hashable, str] | str | None = None,
332327
dayfirst: bool = False,
333328
cache_dates: bool = True,
@@ -348,8 +343,7 @@ def read_table(
348343
on_bad_lines: (
349344
Literal["error", "warn", "skip"] | Callable[[list[str]], list[str] | None]
350345
) = "error",
351-
delim_whitespace: bool = ...,
352-
low_memory: bool = ...,
346+
low_memory: bool = True,
353347
memory_map: bool = False,
354348
float_precision: Literal["high", "legacy", "round_trip"] | None = None,
355349
storage_options: StorageOptions | None = None,
@@ -382,7 +376,6 @@ def read_table(
382376
na_values: Sequence[str] | Mapping[str, Sequence[str]] | None = None,
383377
keep_default_na: bool = True,
384378
na_filter: bool = True,
385-
verbose: bool = ...,
386379
skip_blank_lines: bool = True,
387380
parse_dates: (
388381
bool
@@ -392,8 +385,7 @@ def read_table(
392385
| Mapping[str, Sequence[int | str]]
393386
| None
394387
) = False,
395-
infer_datetime_format: bool = ...,
396-
keep_date_col: bool = ...,
388+
keep_date_col: bool = False,
397389
date_format: dict[Hashable, str] | str | None = None,
398390
dayfirst: bool = False,
399391
cache_dates: bool = True,
@@ -414,8 +406,7 @@ def read_table(
414406
on_bad_lines: (
415407
Literal["error", "warn", "skip"] | Callable[[list[str]], list[str] | None]
416408
) = "error",
417-
delim_whitespace: bool = ...,
418-
low_memory: bool = ...,
409+
low_memory: bool = True,
419410
memory_map: bool = False,
420411
float_precision: Literal["high", "legacy", "round_trip"] | None = None,
421412
storage_options: StorageOptions | None = None,

pandas-stubs/io/sql.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ from collections.abc import (
33
Generator,
44
Iterable,
55
Mapping,
6+
Sequence,
67
)
78
import sqlite3
89
from typing import (
@@ -129,13 +130,12 @@ def read_sql(
129130
index_col: str | list[str] | None = None,
130131
coerce_float: bool = True,
131132
params: (
132-
list[Scalar]
133-
| tuple[Scalar, ...]
133+
Sequence[Scalar]
134134
| tuple[tuple[Scalar, ...], ...]
135135
| Mapping[str, Scalar]
136136
| Mapping[str, tuple[Scalar, ...]]
137137
| None
138-
) = ...,
138+
) = None,
139139
parse_dates: list[str] | dict[str, str] | dict[str, dict[str, Any]] | None = None,
140140
columns: list[str] | None = None,
141141
chunksize: None = None,

0 commit comments

Comments
 (0)