Skip to content

Commit 8d8f988

Browse files
authored
Follow up to fixes
1 parent 6d558c7 commit 8d8f988

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pylint/lint/pylinter.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,10 @@ def _load_reporter_by_class(reporter_class: str) -> type[BaseReporter]:
261261

262262

263263
def _handle_force_color_no_color(
264-
reporters: list[reporters.BaseReporter],
264+
reporters: Sequence[BaseReporter],
265265
) -> list[reporters.BaseReporter]:
266266
"""
267-
Check ``NO_COLOR`` and ``FORCE_COLOR``, and return the modified reporter list
268-
accordingly.
267+
Check ``NO_COLOR`` and ``FORCE_COLOR``, and return the modified reporter list.
269268
270269
Rules are presented in this table:
271270
+--------------+---------------+-----------------+------------------------------------------------------------+
@@ -294,7 +293,7 @@ def _handle_force_color_no_color(
294293

295294
final_reporters: list[reporters.BaseReporter] = []
296295

297-
for idx, rep in enumerate(reporters):
296+
for rep in reporters:
298297
if (
299298
no_color
300299
and isinstance(rep, ColorizedTextReporter)

0 commit comments

Comments
 (0)