Skip to content

Commit

Permalink
issue #65
Browse files Browse the repository at this point in the history
Fix the definition
  • Loading branch information
pozitronik committed Dec 26, 2023
1 parent 57f3c78 commit 52b4708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sinner/gui/windows/SourcesLibraryForm.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def add(self, library: List[str] | None = None, callback: Callable[[str], None]

def add_image(image_path: str) -> None:
if is_image(image_path):
self.SourcesLibrary.add_thumbnail(image_path=image_path, click_callback=lambda path: callback(path)) # type: ignore[attr-defined] # callback is always defined
self.SourcesLibrary.add_thumbnail(image_path=image_path, click_callback=lambda path: callback(path)) # type: ignore[misc] # callback is always defined

for item in library:
if is_image(item):
Expand Down

0 comments on commit 52b4708

Please sign in to comment.