Remove maxminddb stubs in favor of upstream (#6043)

This commit is contained in:
Gregory Oschwald
2021-09-20 16:19:07 -07:00
committed by GitHub
parent eb7b97ee78
commit 28eb7c8b4d
9 changed files with 0 additions and 93 deletions

View File

@@ -1 +0,0 @@
maxminddb.extension

View File

@@ -1,4 +0,0 @@
version = "1.5"
obsolete_since = "2.0.2"
python2 = true
requires = ["types-ipaddress"]

View File

@@ -1,6 +0,0 @@
from typing import Text
from maxminddb import reader
def open_database(database: Text, mode: int = ...) -> reader.Reader: ...
def Reader(database: Text) -> reader.Reader: ...

View File

@@ -1,6 +0,0 @@
from typing import Any
def compat_ip_address(address: object) -> Any: ...
def int_from_byte(x: int) -> int: ...
def int_from_bytes(x: bytes) -> int: ...
def byte_from_int(x: int) -> bytes: ...

View File

@@ -1,6 +0,0 @@
MODE_AUTO: int = ...
MODE_MMAP_EXT: int = ...
MODE_MMAP: int = ...
MODE_FILE: int = ...
MODE_MEMORY: int = ...
MODE_FD: int = ...

View File

@@ -1,5 +0,0 @@
from typing import Any, Tuple
class Decoder:
def __init__(self, database_buffer: bytes, pointer_base: int = ..., pointer_test: bool = ...) -> None: ...
def decode(self, offset: int) -> Tuple[Any, int]: ...

View File

@@ -1 +0,0 @@
class InvalidDatabaseError(RuntimeError): ...

View File

@@ -1,33 +0,0 @@
from typing import Any, Mapping, Sequence, Text
from maxminddb.errors import InvalidDatabaseError as InvalidDatabaseError
class Reader:
closed: bool = ...
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def close(self, *args: Any, **kwargs: Any) -> Any: ...
def get(self, *args: Any, **kwargs: Any) -> Any: ...
def metadata(self, *args: Any, **kwargs: Any) -> Any: ...
def __enter__(self, *args: Any, **kwargs: Any) -> Any: ...
def __exit__(self, *args: Any, **kwargs: Any) -> Any: ...
class extension:
@property
def node_count(self) -> int: ...
@property
def record_size(self) -> int: ...
@property
def ip_version(self) -> int: ...
@property
def database_type(self) -> Text: ...
@property
def languages(self) -> Sequence[Text]: ...
@property
def binary_format_major_version(self) -> int: ...
@property
def binary_format_minor_version(self) -> int: ...
@property
def build_epoch(self) -> int: ...
@property
def description(self) -> Mapping[Text, Text]: ...
def __init__(self, **kwargs: Any) -> None: ...

View File

@@ -1,31 +0,0 @@
from ipaddress import IPv4Address, IPv6Address
from types import TracebackType
from typing import Any, Mapping, Sequence, Text, Tuple, Type
class Reader:
closed: bool = ...
def __init__(self, database: bytes, mode: int = ...) -> None: ...
def metadata(self) -> Metadata: ...
def get(self, ip_address: Text | IPv4Address | IPv6Address) -> Any | None: ...
def get_with_prefix_len(self, ip_address: Text | IPv4Address | IPv6Address) -> Tuple[Any | None, int]: ...
def close(self) -> None: ...
def __enter__(self) -> Reader: ...
def __exit__(
self, exc_type: Type[BaseException] | None = ..., exc_val: BaseException | None = ..., exc_tb: TracebackType | None = ...
) -> None: ...
class Metadata:
node_count: int = ...
record_size: int = ...
ip_version: int = ...
database_type: Text = ...
languages: Sequence[Text] = ...
binary_format_major_version: int = ...
binary_format_minor_version: int = ...
build_epoch: int = ...
description: Mapping[Text, Text] = ...
def __init__(self, **kwargs: Any) -> None: ...
@property
def node_byte_size(self) -> int: ...
@property
def search_tree_size(self) -> int: ...