8000 Add missing third party modules (#8321) · python/typeshed@4b34b34 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b34b34

Browse files
hauntsaninjaAlexWaygoodpre-commit-ci[bot]
authored
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>
1 parent 46937df commit 4b34b34

File tree

14 files changed

+131
-0
lines changed

14 files changed

+131
-0
lines changed

pyrightconfig.stricter.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"stdlib/xml/sax",
2626
"stubs/aiofiles/aiofiles/tempfile/temptypes.pyi",
2727
"stubs/aiofiles/aiofiles/threadpool/utils.pyi",
28+
"stubs/annoy/annoy/annoylib.pyi",
2829
"stubs/aws-xray-sdk",
2930
"stubs/babel",
3031
"stubs/backports.ssl_match_hostname",
@@ -38,6 +39,7 @@
3839
"stubs/dateparser",
3940
"stubs/dj-database-url",
4041
"stubs/docutils",
42+
"stubs/editdistance/editdistance/bycython.pyi",
4143
"stubs/Flask-SQLAlchemy",
4244
"stubs/fpdf2",
4345
"stubs/html5lib",
@@ -56,6 +58,9 @@
5658
"stubs/paramiko",
5759
"stubs/prettytable",
5860
"stubs/protobuf",
61+
"stubs/pytz/pytz/lazy.pyi",
62+
"stubs/pytz/pytz/reference.pyi",
63+
"stubs/pytz/pytz/tzfile.pyi",
5964
"stubs/google-cloud-ndb",
6065
"stubs/passlib",
6166
"stubs/pep8-naming",
@@ -78,6 +83,7 @@
7883
"stubs/SQLAlchemy",
7984
"stubs/stripe",
8085
"stubs/tqdm",
86+
"stubs/tzlocal/tzlocal/utils.pyi",
8187
"stubs/ttkthemes",
8288
"stubs/urllib3",
8389
"stubs/vobject"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__maintainer__: str
2+
__email__: str
3+
__license__: str

stubs/annoy/annoy/annoylib.pyi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from _typeshed import Incomplete
2+
3+
class Annoy:
4+
f: Incomplete
5+
def __init__(self, *args, **kwargs) -> None: ...
6+
def add_item(self, *args, **kwargs): ...
7+
def build(self, *args, **kwargs): ...
8+
def get_distance(self, *args, **kwargs): ...
9+
def get_item_vector(self, *args, **kwargs): ...
10+
def get_n_items(self, *args, **kwargs): ...
11+
def get_n_trees(self, *args, **kwargs): ...
12+
def get_nns_by_item(self, *args, **kwargs): ...
13+
def get_nns_by_vector(self, *args, **kwargs): ...
14+
def load(self, *args, **kwargs): ...
15+
def on_disk_build(self, *args, **kwargs): ...
16+
def save(self, *args, **kwargs): ...
17+
def set_seed(self, *args, **kwargs): ...
18+
def unbuild(self, *args, **kwargs): ...
19+
def unload(self, *args, **kwargs): ...
20+
def verbose(self, *args, **kwargs): ...
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from typing import Any
2+
3+
version_json: str
4+
5+
def get_versions() -> dict[str, Any]: ...
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from _typeshed import Incomplete
2+
3+
def eval(*args, **kwargs) -> Incomplete: ...
4+
5+
__test__: dict[Incomplete, Incomplete]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from _typeshed import Incomplete
2+
3+
STATUS: Incomplete
4+
EMOJI_DATA: Incomplete

stubs/jmespath/jmespath/compat.pyi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from _typeshed import Incomplete
2+
from collections.abc import Generator
3+
from itertools import zip_longest as zip_longest
4+
5+
text_type = str
6+
string_type = str
7+
8+
def with_str_method(cls): ...
9+
def with_repr_method(cls): ...
10+
def get_methods(cls) -> Generator[Incomplete, None, None]: ...

stubs/pytz/pytz/lazy.pyi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from _typeshed import Incomplete
2+
from collections.abc import Mapping as DictMixin
3+
4+
class LazyDict(DictMixin[Incomplete, Incomplete]):
5+
data: Incomplete
6+
def __getitem__(self, key): ...
7+
def __contains__(self, key): ...
8+
def __iter__(self): ...
9+
def __len__(self): ...
10+
def keys(self): ...
11+
12+
class LazyList(list[Incomplete]):
13+
def __new__(cls, fill_iter: Incomplete | None = ...): ...
14+
15+
class LazySet(set[Incomplete]):
16+
def __new__(cls, fill_iter: Incomplete | None = ...): ...

stubs/pytz/pytz/reference.pyi

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import datetime
2+
from _typeshed import Incomplete
3+
from datetime import tzinfo
4+
5+
from pytz import UTC as UTC
6+
7+
class FixedOffset(tzinfo):
8+
def __init__(self, offset, name) -> None: ...
9+
def utcoffset(self, dt): ...
10+
def tzname(self, dt): ...
11+
def dst(self, dt): ...
12+
13+
STDOFFSET: datetime.timedelta
14+
DSTOFFSET: datetime.timedelta
15+
16+
class LocalTimezone(tzinfo):
17+
def utcoffset(self, dt): ...
18+
def dst(self, dt): ...
19+
def tzname(self, dt): ...
20+
21+
class USTimeZone(tzinfo):
22+
stdoffset: Incomplete
23+
reprname: Incomplete
24+
stdname: Incomplete
25+
dstname: Incomplete
26+
def __init__(self, hours, reprname, stdname, dstname) -> None: ...
27+
def tzname(self, dt): ...
28+
def utcoffset(self, dt): ...
29+
def dst(self, dt): ...
30+
31+
Eastern: USTimeZone
32+
Central: USTimeZone
33+
Mountain: USTimeZone
34+
Pacific: USTimeZone

stubs/pytz/pytz/tzfile.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
def build_tzinfo(zone, fp): ...
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from typing import Any
2+
3+
version_json: str
4+
5+
def get_versions() -> dict[str, Any]: ...

stubs/tzlocal/tzlocal/utils.pyi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import sys
2+
3+
import pytz
4+
5+
if sys.version_info >= (3, 9):
6+
import zoneinfo
7+
8+
class ZoneInfoNotFoundError(pytz.UnknownTimeZoneError, zoneinfo.ZoneInfoNotFoundError): ...
9+
10+
else:
11+
class ZoneInfoNotFoundError(pytz.UnknownTimeZoneError): ...
12+
13+
def get_system_offset(): ...
14+
def get_tz_offset(tz): ...
15+
def assert_tz_offset(tz) -> None: ...

stubs/tzlocal/tzlocal/windows_tz.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
win_tz: dict[str, str]
2+
tz_names: dict[str, str]
3+
tz_win: dict[str, str]

stubs/xxhash/xxhash/version.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from _typeshed import Incomplete
2+
3+
VERSION: str
4+
VERSION_TUPLE: Incomplete

0 commit comments

Comments
 (0)
0