From d4f4cd55531cd252db3e2c963a6286d520130cab Mon Sep 17 00:00:00 2001 From: Thierry Moisan Date: Sun, 27 Mar 2022 12:12:51 -0400 Subject: [PATCH 1/3] TYP: fix PDF026 issues --- .pre-commit-config.yaml | 2 +- pandas/core/frame.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aeb49c2b1a545..0a2f3f8f2506d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,7 +50,7 @@ repos: - flake8==4.0.1 - flake8-comprehensions==3.7.0 - flake8-bugbear==21.3.2 - - pandas-dev-flaker==0.4.0 + - pandas-dev-flaker==0.5.0 - repo: https://github.com/PyCQA/isort rev: 5.10.1 hooks: diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0013ddf73cddc..82dabf5b5b933 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1556,12 +1556,12 @@ def __matmul__(self, other: Series) -> Series: @overload def __matmul__( - self, other: AnyArrayLike | DataFrame | Series + self, other: AnyArrayLike | DataFrame ) -> DataFrame | Series: ... def __matmul__( - self, other: AnyArrayLike | DataFrame | Series + self, other: AnyArrayLike | DataFrame ) -> DataFrame | Series: """ Matrix multiplication using binary `@` operator in Python>=3.5. From 3a9b97cf3ad43187ce70ed2a8a721c6ebd98c6aa Mon Sep 17 00:00:00 2001 From: Thierry Moisan Date: Sun, 27 Mar 2022 14:26:09 -0400 Subject: [PATCH 2/3] fixup! TYP: fix PDF026 issues --- environment.yml | 2 +- pandas/core/frame.py | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/environment.yml b/environment.yml index ac8921b12f4a3..00d3eea39e34b 100644 --- a/environment.yml +++ b/environment.yml @@ -33,7 +33,7 @@ dependencies: - gitpython # obtain contributors from git for whatsnew - gitdb - numpydoc - - pandas-dev-flaker=0.4.0 + - pandas-dev-flaker=0.5.0 - pydata-sphinx-theme - pytest-cython - sphinx diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 82dabf5b5b933..caa08c67cbfab 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1555,14 +1555,10 @@ def __matmul__(self, other: Series) -> Series: ... @overload - def __matmul__( - self, other: AnyArrayLike | DataFrame - ) -> DataFrame | Series: + def __matmul__(self, other: AnyArrayLike | DataFrame) -> DataFrame | Series: ... - def __matmul__( - self, other: AnyArrayLike | DataFrame - ) -> DataFrame | Series: + def __matmul__(self, other: AnyArrayLike | DataFrame) -> DataFrame | Series: """ Matrix multiplication using binary `@` operator in Python>=3.5. """ From 0b365747aea4ab82970507aba52a7a7d71be081f Mon Sep 17 00:00:00 2001 From: Thierry Moisan Date: Sun, 27 Mar 2022 15:10:29 -0400 Subject: [PATCH 3/3] update requirements-dev.txt --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index a0558f1a00177..1e2d76493c4ac 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -19,7 +19,7 @@ pyupgrade gitpython gitdb numpydoc -pandas-dev-flaker==0.4.0 +pandas-dev-flaker==0.5.0 pydata-sphinx-theme pytest-cython sphinx