Skip to content

Commit b17464b

Browse files
committed
fix type hint to path
1 parent aa59f5a commit b17464b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ def to_markdown(
22882288
@deprecate_kwarg(old_arg_name="fname", new_arg_name="path")
22892289
def to_parquet(
22902290
self,
2291-
path: Optional[FilePathOrBuffer[AnyStr]] = None,
2291+
path: Optional[FilePathOrBuffer] = None,
22922292
engine: str = "auto",
22932293
compression: Optional[str] = "snappy",
22942294
index: Optional[bool] = None,

pandas/io/parquet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def read(
239239

240240
def to_parquet(
241241
df: DataFrame,
242-
path: Optional[FilePathOrBuffer[AnyStr]] = None,
242+
path: Optional[FilePathOrBuffer] = None,
243243
engine: str = "auto",
244244
compression: Optional[str] = "snappy",
245245
index: Optional[bool] = None,

0 commit comments

Comments
 (0)