Skip to content

Commit b11e09c

Browse files
authored
fix: include io.Base in the PathType (#2323)
1 parent fa76e31 commit b11e09c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/bigquery/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139

140140
if typing.TYPE_CHECKING: # pragma: NO COVER
141141
# os.PathLike is only subscriptable in Python 3.9+, thus shielding with a condition.
142-
PathType = Union[str, bytes, os.PathLike[str], os.PathLike[bytes]]
142+
PathType = Union[str, bytes, os.PathLike[str], os.PathLike[bytes], io.IOBase]
143143
_DEFAULT_CHUNKSIZE = 100 * 1024 * 1024 # 100 MB
144144
_MAX_MULTIPART_SIZE = 5 * 1024 * 1024
145145
_DEFAULT_NUM_RETRIES = 6

0 commit comments

Comments
 (0)