diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 44ee593f4755f..a16597221ac92 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3292,7 +3292,8 @@ def to_xml( stylesheet: FilePath | ReadBuffer[str] | ReadBuffer[bytes] | None = ..., compression: CompressionOptions = ..., storage_options: StorageOptions | None = ..., - ) -> str: ... + ) -> str: + ... @overload def to_xml( @@ -3314,8 +3315,8 @@ def to_xml( stylesheet: FilePath | ReadBuffer[str] | ReadBuffer[bytes] | None = ..., compression: CompressionOptions = ..., storage_options: StorageOptions | None = ..., - ) -> None: ... - + ) -> None: + ... @deprecate_nonkeyword_arguments( version="3.0", allowed_args=["self", "path_or_buffer"], name="to_xml"