From 8f45b0556ff6833820222563ed789beea73b6fa5 Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Thu, 18 Nov 2021 09:50:26 +0000 Subject: [PATCH] TYP/CI: fix to_string overload --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 751e7911d7130..0960ab4a81149 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1069,7 +1069,7 @@ def to_string( @overload def to_string( self, - buf: FilePathOrBuffer[str], + buf: FilePath | WriteBuffer[str], columns: Sequence[str] | None = ..., col_space: int | list[int] | dict[Hashable, int] | None = ..., header: bool | Sequence[str] = ...,