Merge "Fix Flake F811 for microversioned methods"
This commit is contained in:
commit
907a9250e7
|
@ -50,7 +50,7 @@ class WebhookController(wsgi.Controller):
|
||||||
|
|
||||||
@wsgi.Controller.api_version("1.10") # noqa
|
@wsgi.Controller.api_version("1.10") # noqa
|
||||||
@util.policy_enforce
|
@util.policy_enforce
|
||||||
def trigger(self, req, webhook_id, body=None):
|
def trigger(self, req, webhook_id, body=None): # noqa F811
|
||||||
obj = util.parse_request(
|
obj = util.parse_request(
|
||||||
'WebhookTriggerRequestParamsInBody', req, {'identity': webhook_id,
|
'WebhookTriggerRequestParamsInBody', req, {'identity': webhook_id,
|
||||||
'body': body})
|
'body': body})
|
||||||
|
|
|
@ -345,7 +345,7 @@ class FakeController(wsgi.Controller):
|
||||||
return {'score': 100}
|
return {'score': 100}
|
||||||
|
|
||||||
@wsgi.Controller.api_version('4.0') # noqa
|
@wsgi.Controller.api_version('4.0') # noqa
|
||||||
def dance(self, req):
|
def dance(self, req): # noqa F811
|
||||||
return {'score': 60}
|
return {'score': 60}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue