Skip to content

Commit 3e48f0d

Browse files
committed
hopefully found it
1 parent af23d85 commit 3e48f0d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ repos:
3030
alias: ruff-selected-autofixes
3131
files: ^pandas
3232
exclude: ^pandas/tests
33-
args: [--select, "ANN001,ANN2", --fix-only, --exit-non-zero-on-fix, --show-fixes]
33+
args: [--select, "ANN001,ANN2", --fix-only, --exit-non-zero-on-fix]
3434
- id: ruff-format
3535
exclude: ^scripts|^pandas/tests/frame/test_query_eval.py
36-
args: [--show-fixes]
3736
- repo: https://github.com/jendrikseipp/vulture
3837
rev: v2.14
3938
hooks:

pandas/core/generic.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9816,9 +9816,7 @@ def _where(
98169816
)
98179817
for i in range(self.shape[1])
98189818
]
9819-
res = self._constructor(
9820-
dict(enumerate(res_cols))
9821-
)
9819+
res = self._constructor(dict(enumerate(res_cols)))
98229820
res.index = self.index
98239821
res.columns = self.columns
98249822
if inplace:

0 commit comments

Comments
 (0)