From 3c76d7e92b9f4da59d7d0e86930b1bd83baf14f1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:05:28 -0400 Subject: [PATCH] chore: update pre-commit hooks (#281) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update pre-commit hooks updates: - [github.com/scientific-python/cookie: 2024.03.10 → 2024.04.23](https://github.com/scientific-python/cookie/compare/2024.03.10...2024.04.23) - [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.1...v0.4.2) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.9.0...v1.10.0) * fix: type ignore Signed-off-by: nstarman --------- Signed-off-by: nstarman Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: nstarman --- .pre-commit-config.yaml | 8 ++++---- src/galax/utils/dataclasses.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2134bae6..781f91a5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/scientific-python/cookie - rev: 2024.03.10 + rev: 2024.04.23 hooks: - id: sp-repo-review @@ -51,7 +51,7 @@ repos: - id: check-readthedocs - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.1" + rev: "v0.4.2" hooks: # Run the linter - id: ruff @@ -68,14 +68,14 @@ repos: additional_dependencies: [black==24.*] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.1.0" + rev: "v4.0.0-alpha.8" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] args: [--prose-wrap=always] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.9.0" + rev: "v1.10.0" hooks: - id: mypy files: src diff --git a/src/galax/utils/dataclasses.py b/src/galax/utils/dataclasses.py index bb728982..c5620913 100644 --- a/src/galax/utils/dataclasses.py +++ b/src/galax/utils/dataclasses.py @@ -150,7 +150,7 @@ def init(self: _DataclassInstance, *args: Any, **kwargs: Any) -> None: if f.name in ba.arguments and "converter" in f.metadata: ba.arguments[f.name] = f.metadata["converter"](ba.arguments[f.name]) # Call the original `__init__`. - init.__wrapped__(*ba.args, **ba.kwargs) # type: ignore[attr-defined] + init.__wrapped__(*ba.args, **ba.kwargs) cls.__init__ = init # type: ignore[assignment,method-assign]