summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZen Lee <53538590+zenlyj@users.noreply.github.com>2023-04-18 08:37:58 +0800
committerGitHub <noreply@github.com>2023-04-18 00:37:58 +0000
commitbc9c5c6610cce2a068eabce598200399b9d002f2 (patch)
treeb5e561618b604351dd2e73a55ea55ee5939b93ee
parentf45bf090a8e20c9fb09d61ed67d7f885ad354f85 (diff)
downloadpylint-git-bc9c5c6610cce2a068eabce598200399b9d002f2.tar.gz
Minor refactor on type annotation (#8587)
-rw-r--r--pylint/checkers/variables.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index 8c9f6b6ae..254ef5f5a 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -1292,7 +1292,9 @@ class VariablesChecker(BaseChecker):
tuple[nodes.ExceptHandler, nodes.AssignName]
] = []
"""This is a queue, last in first out."""
- self._evaluated_type_checking_scopes: dict[str, list[nodes.NodeNG]] = {}
+ self._evaluated_type_checking_scopes: dict[
+ str, list[nodes.LocalsDictNodeNG]
+ ] = {}
self._postponed_evaluation_enabled = False
@utils.only_required_for_messages(