mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Updated maxminddb stubs to v1.5.0 (#3300)
This commit is contained in:
committed by
Sebastian Rittau
parent
fa571fb224
commit
e62857f851
5
third_party/3/maxminddb/reader.pyi
vendored
5
third_party/3/maxminddb/reader.pyi
vendored
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user