fix typing (#3966)

This commit is contained in:
Matthias Mair 2022-11-20 09:20:58 +01:00 committed by GitHub
parent 5869a008c5
commit 798e95910c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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."""