Skip to content

Commit 12ada21

Browse files
authored
Fix typing in arguments.py (#1356)
1 parent d594fbf commit 12ada21

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

astroid/arguments.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111

1212
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
1313
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
14-
from typing import Optional
14+
from typing import Optional, Set
1515

1616
from astroid import nodes
1717
from astroid.bases import Instance
18-
from astroid.const import Context
1918
from astroid.context import CallContext, InferenceContext
2019
from astroid.exceptions import InferenceError, NoDefault
2120
from astroid.util import Uninferable
@@ -46,7 +45,7 @@ def __init__(
4645
self.argument_context_map = argument_context_map
4746
args = callcontext.args
4847
keywords = callcontext.keywords
49-
self.duplicated_keywords = set()
48+
self.duplicated_keywords: Set[str] = set()
5049
self._unpacked_args = self._unpack_args(args, context=context)
5150
self._unpacked_kwargs = self._unpack_keywords(keywords, context=context)
5251

@@ -60,7 +59,7 @@ def __init__(
6059
}
6160

6261
@classmethod
63-
def from_call(cls, call_node, context: Optional[Context] = None):
62+
def from_call(cls, call_node, context: Optional[InferenceContext] = None):
6463
"""Get a CallSite object from the given Call node.
6564
6665
context will be used to force a single inference path.

0 commit comments

Comments
 (0)