From e62857f851b24625948d6f7dd2203a67680a69dd Mon Sep 17 00:00:00 2001 From: Vasily Zakharov Date: Fri, 4 Oct 2019 13:55:46 +0300 Subject: [PATCH] Updated maxminddb stubs to v1.5.0 (#3300) --- third_party/3/maxminddb/reader.pyi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/third_party/3/maxminddb/reader.pyi b/third_party/3/maxminddb/reader.pyi index 4a963a65c..47e7f6493 100644 --- a/third_party/3/maxminddb/reader.pyi +++ b/third_party/3/maxminddb/reader.pyi @@ -3,13 +3,14 @@ from ipaddress import IPv4Address, IPv6Address from types import TracebackType -from typing import Any, Mapping, Optional, Sequence, Type, Union +from typing import Any, Mapping, Optional, Sequence, Tuple, Type, Union class Reader: closed: bool = ... def __init__(self, database: bytes, mode: int = ...) -> None: ... def metadata(self) -> Metadata: ... - def get(self, ip_address: str) -> Optional[Any]: ... + def get(self, ip_address: Union[str, IPv4Address, IPv6Address]) -> Optional[Any]: ... + def get_with_prefix_len(self, ip_address: Union[str, IPv4Address, IPv6Address]) -> Tuple[Optional[Any], int]: ... def close(self) -> None: ... def __enter__(self) -> Reader: ... def __exit__(self, exc_type: Optional[Type[BaseException]] = ..., exc_val: Optional[BaseException] = ..., exc_tb: Optional[TracebackType] = ...) -> None: ...