Skip to content

Commit fc65107

Browse files
Update type hints to align util/testing.py and picke.py
1 parent f2a01bc commit fc65107

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/util/testing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def reset_display_options():
102102

103103

104104
def round_trip_pickle(
105-
obj: FrameOrSeries, path: FilePathOrBuffer = None
105+
obj: FrameOrSeries, path: Optional[FilePathOrBuffer] = None
106106
) -> FrameOrSeries:
107107
"""
108108
Pickle an object and then read it again.
@@ -111,7 +111,7 @@ def round_trip_pickle(
111111
----------
112112
obj : pandas object
113113
The object to pickle and then re-read.
114-
path : str, default None
114+
path : str, path object or file-like object, default None
115115
The path where the pickled object is written and then read.
116116
117117
Returns

0 commit comments

Comments
 (0)