diff --git a/qutebrowser/commands/command.py b/qutebrowser/commands/command.py index 74a5ecc49..96c0a04ea 100644 --- a/qutebrowser/commands/command.py +++ b/qutebrowser/commands/command.py @@ -313,8 +313,8 @@ class Command: for field in ('type', 'flag', 'name', 'special'): if field in param.annotation: info[field] = param.annotation[field] - del param.annotation[field] - info['kwargs'] = param.annotation + if 'nargs' in param.annotation: + info['kwargs'] = {'nargs': param.annotation['nargs']} return self.AnnotationInfo(**info) def _get_type(self, param, annotation_info):