summaryrefslogtreecommitdiff
path: root/protocols.py
diff options
context:
space:
mode:
Diffstat (limited to 'protocols.py')
-rw-r--r--protocols.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols.py b/protocols.py
index 7ce1faa6..d621ffb6 100644
--- a/protocols.py
+++ b/protocols.py
@@ -231,10 +231,14 @@ def _arguments_infer_argname(self, name, context):
yield self.parent.parent.frame()
return
if name == self.vararg:
- yield const_factory(())
+ vararg = const_factory(())
+ vararg.parent = self
+ yield vararg
return
if name == self.kwarg:
- yield const_factory({})
+ kwarg = const_factory({})
+ kwarg.parent = self
+ yield kwarg
return
# if there is a default value, yield it. And then yield YES to reflect
# we can't guess given argument value