@@ -18,25 +18,22 @@ def __init__(
1818 response_factory ,
1919 openapi_errors_handler ,
2020 ):
21- super (FalconOpenAPIMiddleware , self ).__init__ (
22- request_validator , response_validator )
21+ super ().__init__ (request_validator , response_validator )
2322 self .request_factory = request_factory
2423 self .response_factory = response_factory
2524 self .openapi_errors_handler = openapi_errors_handler
2625
2726 def process_request (self , req , resp ):
2827 openapi_req = self ._get_openapi_request (req )
29- req_result = super (FalconOpenAPIMiddleware , self ).process_request (
30- openapi_req )
28+ req_result = super ().process_request (openapi_req )
3129 if req_result .errors :
3230 return self ._handle_request_errors (req , resp , req_result )
3331 req .openapi = req_result
3432
3533 def process_response (self , req , resp , resource , req_succeeded ):
3634 openapi_req = self ._get_openapi_request (req )
3735 openapi_resp = self ._get_openapi_response (resp )
38- resp_result = super (FalconOpenAPIMiddleware , self ).process_response (
39- openapi_req , openapi_resp )
36+ resp_result = super ().process_response (openapi_req , openapi_resp )
4037 if resp_result .errors :
4138 return self ._handle_response_errors (req , resp , resp_result )
4239
0 commit comments