From e1add2631edd76a525f3e9e7a53c778058f332e6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:01:38 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94ef44ba..a02a2187 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: isort args: ["--profile", "black"] - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black files: ^(reciprocalspaceship|tests)/ From 3b99c619c075c705a145adae371c16f0dcaecb5d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:02:00 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- reciprocalspaceship/dtypes/integer.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reciprocalspaceship/dtypes/integer.py b/reciprocalspaceship/dtypes/integer.py index 69de231a..520d0150 100644 --- a/reciprocalspaceship/dtypes/integer.py +++ b/reciprocalspaceship/dtypes/integer.py @@ -94,9 +94,11 @@ def _get_common_dtype(self, dtypes: list[DtypeObj]) -> DtypeObj | None: # _SupportsDtype, str, Tuple[Any, Union[int, Sequence[int]]], # List[Any], _DtypeDict, Tuple[Any, Any]]] [ - t.numpy_dtype # type: ignore[misc] - if isinstance(t, BaseMaskedDtype) - else t + ( + t.numpy_dtype # type: ignore[misc] + if isinstance(t, BaseMaskedDtype) + else t + ) for t in dtypes ], [],