Add missing third party modules (#8321)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: hauntsaninja <>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Shantanu
2022-07-19 00:11:29 -07:00
committed by GitHub
parent 46937df750
commit 4b34b345f1
14 changed files with 131 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
__maintainer__: str
__email__: str
__license__: str

View File

@@ -0,0 +1,20 @@
from _typeshed import Incomplete
class Annoy:
f: Incomplete
def __init__(self, *args, **kwargs) -> None: ...
def add_item(self, *args, **kwargs): ...
def build(self, *args, **kwargs): ...
def get_distance(self, *args, **kwargs): ...
def get_item_vector(self, *args, **kwargs): ...
def get_n_items(self, *args, **kwargs): ...
def get_n_trees(self, *args, **kwargs): ...
def get_nns_by_item(self, *args, **kwargs): ...
def get_nns_by_vector(self, *args, **kwargs): ...
def load(self, *args, **kwargs): ...
def on_disk_build(self, *args, **kwargs): ...
def save(self, *args, **kwargs): ...
def set_seed(self, *args, **kwargs): ...
def unbuild(self, *args, **kwargs): ...
def unload(self, *args, **kwargs): ...
def verbose(self, *args, **kwargs): ...

View File

@@ -0,0 +1,5 @@
from typing import Any
version_json: str
def get_versions() -> dict[str, Any]: ...

View File

@@ -0,0 +1,5 @@
from _typeshed import Incomplete
def eval(*args, **kwargs) -> Incomplete: ...
__test__: dict[Incomplete, Incomplete]

View File

@@ -0,0 +1,4 @@
from _typeshed import Incomplete
STATUS: Incomplete
EMOJI_DATA: Incomplete

View File

@@ -0,0 +1,10 @@
from _typeshed import Incomplete
from collections.abc import Generator
from itertools import zip_longest as zip_longest
text_type = str
string_type = str
def with_str_method(cls): ...
def with_repr_method(cls): ...
def get_methods(cls) -> Generator[Incomplete, None, None]: ...

16
stubs/pytz/pytz/lazy.pyi Normal file
View File

@@ -0,0 +1,16 @@
from _typeshed import Incomplete
from collections.abc import Mapping as DictMixin
class LazyDict(DictMixin[Incomplete, Incomplete]):
data: Incomplete
def __getitem__(self, key): ...
def __contains__(self, key): ...
def __iter__(self): ...
def __len__(self): ...
def keys(self): ...
class LazyList(list[Incomplete]):
def __new__(cls, fill_iter: Incomplete | None = ...): ...
class LazySet(set[Incomplete]):
def __new__(cls, fill_iter: Incomplete | None = ...): ...

View File

@@ -0,0 +1,34 @@
import datetime
from _typeshed import Incomplete
from datetime import tzinfo
from pytz import UTC as UTC
class FixedOffset(tzinfo):
def __init__(self, offset, name) -> None: ...
def utcoffset(self, dt): ...
def tzname(self, dt): ...
def dst(self, dt): ...
STDOFFSET: datetime.timedelta
DSTOFFSET: datetime.timedelta
class LocalTimezone(tzinfo):
def utcoffset(self, dt): ...
def dst(self, dt): ...
def tzname(self, dt): ...
class USTimeZone(tzinfo):
stdoffset: Incomplete
reprname: Incomplete
stdname: Incomplete
dstname: Incomplete
def __init__(self, hours, reprname, stdname, dstname) -> None: ...
def tzname(self, dt): ...
def utcoffset(self, dt): ...
def dst(self, dt): ...
Eastern: USTimeZone
Central: USTimeZone
Mountain: USTimeZone
Pacific: USTimeZone

View File

@@ -0,0 +1 @@
def build_tzinfo(zone, fp): ...

View File

@@ -0,0 +1,5 @@
from typing import Any
version_json: str
def get_versions() -> dict[str, Any]: ...

View File

@@ -0,0 +1,15 @@
import sys
import pytz
if sys.version_info >= (3, 9):
import zoneinfo
class ZoneInfoNotFoundError(pytz.UnknownTimeZoneError, zoneinfo.ZoneInfoNotFoundError): ...
else:
class ZoneInfoNotFoundError(pytz.UnknownTimeZoneError): ...
def get_system_offset(): ...
def get_tz_offset(tz): ...
def assert_tz_offset(tz) -> None: ...

View File

@@ -0,0 +1,3 @@
win_tz: dict[str, str]
tz_names: dict[str, str]
tz_win: dict[str, str]

View File

@@ -0,0 +1,4 @@
from _typeshed import Incomplete
VERSION: str
VERSION_TUPLE: Incomplete