File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
"""Python filesystem abstraction layer.
2
2
"""
3
3
4
- __import__ ("pkg_resources" ).declare_namespace (__name__ )
4
+ __import__ ("pkg_resources" ).declare_namespace (__name__ ) # type: ignore
5
5
6
6
from ._version import __version__
7
7
from .enums import ResourceType , Seek
Original file line number Diff line number Diff line change 3
3
"""
4
4
5
5
# Declare fs.opener as a namespace package
6
- __import__ ("pkg_resources" ).declare_namespace (__name__ )
6
+ __import__ ("pkg_resources" ).declare_namespace (__name__ ) # type: ignore
7
7
8
8
# Import objects into fs.opener namespace
9
9
from .base import Opener
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class TarFS(WrapFS):
112
112
"gz" : (".tar.gz" , ".tgz" ),
113
113
}
114
114
115
- def __new__ (
115
+ def __new__ ( # type: ignore
116
116
cls ,
117
117
file , # type: Union[Text, BinaryIO]
118
118
write = False , # type: bool
Original file line number Diff line number Diff line change @@ -163,7 +163,8 @@ class ZipFS(WrapFS):
163
163
164
164
"""
165
165
166
- def __new__ (
166
+ # TODO: __new__ returning different types may be too 'magical'
167
+ def __new__ ( # type: ignore
167
168
cls ,
168
169
file , # type: Union[Text, BinaryIO]
169
170
write = False , # type: bool
You can’t perform that action at this time.
0 commit comments