From 5d67866ae91b00cd7cfe35b68d0d5277271abf07 Mon Sep 17 00:00:00 2001 From: psasselum <114472685+psasselum@users.noreply.github.com> Date: Thu, 24 Nov 2022 11:18:16 +0100 Subject: [PATCH] Add upper limit to pyflake's version <3.0 The latest pyflake version removed handling of python 2.x ``# type:`` comments. It would be very convenient to have a last release that support it in autoflake. As the dependency was not upper limited none of the current release of autoflake handle's 2.X style typing. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index aa71de1..b88b84a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ classifiers = [ keywords = ["clean", "fix", "automatic", "unused", "import"] urls = { Homepage = "https://www.github.com/PyCQA/autoflake" } requires-python = ">=3.7" -dependencies = ["pyflakes>=1.1.0", "tomli>=2.0.1;python_version<'3.11'"] +dependencies = ["pyflakes>=1.1.0,<3", "tomli>=2.0.1;python_version<'3.11'"] dynamic = ["version"] [project.readme]