11
11
12
12
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
13
13
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
14
- from typing import Optional
14
+ from typing import Optional , Set
15
15
16
16
from astroid import nodes
17
17
from astroid .bases import Instance
18
- from astroid .const import Context
19
18
from astroid .context import CallContext , InferenceContext
20
19
from astroid .exceptions import InferenceError , NoDefault
21
20
from astroid .util import Uninferable
@@ -46,7 +45,7 @@ def __init__(
46
45
self .argument_context_map = argument_context_map
47
46
args = callcontext .args
48
47
keywords = callcontext .keywords
49
- self .duplicated_keywords = set ()
48
+ self .duplicated_keywords : Set [ str ] = set ()
50
49
self ._unpacked_args = self ._unpack_args (args , context = context )
51
50
self ._unpacked_kwargs = self ._unpack_keywords (keywords , context = context )
52
51
@@ -60,7 +59,7 @@ def __init__(
60
59
}
61
60
62
61
@classmethod
63
- def from_call (cls , call_node , context : Optional [Context ] = None ):
62
+ def from_call (cls , call_node , context : Optional [InferenceContext ] = None ):
64
63
"""Get a CallSite object from the given Call node.
65
64
66
65
context will be used to force a single inference path.
0 commit comments