Remove leftovers of 'name' annotation key

This commit is contained in:
Florian Bruhin 2016-05-10 21:52:24 +02:00
parent 77151d394a
commit d990032a2e

View File

@ -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):