Skip to content

Commit

Permalink
Upgrade pre-commit hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
balancap committed Feb 9, 2024
1 parent 57647c1 commit 62c386b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: [--profile, black]
Expand All @@ -23,16 +23,16 @@ repos:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
args: ['--ignore=E501,E203,E731,W503']
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: [types-dataclasses, numpy]
2 changes: 1 addition & 1 deletion jax_scaled_arithmetics/core/datatype.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .pow2 import Pow2RoundMode, pow2_decompose
from .typing import Array, ArrayTypes

GenericArray = Union[Array, np.ndarray]
GenericArray = Union[Array, np.ndarray[Any, Any]]


@register_pytree_node_class
Expand Down

0 comments on commit 62c386b

Please sign in to comment.