From d990032a2ec39e0a814484213114a5cb493ade46 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 10 May 2016 21:52:24 +0200 Subject: [PATCH] Remove leftovers of 'name' annotation key --- qutebrowser/commands/command.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qutebrowser/commands/command.py b/qutebrowser/commands/command.py index 2b22c5098..7245450f6 100644 --- a/qutebrowser/commands/command.py +++ b/qutebrowser/commands/command.py @@ -366,9 +366,7 @@ class Command: if param.annotation is not inspect.Parameter.empty: log.commands.vdebug("Parsing annotation {}".format( param.annotation)) - for field in ('type', 'name'): - if field in param.annotation: - info[field] = param.annotation[field] + info['type'] = param.annotation['type'] return self.AnnotationInfo(**info) def _get_type(self, param, annotation_info):