Skip to content

Commit 0f379e8

Browse files
committed
More pandas 2.0 removals
1 parent 6ecbab9 commit 0f379e8

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

pandas-stubs/_testing/__init__.pyi

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ from pandas import (
1212
Series,
1313
)
1414

15-
def assert_almost_equal(
16-
left,
17-
right,
18-
check_dtype: bool | str = ...,
19-
check_less_precise: bool | int = ...,
20-
**kwargs,
21-
): ...
15+
def assert_almost_equal(left, right, check_dtype: bool | str = ..., **kwargs): ...
2216
def assert_dict_equal(left, right, compare_keys: bool = ...): ...
2317
def assert_index_equal(left: Index, right: Index) -> None: ...
2418
def assert_class_equal(left, right, exact: bool | str = ..., obj=...): ...
@@ -48,11 +42,7 @@ def assert_numpy_array_equal(
4842
obj: str = ...,
4943
): ...
5044
def assert_extension_array_equal(
51-
left,
52-
right,
53-
check_dtype: bool = ...,
54-
check_less_precise: bool = ...,
55-
check_exact: bool = ...,
45+
left, right, check_dtype: bool = ..., check_exact: bool = ...
5646
) -> None: ...
5747
@overload
5848
def assert_series_equal(
@@ -103,7 +93,6 @@ def assert_frame_equal(
10393
check_index_type: bool | Literal["equiv"] = ...,
10494
check_column_type: bool | Literal["equiv"] = ...,
10595
check_frame_type: bool = ...,
106-
check_less_precise: int | bool = ...,
10796
check_names: bool = ...,
10897
by_blocks: bool = ...,
10998
check_exact: bool = ...,

pandas-stubs/io/clipboards.pyi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ def read_clipboard(
7676
encoding: str | None = ...,
7777
encoding_errors: str | None = ...,
7878
dialect: str | csv.Dialect = ...,
79-
# error_bad_lines: bool | None = ..., # Deprecated: 1.3.0
80-
# warn_bad_lines: bool | None = ..., # Deprecated: 1.3.0
8179
on_bad_lines: (
8280
Literal["error", "warn", "skip"] | Callable[[list[str]], list[str] | None]
8381
) = ...,
@@ -137,8 +135,6 @@ def read_clipboard(
137135
encoding: str | None = ...,
138136
encoding_errors: str | None = ...,
139137
dialect: str | csv.Dialect = ...,
140-
# error_bad_lines: bool | None = ..., # Deprecated: 1.3.0
141-
# warn_bad_lines: bool | None = ..., # Deprecated: 1.3.0
142138
on_bad_lines: (
143139
Literal["error", "warn", "skip"] | Callable[[list[str]], list[str] | None]
144140
) = ...,
@@ -198,8 +194,6 @@ def read_clipboard(
198194
encoding: str | None = ...,
199195
encoding_errors: str | None = ...,
200196
dialect: str | csv.Dialect = ...,
201-
# error_bad_lines: bool | None = ..., # Deprecated: 1.3.0
202-
# warn_bad_lines: bool | None = ..., # Deprecated: 1.3.0
203197
on_bad_lines: (
204198
Literal["error", "warn", "skip"] | Callable[[list[str]], list[str] | None]
205199
) = ...,

0 commit comments

Comments
 (0)