diff options
author | Anthony Sottile <asottile@umich.edu> | 2020-03-17 14:35:02 -0700 |
---|---|---|
committer | Phil Frost <indigo@bitglue.com> | 2020-04-09 20:53:07 -0700 |
commit | c72d6cf1a9a119c1dd7a7674f36da21aea32d828 (patch) | |
tree | 689303552c2878bb9e703fa3b804eb153de64a53 | |
parent | c688d2b02ac6e3416775b88d6411ee6a3e8a51ec (diff) | |
download | pyflakes-c72d6cf1a9a119c1dd7a7674f36da21aea32d828.tar.gz |
Release 2.2.02.2.0
-rw-r--r-- | NEWS.rst | 27 | ||||
-rw-r--r-- | pyflakes/__init__.py | 2 |
2 files changed, 28 insertions, 1 deletions
@@ -1,3 +1,30 @@ +2.2.0 (2020-04-08) + +- Include column information in error messages +- Fix ``@overload`` detection with other decorators and in non-global scopes +- Fix return-type annotation being a class member +- Fix assignment to ``_`` in doctests with existing ``_`` name +- Namespace attributes which are attached to ast nodes with ``_pyflakes_`` to + avoid conflicts with other libraries (notably bandit) +- Add check for f-strings without placeholders +- Add check for unused/extra/invalid ``'string literal'.format(...)`` +- Add check for unused/extra/invalid ``'string literal % ...`` +- Improve python shebang detection +- Allow type ignore to be followed by a code ``# type: ignore[attr-defined]`` +- Add support for assignment expressions (PEP 572) +- Support ``@overload`` detection from ``typing_extensions`` as well +- Fix ``@overload`` detection for async functions +- Allow ``continue`` inside ``finally`` in python 3.8+ +- Fix handling of annotations in positional-only arguments +- Make pyflakes more resistant to future syntax additions +- Fix false positives in partially quoted type annotations +- Warn about ``is`` comparison to tuples +- Fix ``Checker`` usage with async function subtrees +- Add check for ``if`` of non-empty tuple +- Switch from ``optparse`` to ``argparse`` +- Fix false positives in partially quoted type annotations in unusual contexts +- Be more cautious when identifying ``Literal`` type expressions + 2.1.1 (2019-02-28) - Fix reported line number for type comment errors diff --git a/pyflakes/__init__.py b/pyflakes/__init__.py index 55fa725..04188a1 100644 --- a/pyflakes/__init__.py +++ b/pyflakes/__init__.py @@ -1 +1 @@ -__version__ = '2.1.1' +__version__ = '2.2.0' |