Bump pyflakes from 2.1.1 to 2.2.0
Bumps pyflakes from 2.1.1 to 2.2.0.
Changelog
Sourced from pyflakes's changelog.
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 fromtyping_extensions
as well- Fix
@overload
detection for async functions- Allow
continue
insidefinally
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
toargparse
- Fix false positives in partially quoted type annotations in unusual contexts
- Be more cautious when identifying
Literal
type expressions
Commits
-
c72d6cf
Release 2.2.0 -
c688d2b
Fix pyflakes for removal of ast.Param (#523) -
684f14d
Be more cautious when identifying typing Literal (#517) -
7641643
Fix quoted type annotations in unusual contexts (#516) -
ef3c5cb
Deprecate optparse in favor of argparse (#499) -
598eb16
Add a check for if statement conditions which are non-empty tuples (#512) -
38ee670
Clarify message docstring (#522) -
780bdcd
Fix bug in async function scope checking (#511) -
0af480e
Warn about is comparison to tuple (#484) -
c9708a1
Fix false positive with partially quoted annotations (#479) - Additional commits viewable in compare view