fix typing (#3966)

This commit is contained in:
Matthias Mair authored and GitHub committed 2022-11-20 19:20:58 +11:00
1 parent 5869a008c5
commit 798e95910c
1 file changed
+2 -2
+2 -2
View File
@@ -6,7 +6,7 @@ import re
import warnings
from dataclasses import dataclass
from datetime import timedelta
from typing import Callable
from typing import Callable, List
from django.conf import settings
from django.core import mail as django_mail
@@ -153,7 +153,7 @@ class ScheduledTask:
class TaskRegister:
"""Registery for periodicall tasks."""
task_list: list[ScheduledTask] = []
task_list: List[ScheduledTask] = []
def register(self, task, schedule, minutes: int = None):
"""Register a task with the que."""