Skip to content

Commit b79bb4f

Browse files
committed
Disable too-many-arguments linter
As we end up disabling this in too many places where we use keyword arguments for optional parameters to change the behavior. These keyword parameters don't significantly increase complexity for the standard use case. Fewer options generally would obviously be simpler, no matter how they are passed, but passing them another way would likely be add similar or greater complexity.
1 parent e17fa55 commit b79bb4f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

minfraud/webservice.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class BaseClient:
4646
_factors_uri: str
4747
_report_uri: str
4848

49-
def __init__( # pylint: disable=too-many-arguments
49+
def __init__(
5050
self,
5151
account_id: int,
5252
license_key: str,
@@ -230,7 +230,7 @@ class AsyncClient(BaseClient):
230230
_existing_session: aiohttp.ClientSession
231231
_proxy: Optional[str]
232232

233-
def __init__( # pylint: disable=too-many-arguments
233+
def __init__(
234234
self,
235235
account_id: int,
236236
license_key: str,
@@ -422,7 +422,7 @@ class Client(BaseClient):
422422
_proxies: Optional[Dict[str, str]]
423423
_session: requests.Session
424424

425-
def __init__( # pylint: disable=too-many-arguments
425+
def __init__(
426426
self,
427427
account_id: int,
428428
license_key: str,

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[MESSAGES CONTROL]
2-
disable=bad-continuation,too-few-public-methods
2+
disable=bad-continuation,too-few-public-methods,too-many-arguments
33

44
[BASIC]
55

0 commit comments

Comments
 (0)