@@ -196,7 +196,7 @@ def _convert_swagger_request_body(
196196 def _convert_swagger_parameter (
197197 self ,
198198 parameter : swagger .Parameter | swagger .Ref ,
199- infile_path : str , # noqa: COM812
199+ infile_path : str ,
200200 ) -> model .Parameter :
201201 if isinstance (parameter , swagger .Ref ):
202202 return self ._state .service .parameters [self ._locate_ref (parameter .ref )]
@@ -270,7 +270,7 @@ def _convert_swagger_response(
270270 self ,
271271 response : swagger .Response | swagger .Ref ,
272272 produces : list [str ],
273- infile_path : str , # noqa: COM812
273+ infile_path : str ,
274274 ) -> model .Response | model .Ref :
275275 assert infile_path .count ('#' ) <= 1
276276
@@ -324,7 +324,7 @@ def _convert_openapi_request_body(
324324 content_type = content_type ,
325325 schema = schema ,
326326 required = request_body .required ,
327- ) # noqa: COM812
327+ )
328328 )
329329 return requestBody
330330
@@ -346,15 +346,15 @@ def _convert_openapi_flows(self, flows: openapi.OAuthFlows) -> list[model.Flow]:
346346 authCode = flows .authorizationCode
347347 refreshUrl = authCode .refreshUrl or ''
348348 model_flows .append (
349- model .AuthCodeFlow (refreshUrl , authCode .scopes , authCode .authorizationUrl , authCode .tokenUrl ) # noqa: COM812
349+ model .AuthCodeFlow (refreshUrl , authCode .scopes , authCode .authorizationUrl , authCode .tokenUrl ),
350350 )
351351
352352 return model_flows
353353
354354 def _convert_openapi_securuty (
355355 self ,
356356 security_scheme : openapi .SecurityScheme | openapi .Ref ,
357- flows_scopes : list [str ] | None = None , # noqa: COM812
357+ flows_scopes : list [str ] | None = None ,
358358 ) -> model .Security :
359359 if isinstance (security_scheme , openapi .Ref ):
360360 return self ._state .service .security [self ._locate_ref (security_scheme .ref )]
@@ -385,7 +385,7 @@ def _convert_openapi_securuty(
385385 def _convert_swagger_security (
386386 self ,
387387 security_def : swagger .SecurityDef ,
388- flows_scopes : list [str ] | None = None , # noqa: COM812
388+ flows_scopes : list [str ] | None = None ,
389389 ) -> model .Security :
390390 description = security_def .description or ''
391391 match security_def .type :
@@ -564,7 +564,7 @@ def _convert_op_security(security: swagger.Security | None) -> list[model.Securi
564564 if self ._is_swagger_request_body (sw_path_parameter , global_params ):
565565 sw_path_body = self ._convert_swagger_request_body (
566566 sw_path_parameter ,
567- infile_path + f'/requestBodies/{ i } ' , # noqa: COM812
567+ infile_path + f'/requestBodies/{ i } ' ,
568568 )
569569 else :
570570 sw_param = self ._convert_swagger_parameter (sw_path_parameter , infile_path + f'/parameters/{ i } ' )
@@ -582,7 +582,7 @@ def _convert_op_params(
582582 body = self ._convert_swagger_request_body (
583583 sw_parameter ,
584584 infile_path + '/requestBody' ,
585- consumes , # noqa: COM812
585+ consumes ,
586586 )
587587 else :
588588 param = self ._convert_swagger_parameter (sw_parameter , infile_path + f'/parameters/{ i } ' )
@@ -595,49 +595,49 @@ def _convert_op_params(
595595 'get' ,
596596 sw_path_item .get ,
597597 _convert_op_security ,
598- _convert_op_params , # noqa: COM812
598+ _convert_op_params ,
599599 )
600600 self ._append_swagger_operation (
601601 parsed .basePath + sw_path ,
602602 'post' ,
603603 sw_path_item .post ,
604604 _convert_op_security ,
605- _convert_op_params , # noqa: COM812
605+ _convert_op_params ,
606606 )
607607 self ._append_swagger_operation (
608608 parsed .basePath + sw_path ,
609609 'put' ,
610610 sw_path_item .put ,
611611 _convert_op_security ,
612- _convert_op_params , # noqa: COM812
612+ _convert_op_params ,
613613 )
614614 self ._append_swagger_operation (
615615 parsed .basePath + sw_path ,
616616 'delete' ,
617617 sw_path_item .delete ,
618618 _convert_op_security ,
619- _convert_op_params , # noqa: COM812
619+ _convert_op_params ,
620620 )
621621 self ._append_swagger_operation (
622622 parsed .basePath + sw_path ,
623623 'options' ,
624624 sw_path_item .options ,
625625 _convert_op_security ,
626- _convert_op_params , # noqa: COM812
626+ _convert_op_params ,
627627 )
628628 self ._append_swagger_operation (
629629 parsed .basePath + sw_path ,
630630 'head' ,
631631 sw_path_item .head ,
632632 _convert_op_security ,
633- _convert_op_params , # noqa: COM812
633+ _convert_op_params ,
634634 )
635635 self ._append_swagger_operation (
636636 parsed .basePath + sw_path ,
637637 'patch' ,
638638 sw_path_item .patch ,
639639 _convert_op_security ,
640- _convert_op_params , # noqa: COM812
640+ _convert_op_params ,
641641 )
642642 self ._make_sure_operations_are_unique ()
643643 else :
@@ -730,7 +730,7 @@ def _append_openapi_operation(
730730 security = security_converter (operation .security ),
731731 x_middlewares = operation .x_taxi_middlewares or base_model .XMiddlewares (tvm = True ),
732732 x_client_codegen = operation .x_client_codegen ,
733- ) # noqa: COM812
733+ ),
734734 )
735735
736736 def _append_swagger_operation (
@@ -763,14 +763,14 @@ def _append_swagger_operation(
763763 int (status ): self ._convert_swagger_response (
764764 response ,
765765 operation .produces ,
766- infile_path + f'/responses/{ status } ' , # noqa: COM812
766+ infile_path + f'/responses/{ status } ' ,
767767 )
768768 for status , response in operation .responses .items ()
769769 },
770770 security = security_converter (operation .security ),
771771 x_middlewares = operation .x_taxi_middlewares or base_model .XMiddlewares (tvm = True ),
772772 x_client_codegen = operation .x_client_codegen ,
773- ) # noqa: COM812
773+ ),
774774 )
775775
776776 def service (self ) -> model .Service :
0 commit comments