From 4cc1d9d6d03ce58b3795ea5c2f4b4a97a4c45727 Mon Sep 17 00:00:00 2001 From: Manuel Giffels Date: Mon, 28 Feb 2022 18:22:39 +0100 Subject: [PATCH] Allow reuse of validators to make python3.8 happy --- tardis/adapters/sites/moab.py | 2 +- tardis/adapters/sites/slurm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tardis/adapters/sites/moab.py b/tardis/adapters/sites/moab.py index a0232ad4..08935a73 100644 --- a/tardis/adapters/sites/moab.py +++ b/tardis/adapters/sites/moab.py @@ -59,7 +59,7 @@ class MoabAdapterConfigurationModel(SiteAdapterBaseModel): StatusUpdate: PositiveInt StartupCommand: Optional[str] = None - @root_validator() + @root_validator(allow_reuse=True) def deprecate_startup_command( cls, valuesDict: [str, Any] # noqa B902 ) -> Dict[str, Any]: diff --git a/tardis/adapters/sites/slurm.py b/tardis/adapters/sites/slurm.py index 60b4761f..6a07c005 100644 --- a/tardis/adapters/sites/slurm.py +++ b/tardis/adapters/sites/slurm.py @@ -57,7 +57,7 @@ class SlurmAdapterConfigurationModel(SiteAdapterBaseModel): StatusUpdate: PositiveInt StartupCommand: Optional[str] = None - @root_validator() + @root_validator(allow_reuse=True) def deprecate_startup_command( cls, valuesDict: [str, Any] # noqa B902 ) -> Dict[str, Any]: