Skip to content

Commit 395093a

Browse files
authored
Merge pull request maxmind#181 from maxmind/greg/ignore-lints
Disable existing too-many-positional-arguments
2 parents df415c7 + 198edcb commit 395093a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

geoip2/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class ASN(SimpleModel):
471471
autonomous_system_number: Optional[int]
472472
autonomous_system_organization: Optional[str]
473473

474-
# pylint:disable=too-many-arguments
474+
# pylint:disable=too-many-arguments,too-many-positional-arguments
475475
def __init__(self, raw: Dict[str, Union[str, int]]) -> None:
476476
super().__init__(raw)
477477
self.autonomous_system_number = cast(
@@ -623,7 +623,7 @@ class ISP(ASN):
623623
mobile_network_code: Optional[str]
624624
organization: Optional[str]
625625

626-
# pylint:disable=too-many-arguments
626+
# pylint:disable=too-many-arguments,too-many-positional-arguments
627627
def __init__(self, raw: Dict[str, Union[str, int]]) -> None:
628628
super().__init__(raw)
629629
self.isp = cast(Optional[str], raw.get("isp"))

geoip2/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
"""
77

8-
# pylint:disable=too-many-arguments,too-many-instance-attributes,too-many-locals
8+
# pylint:disable=too-many-arguments,too-many-positional-arguments,too-many-instance-attributes,too-many-locals
99

1010
import ipaddress
1111

geoip2/webservice.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(
7373
timeout: float,
7474
) -> None:
7575
"""Construct a Client."""
76-
# pylint: disable=too-many-arguments
76+
# pylint: disable=too-many-arguments,too-many-positional-arguments
7777
if locales is None:
7878
locales = ["en"]
7979

@@ -260,7 +260,7 @@ class AsyncClient(BaseClient):
260260
_existing_session: aiohttp.ClientSession
261261
_proxy: Optional[str]
262262

263-
def __init__( # pylint: disable=too-many-arguments
263+
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments
264264
self,
265265
account_id: int,
266266
license_key: str,
@@ -423,7 +423,7 @@ class Client(BaseClient):
423423
_session: requests.Session
424424
_proxies: Optional[Dict[str, str]]
425425

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

0 commit comments

Comments
 (0)