Skip to content

Commit 32cc00e

Browse files
Revert "CI: Address linting errors in flake8 >= 3.8.1 (pandas-dev#34152)"
This reverts commit f196e8d.
1 parent f196e8d commit 32cc00e

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

pandas/core/arrays/interval.py

-1
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,6 @@ def mid(self):
10701070
points) and is either monotonic increasing or monotonic decreasing,
10711071
else False.
10721072
"""
1073-
10741073
# https://github.com/python/mypy/issues/1362
10751074
# Mypy does not support decorated properties
10761075
@property # type: ignore

pandas/core/internals/concat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def is_uniform_join_units(join_units):
381381
"""
382382
return (
383383
# all blocks need to have the same type
384-
all(isinstance(ju.block, type(join_units[0].block)) for ju in join_units)
384+
all(type(ju.block) is type(join_units[0].block) for ju in join_units)
385385
and # noqa
386386
# no blocks that would get missing values (can lead to type upcasts)
387387
# unless we're an extension dtype.

pandas/tests/groupby/test_categorical.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ def test_dataframe_categorical_ordered_observed_sort(ordered, observed, sort):
497497
aggr[aggr.isna()] = "missing"
498498
if not all(label == aggr):
499499
msg = (
500-
"Labels and aggregation results not consistently sorted\n"
501-
f"for (ordered={ordered}, observed={observed}, sort={sort})\n"
502-
f"Result:\n{result}"
500+
f"Labels and aggregation results not consistently sorted\n"
501+
+ "for (ordered={ordered}, observed={observed}, sort={sort})\n"
502+
+ "Result:\n{result}"
503503
)
504504
assert False, msg
505505

setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ ignore =
1919
W504, # line break after binary operator
2020
E402, # module level import not at top of file
2121
E731, # do not assign a lambda expression, use a def
22-
E741, # ambiguous variable name 'l' (GH#34150)
2322
C406, # Unnecessary list literal - rewrite as a dict literal.
2423
C408, # Unnecessary dict call - rewrite as a literal.
2524
C409, # Unnecessary list passed to tuple() - rewrite as a tuple literal.

0 commit comments

Comments
 (0)