summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-01-17 12:42:33 +0100
committerGitHub <noreply@github.com>2022-01-17 12:42:33 +0100
commit8532fc3326340ab04294d1e84cb07bd781363cd4 (patch)
treea01b2ce899cb6557aba3b3e357b267a3b264bf7a
parent700cd8ffd71d325a0363838096eac8b2fee30384 (diff)
downloadastroid-git-8532fc3326340ab04294d1e84cb07bd781363cd4.tar.gz
Add typing to ``LocalsDictNodeNG.locals`` (#1354)
-rw-r--r--astroid/nodes/scoped_nodes/scoped_nodes.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/astroid/nodes/scoped_nodes/scoped_nodes.py b/astroid/nodes/scoped_nodes/scoped_nodes.py
index 74b3b045..dbc3f53b 100644
--- a/astroid/nodes/scoped_nodes/scoped_nodes.py
+++ b/astroid/nodes/scoped_nodes/scoped_nodes.py
@@ -50,7 +50,7 @@ import os
import sys
import typing
import warnings
-from typing import List, Optional, TypeVar, Union, overload
+from typing import Dict, List, Optional, TypeVar, Union, overload
from astroid import bases
from astroid import decorators as decorators_mod
@@ -230,11 +230,8 @@ class LocalsDictNodeNG(node_classes.LookupMixIn, node_classes.NodeNG):
# attributes below are set by the builder module or by raw factories
- locals = {}
- """A map of the name of a local variable to the node defining the local.
-
- :type: dict(str, NodeNG)
- """
+ locals: Dict[str, List[node_classes.NodeNG]] = {}
+ """A map of the name of a local variable to the node defining the local."""
def qname(self):
"""Get the 'qualified' name of the node.