Flake8-comprehensions

Latest version: v3.16.0

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

Scan your dependencies

Page 3 of 7

3.6.1

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

* Fix type hint for ``tree`` argument.

Thanks to kasium for the report in `Issue 352
<https://github.com/adamchainz/flake8-comprehensions/issues/352>`__.

3.6.0

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

* Add type hints.

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}``

Page 3 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.