Skip to content

Commit 3cb70a5

Browse files
MoisanMarcoGorelli
andauthored
STYLE: fix PDF026 issues (#46529)
* TYP: fix PDF026 issues * fixup! TYP: fix PDF026 issues * update requirements-dev.txt Co-authored-by: Marco Edward Gorelli <marcogorelli@protonmail.com>
1 parent 9aeddee commit 3cb70a5

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ repos:
5050
- flake8==4.0.1
5151
- flake8-comprehensions==3.7.0
5252
- flake8-bugbear==21.3.2
53-
- pandas-dev-flaker==0.4.0
53+
- pandas-dev-flaker==0.5.0
5454
- repo: https://github.com/PyCQA/isort
5555
rev: 5.10.1
5656
hooks:

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies:
3333
- gitpython # obtain contributors from git for whatsnew
3434
- gitdb
3535
- numpydoc
36-
- pandas-dev-flaker=0.4.0
36+
- pandas-dev-flaker=0.5.0
3737
- pydata-sphinx-theme
3838
- pytest-cython
3939
- sphinx

pandas/core/frame.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -1555,14 +1555,10 @@ def __matmul__(self, other: Series) -> Series:
15551555
...
15561556

15571557
@overload
1558-
def __matmul__(
1559-
self, other: AnyArrayLike | DataFrame | Series
1560-
) -> DataFrame | Series:
1558+
def __matmul__(self, other: AnyArrayLike | DataFrame) -> DataFrame | Series:
15611559
...
15621560

1563-
def __matmul__(
1564-
self, other: AnyArrayLike | DataFrame | Series
1565-
) -> DataFrame | Series:
1561+
def __matmul__(self, other: AnyArrayLike | DataFrame) -> DataFrame | Series:
15661562
"""
15671563
Matrix multiplication using binary `@` operator in Python>=3.5.
15681564
"""

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pyupgrade
1919
gitpython
2020
gitdb
2121
numpydoc
22-
pandas-dev-flaker==0.4.0
22+
pandas-dev-flaker==0.5.0
2323
pydata-sphinx-theme
2424
pytest-cython
2525
sphinx

0 commit comments

Comments
 (0)