summaryrefslogtreecommitdiffstats
path: root/stator/runner.py
diff options
context:
space:
mode:
authorPaolo Melchiorre2022-12-05 18:38:37 +0100
committerGitHub2022-12-05 10:38:37 -0700
commita9bb4a7122df6d9d4a764de52244c6ec75789ead (patch)
tree14ba582f72ac5e3b133b3644ca03e0f027e7c2ef /stator/runner.py
parentdd8e823d2f3ef22fcaa1e43e74f11f7e49eff9e7 (diff)
downloadtakahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.tar.gz
takahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.tar.bz2
takahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.zip
Add pyupgrade with --py310-plus in pre-commit (#103)
Diffstat (limited to 'stator/runner.py')
-rw-r--r--stator/runner.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/stator/runner.py b/stator/runner.py
index ecbaae6..0d8f9ea 100644
--- a/stator/runner.py
+++ b/stator/runner.py
@@ -3,7 +3,6 @@ import datetime
import time
import traceback
import uuid
-from typing import List, Optional, Type
from django.utils import timezone
@@ -20,10 +19,10 @@ class StatorRunner:
def __init__(
self,
- models: List[Type[StatorModel]],
+ models: list[type[StatorModel]],
concurrency: int = 50,
concurrency_per_model: int = 10,
- liveness_file: Optional[str] = None,
+ liveness_file: str | None = None,
schedule_interval: int = 30,
lock_expiry: int = 300,
run_for: int = 0,