diff --git a/pyproject.toml b/pyproject.toml index 7e3e8641f91c..cb630a093f55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,6 +53,7 @@ select = [ "I", # isort "N", # pep8-naming "PGH", # pygrep-hooks + "PIE", # flake8-pie "PL", # Pylint "RUF", # Ruff-specific and unused-noqa "TRY", # tryceratops diff --git a/stdlib/tkinter/__init__.pyi b/stdlib/tkinter/__init__.pyi index 751de523bf7a..73c1e0400fe8 100644 --- a/stdlib/tkinter/__init__.pyi +++ b/stdlib/tkinter/__init__.pyi @@ -265,7 +265,7 @@ else: GraphicsExpose = "13" Gravity = "24" KeyPress = "2" - Key = "2" + Key = KeyPress KeyRelease = "3" Keymap = "11" Leave = "8"