Page MenuHomePhabricator

flake8 test fails with C417:
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce:
Run flake8 CI test with Python 3.8

What happens?:
https://integration.wikimedia.org/ci/job/pywikibot-core-tox-docker/19363/console

Test fails with this message
./pywikibot/page/_links.py: line 822:15: C417 Unnecessary use of map - use a set comprehension instead.

What to do?
C417 test was introduced with flake8-comprehensions 3.10.0 yesterday. The related line is 822 in ./pywikibot/page/_links.py.
The C417 issue and how to solve it is described at https://pypi.org/project/flake8-comprehensions/#description.

Software version:
Python 3.8+

Related Objects

Event Timeline

Xqt triaged this task as High priority.May 20 2022, 11:47 AM

Change 793850 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [flake8] use set comprehension instead of map

https://gerrit.wikimedia.org/r/793850

Change 793850 merged by jenkins-bot:

[pywikibot/core@master] [flake8] use set comprehension instead of map

https://gerrit.wikimedia.org/r/793850

Xqt removed a project: Patch-For-Review.