Skip to content

Commit 236b3a8

Browse files
committed
Fix linting issues
1 parent fe04a29 commit 236b3a8

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

  • multinet/api/tasks/upload

multinet/api/tasks/upload/csv.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,25 @@ def process_row(row: Dict[str, Any], cols: Dict[str, TableTypeAnnotation.Type])
3838

3939
@shared_task(base=ProcessUploadTask)
4040
def process_csv(
41-
task_id: int, table_name: str, edge: bool, columns: Dict[str, TableTypeAnnotation.Type], delimiter: str, quotechar: str
41+
task_id: int,
42+
table_name: str,
43+
edge: bool,
44+
columns: Dict[str, TableTypeAnnotation.Type],
45+
delimiter: str,
46+
quotechar: str,
4247
) -> None:
4348
upload: Upload = Upload.objects.get(id=task_id)
4449

4550
# Download data from S3/MinIO
4651
with upload.blob as blob_file:
4752
blob_file: BinaryIO = blob_file
48-
csv_rows = list(csv.DictReader(
49-
StringIO(blob_file.read().decode('utf-8')),
50-
delimiter=delimiter,
51-
quotechar=quotechar,
52-
))
53+
csv_rows = list(
54+
csv.DictReader(
55+
StringIO(blob_file.read().decode('utf-8')),
56+
delimiter=delimiter,
57+
quotechar=quotechar,
58+
)
59+
)
5360

5461
# Cast entries in each row to appropriate type, if necessary
5562
for i, row in enumerate(csv_rows):

0 commit comments

Comments
 (0)