Skip to content

Commit

Permalink
🚨 fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Sep 16, 2024
1 parent e28d4a5 commit c3d7fcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/filingcabinet/pdf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def convert_images_to_pdf(filenames, instructions=None, dpi=300):
a4_width, a4_height = A4
writer = io.BytesIO()
pdf = canvas.Canvas(writer, pagesize=A4)
for filename, instruction in zip(filenames, instructions):
for filename, instruction in zip(filenames, instructions, strict=False):
with Image(filename=filename, resolution=dpi) as image:
image.background_color = Color("white")
image.format = "jpg"
Expand Down
2 changes: 1 addition & 1 deletion src/filingcabinet/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def unpack_zip(self, file_obj):

doc_paths = remove_common_root_path(zip_paths)
directories = get_existing_directories(self.collection)
for doc_path, zip_path in zip(doc_paths, zip_paths):
for doc_path, zip_path in zip(doc_paths, zip_paths, strict=False):
self.ensure_directory_exists(doc_path, directories)
directory = directories.get(doc_path.parent)
file_obj = BytesIO(zf.read(str(zip_path)))
Expand Down

0 comments on commit c3d7fcc

Please sign in to comment.