def finder(self, responses): return ResponseFinder(responses)
def _get_operation_response(self, operation, response): from openapi_core.templating.responses.finders import ResponseFinder finder = ResponseFinder(operation / 'responses') return finder.find(str(response.status_code))