summaryrefslogtreecommitdiff
path: root/astroid/arguments.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-01-17 19:40:38 +0100
committerGitHub <noreply@github.com>2022-01-17 19:40:38 +0100
commit12ada21db077fd5115e613ec6352bde68f48446e (patch)
treea4e78b20cb91fcb17f9651a2661fbc840847d9b9 /astroid/arguments.py
parentd594fbf8b7f200535188fb75a486f93f971f8600 (diff)
downloadastroid-git-12ada21db077fd5115e613ec6352bde68f48446e.tar.gz
Fix typing in ``arguments.py`` (#1356)
Diffstat (limited to 'astroid/arguments.py')
-rw-r--r--astroid/arguments.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/astroid/arguments.py b/astroid/arguments.py
index a34e1b98..1762e9a8 100644
--- a/astroid/arguments.py
+++ b/astroid/arguments.py
@@ -11,11 +11,10 @@
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
-from typing import Optional
+from typing import Optional, Set
from astroid import nodes
from astroid.bases import Instance
-from astroid.const import Context
from astroid.context import CallContext, InferenceContext
from astroid.exceptions import InferenceError, NoDefault
from astroid.util import Uninferable
@@ -46,7 +45,7 @@ class CallSite:
self.argument_context_map = argument_context_map
args = callcontext.args
keywords = callcontext.keywords
- self.duplicated_keywords = set()
+ self.duplicated_keywords: Set[str] = set()
self._unpacked_args = self._unpack_args(args, context=context)
self._unpacked_kwargs = self._unpack_keywords(keywords, context=context)
@@ -60,7 +59,7 @@ class CallSite:
}
@classmethod
- def from_call(cls, call_node, context: Optional[Context] = None):
+ def from_call(cls, call_node, context: Optional[InferenceContext] = None):
"""Get a CallSite object from the given Call node.
context will be used to force a single inference path.