diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a0b9a62..80826181 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ ci: exclude: '.*\.(css|js|svg)$' repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.0.282' + rev: 'v0.0.284' hooks: - id: ruff verbose: true @@ -40,7 +40,7 @@ repos: exclude: ^(docs|tools|tests) args: [--config=pyproject.toml] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.4.1 + rev: v1.5.0 hooks: - id: mypy verbose: true diff --git a/src/openllm/utils/lazy.py b/src/openllm/utils/lazy.py index da8c46dd..4989709f 100644 --- a/src/openllm/utils/lazy.py +++ b/src/openllm/utils/lazy.py @@ -21,7 +21,7 @@ class VersionInfo: if not isinstance(cmp, tuple): raise NotImplementedError if not (1 <= len(cmp) <= 4): raise NotImplementedError return t.cast(t.Tuple[int, int, int, str], attr.astuple(self)[:len(cmp)]), t.cast(t.Tuple[int, int, int, str], cmp) - def __eq__(self, other: t.Any) -> bool: + def __eq__(self, other: object) -> bool: try: us, them = self._ensure_tuple(other) except NotImplementedError: return NotImplemented return us == them