mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix typing (#3966)
This commit is contained in:
parent
5869a008c5
commit
798e95910c
@ -6,7 +6,7 @@ import re
|
|||||||
import warnings
|
import warnings
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Callable
|
from typing import Callable, List
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core import mail as django_mail
|
from django.core import mail as django_mail
|
||||||
@ -153,7 +153,7 @@ class ScheduledTask:
|
|||||||
|
|
||||||
class TaskRegister:
|
class TaskRegister:
|
||||||
"""Registery for periodicall tasks."""
|
"""Registery for periodicall tasks."""
|
||||||
task_list: list[ScheduledTask] = []
|
task_list: List[ScheduledTask] = []
|
||||||
|
|
||||||
def register(self, task, schedule, minutes: int = None):
|
def register(self, task, schedule, minutes: int = None):
|
||||||
"""Register a task with the que."""
|
"""Register a task with the que."""
|
||||||
|
Loading…
Reference in New Issue
Block a user