Fixes 3.9 union
This commit is contained in:
parent
59f850828f
commit
f1152a88dc
@ -6,6 +6,7 @@ from enum import Enum
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
from typing import Union
|
||||||
|
|
||||||
import magic
|
import magic
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
@ -295,7 +296,7 @@ class ConsumerPlugin(
|
|||||||
current_progress: int,
|
current_progress: int,
|
||||||
max_progress: int,
|
max_progress: int,
|
||||||
status: ConsumerFilePhase,
|
status: ConsumerFilePhase,
|
||||||
message: Optional[ConsumerStatusShortMessage | str] = None,
|
message: Optional[Union[ConsumerStatusShortMessage, str]] = None,
|
||||||
document_id=None,
|
document_id=None,
|
||||||
): # pragma: no cover
|
): # pragma: no cover
|
||||||
self.status_mgr.send_progress(
|
self.status_mgr.send_progress(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user