From b1c4735d2897c55e16c5c14b3926ba4b676df8c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Fri, 15 Oct 2021 13:49:58 +0200 Subject: Make ``undefined-variable`` flag type annotation without value assignment (#5158) Closes #5140 Co-authored-by: Pierre Sassoulas --- doc/whatsnew/2.12.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/whatsnew') diff --git a/doc/whatsnew/2.12.rst b/doc/whatsnew/2.12.rst index 68a3dcac4..ec4817eed 100644 --- a/doc/whatsnew/2.12.rst +++ b/doc/whatsnew/2.12.rst @@ -52,3 +52,8 @@ Other Changes * In length checker, ``len-as-condition`` has been renamed as ``use-implicit-booleaness-not-len`` in order to be consistent with ``use-implicit-booleaness-not-comparison``. + +* ``undefined-variable`` now correctly flags variables which only receive a type annotations + and never get assigned a value + + Closes #5140 -- cgit v1.2.1