summaryrefslogtreecommitdiff
path: root/astroid/protocols.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r--astroid/protocols.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 0776f146..22abba74 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -529,8 +529,10 @@ def with_assigned_stmts(self, node=None, context=None, assign_path=None):
Arguments:
self: nodes.With
node: The target of the assignment, `as (a, b)` in `with foo as (a, b)`.
- context: TODO
- assign_path: TODO
+ context: Inference context used for caching already inferred objects
+ assign_path:
+ A list of indices, where each index specifies what item to fetch from
+ the inference results.
"""
try:
mgr = next(mgr for (mgr, vars) in self.items if vars == node)
@@ -582,9 +584,11 @@ def starred_assigned_stmts(self, node=None, context=None, assign_path=None):
"""
Arguments:
self: nodes.Starred
- node: TODO
- context: TODO
- assign_path: TODO
+ node: a node related to the current underlying Node.
+ context: Inference context used for caching already inferred objects
+ assign_path:
+ A list of indices, where each index specifies what item to fetch from
+ the inference results.
"""
# pylint: disable=too-many-locals,too-many-branches,too-many-statements
def _determine_starred_iteration_lookups(starred, target, lookups):