python-flake8-comprehensions

Edit Package python-flake8-comprehensions
No description set
Refresh
Refresh
Source Files
Filename Size Changed
3.4.0.tar.gz 0000013524 13.2 KB
python-flake8-comprehensions.changes 0000004664 4.55 KB
python-flake8-comprehensions.spec 0000002101 2.05 KB
Revision 6 (latest revision is 14)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 879887 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 6)
- Update to 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.
  - Drop Python 3.5 support.
  - 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}
- Skip test test_C416_fail_1_list
  (gh#adamchainz/flake8-comprehensions#313).
Comments 0
openSUSE Build Service is sponsored by