Skip to content

Commit fae4c7c

Browse files
committed
format
1 parent 4548266 commit fae4c7c

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

gokart/file_processor.py

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,10 @@ def __init__(self, sep=',', encoding: str = 'utf-8'):
139139
def format(self):
140140
return TextFormat(encoding=self._encoding)
141141

142-
def load(self, file):
143-
...
142+
def load(self, file): ...
143+
144+
def dump(self, obj, file): ...
144145

145-
def dump(self, obj, file):
146-
...
147146

148147
class PolarsCsvFileProcessor(CsvFileProcessor):
149148
def load(self, file):
@@ -191,11 +190,9 @@ def __init__(self, orient: str | None = None):
191190
def format(self):
192191
return luigi.format.Nop
193192

194-
def load(self, file):
195-
...
193+
def load(self, file): ...
196194

197-
def dump(self, obj, file):
198-
...
195+
def dump(self, obj, file): ...
199196

200197

201198
class PolarsJsonFileProcessor(JsonFileProcessor):
@@ -272,11 +269,10 @@ def __init__(self, engine='pyarrow', compression=None):
272269
def format(self):
273270
return luigi.format.Nop
274271

275-
def load(self, file):
276-
...
272+
def load(self, file): ...
273+
274+
def dump(self, obj, file): ...
277275

278-
def dump(self, obj, file):
279-
...
280276

281277
class PolarsParquetFileProcessor(ParquetFileProcessor):
282278
def load(self, file):
@@ -314,11 +310,9 @@ def __init__(self, store_index_in_feather: bool):
314310
def format(self):
315311
return luigi.format.Nop
316312

317-
def load(self, file):
318-
...
313+
def load(self, file): ...
319314

320-
def dump(self, obj, file):
321-
...
315+
def dump(self, obj, file): ...
322316

323317

324318
class PolarsFeatherFileProcessor(FeatherFileProcessor):
@@ -388,6 +382,7 @@ def dump(self, obj, file):
388382
ParquetFileProcessor = PandasParquetFileProcessor
389383
FeatherFileProcessor = PandasFeatherFileProcessor
390384

385+
391386
def make_file_processor(file_path: str, store_index_in_feather: bool) -> FileProcessor:
392387
extension2processor = {
393388
'.txt': TextFileProcessor(),

0 commit comments

Comments
 (0)