Skip to content

Commit bbd811f

Browse files
authored
Merge pull request #61 from maxmind/greg/fix-tuples
Fix minfraud.webservice tuple annotations
2 parents d18ac7d + 67860fc commit bbd811f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
History
44
-------
55

6+
2.0.2
7+
++++++++++++++++++
8+
9+
* Fixed type annotation for ``locales`` in ``minfraud.webservice`` to allow
10+
tuples of arbitrary length. Reported by Árni Már Jónsson. GitHub #60.
11+
612
2.0.1 (2020-07-21)
713
++++++++++++++++++
814

minfraud/webservice.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
class BaseClient:
3939
_account_id: str
4040
_license_key: str
41-
_locales: Tuple[str]
41+
_locales: Tuple[str, ...]
4242
_timeout: float
4343

4444
_score_uri: str
@@ -51,7 +51,7 @@ def __init__( # pylint: disable=too-many-arguments
5151
account_id: int,
5252
license_key: str,
5353
host: str = "minfraud.maxmind.com",
54-
locales: Tuple[str] = ("en",),
54+
locales: Tuple[str, ...] = ("en",),
5555
timeout: float = 60,
5656
) -> None:
5757
self._locales = locales
@@ -227,7 +227,7 @@ def __init__( # pylint: disable=too-many-arguments
227227
account_id: int,
228228
license_key: str,
229229
host: str = "minfraud.maxmind.com",
230-
locales: Tuple[str] = ("en",),
230+
locales: Tuple[str, ...] = ("en",),
231231
timeout: float = 60,
232232
) -> None:
233233
"""Constructor for AsyncClient.
@@ -413,7 +413,7 @@ def __init__( # pylint: disable=too-many-arguments
413413
account_id: int,
414414
license_key: str,
415415
host: str = "minfraud.maxmind.com",
416-
locales: Tuple[str] = ("en",),
416+
locales: Tuple[str, ...] = ("en",),
417417
timeout: float = 60,
418418
) -> None:
419419
"""Constructor for Client.

0 commit comments

Comments
 (0)