Skip to content

Commit c72d6cf

Browse files
asottilebitglue
authored andcommitted
Release 2.2.0
1 parent c688d2b commit c72d6cf

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

NEWS.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
2.2.0 (2020-04-08)
2+
3+
- Include column information in error messages
4+
- Fix ``@overload`` detection with other decorators and in non-global scopes
5+
- Fix return-type annotation being a class member
6+
- Fix assignment to ``_`` in doctests with existing ``_`` name
7+
- Namespace attributes which are attached to ast nodes with ``_pyflakes_`` to
8+
avoid conflicts with other libraries (notably bandit)
9+
- Add check for f-strings without placeholders
10+
- Add check for unused/extra/invalid ``'string literal'.format(...)``
11+
- Add check for unused/extra/invalid ``'string literal % ...``
12+
- Improve python shebang detection
13+
- Allow type ignore to be followed by a code ``# type: ignore[attr-defined]``
14+
- Add support for assignment expressions (PEP 572)
15+
- Support ``@overload`` detection from ``typing_extensions`` as well
16+
- Fix ``@overload`` detection for async functions
17+
- Allow ``continue`` inside ``finally`` in python 3.8+
18+
- Fix handling of annotations in positional-only arguments
19+
- Make pyflakes more resistant to future syntax additions
20+
- Fix false positives in partially quoted type annotations
21+
- Warn about ``is`` comparison to tuples
22+
- Fix ``Checker`` usage with async function subtrees
23+
- Add check for ``if`` of non-empty tuple
24+
- Switch from ``optparse`` to ``argparse``
25+
- Fix false positives in partially quoted type annotations in unusual contexts
26+
- Be more cautious when identifying ``Literal`` type expressions
27+
128
2.1.1 (2019-02-28)
229

330
- Fix reported line number for type comment errors

pyflakes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.1'
1+
__version__ = '2.2.0'

0 commit comments

Comments
 (0)