@@ -164,7 +164,7 @@ def _exception_for_4xx_status(
164164 )
165165 return HTTPError (
166166 "Error response contains JSON but it does not "
167- + f"specify code or error keys: { raw_body } " ,
167+ f"specify code or error keys: { raw_body } " ,
168168 status ,
169169 uri ,
170170 raw_body ,
@@ -232,7 +232,7 @@ class AsyncClient(BaseClient):
232232 _existing_session : aiohttp .ClientSession
233233 _proxy : str | None
234234
235- def __init__ (
235+ def __init__ ( # noqa: PLR0913
236236 self ,
237237 account_id : int ,
238238 license_key : str ,
@@ -267,8 +267,8 @@ def __init__(
267267 async def factors (
268268 self ,
269269 transaction : dict [str , Any ],
270- validate : bool = True ,
271- hash_email : bool = False ,
270+ validate : bool = True , # noqa: FBT001, FBT002
271+ hash_email : bool = False , # noqa: FBT001, FBT002
272272 ) -> Factors :
273273 """Query Factors endpoint with transaction data.
274274
@@ -306,8 +306,8 @@ async def factors(
306306 async def insights (
307307 self ,
308308 transaction : dict [str , Any ],
309- validate : bool = True ,
310- hash_email : bool = False ,
309+ validate : bool = True , # noqa: FBT001, FBT002
310+ hash_email : bool = False , # noqa: FBT001, FBT002
311311 ) -> Insights :
312312 """Query Insights endpoint with transaction data.
313313
@@ -345,8 +345,8 @@ async def insights(
345345 async def score (
346346 self ,
347347 transaction : dict [str , Any ],
348- validate : bool = True ,
349- hash_email : bool = False ,
348+ validate : bool = True , # noqa: FBT001, FBT002
349+ hash_email : bool = False , # noqa: FBT001, FBT002
350350 ) -> Score :
351351 """Query Score endpoint with transaction data.
352352
@@ -384,7 +384,7 @@ async def score(
384384 async def report (
385385 self ,
386386 report : dict [str , str | None ],
387- validate : bool = True ,
387+ validate : bool = True , # noqa: FBT001, FBT002
388388 ) -> None :
389389 """Send a transaction report to the Report Transaction endpoint.
390390
@@ -418,8 +418,8 @@ async def _response_for(
418418 uri : str ,
419419 model_class : Callable ,
420420 request : dict [str , Any ],
421- validate : bool ,
422- hash_email : bool ,
421+ validate : bool , # noqa: FBT001
422+ hash_email : bool , # noqa: FBT001
423423 ) -> Score | Factors | Insights :
424424 """Send request and create response object."""
425425 prepared_request = prepare_transaction (request , validate , hash_email )
@@ -476,7 +476,7 @@ class Client(BaseClient):
476476 _proxies : dict [str , str ] | None
477477 _session : requests .Session
478478
479- def __init__ (
479+ def __init__ ( # noqa: PLR0913
480480 self ,
481481 account_id : int ,
482482 license_key : str ,
@@ -525,8 +525,8 @@ def __init__(
525525 def factors (
526526 self ,
527527 transaction : dict [str , Any ],
528- validate : bool = True ,
529- hash_email : bool = False ,
528+ validate : bool = True , # noqa: FBT001, FBT002
529+ hash_email : bool = False , # noqa: FBT001, FBT002
530530 ) -> Factors :
531531 """Query Factors endpoint with transaction data.
532532
@@ -564,8 +564,8 @@ def factors(
564564 def insights (
565565 self ,
566566 transaction : dict [str , Any ],
567- validate : bool = True ,
568- hash_email : bool = False ,
567+ validate : bool = True , # noqa: FBT001, FBT002
568+ hash_email : bool = False , # noqa: FBT001, FBT002
569569 ) -> Insights :
570570 """Query Insights endpoint with transaction data.
571571
@@ -603,8 +603,8 @@ def insights(
603603 def score (
604604 self ,
605605 transaction : dict [str , Any ],
606- validate : bool = True ,
607- hash_email : bool = False ,
606+ validate : bool = True , # noqa: FBT001, FBT002
607+ hash_email : bool = False , # noqa: FBT001, FBT002
608608 ) -> Score :
609609 """Query Score endpoint with transaction data.
610610
@@ -639,7 +639,11 @@ def score(
639639 ),
640640 )
641641
642- def report (self , report : dict [str , str | None ], validate : bool = True ) -> None :
642+ def report (
643+ self ,
644+ report : dict [str , str | None ],
645+ validate : bool = True , # noqa: FBT001, FBT002
646+ ) -> None :
643647 """Send a transaction report to the Report Transaction endpoint.
644648
645649 :param report: A dictionary containing the transaction report to be sent
@@ -672,8 +676,8 @@ def _response_for(
672676 uri : str ,
673677 model_class : Callable ,
674678 request : dict [str , Any ],
675- validate : bool ,
676- hash_email : bool ,
679+ validate : bool , # noqa: FBT001
680+ hash_email : bool , # noqa: FBT001
677681 ) -> Score | Factors | Insights :
678682 """Send request and create response object."""
679683 prepared_request = prepare_transaction (request , validate , hash_email )
0 commit comments