Use the original image file for the checksum, not the maybe alpha removed version (#4781)

This commit is contained in:
Trenton H
2023-12-02 16:18:06 -08:00
committed by GitHub
parent aff56077a8
commit 5b502b1e1a
2 changed files with 20 additions and 17 deletions

View File

@@ -105,7 +105,7 @@ def get_supported_file_extensions() -> set[str]:
return extensions
def get_parser_class_for_mime_type(mime_type: str) -> Optional["DocumentParser"]:
def get_parser_class_for_mime_type(mime_type: str) -> Optional[type["DocumentParser"]]:
"""
Returns the best parser (by weight) for the given mimetype or
None if no parser exists