Name: | python3-flake8-comprehensions |
Version: | 3.10.1 |
Release: | 3.el9 |
Architecture: | noarch |
Group: | Unspecified |
Size: | 46113 |
License: | MIT |
RPM: |
python3-flake8-comprehensions-3.10.1-3.el9.noarch.rpm
|
Source RPM: |
python-flake8-comprehensions-3.10.1-3.el9.src.rpm
|
Build Date: | Sat Dec 17 2022 |
Build Host: | build-ol9-x86_64.oracle.com |
Vendor: | Oracle America |
URL: | https://github.com/adamchainz/flake8-comprehensions |
Summary: | Flake8 plugin that helps you write better list/set/dict comprehensions |
Description: | A flake8 plugin to identify the following patterns:
- C400-402: Unnecessary generator - rewrite as a <list/set/dict> comprehension.
- C403-404: Unnecessary list comprehension - rewrite as a <set/dict>
comprehension.
- C405-406: Unnecessary <list/tuple> literal - rewrite as a <set/dict> literal.
- C408: Unnecessary <dict/list/tuple> call - rewrite as a literal.
- C409-410: Unnecessary <list/tuple> passed to <list/tuple>() - (remove the
outer call to <list/tuple>``()/rewrite as a ``<list/tuple> literal).
- C411: Unnecessary list call - remove the outer call to list().
- C413: Unnecessary <list/reversed> call around sorted().
- C414: Unnecessary <list/reversed/set/sorted/tuple> call within
<list/set/sorted/tuple>().
- C415: Unnecessary subscript reversal of iterable within
<reversed/set/sorted>().
- C416: Unnecessary <list/set> comprehension - rewrite using <list/set>().
- C417: Unnecessary map usage - rewrite using a generator
expression/<list/set/dict> comprehension. |