Skip to content

Commit 0da40d0

Browse files
committed
Using os.PathLike instead of pathlib.Path
1 parent 78d1498 commit 0da40d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_typing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from datetime import datetime, timedelta, tzinfo
22
from io import BufferedIOBase, RawIOBase, TextIOBase, TextIOWrapper
33
from mmap import mmap
4-
from pathlib import Path
4+
from os import PathLike
55
from typing import (
66
IO,
77
TYPE_CHECKING,
@@ -135,7 +135,7 @@
135135
# filenames and file-like-objects
136136
Buffer = Union[IO[AnyStr], RawIOBase, BufferedIOBase, TextIOBase, TextIOWrapper, mmap]
137137
FileOrBuffer = Union[str, Buffer[T]]
138-
FilePathOrBuffer = Union[Path, FileOrBuffer[T]]
138+
FilePathOrBuffer = Union["PathLike[str]", FileOrBuffer[T]]
139139

140140
# for arbitrary kwargs passed during reading/writing files
141141
StorageOptions = Optional[Dict[str, Any]]

0 commit comments

Comments
 (0)