Skip to content

Commit

Permalink
chore: pre-commit autoupdate (#735)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pycqa/pylint: v3.2.3 → v3.2.4](pylint-dev/pylint@v3.2.3...v3.2.4)
- [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1](pre-commit/mirrors-mypy@v1.10.0...v1.10.1)

* ci: Adjust typing for newer mypy

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: gmuloc <gmulocher@arista.com>
  • Loading branch information
pre-commit-ci[bot] and gmuloc authored Jul 2, 2024
1 parent 488e9b7 commit 6c43a92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion anta/result_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c43a92

Please sign in to comment.