Skip to content

Releases: decorator-factory/flake8-pep585

0.1.7: Whitelisting symbols

26 Feb 12:05
Compare
Choose a tag to compare

You can now whitelist individual imports from typing:

# command line
flake8 --pep585-whitelisted-symbols='Callable Match Pattern' src/
# setup.cfg
pep585-whitelisted-symbols = 
    Callable
    Match
    Pattern

0.1.6: Support Python 3.7 and 3.8

05 Oct 11:04
Compare
Choose a tag to compare

The plugin now supports Python 3.7 and 3.8. This is useful if:

  • your CI pipeline runs on Python 3.7 or 3.8 for some reason, but the project is on 3.9+
  • you're using from __future__ import annotations

Python 3.7.x and 3.8.x behaviour is configurable:

flake8-pep585:
  --pep585-activation {auto,always,never}
                        Whether to enable plugin on Python 3.7 and 3.8 (always),
                        only enable if 'from __future__ import annotations'
                        is present (auto, default) or disable (never)

Thanks to @plinss for implementing this!