Skip to content

Commit d66da60

Browse files
authored
Remove annotations to make CI happy (#26820)
1 parent 634577e commit d66da60

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pandas/compat/_optional.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import distutils.version
22
import importlib
33
import types
4-
from typing import Optional
54
import warnings
65

76
# Update install.rst when updating versions!
@@ -53,7 +52,7 @@ def import_optional_dependency(
5352
extra: str = "",
5453
raise_on_missing: bool = True,
5554
on_version: str = "raise",
56-
) -> Optional[types.ModuleType]:
55+
):
5756
"""
5857
Import an optional dependency.
5958

pandas/io/gcs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None,
1515

1616
fs = gcsfs.GCSFileSystem()
1717
filepath_or_buffer = fs.open(
18-
filepath_or_buffer, mode) # type: gcsfs.GCSFile
18+
filepath_or_buffer, mode)
1919
return filepath_or_buffer, None, compression, True

pandas/io/s3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None,
3434
# for that bucket.
3535
fs = s3fs.S3FileSystem(anon=True)
3636
filepath_or_buffer = fs.open(
37-
_strip_schema(filepath_or_buffer), mode) # type: s3fs.S3File
37+
_strip_schema(filepath_or_buffer), mode)
3838
return filepath_or_buffer, None, compression, True

0 commit comments

Comments
 (0)