Skip to content

Commit 9516f48

Browse files
committed
fix: apply ruff formatting to http_client.py
Fixed formatting in file handle cleanup code to match project style. Changed single quotes to double quotes as per ruff requirements.
1 parent 1526834 commit 9516f48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nutrient_dws/http_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ def post(
170170
# Clean up file handles after request
171171
if files:
172172
for _, file_data in files.items():
173-
if hasattr(file_data, 'close'):
173+
if hasattr(file_data, "close"):
174174
file_data.close()
175175
elif isinstance(file_data, tuple) and len(file_data) > 1:
176176
file_obj = file_data[1]
177-
if hasattr(file_obj, 'close'):
177+
if hasattr(file_obj, "close"):
178178
file_obj.close()
179179

180180
return self._handle_response(response)

0 commit comments

Comments
 (0)