Remove leftovers of 'name' annotation key
This commit is contained in:
parent
77151d394a
commit
d990032a2e
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user