File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -261,11 +261,10 @@ def _load_reporter_by_class(reporter_class: str) -> type[BaseReporter]:
261
261
262
262
263
263
def _handle_force_color_no_color (
264
- reporters : list [ reporters . BaseReporter ],
264
+ reporters : Sequence [ BaseReporter ],
265
265
) -> list [reporters .BaseReporter ]:
266
266
"""
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.
269
268
270
269
Rules are presented in this table:
271
270
+--------------+---------------+-----------------+------------------------------------------------------------+
@@ -294,7 +293,7 @@ def _handle_force_color_no_color(
294
293
295
294
final_reporters : list [reporters .BaseReporter ] = []
296
295
297
- for idx , rep in enumerate ( reporters ) :
296
+ for rep in reporters :
298
297
if (
299
298
no_color
300
299
and isinstance (rep , ColorizedTextReporter )
You can’t perform that action at this time.
0 commit comments