diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index 1dcb9086cd14..cfc6dc59457d 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -25,6 +25,7 @@ "stdlib/xml/sax", "stubs/aiofiles/aiofiles/tempfile/temptypes.pyi", "stubs/aiofiles/aiofiles/threadpool/utils.pyi", + "stubs/annoy/annoy/annoylib.pyi", "stubs/aws-xray-sdk", "stubs/babel", "stubs/backports.ssl_match_hostname", @@ -38,6 +39,7 @@ "stubs/dateparser", "stubs/dj-database-url", "stubs/docutils", + "stubs/editdistance/editdistance/bycython.pyi", "stubs/Flask-SQLAlchemy", "stubs/fpdf2", "stubs/html5lib", @@ -56,6 +58,9 @@ "stubs/paramiko", "stubs/prettytable", "stubs/protobuf", + "stubs/pytz/pytz/lazy.pyi", + "stubs/pytz/pytz/reference.pyi", + "stubs/pytz/pytz/tzfile.pyi", "stubs/google-cloud-ndb", "stubs/passlib", "stubs/pep8-naming", @@ -78,6 +83,7 @@ "stubs/SQLAlchemy", "stubs/stripe", "stubs/tqdm", + "stubs/tzlocal/tzlocal/utils.pyi", "stubs/ttkthemes", "stubs/urllib3", "stubs/vobject" diff --git a/stubs/DateTimeRange/datetimerange/__version__.pyi b/stubs/DateTimeRange/datetimerange/__version__.pyi new file mode 100644 index 000000000000..afe5f0868b25 --- /dev/null +++ b/stubs/DateTimeRange/datetimerange/__version__.pyi @@ -0,0 +1,3 @@ +__maintainer__: str +__email__: str +__license__: str diff --git a/stubs/annoy/annoy/annoylib.pyi b/stubs/annoy/annoy/annoylib.pyi new file mode 100644 index 000000000000..41d2fe2ae336 --- /dev/null +++ b/stubs/annoy/annoy/annoylib.pyi @@ -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): ... diff --git a/stubs/click-spinner/click_spinner/_version.pyi b/stubs/click-spinner/click_spinner/_version.pyi new file mode 100644 index 000000000000..feb0b1653bab --- /dev/null +++ b/stubs/click-spinner/click_spinner/_version.pyi @@ -0,0 +1,5 @@ +from typing import Any + +version_json: str + +def get_versions() -> dict[str, Any]: ... diff --git a/stubs/editdistance/editdistance/bycython.pyi b/stubs/editdistance/editdistance/bycython.pyi new file mode 100644 index 000000000000..24fc9933d789 --- /dev/null +++ b/stubs/editdistance/editdistance/bycython.pyi @@ -0,0 +1,5 @@ +from _typeshed import Incomplete + +def eval(*args, **kwargs) -> Incomplete: ... + +__test__: dict[Incomplete, Incomplete] diff --git a/stubs/emoji/emoji/unicode_codes/data_dict.pyi b/stubs/emoji/emoji/unicode_codes/data_dict.pyi new file mode 100644 index 000000000000..46c28062717f --- /dev/null +++ b/stubs/emoji/emoji/unicode_codes/data_dict.pyi @@ -0,0 +1,4 @@ +from _typeshed import Incomplete + +STATUS: Incomplete +EMOJI_DATA: Incomplete diff --git a/stubs/jmespath/jmespath/compat.pyi b/stubs/jmespath/jmespath/compat.pyi new file mode 100644 index 000000000000..fdafd1524402 --- /dev/null +++ b/stubs/jmespath/jmespath/compat.pyi @@ -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]: ... diff --git a/stubs/pytz/pytz/lazy.pyi b/stubs/pytz/pytz/lazy.pyi new file mode 100644 index 000000000000..77ba8b6b5a19 --- /dev/null +++ b/stubs/pytz/pytz/lazy.pyi @@ -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 = ...): ... diff --git a/stubs/pytz/pytz/reference.pyi b/stubs/pytz/pytz/reference.pyi new file mode 100644 index 000000000000..b3a5d4db0575 --- /dev/null +++ b/stubs/pytz/pytz/reference.pyi @@ -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 diff --git a/stubs/pytz/pytz/tzfile.pyi b/stubs/pytz/pytz/tzfile.pyi new file mode 100644 index 000000000000..5539e590e850 --- /dev/null +++ b/stubs/pytz/pytz/tzfile.pyi @@ -0,0 +1 @@ +def build_tzinfo(zone, fp): ... diff --git a/stubs/stdlib-list/stdlib_list/_version.pyi b/stubs/stdlib-list/stdlib_list/_version.pyi new file mode 100644 index 000000000000..feb0b1653bab --- /dev/null +++ b/stubs/stdlib-list/stdlib_list/_version.pyi @@ -0,0 +1,5 @@ +from typing import Any + +version_json: str + +def get_versions() -> dict[str, Any]: ... diff --git a/stubs/tzlocal/tzlocal/utils.pyi b/stubs/tzlocal/tzlocal/utils.pyi new file mode 100644 index 000000000000..37e42d31c487 --- /dev/null +++ b/stubs/tzlocal/tzlocal/utils.pyi @@ -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: ... diff --git a/stubs/tzlocal/tzlocal/windows_tz.pyi b/stubs/tzlocal/tzlocal/windows_tz.pyi new file mode 100644 index 000000000000..9ff7d81d7c3d --- /dev/null +++ b/stubs/tzlocal/tzlocal/windows_tz.pyi @@ -0,0 +1,3 @@ +win_tz: dict[str, str] +tz_names: dict[str, str] +tz_win: dict[str, str] diff --git a/stubs/xxhash/xxhash/version.pyi b/stubs/xxhash/xxhash/version.pyi new file mode 100644 index 000000000000..b18bf8c3c23b --- /dev/null +++ b/stubs/xxhash/xxhash/version.pyi @@ -0,0 +1,4 @@ +from _typeshed import Incomplete + +VERSION: str +VERSION_TUPLE: Incomplete