Flake8-comprehensions

Latest version: v3.14.0

Safety actively analyzes 629855 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 7

3.5.0

------------------

* Support Python 3.10.

* Stop distributing tests to reduce package size. Tests are not intended to be
run outside of the tox setup in the repository. Repackagers can use GitHub's
tarballs per tag.

3.4.0

------------------

* Remove rules C407 (Unnecessary ``<dict/list>`` comprehension - ``<builtin>``
can take a generator) and C412 (Unnecessary ``<dict/list/set>`` comprehension
- 'in' can take a generator). Both rules recommended increasing laziness,
which is not always desirable and can lead to subtle bugs. Also, a fully
exhausted generator is slower than an equivalent comprehension, so the advice
did not always improve performance.

Thanks to David Smith, Dylan Young, and Leonidas Loucas for the report in
`Issue 247
<https://github.com/adamchainz/flake8-comprehensions/issues/247>`__.

3.3.1

------------------

* Drop Python 3.5 support.
* Improved installation instructions in README.

3.3.0

------------------

* Support Python 3.9.
* Move license from ISC to MIT License.
* Partially reverted the change to ``C408`` to make it apply again to when
``dict`` is called with keyword arguments, e.g. ``dict(a=1, b=2)`` will be
flagged to be rewritten in the literal form ``{"a": 1, "b": 2}``

3.2.3

------------------

* Made ``C408`` only apply when no arguments are passed to
``dict``/``list``/``tuple``.

3.2.2

------------------

* Remove check for dict comprehensions in rule C407 as it would also change the
results for certain builtins such as ``sum()``.

Page 3 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.