Updated maxminddb stubs to v1.5.0 (#3300)

This commit is contained in:
Vasily Zakharov
2019-10-04 13:55:46 +03:00
committed by Sebastian Rittau
parent fa571fb224
commit e62857f851

View File

@@ -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: ...