Skip to content

Commit 4e3826f

Browse files
authored
TYP: loosen types of to_markdown, align to docs (pandas-dev#46212)
1 parent 004b4c5 commit 4e3826f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/frame.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import itertools
1919
from textwrap import dedent
2020
from typing import (
21-
IO,
2221
TYPE_CHECKING,
2322
Any,
2423
Callable,
@@ -2717,7 +2716,7 @@ def to_feather(self, path: FilePath | WriteBuffer[bytes], **kwargs) -> None:
27172716
)
27182717
def to_markdown(
27192718
self,
2720-
buf: IO[str] | str | None = None,
2719+
buf: FilePath | WriteBuffer[str] | None = None,
27212720
mode: str = "wt",
27222721
index: bool = True,
27232722
storage_options: StorageOptions = None,

0 commit comments

Comments
 (0)