Skip to content

Commit 9a99df4

Browse files
authored
STYLE: linting issue, xref pandas-dev#17628 (pandas-dev#18722)
1 parent 37086a0 commit 9a99df4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/lint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ if [ "$LINT" ]; then
9797
#
9898
# Check the following functions:
9999
# any(), all(), sum(), max(), min(), list(), dict(), set(), frozenset(), tuple(), str.join()
100-
grep -R --include="*.py*" -E "[^_](any|all|sum|max|min|list|dict|set|frozenset|tuple|join)\(\[.* for .* in .*\]\)" *
100+
grep -R --include="*.py*" -E "[^_](any|all|sum|max|min|list|dict|set|frozenset|tuple|join)\(\[.* for .* in .*\]\)" pandas
101101

102102
if [ $? = "0" ]; then
103103
RET=1

pandas/core/reshape/melt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def melt_stub(df, stub, i, j, value_vars, sep):
406406

407407
return newdf.set_index(i + [j])
408408

409-
if any([col in stubnames for col in df.columns]):
409+
if any(col in stubnames for col in df.columns):
410410
raise ValueError("stubname can't be identical to a column name")
411411

412412
if not is_list_like(stubnames):

0 commit comments

Comments
 (0)