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: if param.annotation is not inspect.Parameter.empty:
log.commands.vdebug("Parsing annotation {}".format( log.commands.vdebug("Parsing annotation {}".format(
param.annotation)) param.annotation))
for field in ('type', 'name'): info['type'] = param.annotation['type']
if field in param.annotation:
info[field] = param.annotation[field]
return self.AnnotationInfo(**info) return self.AnnotationInfo(**info)
def _get_type(self, param, annotation_info): def _get_type(self, param, annotation_info):