diff options
author | Paolo Melchiorre | 2022-12-05 18:38:37 +0100 |
---|---|---|
committer | GitHub | 2022-12-05 10:38:37 -0700 |
commit | a9bb4a7122df6d9d4a764de52244c6ec75789ead (patch) | |
tree | 14ba582f72ac5e3b133b3644ca03e0f027e7c2ef /stator/management | |
parent | dd8e823d2f3ef22fcaa1e43e74f11f7e49eff9e7 (diff) | |
download | takahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.tar.gz takahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.tar.bz2 takahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.zip |
Add pyupgrade with --py310-plus in pre-commit (#103)
Diffstat (limited to 'stator/management')
-rw-r--r-- | stator/management/commands/runstator.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stator/management/commands/runstator.py b/stator/management/commands/runstator.py index 4d52520..bec88d6 100644 --- a/stator/management/commands/runstator.py +++ b/stator/management/commands/runstator.py @@ -1,4 +1,4 @@ -from typing import List, Type, cast +from typing import cast from asgiref.sync import async_to_sync from django.apps import apps @@ -44,7 +44,7 @@ class Command(BaseCommand): def handle( self, - model_labels: List[str], + model_labels: list[str], concurrency: int, liveness_file: str, schedule_interval: int, @@ -56,7 +56,7 @@ class Command(BaseCommand): Config.system = Config.load_system() # Resolve the models list into names models = cast( - List[Type[StatorModel]], + list[type[StatorModel]], [apps.get_model(label) for label in model_labels], ) if not models: |