summaryrefslogtreecommitdiff
path: root/astroid
diff options
context:
space:
mode:
Diffstat (limited to 'astroid')
-rw-r--r--astroid/node_classes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/node_classes.py b/astroid/node_classes.py
index b9855b7..3ac5f40 100644
--- a/astroid/node_classes.py
+++ b/astroid/node_classes.py
@@ -397,12 +397,12 @@ class Arguments(mixins.AssignTypeMixin, bases.NodeNG):
)
if self.vararg:
result.append('*%s' % self.vararg)
- if self.kwarg:
- result.append('**%s' % self.kwarg)
if self.kwonlyargs:
if not self.vararg:
result.append('*')
result.append(_format_args(self.kwonlyargs, self.kw_defaults))
+ if self.kwarg:
+ result.append('**%s' % self.kwarg)
return ', '.join(result)
def default_value(self, argname):