mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 23:05:42 +01:00
Removes support for Python 3.8 and lower from the code base
This commit is contained in:
parent
c8bfbb9315
commit
650c816a7b
34 changed files with 195 additions and 337 deletions
|
|
@ -8,7 +8,6 @@ from pathlib import Path
|
|||
from subprocess import CompletedProcess
|
||||
from subprocess import run
|
||||
from typing import Optional
|
||||
from typing import Type
|
||||
|
||||
import magic
|
||||
from asgiref.sync import async_to_sync
|
||||
|
|
@ -372,7 +371,7 @@ class Consumer(LoggingMixin):
|
|||
self.log.debug(f"Detected mime type: {mime_type}")
|
||||
|
||||
# Based on the mime type, get the parser for that type
|
||||
parser_class: Optional[Type[DocumentParser]] = get_parser_class_for_mime_type(
|
||||
parser_class: Optional[type[DocumentParser]] = get_parser_class_for_mime_type(
|
||||
mime_type,
|
||||
)
|
||||
if not parser_class:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue