Merge "Fix Flake F811 for microversioned methods"

This commit is contained in:
Zuul 2020-09-10 23:50:04 +00:00 committed by Gerrit Code Review
commit 907a9250e7
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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}