Skip to content

Commit 3ee66de

Browse files
author
Topi Jarvinen
committed
Fix formatting in azure.py
1 parent 6603afa commit 3ee66de

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/FileUtils/storage/azure.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ def load_from_metadata(
316316
if file_info["format"] == "csv":
317317
# Download to temp file for CSV inference
318318
suffix = ".csv"
319-
with tempfile.NamedTemporaryFile(suffix=suffix, delete=False) as temp_file:
319+
with tempfile.NamedTemporaryFile(
320+
suffix=suffix, delete=False
321+
) as temp_file:
320322
temp_path = Path(temp_file.name)
321323
try:
322324
with open(temp_path, "wb") as data_file:
@@ -451,7 +453,9 @@ def save_dataframes(
451453

452454
# For Excel files, return mapping of sheet names to URL
453455
azure_url = f"azure://{container_name}/{blob_name}"
454-
return {sheet_name: azure_url for sheet_name in dataframes.keys()}
456+
return {
457+
sheet_name: azure_url for sheet_name in dataframes.keys()
458+
}
455459
finally:
456460
temp_path.unlink(missing_ok=True)
457461
else:

0 commit comments

Comments
 (0)