diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 40534de17..48b24a9b7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -52,7 +52,7 @@ repos: name: Run Ruff formatter - repo: https://github.com/pycqa/pylint - rev: "v3.2.3" + rev: "v3.2.4" hooks: - id: pylint name: Check code style with pylint @@ -80,7 +80,7 @@ repos: types: [text] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.10.1 hooks: - id: mypy name: Check typing with mypy diff --git a/anta/result_manager/__init__.py b/anta/result_manager/__init__.py index b3679653e..a5fcf9755 100644 --- a/anta/result_manager/__init__.py +++ b/anta/result_manager/__init__.py @@ -125,7 +125,7 @@ def add(self, result: TestResult) -> None: """ def _update_status(test_status: TestStatus) -> None: - result_validator = TypeAdapter(TestStatus) + result_validator: TypeAdapter[TestStatus] = TypeAdapter(TestStatus) result_validator.validate_python(test_status) if test_status == "error": self.error_status = True