Pyflakes

Latest version: v4.1.0

Safety actively analyzes 1047751 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

4.1.0

- Drop support for EOL python 3.10
- Significant performance improvements
- Fix handling of ``Literal`` and ``Annotated`` for lazy imports

4.0.3

- A few performance improvements
- Fix handling of unconventional ``NamedTuple`` / ``TypedDict`` argument 1.

4.0.2

- Fix for ``lazy`` import of ``Literal`` considered eager

4.0.1

- Fix for ``lazy`` imports inside ``try:`` (not at module scope)

4.0.0

- Add support for python 3.15
- Drop support for EOL python 3.9
- Add new errors for ``lazy`` imports:
- lazy import is eagerly used at module scope
- ``lazy from ... import *`` is invalid syntax
- ``lazy from __future__ import ...`` is invalid syntax
- lazy import must be at module scope
- Improve typing specialization:
- Handle ``cast(...)`` with named arguments
- Fix duplicate errors in first argument of ``cast(...)``
- Handle ``TypeVar(... default='...')``
- Fix missing error for first argument of ``TypeVar(...)`` call
- Update handling of ``NamedTuple(...)`` for python 3.15 changes
- Update handling of ``TypedDict(...)`` for python 3.13 changes
- Add handling of ``assert_type(...)``
- Add handling of ``NewType(...)``
- Add handling of ``TypeVarTuple(...)``
- Add handling of ``ParamSpec(...)``
- Fix assignment expressions in dictionary literals
- Remove ``file_tokens`` parameter to ``Checker``. Unused since 3.0.0
- Fix false-negative for deleting special variables such as ``del __tracebackhide__``
- Add support for ``python3t`` shebangs
- Remove support for obsolete ``python3m`` and ``pythonu`` shebangs

3.4.0

- Add support for python 3.14
- Add "t-string is missing placeholders" error
- Fix annotation erroneously causing a name to be defined with
``from __future__ import annotations``
- Add support for always-deferred annotations (PEP 749)

Page 1 of 8

© 2026 Safety CLI Cybersecurity Inc. All Rights Reserved.