Skip to content

Commit 8532fc3

Browse files
authored
Add typing to LocalsDictNodeNG.locals (#1354)
1 parent 700cd8f commit 8532fc3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

astroid/nodes/scoped_nodes/scoped_nodes.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
import sys
5151
import typing
5252
import warnings
53-
from typing import List, Optional, TypeVar, Union, overload
53+
from typing import Dict, List, Optional, TypeVar, Union, overload
5454

5555
from astroid import bases
5656
from astroid import decorators as decorators_mod
@@ -230,11 +230,8 @@ class LocalsDictNodeNG(node_classes.LookupMixIn, node_classes.NodeNG):
230230

231231
# attributes below are set by the builder module or by raw factories
232232

233-
locals = {}
234-
"""A map of the name of a local variable to the node defining the local.
235-
236-
:type: dict(str, NodeNG)
237-
"""
233+
locals: Dict[str, List[node_classes.NodeNG]] = {}
234+
"""A map of the name of a local variable to the node defining the local."""
238235

239236
def qname(self):
240237
"""Get the 'qualified' name of the node.

0 commit comments

Comments
 (0)