Skip to content

Commit d37d55f

Browse files
committed
CLN: Remove to_pickle method
1 parent eda7945 commit d37d55f

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

pandas-stubs/io/pickle.pyi

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,8 @@ from pandas._typing import (
55
FilePath,
66
ReadPickleBuffer,
77
StorageOptions,
8-
WriteBuffer,
98
)
109

11-
def to_pickle(
12-
obj: object,
13-
filepath_or_buffer: FilePath | WriteBuffer[bytes],
14-
compression: CompressionOptions = ...,
15-
protocol: int = ...,
16-
storage_options: StorageOptions = ...,
17-
) -> None: ...
1810
def read_pickle(
1911
filepath_or_buffer: FilePath | ReadPickleBuffer,
2012
compression: CompressionOptions = ...,

tests/test_io.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848
from tests import check
4949

50-
from pandas.io.api import to_pickle
5150
from pandas.io.clipboard import PyperclipException
5251
from pandas.io.common import IOHandles
5352
from pandas.io.json._json import JsonReader
@@ -125,10 +124,6 @@ def test_pickle():
125124
check(assert_type(DF.to_pickle(path), None), type(None))
126125
check(assert_type(read_pickle(path), Any), DataFrame)
127126

128-
with ensure_clean() as path:
129-
check(assert_type(to_pickle(DF, path), None), type(None))
130-
check(assert_type(read_pickle(path), Any), DataFrame)
131-
132127

133128
def test_pickle_file_handle():
134129
with ensure_clean() as path:

0 commit comments

Comments
 (0)