Cannot redefine parameters in subsequent version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restful |
Triaged
|
Low
|
Unassigned |
Bug Description
Attempting to redefine parameters in a subsequent version fails:
>>> @operation_
... @operation_
... @operation_
... @operation_
... def bar(foo): pass
Traceback (most recent call last):
...
TypeError: 'foo' parameter is already defined.
Perhaps the following check in operation_
could be removed:
if name in params:
raise TypeError(
"'%s' parameter is already defined." % name)
?
(There's a work-around possible with operation_
that feels fairly hackish, and is certainly confusing the first time
someone sees it.)
Changed in lazr.restful: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in lazr.restful: | |
importance: | High → Low |