diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 97ec0ed1f7fdc..01de7c4e1601f 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -238,7 +238,7 @@ def read( def to_parquet( df: DataFrame, - path: FilePathOrBuffer[AnyStr], + path: FilePathOrBuffer, engine: str = "auto", compression: Optional[str] = "snappy", index: Optional[bool] = None,