Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Update flake8-comprehensions to 3.10.1 #812

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

This PR updates flake8-comprehensions from 3.2.2 to 3.10.1.

Changelog

3.10.1

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

* Fix false positive in rules C402 and C404 for ``dict()`` calls with keyword arguments.

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

3.10.0

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

* Add rule C417 which recommends rewriting use of ``map()`` with ``lambda`` to an equivalent generator expression or comprehension.

Thanks to Tushar Sadhwani in `PR 409 <https://github.com/adamchainz/flake8-comprehensions/pull/409>`__.

3.9.0

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

* Support Python 3.11.

3.8.0

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

* Drop Python 3.6 support.

* Remove upper bound on Flake8 version.

3.7.0

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

* Support Flake8 4.

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

3.2.3

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant