From 4a558004f8138a2c22202b0ca4d57f11282b4a21 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 21:04:46 +0000 Subject: [PATCH 1/2] ci(pre-commit.ci): autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.292 → v0.1.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.292...v0.1.4) - [github.com/psf/black: 23.9.1 → 23.10.1](https://github.com/psf/black/compare/23.9.1...23.10.1) - [github.com/abravalheri/validate-pyproject: v0.14 → v0.15](https://github.com/abravalheri/validate-pyproject/compare/v0.14...v0.15) - [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.6.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.6.1) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 264f13d..7452cd8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,30 +7,30 @@ default_install_hook_types: [pre-commit, commit-msg] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-docstring-first - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.292 + rev: v0.1.4 hooks: - id: ruff args: [--fix] - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 23.10.1 hooks: - id: black - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.14 + rev: v0.15 hooks: - id: validate-pyproject - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.6.1 hooks: - id: mypy files: "^src/" From 165a0afc97b12881da7922ec0b1ce82cf259c269 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Mon, 6 Nov 2023 16:45:59 -0500 Subject: [PATCH 2/2] Fix type hinting issue in _unwrap_partial function. --- src/in_n_out/_type_resolution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/in_n_out/_type_resolution.py b/src/in_n_out/_type_resolution.py index fcd99e8..0891117 100644 --- a/src/in_n_out/_type_resolution.py +++ b/src/in_n_out/_type_resolution.py @@ -30,7 +30,7 @@ def _typing_names() -> dict[str, Any]: def _unwrap_partial(func: Any) -> Any: while isinstance(func, PARTIAL_TYPES): - func = func.func + func = func.func # type: ignore [attr-defined] return func