Cell variable defined in loop PYL-W0640
Bug risk
Major
5 months ago3 years old
Cell variable section defined in loop
 63            from_modules = sorting.sort(
 64                config,
 65                from_modules,
 66                key=lambda key: sorting.module_key(key, config, section_name=section), 67                reverse=config.reverse_sort,
 68            )
 69
Cell variable section defined in loop
 53                config,
 54                straight_modules,
 55                key=lambda key: sorting.module_key(
 56                    key, config, section_name=section, straight_import=True 57                ),
 58                reverse=config.reverse_sort,
 59            )