Skip to content

Commit

Permalink
chore: update pre-commit hooks (#8)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.5.4](astral-sh/ruff-pre-commit@v0.5.2...v0.5.4)
- [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.0](pre-commit/mirrors-mypy@v1.10.1...v1.11.0)

* ci: fixes from updated mypy

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nathaniel Starkman <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and nstarman authored Jul 25, 2024
1 parent 5ee462c commit 66a0329
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 @@ -40,14 +40,14 @@ repos:
args: [--prose-wrap=always]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.2"
rev: "v0.5.4"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.1"
rev: "v1.11.0"
hooks:
- id: mypy
files: src
Expand Down
2 changes: 1 addition & 1 deletion src/immutable_map_jax/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get(self, key: K, /) -> V | None: ...
@overload
def get(self, key: K, /, default: V | _T) -> V | _T: ...

def get(self, key: K, /, default: V | _T | None = None) -> V | _T | None: # type: ignore[misc]
def get(self, key: K, /, default: V | _T | None = None) -> V | _T | None:
return self._data.get(key, default)

# ===========================================
Expand Down

0 comments on commit 66a0329

Please sign in to comment.