@@ -21,6 +21,8 @@ class ReusableFile(Generic[_FileConv_co]):
21
21
lazy.
22
22
"""
23
23
24
+ # pylint: disable=unknown-option-value
25
+ # pylint: disable=too-many-positional-arguments
24
26
# pylint: disable=too-many-instance-attributes
25
27
def __init__ (
26
28
self ,
@@ -84,6 +86,8 @@ def read(self):
84
86
class CompressedFile (ReusableFile ):
85
87
magic_bytes : bytes | None = None
86
88
89
+ # pylint: disable=unknown-option-value
90
+ # pylint: disable=too-many-positional-arguments
87
91
# pylint: disable=too-many-instance-attributes
88
92
def __init__ (
89
93
self ,
@@ -115,6 +119,8 @@ def is_compressed(cls, data):
115
119
class GZFile (CompressedFile ):
116
120
magic_bytes : bytes = b"\x1f \x8b \x08 "
117
121
122
+ # pylint: disable=unknown-option-value
123
+ # pylint: disable=too-many-positional-arguments
118
124
# pylint: disable=too-many-instance-attributes
119
125
def __init__ (
120
126
self ,
@@ -170,6 +176,8 @@ def read(self):
170
176
class BZ2File (CompressedFile ):
171
177
magic_bytes : bytes = b"\x42 \x5a \x68 "
172
178
179
+ # pylint: disable=unknown-option-value
180
+ # pylint: disable=too-many-positional-arguments
173
181
# pylint: disable=too-many-instance-attributes
174
182
def __init__ (
175
183
self ,
@@ -220,6 +228,8 @@ class XZFile(CompressedFile):
220
228
magic_bytes : bytes = b"\xfd \x37 \x7a \x58 \x5a \x00 "
221
229
222
230
# pylint: disable=too-many-instance-attributes
231
+ # pylint: disable=unknown-option-value
232
+ # pylint: disable=too-many-positional-arguments
223
233
def __init__ (
224
234
self ,
225
235
path ,
@@ -294,6 +304,8 @@ def get_read_function(filename: str, disable_compression: bool):
294
304
return ReusableFile
295
305
296
306
307
+ # pylint: disable=unknown-option-value
308
+ # pylint: disable=too-many-positional-arguments
297
309
def universal_write_open (
298
310
path : str ,
299
311
mode : str ,
0 commit comments