diff --git a/crates/ty_vendored/vendor/typeshed/source_commit.txt b/crates/ty_vendored/vendor/typeshed/source_commit.txt index d1119d9c0ed43d..f956b4a8855f43 100644 --- a/crates/ty_vendored/vendor/typeshed/source_commit.txt +++ b/crates/ty_vendored/vendor/typeshed/source_commit.txt @@ -1 +1 @@ -843c1fd5a148da85e523c1b4ee680226f89986aa +f8f0794d0fe249c06dc9f31a004d85be6cca6ced diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_bisect.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_bisect.pyi index 9d4c323ef5ca88..d81cb4e7b1b283 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_bisect.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_bisect.pyi @@ -7,7 +7,7 @@ common approach. """ import sys -from _typeshed import SupportsLenAndGetItem, SupportsRichComparisonT +from _typeshed import SupportsGetItem, SupportsLenAndGetItem, SupportsRichComparisonT from collections.abc import Callable, MutableSequence from typing import TypeVar, overload @@ -35,6 +35,14 @@ if sys.version_info >= (3, 10): A custom key function can be supplied to customize the sort order. """ + @overload + def bisect_left( + a: SupportsGetItem[int, SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int, hi: int, *, key: None = None + ) -> int: ... + @overload + def bisect_left( + a: SupportsGetItem[int, SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int = 0, *, hi: int, key: None = None + ) -> int: ... @overload def bisect_left( a: SupportsLenAndGetItem[_T], @@ -45,6 +53,19 @@ if sys.version_info >= (3, 10): key: Callable[[_T], SupportsRichComparisonT], ) -> int: ... @overload + def bisect_left( + a: SupportsGetItem[int, _T], x: SupportsRichComparisonT, lo: int, hi: int, *, key: Callable[[_T], SupportsRichComparisonT] + ) -> int: ... + @overload + def bisect_left( + a: SupportsGetItem[int, _T], + x: SupportsRichComparisonT, + lo: int = 0, + *, + hi: int, + key: Callable[[_T], SupportsRichComparisonT], + ) -> int: ... + @overload def bisect_right( a: SupportsLenAndGetItem[SupportsRichComparisonT], x: SupportsRichComparisonT, @@ -65,6 +86,14 @@ if sys.version_info >= (3, 10): A custom key function can be supplied to customize the sort order. """ + @overload + def bisect_right( + a: SupportsGetItem[int, SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int, hi: int, *, key: None = None + ) -> int: ... + @overload + def bisect_right( + a: SupportsGetItem[int, SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int = 0, *, hi: int, key: None = None + ) -> int: ... @overload def bisect_right( a: SupportsLenAndGetItem[_T], @@ -75,6 +104,19 @@ if sys.version_info >= (3, 10): key: Callable[[_T], SupportsRichComparisonT], ) -> int: ... @overload + def bisect_right( + a: SupportsGetItem[int, _T], x: SupportsRichComparisonT, lo: int, hi: int, *, key: Callable[[_T], SupportsRichComparisonT] + ) -> int: ... + @overload + def bisect_right( + a: SupportsGetItem[int, _T], + x: SupportsRichComparisonT, + lo: int = 0, + *, + hi: int, + key: Callable[[_T], SupportsRichComparisonT], + ) -> int: ... + @overload def insort_left( a: MutableSequence[SupportsRichComparisonT], x: SupportsRichComparisonT, @@ -122,6 +164,7 @@ if sys.version_info >= (3, 10): ) -> None: ... else: + @overload def bisect_left( a: SupportsLenAndGetItem[SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int = 0, hi: int | None = None ) -> int: @@ -135,6 +178,13 @@ else: slice of a to be searched. """ + @overload + def bisect_left(a: SupportsGetItem[int, SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int, hi: int) -> int: ... + @overload + def bisect_left( + a: SupportsGetItem[int, SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int = 0, *, hi: int + ) -> int: ... + @overload def bisect_right( a: SupportsLenAndGetItem[SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int = 0, hi: int | None = None ) -> int: @@ -148,6 +198,12 @@ else: slice of a to be searched. """ + @overload + def bisect_right(a: SupportsGetItem[int, SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int, hi: int) -> int: ... + @overload + def bisect_right( + a: SupportsGetItem[int, SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int = 0, *, hi: int + ) -> int: ... def insort_left( a: MutableSequence[SupportsRichComparisonT], x: SupportsRichComparisonT, lo: int = 0, hi: int | None = None ) -> None: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/builtins.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/builtins.pyi index 3f648d2f4813d6..e778469287990a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/builtins.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/builtins.pyi @@ -3053,18 +3053,11 @@ class dict(MutableMapping[_KT, _VT]): def __class_getitem__(cls, item: Any, /) -> GenericAlias: """See PEP 585""" - @overload - def __or__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: + def __or__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: """Return self|value.""" - @overload - def __or__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ... - @overload - def __ror__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: + def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: """Return value|self.""" - - @overload - def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ... # dict.__ior__ should be kept roughly in line with MutableMapping.update() @overload # type: ignore[misc] def __ior__(self, value: SupportsKeysAndGetItem[_KT, _VT], /) -> Self: @@ -3090,32 +3083,32 @@ class set(MutableSet[_T]): def copy(self) -> set[_T]: """Return a shallow copy of a set.""" - def difference(self, *s: Iterable[Any]) -> set[_T]: + def difference(self, *s: Iterable[object]) -> set[_T]: """Return a new set with elements in the set that are not in the others.""" - def difference_update(self, *s: Iterable[Any]) -> None: + def difference_update(self, *s: Iterable[object]) -> None: """Update the set, removing elements found in others.""" - def discard(self, element: _T, /) -> None: + def discard(self, element: object, /) -> None: """Remove an element from a set if it is a member. Unlike set.remove(), the discard() method does not raise an exception when an element is missing from the set. """ - def intersection(self, *s: Iterable[Any]) -> set[_T]: + def intersection(self, *s: Iterable[object]) -> set[_T]: """Return a new set with elements common to the set and all others.""" - def intersection_update(self, *s: Iterable[Any]) -> None: + def intersection_update(self, *s: Iterable[object]) -> None: """Update the set, keeping only elements found in it and all others.""" - def isdisjoint(self, s: Iterable[Any], /) -> bool: + def isdisjoint(self, s: Iterable[object], /) -> bool: """Return True if two sets have a null intersection.""" - def issubset(self, s: Iterable[Any], /) -> bool: + def issubset(self, s: Iterable[object], /) -> bool: """Report whether another set contains this set.""" - def issuperset(self, s: Iterable[Any], /) -> bool: + def issuperset(self, s: Iterable[object], /) -> bool: """Report whether this set contains another set.""" def remove(self, element: _T, /) -> None: @@ -3124,7 +3117,7 @@ class set(MutableSet[_T]): If the element is not a member, raise a KeyError. """ - def symmetric_difference(self, s: Iterable[_T], /) -> set[_T]: + def symmetric_difference(self, s: Iterable[_S], /) -> set[_T | _S]: """Return a new set with elements in either the set or other but not both.""" def symmetric_difference_update(self, s: Iterable[_T], /) -> None: @@ -3195,7 +3188,7 @@ class frozenset(AbstractSet[_T_co]): def intersection(self, *s: Iterable[object]) -> frozenset[_T_co]: """Return a new set with elements common to the set and all others.""" - def isdisjoint(self, s: Iterable[_T_co], /) -> bool: + def isdisjoint(self, s: Iterable[object], /) -> bool: """Return True if two sets have a null intersection.""" def issubset(self, s: Iterable[object], /) -> bool: @@ -3204,7 +3197,7 @@ class frozenset(AbstractSet[_T_co]): def issuperset(self, s: Iterable[object], /) -> bool: """Report whether this set contains another set.""" - def symmetric_difference(self, s: Iterable[_T_co], /) -> frozenset[_T_co]: + def symmetric_difference(self, s: Iterable[_S], /) -> frozenset[_T_co | _S]: """Return a new set with elements in either the set or other but not both.""" def union(self, *s: Iterable[_S]) -> frozenset[_T_co | _S]: @@ -3219,7 +3212,7 @@ class frozenset(AbstractSet[_T_co]): def __iter__(self) -> Iterator[_T_co]: """Implement iter(self).""" - def __and__(self, value: AbstractSet[_T_co], /) -> frozenset[_T_co]: + def __and__(self, value: AbstractSet[object], /) -> frozenset[_T_co]: """Return self&value.""" def __or__(self, value: AbstractSet[_S], /) -> frozenset[_T_co | _S]: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/contextlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/contextlib.pyi index a893db534035fb..cb23618b02c5ec 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/contextlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/contextlib.pyi @@ -434,7 +434,7 @@ if sys.version_info >= (3, 10): enter_result: _T @overload - def __init__(self: nullcontext[None], enter_result: None = None) -> None: ... + def __init__(self: nullcontext[None]) -> None: ... @overload def __init__(self: nullcontext[_T], enter_result: _T) -> None: ... # pyright: ignore[reportInvalidTypeVarUse] #11780 def __enter__(self) -> _T: ... @@ -456,7 +456,7 @@ else: enter_result: _T @overload - def __init__(self: nullcontext[None], enter_result: None = None) -> None: ... + def __init__(self: nullcontext[None]) -> None: ... @overload def __init__(self: nullcontext[_T], enter_result: _T) -> None: ... # pyright: ignore[reportInvalidTypeVarUse] #11780 def __enter__(self) -> _T: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/_header_value_parser.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/_header_value_parser.pyi index fc64dfa92cdbbb..481e6f16b62c82 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/_header_value_parser.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/_header_value_parser.pyi @@ -97,8 +97,8 @@ def make_quoted_pairs(value: Any) -> str: def quote_string(value: Any) -> str: ... -if sys.version_info >= (3, 13): - # Added in Python 3.13.12, 3.14.3 +if sys.version_info >= (3, 10): + # Added in Python 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3 def make_parenthesis_pairs(value: Any) -> str: """Escape parenthesis and backslash for use within a comment.""" diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/__init__.pyi index 7d26d92022bf77..471f6582611b97 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/__init__.pyi @@ -31,6 +31,8 @@ Written by Marc-Andre Lemburg (mal@lemburg.com). import sys from codecs import CodecInfo +from . import aliases as aliases + class CodecRegistryError(LookupError, SystemError): ... def normalize_encoding(encoding: str | bytes) -> str: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tarfile.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tarfile.pyi index f926b98c51806f..2e06ba880f1539 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tarfile.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tarfile.pyi @@ -132,8 +132,8 @@ class TarFile: errors: str fileobject: type[ExFileObject] # undocumented pax_headers: Mapping[str, str] - debug: int - errorlevel: int + debug: Literal[0, 1, 2, 3] + errorlevel: Literal[0, 1, 2] offset: int # undocumented extraction_filter: _FilterFunction | None if sys.version_info >= (3, 13): @@ -150,8 +150,8 @@ class TarFile: encoding: str | None = None, errors: str = "surrogateescape", pax_headers: Mapping[str, str] | None = None, - debug: int | None = None, - errorlevel: int | None = None, + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 copybufsize: int | None = None, # undocumented stream: bool = False, ) -> None: @@ -176,8 +176,8 @@ class TarFile: encoding: str | None = None, errors: str = "surrogateescape", pax_headers: Mapping[str, str] | None = None, - debug: int | None = None, - errorlevel: int | None = None, + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 copybufsize: int | None = None, # undocumented ) -> None: """Open an (uncompressed) tar archive `name'. `mode' is either 'r' to @@ -212,8 +212,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: """Open a tar archive for reading, writing or appending. Return an appropriate TarFile class. @@ -272,8 +272,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 level: None = None, options: Mapping[int, int] | None = None, zstd_dict: ZstdDict | tuple[ZstdDict, int] | None = None, @@ -335,8 +335,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: ... @overload @classmethod @@ -354,8 +354,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: ... @overload @classmethod @@ -373,8 +373,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 compresslevel: int = 9, ) -> Self: ... @overload @@ -393,8 +393,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 compresslevel: int = 9, ) -> Self: ... @overload @@ -413,8 +413,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 preset: Literal[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | None = ..., ) -> Self: ... @overload @@ -433,8 +433,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 preset: Literal[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | None = ..., ) -> Self: ... if sys.version_info >= (3, 14): @@ -454,8 +454,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 options: Mapping[int, int] | None = None, zstd_dict: ZstdDict | tuple[ZstdDict, int] | None = None, ) -> Self: @@ -516,8 +516,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 options: Mapping[int, int] | None = None, zstd_dict: ZstdDict | tuple[ZstdDict, int] | None = None, ) -> Self: ... @@ -538,8 +538,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: ... @overload @classmethod @@ -557,8 +557,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: ... @overload @classmethod @@ -576,8 +576,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: ... @overload @classmethod @@ -595,8 +595,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: ... @overload @classmethod @@ -614,8 +614,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 compresslevel: int = 9, ) -> Self: ... @overload @@ -634,8 +634,8 @@ class TarFile: encoding: str | None = ..., errors: str = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 compresslevel: int = 9, ) -> Self: ... @classmethod @@ -652,8 +652,8 @@ class TarFile: ignore_zeros: bool | None = ..., encoding: str | None = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: """Open uncompressed tar archive name for reading or writing.""" @@ -672,8 +672,8 @@ class TarFile: ignore_zeros: bool | None = ..., encoding: str | None = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: """Open gzip compressed tar archive name for reading or writing. Appending is not allowed. @@ -694,8 +694,8 @@ class TarFile: ignore_zeros: bool | None = ..., encoding: str | None = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: ... @overload @classmethod @@ -712,8 +712,8 @@ class TarFile: ignore_zeros: bool | None = ..., encoding: str | None = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: """Open bzip2 compressed tar archive name for reading or writing. Appending is not allowed. @@ -734,8 +734,8 @@ class TarFile: ignore_zeros: bool | None = ..., encoding: str | None = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: ... @classmethod def xzopen( @@ -751,8 +751,8 @@ class TarFile: ignore_zeros: bool | None = ..., encoding: str | None = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: """Open lzma compressed tar archive name for reading or writing. Appending is not allowed. @@ -775,8 +775,8 @@ class TarFile: ignore_zeros: bool | None = ..., encoding: str | None = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: """Open zstd compressed tar archive name for reading or writing. Appending is not allowed. @@ -799,8 +799,8 @@ class TarFile: ignore_zeros: bool | None = ..., encoding: str | None = ..., pax_headers: Mapping[str, str] | None = ..., - debug: int | None = ..., - errorlevel: int | None = ..., + debug: Literal[0, 1, 2, 3] | None = None, # default 0 + errorlevel: Literal[0, 1, 2] | None = None, # default 1 ) -> Self: ... def getmember(self, name: str) -> TarInfo: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/__init__.pyi index 7718e654143dbe..81f8ef0d476078 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/__init__.pyi @@ -2518,7 +2518,9 @@ class Grid: ipady: float | str = ..., padx: float | str | tuple[float | str, float | str] = ..., pady: float | str | tuple[float | str, float | str] = ..., - sticky: str = ..., # consists of letters 'n', 's', 'w', 'e', may contain repeats, may be empty + sticky: ( + str | list[str] | tuple[str, ...] + ) = ..., # consists of letters 'n', 's', 'w', 'e', may contain repeats, may be empty in_: Misc = ..., **kw: Any, # allow keyword argument named 'in', see #4836 ) -> None: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/request.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/request.pyi index 136c3465cf0638..d271a879acdab3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/request.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/request.pyi @@ -251,7 +251,7 @@ else: context: None = None, ) -> _UrlopenRet: ... -def install_opener(opener: OpenerDirector) -> None: ... +def install_opener(opener: OpenerDirector | None) -> None: ... def build_opener(*handlers: BaseHandler | Callable[[], BaseHandler]) -> OpenerDirector: """Create an opener object from a list of handlers.