diff --git a/crates/ty_ide/src/completion.rs b/crates/ty_ide/src/completion.rs index 3ec5acfa85..fd5d7101a5 100644 --- a/crates/ty_ide/src/completion.rs +++ b/crates/ty_ide/src/completion.rs @@ -1618,6 +1618,8 @@ Answer. __text_signature__ :: str | None __type_params__ :: tuple[TypeVar | ParamSpec | TypeVarTuple, ...] __weakrefoffset__ :: int + _add_alias_ :: def _add_alias_(self, name: str) -> None + _add_value_alias_ :: def _add_value_alias_(self, value: Any) -> None _generate_next_value_ :: def _generate_next_value_(name: str, start: int, count: int, last_values: list[Any]) -> Any _ignore_ :: str | list[str] _member_map_ :: dict[str, Enum] diff --git a/crates/ty_ide/src/goto_type_definition.rs b/crates/ty_ide/src/goto_type_definition.rs index d68a314ee6..f8348a73ee 100644 --- a/crates/ty_ide/src/goto_type_definition.rs +++ b/crates/ty_ide/src/goto_type_definition.rs @@ -198,14 +198,14 @@ mod tests { assert_snapshot!(test.goto_type_definition(), @r#" info[goto-type-definition]: Type definition - --> stdlib/builtins.pyi:892:7 + --> stdlib/builtins.pyi:890:7 | - 890 | def __getitem__(self, key: int, /) -> str | int | None: ... - 891 | - 892 | class str(Sequence[str]): + 888 | def __getitem__(self, key: int, /) -> str | int | None: ... + 889 | + 890 | class str(Sequence[str]): | ^^^ - 893 | """str(object='') -> str - 894 | str(bytes_or_buffer[, encoding[, errors]]) -> str + 891 | """str(object='') -> str + 892 | str(bytes_or_buffer[, encoding[, errors]]) -> str | info: Source --> main.py:4:13 @@ -227,14 +227,14 @@ mod tests { assert_snapshot!(test.goto_type_definition(), @r#" info[goto-type-definition]: Type definition - --> stdlib/builtins.pyi:892:7 + --> stdlib/builtins.pyi:890:7 | - 890 | def __getitem__(self, key: int, /) -> str | int | None: ... - 891 | - 892 | class str(Sequence[str]): + 888 | def __getitem__(self, key: int, /) -> str | int | None: ... + 889 | + 890 | class str(Sequence[str]): | ^^^ - 893 | """str(object='') -> str - 894 | str(bytes_or_buffer[, encoding[, errors]]) -> str + 891 | """str(object='') -> str + 892 | str(bytes_or_buffer[, encoding[, errors]]) -> str | info: Source --> main.py:2:22 @@ -343,14 +343,14 @@ mod tests { assert_snapshot!(test.goto_type_definition(), @r#" info[goto-type-definition]: Type definition - --> stdlib/builtins.pyi:892:7 + --> stdlib/builtins.pyi:890:7 | - 890 | def __getitem__(self, key: int, /) -> str | int | None: ... - 891 | - 892 | class str(Sequence[str]): + 888 | def __getitem__(self, key: int, /) -> str | int | None: ... + 889 | + 890 | class str(Sequence[str]): | ^^^ - 893 | """str(object='') -> str - 894 | str(bytes_or_buffer[, encoding[, errors]]) -> str + 891 | """str(object='') -> str + 892 | str(bytes_or_buffer[, encoding[, errors]]) -> str | info: Source --> main.py:4:18 @@ -378,14 +378,14 @@ mod tests { // is an int. Navigating to `str` would match pyright's behavior. assert_snapshot!(test.goto_type_definition(), @r#" info[goto-type-definition]: Type definition - --> stdlib/builtins.pyi:338:7 + --> stdlib/builtins.pyi:337:7 | - 336 | _LiteralInteger = _PositiveInteger | _NegativeInteger | Literal[0] # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed - 337 | - 338 | class int: + 335 | _LiteralInteger = _PositiveInteger | _NegativeInteger | Literal[0] # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed + 336 | + 337 | class int: | ^^^ - 339 | """int([x]) -> integer - 340 | int(x, base=10) -> integer + 338 | """int([x]) -> integer + 339 | int(x, base=10) -> integer | info: Source --> main.py:4:18 @@ -412,14 +412,14 @@ f(**kwargs) assert_snapshot!(test.goto_type_definition(), @r#" info[goto-type-definition]: Type definition - --> stdlib/builtins.pyi:2892:7 + --> stdlib/builtins.pyi:2888:7 | - 2890 | """See PEP 585""" - 2891 | - 2892 | class dict(MutableMapping[_KT, _VT]): + 2886 | """See PEP 585""" + 2887 | + 2888 | class dict(MutableMapping[_KT, _VT]): | ^^^^ - 2893 | """dict() -> new empty dictionary - 2894 | dict(mapping) -> new dictionary initialized from a mapping object's + 2889 | """dict() -> new empty dictionary + 2890 | dict(mapping) -> new dictionary initialized from a mapping object's | info: Source --> main.py:6:5 @@ -443,14 +443,14 @@ f(**kwargs) assert_snapshot!(test.goto_type_definition(), @r#" info[goto-type-definition]: Type definition - --> stdlib/builtins.pyi:892:7 + --> stdlib/builtins.pyi:890:7 | - 890 | def __getitem__(self, key: int, /) -> str | int | None: ... - 891 | - 892 | class str(Sequence[str]): + 888 | def __getitem__(self, key: int, /) -> str | int | None: ... + 889 | + 890 | class str(Sequence[str]): | ^^^ - 893 | """str(object='') -> str - 894 | str(bytes_or_buffer[, encoding[, errors]]) -> str + 891 | """str(object='') -> str + 892 | str(bytes_or_buffer[, encoding[, errors]]) -> str | info: Source --> main.py:3:17 @@ -536,14 +536,14 @@ f(**kwargs) assert_snapshot!(test.goto_type_definition(), @r#" info[goto-type-definition]: Type definition - --> stdlib/builtins.pyi:892:7 + --> stdlib/builtins.pyi:890:7 | - 890 | def __getitem__(self, key: int, /) -> str | int | None: ... - 891 | - 892 | class str(Sequence[str]): + 888 | def __getitem__(self, key: int, /) -> str | int | None: ... + 889 | + 890 | class str(Sequence[str]): | ^^^ - 893 | """str(object='') -> str - 894 | str(bytes_or_buffer[, encoding[, errors]]) -> str + 891 | """str(object='') -> str + 892 | str(bytes_or_buffer[, encoding[, errors]]) -> str | info: Source --> main.py:4:27 @@ -567,13 +567,13 @@ f(**kwargs) assert_snapshot!(test.goto_type_definition(), @r#" info[goto-type-definition]: Type definition - --> stdlib/types.pyi:922:11 + --> stdlib/types.pyi:921:11 | - 920 | if sys.version_info >= (3, 10): - 921 | @final - 922 | class NoneType: + 919 | if sys.version_info >= (3, 10): + 920 | @final + 921 | class NoneType: | ^^^^^^^^ - 923 | """The type of the None singleton.""" + 922 | """The type of the None singleton.""" | info: Source --> main.py:3:17 @@ -584,14 +584,14 @@ f(**kwargs) | info[goto-type-definition]: Type definition - --> stdlib/builtins.pyi:892:7 + --> stdlib/builtins.pyi:890:7 | - 890 | def __getitem__(self, key: int, /) -> str | int | None: ... - 891 | - 892 | class str(Sequence[str]): + 888 | def __getitem__(self, key: int, /) -> str | int | None: ... + 889 | + 890 | class str(Sequence[str]): | ^^^ - 893 | """str(object='') -> str - 894 | str(bytes_or_buffer[, encoding[, errors]]) -> str + 891 | """str(object='') -> str + 892 | str(bytes_or_buffer[, encoding[, errors]]) -> str | info: Source --> main.py:3:17 diff --git a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Test_calling_a_funct…_(3b18271a821a59b).snap b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Test_calling_a_funct…_(3b18271a821a59b).snap index 389e8e13eb..8a842083da 100644 --- a/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Test_calling_a_funct…_(3b18271a821a59b).snap +++ b/crates/ty_python_semantic/resources/mdtest/snapshots/invalid_argument_typ…_-_Invalid_argument_typ…_-_Test_calling_a_funct…_(3b18271a821a59b).snap @@ -29,16 +29,16 @@ error[invalid-argument-type]: Argument to function `loads` is incorrect | ^ Expected `str | bytes | bytearray`, found `Literal[5]` | info: Function defined here - --> stdlib/json/__init__.pyi:219:5 + --> stdlib/json/__init__.pyi:218:5 | -217 | """ -218 | -219 | def loads( +216 | """ +217 | +218 | def loads( | ^^^^^ -220 | s: str | bytes | bytearray, +219 | s: str | bytes | bytearray, | -------------------------- Parameter declared here -221 | *, -222 | cls: type[JSONDecoder] | None = None, +220 | *, +221 | cls: type[JSONDecoder] | None = None, | info: rule `invalid-argument-type` is enabled by default diff --git a/crates/ty_vendored/vendor/typeshed/source_commit.txt b/crates/ty_vendored/vendor/typeshed/source_commit.txt index a4b69ec387..d072ae5a8c 100644 --- a/crates/ty_vendored/vendor/typeshed/source_commit.txt +++ b/crates/ty_vendored/vendor/typeshed/source_commit.txt @@ -1 +1 @@ -84e41f2853d7af3d651d620f093031cba849bd1d +08225953c98cfd375d80bc88865e5aae77d2c07f diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/__future__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/__future__.pyi index ce4442d925..9f0b95bc4a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/__future__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/__future__.pyi @@ -1,5 +1,4 @@ -""" -Record of phased-in incompatible language changes. +"""Record of phased-in incompatible language changes. Each line is of the form: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_asyncio.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_asyncio.pyi index ef0f8e0d7f..efb8ef77ff 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_asyncio.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_asyncio.pyi @@ -1,6 +1,4 @@ -""" -Accelerator module for asyncio -""" +"""Accelerator module for asyncio""" import sys from asyncio.events import AbstractEventLoop diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_bisect.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_bisect.pyi index 30fd0f4756..9d4c323ef5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_bisect.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_bisect.pyi @@ -1,5 +1,4 @@ -""" -Bisection algorithms. +"""Bisection algorithms. This module provides support for maintaining a list in sorted order without having to sort the list after each insertion. For long lists of items with diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_blake2.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_blake2.pyi index 448ad15f16..efaacea60a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_blake2.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_blake2.pyi @@ -1,6 +1,4 @@ -""" -_blake2b provides BLAKE2b for hashlib -""" +"""_blake2b provides BLAKE2b for hashlib""" from _typeshed import ReadableBuffer from typing import ClassVar, final diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_bootlocale.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_bootlocale.pyi index 233d4934f3..b3f4e5d0c8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_bootlocale.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_bootlocale.pyi @@ -1 +1,7 @@ +"""A minimal subset of the locale module used at interpreter startup +(imported by the _io module), in order to reduce startup time. + +Don't import directly from third-party code; use the `locale` module instead! +""" + def getpreferredencoding(do_setlocale: bool = True) -> str: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_collections_abc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_collections_abc.pyi index 4bbff93bb8..23199e713c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_collections_abc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_collections_abc.pyi @@ -1,5 +1,4 @@ -""" -Abstract Base Classes (ABCs) for collections, according to PEP 3119. +"""Abstract Base Classes (ABCs) for collections, according to PEP 3119. Unit tests are in test_collections. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_compression.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_compression.pyi index 090c462470..de5f90fcde 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_compression.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_compression.pyi @@ -1,6 +1,4 @@ -""" -Internal classes used by the gzip, lzma and bz2 modules -""" +"""Internal classes used by the gzip, lzma and bz2 modules""" # _compression is replaced by compression._common._streams on Python 3.14+ (PEP-784) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_contextvars.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_contextvars.pyi index 6e70ec8dd2..7c00448f38 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_contextvars.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_contextvars.pyi @@ -1,6 +1,4 @@ -""" -Context Variables -""" +"""Context Variables""" import sys from collections.abc import Callable, Iterator, Mapping diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_csv.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_csv.pyi index 006d4694ff..67e1927f8e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_csv.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_csv.pyi @@ -1,6 +1,4 @@ -""" -CSV parsing and writing. -""" +"""CSV parsing and writing.""" import csv import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_ctypes.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_ctypes.pyi index 983eb4b7b1..b4414f2857 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_ctypes.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_ctypes.pyi @@ -1,6 +1,4 @@ -""" -Create and manipulate C compatible data types in Python. -""" +"""Create and manipulate C compatible data types in Python.""" import _typeshed import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_decimal.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_decimal.pyi index a1f2841f07..0e2f9003ee 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_decimal.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_decimal.pyi @@ -1,6 +1,4 @@ -""" -C decimal arithmetic module -""" +"""C decimal arithmetic module""" import sys from decimal import ( diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_frozen_importlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_frozen_importlib.pyi index 88e59ad247..1aacc9710d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_frozen_importlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_frozen_importlib.pyi @@ -1,10 +1,10 @@ -""" -Core implementation of import. +"""Core implementation of import. This module is NOT meant to be directly imported! It has been designed such that it can be bootstrapped into Python as the implementation of import. As such it requires the injection of specific modules and attributes in order to work. One should use importlib as the public-facing version of this module. + """ import importlib.abc @@ -114,7 +114,13 @@ class BuiltinImporter(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader) # MetaPathFinder if sys.version_info < (3, 12): @classmethod - def find_module(cls, fullname: str, path: Sequence[str] | None = None) -> importlib.abc.Loader | None: ... + def find_module(cls, fullname: str, path: Sequence[str] | None = None) -> importlib.abc.Loader | None: + """Find the built-in module. + + If 'path' is ever specified then the search is considered a failure. + + This method is deprecated. Use find_spec() instead. + """ @classmethod def find_spec( @@ -142,7 +148,11 @@ class BuiltinImporter(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader) # Loader if sys.version_info < (3, 12): @staticmethod - def module_repr(module: types.ModuleType) -> str: ... + def module_repr(module: types.ModuleType) -> str: + """Return repr for the module. + + The method is deprecated. The import machinery does the job itself. + """ if sys.version_info >= (3, 10): @staticmethod def create_module(spec: ModuleSpec) -> types.ModuleType | None: @@ -170,7 +180,11 @@ class FrozenImporter(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader): # MetaPathFinder if sys.version_info < (3, 12): @classmethod - def find_module(cls, fullname: str, path: Sequence[str] | None = None) -> importlib.abc.Loader | None: ... + def find_module(cls, fullname: str, path: Sequence[str] | None = None) -> importlib.abc.Loader | None: + """Find a frozen module. + + This method is deprecated. Use find_spec() instead. + """ @classmethod def find_spec( @@ -198,7 +212,11 @@ class FrozenImporter(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader): # Loader if sys.version_info < (3, 12): @staticmethod - def module_repr(m: types.ModuleType) -> str: ... + def module_repr(m: types.ModuleType) -> str: + """Return repr for the module. + + The method is deprecated. The import machinery does the job itself. + """ if sys.version_info >= (3, 10): @staticmethod def create_module(spec: ModuleSpec) -> types.ModuleType | None: @@ -206,7 +224,7 @@ class FrozenImporter(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader): else: @classmethod def create_module(cls, spec: ModuleSpec) -> types.ModuleType | None: - """Set __file__, if able.""" + """Use default semantics for module creation.""" @staticmethod def exec_module(module: types.ModuleType) -> None: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_frozen_importlib_external.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_frozen_importlib_external.pyi index 1b5de01167..76a5fa41c7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_frozen_importlib_external.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_frozen_importlib_external.pyi @@ -1,10 +1,10 @@ -""" -Core implementation of path-based import. +"""Core implementation of path-based import. This module is NOT meant to be directly imported! It has been designed such that it can be bootstrapped into Python as the implementation of import. As such it requires the injection of specific modules and attributes in order to work. One should use importlib as the public-facing version of this module. + """ import _ast @@ -94,7 +94,11 @@ class WindowsRegistryFinder(importlib.abc.MetaPathFinder): if sys.version_info < (3, 12): @classmethod - def find_module(cls, fullname: str, path: Sequence[str] | None = None) -> importlib.abc.Loader | None: ... + def find_module(cls, fullname: str, path: Sequence[str] | None = None) -> importlib.abc.Loader | None: + """Find module named in the registry. + + This method is deprecated. Use find_spec() instead. + """ @classmethod def find_spec( @@ -114,7 +118,7 @@ class PathFinder(importlib.abc.MetaPathFinder): @classmethod def invalidate_caches(cls) -> None: """Call the invalidate_caches() method on all path entry finders - stored in sys.path_importer_cache (where implemented). + stored in sys.path_importer_caches (where implemented). """ if sys.version_info >= (3, 10): @staticmethod @@ -147,7 +151,12 @@ class PathFinder(importlib.abc.MetaPathFinder): """ if sys.version_info < (3, 12): @classmethod - def find_module(cls, fullname: str, path: Sequence[str] | None = None) -> importlib.abc.Loader | None: ... + def find_module(cls, fullname: str, path: Sequence[str] | None = None) -> importlib.abc.Loader | None: + """find the module on sys.path or 'path' based on sys.path_hooks and + sys.path_importer_cache. + + This method is deprecated. Use find_spec() instead. + """ SOURCE_SUFFIXES: list[str] DEBUG_BYTECODE_SUFFIXES: list[str] diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_gdbm.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_gdbm.pyi index e32f15cb17..cb7174535c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_gdbm.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_gdbm.pyi @@ -1,5 +1,4 @@ -""" -This module provides an interface to the GNU DBM (GDBM) library. +"""This module provides an interface to the GNU DBM (GDBM) library. This module is quite similar to the dbm module, but uses GDBM instead to provide some additional functionality. Please note that the file formats diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_hashlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_hashlib.pyi index e4325d265d..a7153d44cf 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_hashlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_hashlib.pyi @@ -1,6 +1,4 @@ -""" -OpenSSL interface for hashlib module -""" +"""OpenSSL interface for hashlib module""" import sys from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_heapq.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_heapq.pyi index ad18df7cce..07a2e751c5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_heapq.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_heapq.pyi @@ -1,5 +1,4 @@ -""" -Heap queue algorithm (a.k.a. priority queue). +"""Heap queue algorithm (a.k.a. priority queue). Heaps are arrays for which a[k] <= a[2*k+1] and a[k] <= a[2*k+2] for all k, counting elements from 0. For the sake of comparison, @@ -30,13 +29,12 @@ maintains the heap invariant! """ import sys -from typing import Any, Final, TypeVar - -_T = TypeVar("_T") # list items must be comparable +from _typeshed import SupportsRichComparisonT as _T # All type variable use in this module requires comparability. +from typing import Final __about__: Final[str] -def heapify(heap: list[Any], /) -> None: # list items must be comparable +def heapify(heap: list[_T], /) -> None: """Transform list into a heap, in-place, in O(len(heap)) time.""" def heappop(heap: list[_T], /) -> _T: @@ -65,7 +63,7 @@ def heapreplace(heap: list[_T], item: _T, /) -> _T: """ if sys.version_info >= (3, 14): - def heapify_max(heap: list[Any], /) -> None: # list items must be comparable + def heapify_max(heap: list[_T], /) -> None: """Maxheap variant of heapify.""" def heappop_max(heap: list[_T], /) -> _T: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_imp.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_imp.pyi index 7d8502a7ac..1f47d2ec56 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_imp.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_imp.pyi @@ -1,6 +1,4 @@ -""" -(Extremely) low-level import machinery bits as used by importlib. -""" +"""(Extremely) low-level import machinery bits as used by importlib.""" import sys import types diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_interpchannels.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_interpchannels.pyi index 75a40344fe..3b4a9abc8a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_interpchannels.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_interpchannels.pyi @@ -1,5 +1,4 @@ -""" -This module provides primitive operations to manage Python interpreters. +"""This module provides primitive operations to manage Python interpreters. The 'interpreters' module provides a more convenient interface. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_interpqueues.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_interpqueues.pyi index 63a7e5a238..3402f6bbb1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_interpqueues.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_interpqueues.pyi @@ -1,5 +1,4 @@ -""" -This module provides primitive operations to manage Python interpreters. +"""This module provides primitive operations to manage Python interpreters. The 'interpreters' module provides a more convenient interface. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_interpreters.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_interpreters.pyi index 7c13fbd076..8c62b7c306 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_interpreters.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_interpreters.pyi @@ -1,5 +1,4 @@ -""" -This module provides primitive operations to manage Python interpreters. +"""This module provides primitive operations to manage Python interpreters. The 'interpreters' module provides a more convenient interface. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_io.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_io.pyi index fb53ca1171..44c25aca9c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_io.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_io.pyi @@ -1,5 +1,4 @@ -""" -The io module provides the Python interfaces to stream handling. The +"""The io module provides the Python interfaces to stream handling. The builtin open function is defined in this module. At the top of the I/O hierarchy is the abstract base class IOBase. It diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_json.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_json.pyi index cd3c3eba5b..9237f7b835 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_json.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_json.pyi @@ -1,6 +1,4 @@ -""" -json speedups -""" +"""json speedups""" from collections.abc import Callable from typing import Any, final diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_locale.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_locale.pyi index f0973adc8e..1c8f6ce53f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_locale.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_locale.pyi @@ -1,6 +1,4 @@ -""" -Support for POSIX locales. -""" +"""Support for POSIX locales.""" import sys from _typeshed import StrPath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_lsprof.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_lsprof.pyi index f24d3c356f..87281edf2f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_lsprof.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_lsprof.pyi @@ -1,6 +1,4 @@ -""" -Fast profiler -""" +"""Fast profiler""" import sys from _typeshed import structseq diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_markupbase.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_markupbase.pyi index 7ad0ff96e2..89ca2bfe82 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_markupbase.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_markupbase.pyi @@ -1,8 +1,8 @@ -""" -Shared support for scanning document type declarations in HTML and XHTML. +"""Shared support for scanning document type declarations in HTML and XHTML. This module is used as a foundation for the html.parser module. It has no documented public API and should not be used directly. + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_msi.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_msi.pyi index 0653815096..2ed64bbad4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_msi.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_msi.pyi @@ -1,6 +1,4 @@ -""" -Documentation -""" +"""Documentation""" import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_operator.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_operator.pyi index da61639e93..4efed1d796 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_operator.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_operator.pyi @@ -1,5 +1,4 @@ -""" -Operator interface. +"""Operator interface. This module exports a set of functions implemented in C corresponding to the intrinsic operators of Python. For example, operator.add(x, y) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_osx_support.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_osx_support.pyi index 8455d3a9d5..4d51676931 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_osx_support.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_osx_support.pyi @@ -1,6 +1,4 @@ -""" -Shared OS X support functions. -""" +"""Shared OS X support functions.""" from collections.abc import Iterable, Sequence from typing import Final, TypeVar diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_pickle.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_pickle.pyi index c93fa445be..58d7d02b33 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_pickle.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_pickle.pyi @@ -1,6 +1,4 @@ -""" -Optimized C implementation for the Python pickle module. -""" +"""Optimized C implementation for the Python pickle module.""" from _typeshed import ReadableBuffer, SupportsWrite from collections.abc import Callable, Iterable, Iterator, Mapping diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_posixsubprocess.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_posixsubprocess.pyi index 6b01cd0b1d..0a1d475b84 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_posixsubprocess.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_posixsubprocess.pyi @@ -1,6 +1,4 @@ -""" -A POSIX helper for the subprocess module. -""" +"""A POSIX helper for the subprocess module.""" import sys from _typeshed import StrOrBytesPath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_pydecimal.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_pydecimal.pyi index 3f82b4bd7a..95499412cc 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_pydecimal.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_pydecimal.pyi @@ -1,6 +1,4 @@ -""" -Python decimal arithmetic module -""" +"""Python decimal arithmetic module""" # This is a slight lie, the implementations aren't exactly identical # However, in all likelihood, the differences are inconsequential diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_queue.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_queue.pyi index 749b54b3cd..7c2d4c7400 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_queue.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_queue.pyi @@ -1,5 +1,4 @@ -""" -C implementation of the Python queue module. +"""C implementation of the Python queue module. This module is an implementation detail, please do not use it directly. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_random.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_random.pyi index 02cc964ca4..3baf234edd 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_random.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_random.pyi @@ -1,6 +1,4 @@ -""" -Module implements the Mersenne Twister random number generator. -""" +"""Module implements the Mersenne Twister random number generator.""" from typing_extensions import TypeAlias diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_sitebuiltins.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_sitebuiltins.pyi index e0d7462db4..98fa3d1ef8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_sitebuiltins.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_sitebuiltins.pyi @@ -1,5 +1,4 @@ """ - The objects used by the site module to add custom builtins. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_socket.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_socket.pyi index 4524c7c417..a024ff0b82 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_socket.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_socket.pyi @@ -1,5 +1,4 @@ -""" -Implementation module for socket operations. +"""Implementation module for socket operations. See the socket module for documentation. """ @@ -890,7 +889,14 @@ class socket: operations are disabled. """ if sys.platform == "win32": - def ioctl(self, control: int, option: int | tuple[int, int, int] | bool, /) -> None: ... + def ioctl(self, control: int, option: int | tuple[int, int, int] | bool, /) -> None: + """ioctl(cmd, option) -> long + + Control the socket with WSAIoctl syscall. Currently supported 'cmd' values are + SIO_RCVALL: 'option' must be one of the socket.RCVALL_* constants. + SIO_KEEPALIVE_VALS: 'option' is a tuple of (onoff, timeout, interval). + SIO_LOOPBACK_FAST_PATH: 'option' is a boolean value, and is disabled by default + """ def listen(self, backlog: int = ..., /) -> None: """listen([backlog]) @@ -1091,7 +1097,14 @@ class socket: @overload def setsockopt(self, level: int, optname: int, value: None, optlen: int, /) -> None: ... if sys.platform == "win32": - def share(self, process_id: int, /) -> bytes: ... + def share(self, process_id: int, /) -> bytes: + """share(process_id) -> bytes + + Share the socket with another process. The target process id + must be provided and the resulting bytes object passed to the target + process. There the shared socket can be instantiated by calling + socket.fromshare(). + """ def shutdown(self, how: int, /) -> None: """shutdown(flag) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_ssl.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_ssl.pyi index 84b5dba610..179dc961b2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_ssl.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_ssl.pyi @@ -1,5 +1,4 @@ -""" -Implementation module for SSL socket operations. See the socket module +"""Implementation module for SSL socket operations. See the socket module for documentation. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_stat.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_stat.pyi index 4c391ff533..44de15e745 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_stat.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_stat.pyi @@ -1,5 +1,4 @@ -""" -S_IFMT_: file type bits +"""S_IFMT_: file type bits S_IFDIR: directory S_IFCHR: character device S_IFBLK: block device diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_struct.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_struct.pyi index cd7a182b4e..5bc790ef45 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_struct.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_struct.pyi @@ -1,5 +1,4 @@ -""" -Functions to convert between Python values and C structs. +"""Functions to convert between Python values and C structs. Python bytes objects are used to hold the data representing the C struct and also as format strings (explained below) to describe the layout of data in the C struct. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_thread.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_thread.pyi index e2abe85205..9a09ebd893 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_thread.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_thread.pyi @@ -1,5 +1,4 @@ -""" -This module provides primitive operations to write multi-threaded programs. +"""This module provides primitive operations to write multi-threaded programs. The 'threading' module provides a more convenient interface. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_threading_local.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_threading_local.pyi index 222a9be61e..34f70e80bd 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_threading_local.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_threading_local.pyi @@ -1,5 +1,4 @@ -""" -Thread-local objects. +"""Thread-local objects. (Note that this module provides a Python version of the threading.local class. Depending on the version of Python you're using, there may be a diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_tracemalloc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_tracemalloc.pyi index 3f78b39076..0ecc728570 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_tracemalloc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_tracemalloc.pyi @@ -1,6 +1,4 @@ -""" -Debug module to trace memory blocks allocated by Python. -""" +"""Debug module to trace memory blocks allocated by Python.""" from collections.abc import Sequence from tracemalloc import _FrameTuple, _TraceTuple diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_typeshed/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_typeshed/__init__.pyi index f322244016..b5a4941e69 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_typeshed/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_typeshed/__init__.pyi @@ -82,19 +82,21 @@ class SupportsNext(Protocol[_T_co]): class SupportsAnext(Protocol[_T_co]): def __anext__(self) -> Awaitable[_T_co]: ... -# Comparison protocols +class SupportsBool(Protocol): + def __bool__(self) -> bool: ... +# Comparison protocols class SupportsDunderLT(Protocol[_T_contra]): - def __lt__(self, other: _T_contra, /) -> bool: ... + def __lt__(self, other: _T_contra, /) -> SupportsBool: ... class SupportsDunderGT(Protocol[_T_contra]): - def __gt__(self, other: _T_contra, /) -> bool: ... + def __gt__(self, other: _T_contra, /) -> SupportsBool: ... class SupportsDunderLE(Protocol[_T_contra]): - def __le__(self, other: _T_contra, /) -> bool: ... + def __le__(self, other: _T_contra, /) -> SupportsBool: ... class SupportsDunderGE(Protocol[_T_contra]): - def __ge__(self, other: _T_contra, /) -> bool: ... + def __ge__(self, other: _T_contra, /) -> SupportsBool: ... class SupportsAllComparisons( SupportsDunderLT[Any], SupportsDunderGT[Any], SupportsDunderLE[Any], SupportsDunderGE[Any], Protocol diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_warnings.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_warnings.pyi index 07458b7991..10bb176ca9 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_warnings.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_warnings.pyi @@ -1,5 +1,4 @@ -""" -_warnings provides basic warning filtering support. +"""_warnings provides basic warning filtering support. It is a helper module to speed up interpreter start-up. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_weakref.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_weakref.pyi index fa21b7e8fd..3d59e1c66c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_weakref.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_weakref.pyi @@ -1,6 +1,4 @@ -""" -Weak-reference support module. -""" +"""Weak-reference support module.""" from collections.abc import Callable from typing import Any, TypeVar, overload diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/_zstd.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/_zstd.pyi index 155528e0b7..99cbb8e83f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/_zstd.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/_zstd.pyi @@ -1,6 +1,4 @@ -""" -Implementation module for Zstandard compression. -""" +"""Implementation module for Zstandard compression.""" from _typeshed import ReadableBuffer from collections.abc import Mapping diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/abc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/abc.pyi index fb4cd3efb5..4aca20d29e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/abc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/abc.pyi @@ -1,6 +1,4 @@ -""" -Abstract Base Classes (ABCs) according to PEP 3119. -""" +"""Abstract Base Classes (ABCs) according to PEP 3119.""" import _typeshed import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/aifc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/aifc.pyi index 5acb14c894..4d624b8c6c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/aifc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/aifc.pyi @@ -1,5 +1,4 @@ -""" -Stuff to parse AIFF-C and AIFF files. +"""Stuff to parse AIFF-C and AIFF files. Unless explicitly stated otherwise, the description below is true both for AIFF-C files and AIFF files. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/annotationlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/annotationlib.pyi index 1ffdedbea4..29ca093d45 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/annotationlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/annotationlib.pyi @@ -1,6 +1,4 @@ -""" -Helpers for introspecting and wrapping annotations. -""" +"""Helpers for introspecting and wrapping annotations.""" import sys from typing import Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/argparse.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/argparse.pyi index 5bf371e2b5..22f055eceb 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/argparse.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/argparse.pyi @@ -1,5 +1,4 @@ -""" -Command-line parsing library +"""Command-line parsing library This module is an optparse-inspired command-line parsing library that: @@ -728,16 +727,40 @@ else: class _ArgumentGroup(_ActionsContainer): title: str | None _group_actions: list[Action] - def __init__( - self, - container: _ActionsContainer, - title: str | None = None, - description: str | None = None, - *, - prefix_chars: str = ..., - argument_default: Any = ..., - conflict_handler: str = ..., - ) -> None: ... + if sys.version_info >= (3, 14): + @overload + def __init__( + self, + container: _ActionsContainer, + title: str | None = None, + description: str | None = None, + *, + argument_default: Any = ..., + conflict_handler: str = ..., + ) -> None: ... + @overload + @deprecated("Undocumented `prefix_chars` parameter is deprecated since Python 3.14.") + def __init__( + self, + container: _ActionsContainer, + title: str | None = None, + description: str | None = None, + *, + prefix_chars: str, + argument_default: Any = ..., + conflict_handler: str = ..., + ) -> None: ... + else: + def __init__( + self, + container: _ActionsContainer, + title: str | None = None, + description: str | None = None, + *, + prefix_chars: str = ..., + argument_default: Any = ..., + conflict_handler: str = ..., + ) -> None: ... # undocumented class _MutuallyExclusiveGroup(_ArgumentGroup): @@ -971,9 +994,9 @@ class _SubParsersAction(Action, Generic[_ArgumentParserT]): fromfile_prefix_chars: str | None = ..., argument_default: Any = ..., conflict_handler: str = ..., - add_help: bool = ..., - allow_abbrev: bool = ..., - exit_on_error: bool = ..., + add_help: bool = True, + allow_abbrev: bool = True, + exit_on_error: bool = True, suggest_on_error: bool = False, color: bool = False, **kwargs: Any, # Accepting any additional kwargs for custom parser classes @@ -997,9 +1020,9 @@ class _SubParsersAction(Action, Generic[_ArgumentParserT]): fromfile_prefix_chars: str | None = ..., argument_default: Any = ..., conflict_handler: str = ..., - add_help: bool = ..., - allow_abbrev: bool = ..., - exit_on_error: bool = ..., + add_help: bool = True, + allow_abbrev: bool = True, + exit_on_error: bool = True, **kwargs: Any, # Accepting any additional kwargs for custom parser classes ) -> _ArgumentParserT: ... else: @@ -1020,9 +1043,9 @@ class _SubParsersAction(Action, Generic[_ArgumentParserT]): fromfile_prefix_chars: str | None = ..., argument_default: Any = ..., conflict_handler: str = ..., - add_help: bool = ..., - allow_abbrev: bool = ..., - exit_on_error: bool = ..., + add_help: bool = True, + allow_abbrev: bool = True, + exit_on_error: bool = True, **kwargs: Any, # Accepting any additional kwargs for custom parser classes ) -> _ArgumentParserT: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/array.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/array.pyi index c0f7bfd833..fe537bfe46 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/array.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/array.pyi @@ -1,5 +1,4 @@ -""" -This module defines an object type which can efficiently represent +"""This module defines an object type which can efficiently represent an array of basic values: characters, integers, floating-point numbers. Arrays are sequence types and behave very much like lists, except that the type of objects stored in them is constrained. @@ -151,10 +150,7 @@ class array(MutableSequence[_T]): """ else: def index(self, v: _T, /) -> int: # type: ignore[override] - """Return index of first occurrence of v in the array. - - Raise ValueError if the value is not present. - """ + """Return index of first occurrence of v in the array.""" def insert(self, i: int, v: _T, /) -> None: """Insert a new item v into the array before position i.""" diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/ast.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/ast.pyi index 392bc9d4d7..87290148b1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/ast.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/ast.pyi @@ -1,5 +1,4 @@ """ - The `ast` module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what @@ -1333,12 +1332,16 @@ class Constant(expr): # Aliases for value, for backwards compatibility @deprecated("Will be removed in Python 3.14; use value instead") @property - def n(self) -> _ConstantValue: ... + def n(self) -> _ConstantValue: + """Deprecated. Use value instead.""" + @n.setter def n(self, value: _ConstantValue) -> None: ... @deprecated("Will be removed in Python 3.14; use value instead") @property - def s(self) -> _ConstantValue: ... + def s(self) -> _ConstantValue: + """Deprecated. Use value instead.""" + @s.setter def s(self, value: _ConstantValue) -> None: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asynchat.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asynchat.pyi index 91809b3543..45a778d76e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asynchat.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asynchat.pyi @@ -1,5 +1,4 @@ -""" -A class supporting chat-style (command/response) protocols. +"""A class supporting chat-style (command/response) protocols. This class adds support for 'chat' style protocols - where one side sends a 'command', and the other sends a response (examples would be diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/__init__.pyi index 1afaa03ddf..44f3abbaa1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/__init__.pyi @@ -1,6 +1,4 @@ -""" -The asyncio package, tracking PEP 3156. -""" +"""The asyncio package, tracking PEP 3156.""" # This condition is so big, it's clearer to keep to platform condition in two blocks # Can't NOQA on a specific line: https://github.com/plinss/flake8-noqa/issues/22 diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/base_events.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/base_events.pyi index df123dbf3d..8d9543fcca 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/base_events.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/base_events.pyi @@ -1,5 +1,4 @@ -""" -Base implementation of event loop. +"""Base implementation of event loop. The event loop can be broken up into a multiplexer (the part responsible for notifying us of I/O events) and the event loop proper, @@ -191,7 +190,7 @@ class BaseEventLoop(AbstractEventLoop): """ else: def create_task(self, coro: _CoroutineLike[_T], *, name: object = None) -> Task[_T]: - """Schedule or begin executing a coroutine object. + """Schedule a coroutine object. Return a task object. """ @@ -571,15 +570,7 @@ class BaseEventLoop(AbstractEventLoop): ssl: _SSLContext = None, ssl_handshake_timeout: float | None = None, ssl_shutdown_timeout: float | None = None, - ) -> tuple[Transport, _ProtocolT]: - """Handle an accepted connection. - - This is used by servers that accept connections outside of - asyncio but that use asyncio to handle connections. - - This method is a coroutine. When completed, the coroutine - returns a (transport, protocol) pair. - """ + ) -> tuple[Transport, _ProtocolT]: ... else: async def start_tls( self, @@ -800,11 +791,6 @@ class BaseEventLoop(AbstractEventLoop): """ else: async def shutdown_default_executor(self) -> None: - """Schedule the shutdown of the default executor. - - The timeout parameter specifies the amount of time the executor will - be given to finish joining. The default value is None, which means - that the executor will be given an unlimited amount of time. - """ + """Schedule the shutdown of the default executor.""" def __del__(self) -> None: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/events.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/events.pyi index 76432a33db..39fab3eef5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/events.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/events.pyi @@ -1,6 +1,4 @@ -""" -Event loop and event loop policy. -""" +"""Event loop and event loop policy.""" import ssl import sys @@ -493,9 +491,6 @@ class AbstractEventLoop: they all set this flag when being created. This option is not supported on Windows. - keep_alive set to True keeps connections active by enabling the - periodic transmission of messages. - ssl_handshake_timeout is the time in seconds that an SSL server will wait for completion of the SSL handshake before aborting the connection. Default is 60s. @@ -583,17 +578,10 @@ class AbstractEventLoop: they all set this flag when being created. This option is not supported on Windows. - keep_alive set to True keeps connections active by enabling the - periodic transmission of messages. - ssl_handshake_timeout is the time in seconds that an SSL server will wait for completion of the SSL handshake before aborting the connection. Default is 60s. - ssl_shutdown_timeout is the time in seconds that an SSL server - will wait for completion of the SSL shutdown procedure - before aborting the connection. Default is 30s. - start_serving set to True (default) causes the created server to start accepting connections immediately. When set to False, the user should await Server.start_serving() or Server.serve_forever() @@ -727,9 +715,6 @@ class AbstractEventLoop: ssl_handshake_timeout is the time in seconds that an SSL server will wait for the SSL handshake to complete (defaults to 60s). - ssl_shutdown_timeout is the time in seconds that an SSL server - will wait for the SSL shutdown to finish (defaults to 30s). - start_serving set to True (default) causes the created server to start accepting connections immediately. When set to False, the user should await Server.start_serving() or Server.serve_forever() diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/exceptions.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/exceptions.pyi index fd92ed03d3..0de074fb1e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/exceptions.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/exceptions.pyi @@ -1,6 +1,4 @@ -""" -asyncio exceptions. -""" +"""asyncio exceptions.""" import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/futures.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/futures.pyi index dee7874ea0..b651a19a84 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/futures.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/futures.pyi @@ -1,6 +1,4 @@ -""" -A Future class similar to the one in PEP 3148. -""" +"""A Future class similar to the one in PEP 3148.""" import sys from _asyncio import Future as Future diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/graph.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/graph.pyi index efe49315b1..7266d6a7a7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/graph.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/graph.pyi @@ -1,6 +1,4 @@ -""" -Introspection utils for tasks call graphs. -""" +"""Introspection utils for tasks call graphs.""" from _typeshed import SupportsWrite from asyncio import Future diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/locks.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/locks.pyi index fbc766bce7..510cf840a1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/locks.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/locks.pyi @@ -1,6 +1,4 @@ -""" -Synchronization primitives. -""" +"""Synchronization primitives.""" import enum import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/log.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/log.pyi index c04518c7ff..a544534b38 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/log.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/log.pyi @@ -1,6 +1,4 @@ -""" -Logging configuration. -""" +"""Logging configuration.""" import logging diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/mixins.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/mixins.pyi index 381ae6ee84..1950908ee0 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/mixins.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/mixins.pyi @@ -1,6 +1,4 @@ -""" -Event loop mixins. -""" +"""Event loop mixins.""" import sys import threading diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/proactor_events.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/proactor_events.pyi index 3891d6d5f4..c67cd07286 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/proactor_events.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/proactor_events.pyi @@ -1,5 +1,4 @@ -""" -Event loop using a proactor and related classes. +"""Event loop using a proactor and related classes. A proactor is a "notify-on-completion" multiplexer. Currently a proactor is only implemented on Windows with IOCP. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/protocols.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/protocols.pyi index 2ca567db8d..c5833d683e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/protocols.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/protocols.pyi @@ -1,6 +1,4 @@ -""" -Abstract Protocol base classes. -""" +"""Abstract Protocol base classes.""" from _typeshed import ReadableBuffer from asyncio import transports diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/queues.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/queues.pyi index 6473838979..691da36070 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/queues.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/queues.pyi @@ -1,4 +1,5 @@ import sys +from _typeshed import SupportsRichComparisonT from asyncio.events import AbstractEventLoop from types import GenericAlias from typing import Any, Generic, TypeVar @@ -146,7 +147,7 @@ class Queue(Generic[_T], _LoopBoundMixin): # noqa: Y059 the queue, which may unblock callers of join(). """ -class PriorityQueue(Queue[_T]): +class PriorityQueue(Queue[SupportsRichComparisonT]): """A subclass of Queue; retrieves entries in priority order (lowest first). Entries are typically tuples of the form: (priority number, data). diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/selector_events.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/selector_events.pyi index 4aa3a074e3..358dd1abbc 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/selector_events.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/selector_events.pyi @@ -1,5 +1,4 @@ -""" -Event loop using a selector and related classes. +"""Event loop using a selector and related classes. A selector is a "notify-when-ready" multiplexer. For a subclass which also includes support for signal handling, see the unix_events sub-module. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/sslproto.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/sslproto.pyi index dbc65ab9f8..d76501c100 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/sslproto.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/sslproto.pyi @@ -184,12 +184,7 @@ class _SSLProtocolTransport(transports._FlowControlMixin, transports.Transport): def can_write_eof(self) -> Literal[False]: """Return True if this transport supports write_eof(), False if not.""" if sys.version_info >= (3, 11): - def get_write_buffer_limits(self) -> tuple[int, int]: - """Get the high and low watermarks for write flow control. - Return a tuple (low, high) where low and high are - positive number of bytes. - """ - + def get_write_buffer_limits(self) -> tuple[int, int]: ... def get_read_buffer_limits(self) -> tuple[int, int]: ... def set_read_buffer_limits(self, high: int | None = None, low: int | None = None) -> None: """Set the high- and low-water limits for read flow control. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/staggered.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/staggered.pyi index 2db77e069d..b8d452e9c6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/staggered.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/staggered.pyi @@ -1,6 +1,4 @@ -""" -Support for running coroutines in parallel with staggered start times. -""" +"""Support for running coroutines in parallel with staggered start times.""" from collections.abc import Awaitable, Callable, Iterable from typing import Any diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/streams.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/streams.pyi index 880e9de2ef..d889ff0960 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/streams.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/streams.pyi @@ -329,12 +329,6 @@ class StreamReader: If the data cannot be read because of over limit, a LimitOverrunError exception will be raised, and the data will be left in the internal buffer, so it can be read again. - - The ``separator`` may also be a tuple of separators. In this - case the return value will be the shortest possible that has any - separator as the suffix. For the purposes of LimitOverrunError, - the shortest possible separator is considered to be the one that - matched. """ async def read(self, n: int = -1) -> bytes: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/tasks.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/tasks.pyi index 616c1c201b..292d0f7596 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/tasks.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/tasks.pyi @@ -1,6 +1,4 @@ -""" -Support for tasks, coroutines and the scheduler. -""" +"""Support for tasks, coroutines and the scheduler.""" import concurrent.futures import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/threads.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/threads.pyi index 621ea14d79..6fd5104a57 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/threads.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/threads.pyi @@ -1,6 +1,4 @@ -""" -High-level support for working with threads in asyncio -""" +"""High-level support for working with threads in asyncio""" from collections.abc import Callable from typing import TypeVar diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/tools.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/tools.pyi index 8ae065ce78..e2587fae4e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/tools.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/tools.pyi @@ -1,6 +1,4 @@ -""" -Tools to analyze tasks running in asyncio programs. -""" +"""Tools to analyze tasks running in asyncio programs.""" from collections.abc import Iterable from enum import Enum diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/transports.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/transports.pyi index 927043f8e0..4473bacc62 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/transports.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/transports.pyi @@ -1,6 +1,4 @@ -""" -Abstract Transport class. -""" +"""Abstract Transport class.""" from asyncio.events import AbstractEventLoop from asyncio.protocols import BaseProtocol diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/unix_events.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/unix_events.pyi index 2a505c87de..269ea6794d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/unix_events.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/unix_events.pyi @@ -1,6 +1,4 @@ -""" -Selector event loop for Unix with signal handling. -""" +"""Selector event loop for Unix with signal handling.""" import sys import types diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/windows_events.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/windows_events.pyi index 181931bb97..5136d1c09f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/windows_events.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/windows_events.pyi @@ -1,6 +1,4 @@ -""" -Selector and proactor event loops for Windows. -""" +"""Selector and proactor event loops for Windows.""" import socket import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/windows_utils.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/windows_utils.pyi index 12553c2ce0..31cb9b899e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/windows_utils.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncio/windows_utils.pyi @@ -1,6 +1,4 @@ -""" -Various Windows specific bits and pieces. -""" +"""Various Windows specific bits and pieces.""" import subprocess import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/asyncore.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/asyncore.pyi index c1b8ac0138..96a81edcf2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/asyncore.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/asyncore.pyi @@ -1,5 +1,4 @@ -""" -Basic infrastructure for asynchronous socket service clients and servers. +"""Basic infrastructure for asynchronous socket service clients and servers. There are only two ways to have a program on a single processor do "more than one thing at a time". Multi-threaded programming is the simplest and diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/atexit.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/atexit.pyi index 7dc5eb395f..f00719b187 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/atexit.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/atexit.pyi @@ -1,5 +1,4 @@ -""" -allow programmer to define multiple exit functions to be executed +"""allow programmer to define multiple exit functions to be executed upon normal program termination. Two public functions, register and unregister, are defined. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/base64.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/base64.pyi index 774c6e3f90..7cd56d859a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/base64.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/base64.pyi @@ -1,6 +1,4 @@ -""" -Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings -""" +"""Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings""" import sys from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/bdb.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/bdb.pyi index 9b1c40ee49..4046207b55 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/bdb.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/bdb.pyi @@ -1,6 +1,4 @@ -""" -Debugger basics -""" +"""Debugger basics""" import sys from _typeshed import ExcInfo, TraceFunction, Unused diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/binascii.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/binascii.pyi index ef41da12c7..9ccfc7ecc7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/binascii.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/binascii.pyi @@ -1,6 +1,4 @@ -""" -Conversion between binary data and ASCII -""" +"""Conversion between binary data and ASCII""" import sys from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/binhex.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/binhex.pyi index b66b9cabe5..3129767a79 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/binhex.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/binhex.pyi @@ -1,5 +1,4 @@ -""" -Macintosh binhex compression/decompression. +"""Macintosh binhex compression/decompression. easy interface: binhex(inputfilename, outputfilename) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/bisect.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/bisect.pyi index 231e3ff993..69bf605572 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/bisect.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/bisect.pyi @@ -1,6 +1,4 @@ -""" -Bisection algorithms. -""" +"""Bisection algorithms.""" from _bisect import * diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/builtins.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/builtins.pyi index 55a163d43c..daec4dadf8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/builtins.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/builtins.pyi @@ -1,5 +1,4 @@ -""" -Built-in functions, types, exceptions, and other objects. +"""Built-in functions, types, exceptions, and other objects. This module provides direct access to all 'built-in' identifiers of Python; for example, builtins.len is @@ -459,14 +458,13 @@ class int: length Length of bytes object to use. An OverflowError is raised if the - integer is not representable with the given number of bytes. Default - is length 1. + integer is not representable with the given number of bytes. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte array. If byteorder is 'little', the most significant byte is at the end of the byte array. To request the native byte order of the host system, use - sys.byteorder as the byte order value. Default is to use 'big'. + `sys.byteorder' as the byte order value. signed Determines whether two's complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError @@ -493,7 +491,7 @@ class int: the most significant byte is at the beginning of the byte array. If byteorder is 'little', the most significant byte is at the end of the byte array. To request the native byte order of the host system, use - sys.byteorder as the byte order value. Default is to use 'big'. + `sys.byteorder' as the byte order value. signed Indicates whether two's complement is used to represent the integer. """ @@ -2510,13 +2508,11 @@ class memoryview(Sequence[_I]): """ else: def tobytes(self, order: Literal["C", "F", "A"] | None = None) -> bytes: - """Return the data in the buffer as a byte string. - - Order can be {'C', 'F', 'A'}. When order is 'C' or 'F', the data of the - original array is converted to C or Fortran order. For contiguous views, - 'A' returns an exact copy of the physical memory. In particular, in-memory - Fortran order is preserved. For non-contiguous views, the data is converted - to C first. order=None is the same as order='C'. + """Return the data in the buffer as a byte string. Order can be {'C', 'F', 'A'}. + When order is 'C' or 'F', the data of the original array is converted to C or + Fortran order. For contiguous views, 'A' returns an exact copy of the physical + memory. In particular, in-memory Fortran order is preserved. For non-contiguous + views, the data is converted to C first. order=None is the same as order='C'. """ def tolist(self) -> list[int]: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/bz2.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/bz2.pyi index e702e8942e..5ec5d81a28 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/bz2.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/bz2.pyi @@ -1,5 +1,4 @@ -""" -Interface to the libbzip2 compression library. +"""Interface to the libbzip2 compression library. This module provides a file interface, classes for incremental (de)compression, and functions for one-shot (de)compression. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/cProfile.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/cProfile.pyi index 866ceade81..008bb72e50 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/cProfile.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/cProfile.pyi @@ -1,5 +1,4 @@ -""" -Python interface for the 'lsprof' profiler. +"""Python interface for the 'lsprof' profiler. Compatible with the 'profile' module. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/calendar.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/calendar.pyi index 696e31d932..5841629aaf 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/calendar.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/calendar.pyi @@ -1,5 +1,4 @@ -""" -Calendar printing functions +"""Calendar printing functions Note when comparing these calendars to the ones printed by cal(1): By default, these calendars have Monday as the first day of the week, and diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/cgi.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/cgi.pyi index 0c0d63f762..b4fb0b2b56 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/cgi.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/cgi.pyi @@ -1,5 +1,4 @@ -""" -Support module for CGI (Common Gateway Interface) scripts. +"""Support module for CGI (Common Gateway Interface) scripts. This module defines a number of utilities for use by CGI scripts written in Python. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/cgitb.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/cgitb.pyi index 3dd0205175..64119f136f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/cgitb.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/cgitb.pyi @@ -1,5 +1,4 @@ -""" -More comprehensive traceback formatting for Python scripts. +"""More comprehensive traceback formatting for Python scripts. To enable this module, do: @@ -20,6 +19,7 @@ Alternatively, if you have caught an exception and want cgitb to display it for you, call cgitb.handler(). The optional argument to handler() is a 3-item tuple (etype, evalue, etb) just like the value of sys.exc_info(). The default handler displays output as HTML. + """ from _typeshed import OptExcInfo, StrOrBytesPath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/chunk.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/chunk.pyi index d7b1058ae4..3f2c3a5b8c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/chunk.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/chunk.pyi @@ -1,5 +1,4 @@ -""" -Simple class to read IFF chunks. +"""Simple class to read IFF chunks. An IFF chunk (used in formats such as AIFF, TIFF, RMFF (RealMedia File Format)) has the following structure: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/cmath.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/cmath.pyi index a1f61aa5ee..575f2bf95d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/cmath.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/cmath.pyi @@ -1,5 +1,4 @@ -""" -This module provides access to mathematical functions for complex +"""This module provides access to mathematical functions for complex numbers. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/cmd.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/cmd.pyi index 2ea88d16c4..af19c87d35 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/cmd.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/cmd.pyi @@ -1,5 +1,4 @@ -""" -A generic class to build line-oriented command interpreters. +"""A generic class to build line-oriented command interpreters. Interpreters constructed with this class obey the following conventions: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/code.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/code.pyi index 8c6bee7c4d..d433728d26 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/code.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/code.pyi @@ -1,6 +1,4 @@ -""" -Utilities needed to emulate Python's interactive interpreter. -""" +"""Utilities needed to emulate Python's interactive interpreter.""" import sys from codeop import CommandCompiler, compile_command as compile_command diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/codecs.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/codecs.pyi index 0c2c18e9ef..96953ffb6c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/codecs.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/codecs.pyi @@ -1,10 +1,10 @@ -""" -codecs -- Python Codec Registry, API and helpers. +"""codecs -- Python Codec Registry, API and helpers. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import types diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/codeop.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/codeop.pyi index 492818ae8f..2ef06796dd 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/codeop.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/codeop.pyi @@ -1,5 +1,4 @@ -""" -Utilities to compile possibly incomplete Python source code. +"""Utilities to compile possibly incomplete Python source code. This module provides two interfaces, broadly similar to the builtin function compile(), which take program text, a filename and a 'mode' diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/collections/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/collections/__init__.pyi index 193e8fb378..b8cb12114b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/collections/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/collections/__init__.pyi @@ -1,5 +1,4 @@ -""" -This module implements specialized container datatypes providing +"""This module implements specialized container datatypes providing alternatives to Python's general purpose built-in containers, dict, list, set, and tuple. @@ -12,6 +11,7 @@ list, set, and tuple. * UserDict wrapper around dictionary objects for easier dict subclassing * UserList wrapper around list objects for easier list subclassing * UserString wrapper around string objects for easier string subclassing + """ import sys @@ -143,9 +143,7 @@ class UserDict(MutableMapping[_KT, _VT]): def __ior__(self, other: Iterable[tuple[_KT, _VT]]) -> Self: ... if sys.version_info >= (3, 12): @overload - def get(self, key: _KT, default: None = None) -> _VT | None: - """D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.""" - + def get(self, key: _KT, default: None = None) -> _VT | None: ... @overload def get(self, key: _KT, default: _VT) -> _VT: ... @overload diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/collections/abc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/collections/abc.pyi index 85d364842e..337264c60c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/collections/abc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/collections/abc.pyi @@ -1,5 +1,4 @@ -""" -Abstract Base Classes (ABCs) for collections, according to PEP 3119. +"""Abstract Base Classes (ABCs) for collections, according to PEP 3119. Unit tests are in test_collections. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/colorsys.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/colorsys.pyi index fa433f333f..8aaab8b0ea 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/colorsys.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/colorsys.pyi @@ -1,5 +1,4 @@ -""" -Conversion functions between RGB and other color systems. +"""Conversion functions between RGB and other color systems. This modules provides two functions for each color system ABC: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/compileall.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/compileall.pyi index 86fa27effd..8b63dbb72e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/compileall.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/compileall.pyi @@ -1,5 +1,4 @@ -""" -Module/script to byte-compile all .py files to .pyc files. +"""Module/script to byte-compile all .py files to .pyc files. When called as a script with arguments, this compiles the directories given as arguments recursively; the -l option prevents it from diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/compression/_common/_streams.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/compression/_common/_streams.pyi index 5c752dd4ec..77866c1a1b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/compression/_common/_streams.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/compression/_common/_streams.pyi @@ -1,6 +1,4 @@ -""" -Internal classes used by compression modules -""" +"""Internal classes used by compression modules""" from _typeshed import Incomplete, WriteableBuffer from collections.abc import Callable diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/compression/bz2.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/compression/bz2.pyi index 83d4fc08ec..074404e205 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/compression/bz2.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/compression/bz2.pyi @@ -1,5 +1,4 @@ -""" -Interface to the libbzip2 compression library. +"""Interface to the libbzip2 compression library. This module provides a file interface, classes for incremental (de)compression, and functions for one-shot (de)compression. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/compression/gzip.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/compression/gzip.pyi index f37d1dcf24..6cb4250d2f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/compression/gzip.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/compression/gzip.pyi @@ -1,5 +1,4 @@ -""" -Functions that read and write gzipped files. +"""Functions that read and write gzipped files. The user of the file doesn't have to worry about the compression, but random access is not allowed. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/compression/lzma.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/compression/lzma.pyi index 478e6361e1..07f407d244 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/compression/lzma.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/compression/lzma.pyi @@ -1,5 +1,4 @@ -""" -Interface to the liblzma compression library. +"""Interface to the liblzma compression library. This module provides a class for reading and writing compressed files, classes for incremental (de)compression, and convenience functions for diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/compression/zlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/compression/zlib.pyi index 4c3a5bf532..87241f3133 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/compression/zlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/compression/zlib.pyi @@ -1,5 +1,4 @@ -""" -The functions in this module allow compression and decompression using the +"""The functions in this module allow compression and decompression using the zlib library, which is based on GNU zip. adler32(string[, start]) -- Compute an Adler-32 checksum. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/compression/zstd/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/compression/zstd/__init__.pyi index 7026179dec..d6481b8b81 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/compression/zstd/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/compression/zstd/__init__.pyi @@ -1,6 +1,4 @@ -""" -Python bindings to the Zstandard (zstd) compression library (RFC-8878). -""" +"""Python bindings to the Zstandard (zstd) compression library (RFC-8878).""" import enum from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/__init__.pyi index 753bf18bb9..4ab3016faf 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/__init__.pyi @@ -1,6 +1,4 @@ -""" -Execute computations asynchronously using threads or processes. -""" +"""Execute computations asynchronously using threads or processes.""" import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/_base.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/_base.pyi index 7b7a3059b2..9ca0ce6ec4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/_base.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/_base.pyi @@ -216,11 +216,6 @@ class Executor: before being passed to a child process. This argument is only used by ProcessPoolExecutor; it is ignored by ThreadPoolExecutor. - buffersize: The number of submitted tasks whose results have not - yet been yielded. If the buffer is full, iteration over the - iterables pauses until a result is yielded from the buffer. - If None, all input elements are eagerly collected, and a task is - submitted for each. Returns: An iterator equivalent to: map(func, *iterables) but the calls may diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/interpreter.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/interpreter.pyi index b3dfe473d2..d4cd47354b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/interpreter.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/interpreter.pyi @@ -1,6 +1,4 @@ -""" -Implements InterpreterPoolExecutor. -""" +"""Implements InterpreterPoolExecutor.""" import sys from collections.abc import Callable, Mapping diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/process.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/process.pyi index 9908873ee9..152d764522 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/process.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/process.pyi @@ -1,5 +1,4 @@ -""" -Implements ProcessPoolExecutor. +"""Implements ProcessPoolExecutor. The following diagram and text describe the data-flow through the system: @@ -339,17 +338,10 @@ class ProcessPoolExecutor(Executor): max_workers: The maximum number of processes that can be used to execute the given calls. If None or not given then as many worker processes will be created as the machine has processors. - mp_context: A multiprocessing context to launch the workers created - using the multiprocessing.get_context('start method') API. This + mp_context: A multiprocessing context to launch the workers. This object should provide SimpleQueue, Queue and Process. initializer: A callable used to initialize worker processes. initargs: A tuple of arguments to pass to the initializer. - max_tasks_per_child: The maximum number of tasks a worker process - can complete before it will exit and be replaced with a fresh - worker process. The default of None means worker process will - live as long as the executor. Requires a non-'fork' mp_context - start method. When given, we default to using 'spawn' if no - mp_context is supplied. """ @overload diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/thread.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/thread.pyi index 3e8b9ed594..095fe527de 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/thread.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/concurrent/futures/thread.pyi @@ -1,6 +1,4 @@ -""" -Implements ThreadPoolExecutor. -""" +"""Implements ThreadPoolExecutor.""" import queue import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/configparser.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/configparser.pyi index c00fda29fd..6b1e6f5a3d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/configparser.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/configparser.pyi @@ -1,5 +1,4 @@ -""" -Configuration file parser. +"""Configuration file parser. A configuration file consists of sections, lead by a "[section]" header, and followed by "name: value" entries, with continuations and such in @@ -495,7 +494,8 @@ class RawConfigParser(_Parser): dictionary being read. """ if sys.version_info < (3, 12): - def readfp(self, fp: Iterable[str], filename: str | None = None) -> None: ... + def readfp(self, fp: Iterable[str], filename: str | None = None) -> None: + """Deprecated, use read_file instead.""" # These get* methods are partially applied (with the same names) in # SectionProxy; the stubs should be kept updated together @overload diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/contextlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/contextlib.pyi index 6b54d06027..e47ef76843 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/contextlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/contextlib.pyi @@ -1,6 +1,4 @@ -""" -Utilities for with-statement contexts. See PEP 343. -""" +"""Utilities for with-statement contexts. See PEP 343.""" import abc import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/copy.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/copy.pyi index 9c8a3eb876..1638f9ce62 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/copy.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/copy.pyi @@ -1,5 +1,4 @@ -""" -Generic (shallow and deep) copying operations. +"""Generic (shallow and deep) copying operations. Interface summary: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/copyreg.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/copyreg.pyi index 9afdc2f62d..003a7a67ed 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/copyreg.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/copyreg.pyi @@ -1,5 +1,4 @@ -""" -Helper to provide extensibility for pickle. +"""Helper to provide extensibility for pickle. This is only useful to add pickle support for extension types defined in C, not for instances of user-defined classes. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/crypt.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/crypt.pyi index 8bfe1eec2e..c4eaa4d498 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/crypt.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/crypt.pyi @@ -1,6 +1,4 @@ -""" -Wrapper to the POSIX crypt library call and associated functionality. -""" +"""Wrapper to the POSIX crypt library call and associated functionality.""" import sys from typing import Final, NamedTuple, type_check_only diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/csv.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/csv.pyi index d64bfcd0f3..6f1b1858eb 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/csv.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/csv.pyi @@ -1,5 +1,4 @@ """ - CSV parsing and writing. This module provides classes that assist in the reading and writing diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/__init__.pyi index 0ae1f81fbe..7f7e77d7b4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/__init__.pyi @@ -1,6 +1,4 @@ -""" -create and manipulate C data types in Python -""" +"""create and manipulate C data types in Python""" import sys from _ctypes import ( diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/__init__.pyi index 2115e69b15..106c61e635 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/__init__.pyi @@ -1,5 +1,4 @@ """ - Enough Mach-O to make your head spin. See the relevant header files in /usr/include/mach-o diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/dyld.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/dyld.pyi index 35cfa15fc1..1bb07b4ec4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/dyld.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/dyld.pyi @@ -1,5 +1,4 @@ """ - dyld emulation """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/dylib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/dylib.pyi index 1817727536..af745eaa42 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/dylib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/dylib.pyi @@ -1,5 +1,4 @@ """ - Generic dylib path manipulation """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/framework.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/framework.pyi index 917103a4bf..4a1732ad51 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/framework.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/ctypes/macholib/framework.pyi @@ -1,5 +1,4 @@ """ - Generic framework path manipulation """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/curses/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/curses/__init__.pyi index 81fe812aef..4c9e7f2beb 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/curses/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/curses/__init__.pyi @@ -1,5 +1,4 @@ -""" -curses +"""curses The main package for curses support for Python. Normally used by importing the package, and perhaps a particular module inside it. @@ -8,6 +7,7 @@ the package, and perhaps a particular module inside it. from curses import textpad curses.initscr() ... + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/curses/ascii.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/curses/ascii.pyi index 3dd737f01c..11e6ae55aa 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/curses/ascii.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/curses/ascii.pyi @@ -1,6 +1,4 @@ -""" -Constants and membership tests for ASCII characters -""" +"""Constants and membership tests for ASCII characters""" from typing import TypeVar diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/curses/panel.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/curses/panel.pyi index 6d313aac43..067afef730 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/curses/panel.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/curses/panel.pyi @@ -1,5 +1,4 @@ -""" -curses.panel +"""curses.panel Module for using panels with curses. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/curses/textpad.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/curses/textpad.pyi index db2d0e14e4..129178bdef 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/curses/textpad.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/curses/textpad.pyi @@ -1,6 +1,4 @@ -""" -Simple textbox editing widget with Emacs-like keybindings. -""" +"""Simple textbox editing widget with Emacs-like keybindings.""" from _curses import window from collections.abc import Callable diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/datetime.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/datetime.pyi index bf42260e88..c54546eeb4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/datetime.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/datetime.pyi @@ -1,5 +1,4 @@ -""" -Specific date/time and related types. +"""Specific date/time and related types. See https://data.iana.org/time-zones/tz-link.html for time zone and DST data sources. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/dbm/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/dbm/__init__.pyi index e71fc13286..698c231519 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/dbm/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/dbm/__init__.pyi @@ -1,5 +1,4 @@ -""" -Generic interface to all dbm clones. +"""Generic interface to all dbm clones. Use diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/dbm/dumb.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/dbm/dumb.pyi index c7b349520f..43aabf5c22 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/dbm/dumb.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/dbm/dumb.pyi @@ -1,5 +1,4 @@ -""" -A dumb and slow but simple dbm clone. +"""A dumb and slow but simple dbm clone. For database spam, spam.dir contains the index (a text file), spam.bak *may* contain a backup of the index (also a text file), @@ -19,6 +18,7 @@ updates, they can mess up the index) is read when the database is opened, and some updates rewrite the whole index) - support opening for read-only (flag = 'm') + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/dbm/gnu.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/dbm/gnu.pyi index b055d25020..b07a1defff 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/dbm/gnu.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/dbm/gnu.pyi @@ -1,5 +1,3 @@ -""" -Provide the _gdbm module as a dbm submodule. -""" +"""Provide the _gdbm module as a dbm submodule.""" from _gdbm import * diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/dbm/ndbm.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/dbm/ndbm.pyi index 6cc5487de1..23056a29ef 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/dbm/ndbm.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/dbm/ndbm.pyi @@ -1,5 +1,3 @@ -""" -Provide the _dbm module as a dbm submodule. -""" +"""Provide the _dbm module as a dbm submodule.""" from _dbm import * diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/decimal.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/decimal.pyi index f693c43cd2..4fe310ce77 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/decimal.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/decimal.pyi @@ -1,5 +1,4 @@ -""" -Decimal fixed-point and floating-point arithmetic. +"""Decimal fixed-point and floating-point arithmetic. This is an implementation of decimal floating-point arithmetic based on the General Decimal Arithmetic Specification: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/difflib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/difflib.pyi index 5826b5dc41..c359ee340d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/difflib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/difflib.pyi @@ -1,5 +1,4 @@ """ - Module difflib -- helpers for computing deltas between objects. Function get_close_matches(word, possibilities, n=3, cutoff=0.6): diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/dis.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/dis.pyi index 7970d386f9..a219868f3e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/dis.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/dis.pyi @@ -1,6 +1,4 @@ -""" -Disassembler of Python byte code into mnemonics. -""" +"""Disassembler of Python byte code into mnemonics.""" import sys import types @@ -122,7 +120,13 @@ class Instruction(_Instruction): """ if sys.version_info < (3, 13): - def _disassemble(self, lineno_width: int = 3, mark_as_current: bool = False, offset_width: int = 4) -> str: ... + def _disassemble(self, lineno_width: int = 3, mark_as_current: bool = False, offset_width: int = 4) -> str: + """Format instruction details for inclusion in disassembly output + + *lineno_width* sets the width of the line number field (0 omits it) + *mark_as_current* inserts a '-->' marker arrow as part of the line + *offset_width* sets the width of the instruction offset field + """ if sys.version_info >= (3, 13): @property def oparg(self) -> int: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/__init__.pyi index f152d22fcc..f2363986b9 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/__init__.pyi @@ -1,5 +1,4 @@ -""" -distutils +"""distutils The main package for the Python Module Distribution Utilities. Normally used from a setup script as diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/_msvccompiler.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/_msvccompiler.pyi index ecd10d4f5c..970c5623cd 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/_msvccompiler.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/_msvccompiler.pyi @@ -1,5 +1,4 @@ -""" -distutils._msvccompiler +"""distutils._msvccompiler Contains MSVCCompiler, an implementation of the abstract CCompiler class for Microsoft Visual Studio 2015. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/archive_util.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/archive_util.pyi index 2057ca7af1..da8de7406d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/archive_util.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/archive_util.pyi @@ -1,5 +1,4 @@ -""" -distutils.archive_util +"""distutils.archive_util Utility functions for creating archive files (tarballs, zip files, that sort of thing). diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/bcppcompiler.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/bcppcompiler.pyi index a08461d2ed..562f079f81 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/bcppcompiler.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/bcppcompiler.pyi @@ -1,5 +1,4 @@ -""" -distutils.bcppcompiler +"""distutils.bcppcompiler Contains BorlandCCompiler, an implementation of the abstract CCompiler class for the Borland C++ compiler. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/ccompiler.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/ccompiler.pyi index 5cbb709a09..3b6671e662 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/ccompiler.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/ccompiler.pyi @@ -1,5 +1,4 @@ -""" -distutils.ccompiler +"""distutils.ccompiler Contains CCompiler, an abstract base class that defines the interface for the Distutils compiler abstraction model. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/cmd.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/cmd.pyi index 908a40af4d..9adbe4377d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/cmd.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/cmd.pyi @@ -1,5 +1,4 @@ -""" -distutils.cmd +"""distutils.cmd Provides the Command class, the base class for the command classes in the distutils.command package. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/__init__.pyi index 9e6e91d2a2..b22cd819f9 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/__init__.pyi @@ -1,5 +1,4 @@ -""" -distutils.command +"""distutils.command Package containing implementation of all the standard Distutils commands. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist.pyi index b368d1411f..36568ce343 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.bdist +"""distutils.command.bdist Implements the Distutils 'bdist' command (create a built [binary] distribution). diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_dumb.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_dumb.pyi index b208fce880..3a44a95549 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_dumb.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_dumb.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.bdist_dumb +"""distutils.command.bdist_dumb Implements the Distutils 'bdist_dumb' command (create a "dumb" built distribution -- i.e., just an archive to be unpacked under $prefix or diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_msi.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_msi.pyi index 668342e0b5..f37d75b545 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_msi.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_msi.pyi @@ -1,5 +1,4 @@ """ - Implements the bdist_msi command. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_rpm.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_rpm.pyi index f7043600c7..8343246122 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_rpm.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_rpm.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.bdist_rpm +"""distutils.command.bdist_rpm Implements the Distutils 'bdist_rpm' command (create RPM source and binary distributions). diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_wininst.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_wininst.pyi index fd73fdd717..11be78a8f7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_wininst.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/bdist_wininst.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.bdist_wininst +"""distutils.command.bdist_wininst Implements the Distutils 'bdist_wininst' command: create a windows installer exe-program. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build.pyi index b19f5a1a8e..be3edede3e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.build +"""distutils.command.build Implements the Distutils 'build' command. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_clib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_clib.pyi index 4fd9c6a64b..dd78603653 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_clib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_clib.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.build_clib +"""distutils.command.build_clib Implements the Distutils 'build_clib' command, to build a C/C++ library that is included in the module distribution and needed by an extension diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_ext.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_ext.pyi index 1cbdad8e9d..9b70452720 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_ext.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_ext.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.build_ext +"""distutils.command.build_ext Implements the Distutils 'build_ext' command, for building extension modules (currently limited to C extensions, should accommodate C++ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_py.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_py.pyi index 7bc04cfaa8..c35514d105 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_py.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_py.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.build_py +"""distutils.command.build_py Implements the Distutils 'build_py' command. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_scripts.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_scripts.pyi index 1d8563fff1..201ef5dd9e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_scripts.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/build_scripts.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.build_scripts +"""distutils.command.build_scripts Implements the Distutils 'build_scripts' command. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/check.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/check.pyi index 746bcc8fe2..e3c560ccff 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/check.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/check.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.check +"""distutils.command.check Implements the Distutils 'check' command. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/clean.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/clean.pyi index 6a67fa8529..363e24eeaf 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/clean.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/clean.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.clean +"""distutils.command.clean Implements the Distutils 'clean' command. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/config.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/config.pyi index a5d6a0982d..79b5bac38a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/config.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/config.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.config +"""distutils.command.config Implements the Distutils 'config' command, a (mostly) empty command class that exists mainly to be sub-classed by specific module distributions and diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install.pyi index a0e8b00011..3d32c66f9b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.install +"""distutils.command.install Implements the Distutils 'install' command. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_data.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_data.pyi index 03043d3779..67c031a601 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_data.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_data.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.install_data +"""distutils.command.install_data Implements the Distutils 'install_data' command, for installing platform-independent data files. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_egg_info.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_egg_info.pyi index c50d2e23dc..6746e210ff 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_egg_info.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_egg_info.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.install_egg_info +"""distutils.command.install_egg_info Implements the Distutils 'install_egg_info' command, for installing a package's PKG-INFO metadata. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_headers.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_headers.pyi index 07480a518e..f0eae22e26 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_headers.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_headers.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.install_headers +"""distutils.command.install_headers Implements the Distutils 'install_headers' command, to install C/C++ header files to the Python include directory. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_lib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_lib.pyi index 8bc650c2cd..22ce9de26e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_lib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_lib.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.install_lib +"""distutils.command.install_lib Implements the Distutils 'install_lib' command (install all Python modules). diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_scripts.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_scripts.pyi index 122671552e..702c1c644b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_scripts.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/install_scripts.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.install_scripts +"""distutils.command.install_scripts Implements the Distutils 'install_scripts' command, for installing Python scripts. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/register.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/register.pyi index e146411bad..8d655005e9 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/register.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/register.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.register +"""distutils.command.register Implements the Distutils 'register' command (register with the repository). """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/sdist.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/sdist.pyi index ac68fb52a2..e82c0ead81 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/sdist.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/sdist.pyi @@ -1,5 +1,4 @@ -""" -distutils.command.sdist +"""distutils.command.sdist Implements the Distutils 'sdist' command (create a source distribution). """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/upload.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/upload.pyi index 817c98a234..a34bcb86f8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/upload.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/command/upload.pyi @@ -1,5 +1,4 @@ """ - distutils.command.upload Implements the Distutils 'upload' subcommand (upload package to a package diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/config.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/config.pyi index ac9ab00d4c..66f8b382f8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/config.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/config.pyi @@ -1,5 +1,4 @@ -""" -distutils.pypirc +"""distutils.pypirc Provides the PyPIRCCommand class, the base class for the command classes that uses .pypirc in the distutils.command package. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/core.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/core.pyi index d509df7241..dcf1dd00a8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/core.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/core.pyi @@ -1,5 +1,4 @@ -""" -distutils.core +"""distutils.core The only module that needs to be imported to use the Distutils; provides the 'setup' function (which is to be called from the setup script). Also diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/cygwinccompiler.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/cygwinccompiler.pyi index b5846f5c4e..59765fecc2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/cygwinccompiler.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/cygwinccompiler.pyi @@ -1,5 +1,4 @@ -""" -distutils.cygwinccompiler +"""distutils.cygwinccompiler Provides the CygwinCCompiler class, a subclass of UnixCCompiler that handles the Cygwin port of the GNU C compiler to Windows. It also contains diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dep_util.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dep_util.pyi index ad2495b530..ec12c28282 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dep_util.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dep_util.pyi @@ -1,5 +1,4 @@ -""" -distutils.dep_util +"""distutils.dep_util Utility functions for simple, timestamp-based dependency of files and groups of files; also, function based entirely on such diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dir_util.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dir_util.pyi index ee75fc6a02..8f153f6180 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dir_util.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dir_util.pyi @@ -1,5 +1,4 @@ -""" -distutils.dir_util +"""distutils.dir_util Utility functions for manipulating directories and directory trees. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dist.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dist.pyi index 528a1912b7..68dc636cc6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dist.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/dist.pyi @@ -1,5 +1,4 @@ -""" -distutils.dist +"""distutils.dist Provides the Distribution class, which represents the module distribution being built/installed/distributed. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/errors.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/errors.pyi index 70161cf24d..c277b0a607 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/errors.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/errors.pyi @@ -1,5 +1,4 @@ -""" -distutils.errors +"""distutils.errors Provides exceptions used by the Distutils modules. Note that Distutils modules may raise standard exceptions; in particular, SystemExit is diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/extension.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/extension.pyi index a43db1d7eb..e0253524f5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/extension.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/extension.pyi @@ -1,5 +1,4 @@ -""" -distutils.extension +"""distutils.extension Provides the Extension class, used to describe C/C++ extension modules in setup scripts. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/fancy_getopt.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/fancy_getopt.pyi index 509634ccad..7254af3933 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/fancy_getopt.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/fancy_getopt.pyi @@ -1,5 +1,4 @@ -""" -distutils.fancy_getopt +"""distutils.fancy_getopt Wrapper around the standard getopt module that provides the following additional features: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/file_util.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/file_util.pyi index 6631d7bade..cc7b10bfb5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/file_util.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/file_util.pyi @@ -1,5 +1,4 @@ -""" -distutils.file_util +"""distutils.file_util Utility functions for operating on single files. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/filelist.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/filelist.pyi index 01412b5c18..fe6db98b1c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/filelist.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/filelist.pyi @@ -1,5 +1,4 @@ -""" -distutils.filelist +"""distutils.filelist Provides the FileList class, used for poking about the filesystem and building lists of files. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/log.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/log.pyi index 8a8c9c4f6b..442fc5feb7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/log.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/log.pyi @@ -1,6 +1,4 @@ -""" -A simple log mechanism styled after PEP 282. -""" +"""A simple log mechanism styled after PEP 282.""" from typing import Any, Final diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/msvccompiler.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/msvccompiler.pyi index 65ed9db167..8ab7990270 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/msvccompiler.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/msvccompiler.pyi @@ -1,5 +1,4 @@ -""" -distutils.msvccompiler +"""distutils.msvccompiler Contains MSVCCompiler, an implementation of the abstract CCompiler class for the Microsoft Visual Studio. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/spawn.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/spawn.pyi index a1062e1955..c2ac88c4b2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/spawn.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/spawn.pyi @@ -1,5 +1,4 @@ -""" -distutils.spawn +"""distutils.spawn Provides the 'spawn()' function, a front-end to various platform- specific functions for launching another program in a sub-process. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/sysconfig.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/sysconfig.pyi index 8ac3ecaec6..c2ba23f160 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/sysconfig.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/sysconfig.pyi @@ -1,5 +1,4 @@ -""" -Provide access to Python's configuration information. The specific +"""Provide access to Python's configuration information. The specific configuration variables available depend heavily on the platform and configuration. The values may be retrieved using get_config_var(name), and the list of variables is available via diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/text_file.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/text_file.pyi index 8e49a9f6ba..7c9c6c65c6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/text_file.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/text_file.pyi @@ -1,5 +1,4 @@ -""" -text_file +"""text_file provides the TextFile class, which gives an interface to text files that (optionally) takes care of stripping comments, ignoring blank diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/unixccompiler.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/unixccompiler.pyi index 6c200cef93..e1a17ecf3a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/unixccompiler.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/unixccompiler.pyi @@ -1,5 +1,4 @@ -""" -distutils.unixccompiler +"""distutils.unixccompiler Contains the UnixCCompiler class, a subclass of CCompiler that handles the "typical" Unix-style command-line C compiler: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/util.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/util.pyi index 9f464257e7..455821dbba 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/util.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/util.pyi @@ -1,5 +1,4 @@ -""" -distutils.util +"""distutils.util Miscellaneous utility functions -- anything that doesn't fit into one of the other *util.py modules. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/version.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/version.pyi index bbcca8c7a6..e6c38de01e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/distutils/version.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/distutils/version.pyi @@ -1,5 +1,4 @@ -""" -Provides classes to represent module version numbers (one class for +"""Provides classes to represent module version numbers (one class for each style of version numbering). There are currently two such classes implemented: StrictVersion and LooseVersion. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/doctest.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/doctest.pyi index c542a9d2e8..dde78b3bf2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/doctest.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/doctest.pyi @@ -1,5 +1,4 @@ -""" -Module doctest -- a framework for running examples in docstrings. +"""Module doctest -- a framework for running examples in docstrings. In simplest use, end each module M to be tested with: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/__init__.pyi index 28009c67e6..11a143b8d0 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/__init__.pyi @@ -1,6 +1,4 @@ -""" -A package for parsing, handling, and generating email messages. -""" +"""A package for parsing, handling, and generating email messages.""" from collections.abc import Callable from email._policybase import _MessageT 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 64d45af8e1..2ffff726a1 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 @@ -1,5 +1,4 @@ -""" -Header value parser implementing various email-related RFC parsing rules. +"""Header value parser implementing various email-related RFC parsing rules. The parsing methods defined in this module implement various email related parsing rules. Principal among them is RFC 5322, which is the followon diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/_policybase.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/_policybase.pyi index 72dbccd5db..458f2cbe24 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/_policybase.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/_policybase.pyi @@ -1,5 +1,4 @@ -""" -Policy framework for the email package. +"""Policy framework for the email package. Allows fine grained feature control of how the package parses and emits data. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/base64mime.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/base64mime.pyi index 6bdc1bf504..5c606ff488 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/base64mime.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/base64mime.pyi @@ -1,5 +1,4 @@ -""" -Base64 content transfer encoding per RFCs 2045-2047. +"""Base64 content transfer encoding per RFCs 2045-2047. This module handles the content transfer encoding method defined in RFC 2045 to encode arbitrary 8-bit data using the three 8-bit bytes in four 7-bit diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/encoders.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/encoders.pyi index dfb716293a..b627d00b88 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/encoders.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/encoders.pyi @@ -1,6 +1,4 @@ -""" -Encodings and related functions. -""" +"""Encodings and related functions.""" from email.message import Message diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/errors.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/errors.pyi index 17b3f21088..742412a052 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/errors.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/errors.pyi @@ -1,6 +1,4 @@ -""" -email package exception classes. -""" +"""email package exception classes.""" import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/feedparser.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/feedparser.pyi index 2556caa90c..5a184b0d85 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/feedparser.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/feedparser.pyi @@ -1,5 +1,4 @@ -""" -FeedParser - An email feed parser. +"""FeedParser - An email feed parser. The feed parser implements an interface for incrementally parsing an email message, line by line. This has advantages for certain applications, such as diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/generator.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/generator.pyi index b01da84149..2381a7edd0 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/generator.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/generator.pyi @@ -1,6 +1,4 @@ -""" -Classes to generate plain text from a message object tree. -""" +"""Classes to generate plain text from a message object tree.""" from _typeshed import SupportsWrite from email.message import Message diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/header.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/header.pyi index 9132b62267..c9dc5105f8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/header.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/header.pyi @@ -1,6 +1,4 @@ -""" -Header encoding and decoding functionality. -""" +"""Header encoding and decoding functionality.""" from collections.abc import Iterable from email.charset import Charset diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/headerregistry.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/headerregistry.pyi index c5d49cfb0c..9297c83dda 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/headerregistry.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/headerregistry.pyi @@ -1,5 +1,4 @@ -""" -Representing and manipulating email headers via custom objects. +"""Representing and manipulating email headers via custom objects. This module provides an implementation of the HeaderRegistry API. The implementation is designed to flexibly follow RFC5322 rules. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/iterators.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/iterators.pyi index cc9e2b97f9..54f56d7c99 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/iterators.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/iterators.pyi @@ -1,6 +1,4 @@ -""" -Various types of useful iterators and generators. -""" +"""Various types of useful iterators and generators.""" from _typeshed import SupportsWrite from collections.abc import Iterator diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/message.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/message.pyi index 5e10c6d431..812a9f8827 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/message.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/message.pyi @@ -1,6 +1,4 @@ -""" -Basic message object for the email package object model. -""" +"""Basic message object for the email package object model.""" from _typeshed import MaybeNone from collections.abc import Generator, Iterator, Sequence diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/application.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/application.pyi index db1a5c93cc..b2249845d7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/application.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/application.pyi @@ -1,6 +1,4 @@ -""" -Class representing application/* type MIME documents. -""" +"""Class representing application/* type MIME documents.""" from collections.abc import Callable from email import _ParamsType diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/audio.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/audio.pyi index 634c6e4aba..532e4b21b1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/audio.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/audio.pyi @@ -1,6 +1,4 @@ -""" -Class representing audio/* type MIME documents. -""" +"""Class representing audio/* type MIME documents.""" from collections.abc import Callable from email import _ParamsType diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/base.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/base.pyi index bda2856f38..9c173a72ba 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/base.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/base.pyi @@ -1,6 +1,4 @@ -""" -Base class for MIME specializations. -""" +"""Base class for MIME specializations.""" import email.message from email import _ParamsType diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/image.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/image.pyi index b81fd35a04..72c5ac48af 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/image.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/image.pyi @@ -1,6 +1,4 @@ -""" -Class representing image/* type MIME documents. -""" +"""Class representing image/* type MIME documents.""" from collections.abc import Callable from email import _ParamsType diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/message.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/message.pyi index 41881c8ef8..eb854b713e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/message.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/message.pyi @@ -1,6 +1,4 @@ -""" -Class representing message/* MIME documents. -""" +"""Class representing message/* MIME documents.""" from email._policybase import _MessageT from email.mime.nonmultipart import MIMENonMultipart diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/multipart.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/multipart.pyi index 39c8806e81..8ac0e60e8b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/multipart.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/multipart.pyi @@ -1,6 +1,4 @@ -""" -Base class for MIME multipart/* type messages. -""" +"""Base class for MIME multipart/* type messages.""" from collections.abc import Sequence from email import _ParamsType diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/nonmultipart.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/nonmultipart.pyi index 288c9ba13f..395e5a1b36 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/nonmultipart.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/nonmultipart.pyi @@ -1,6 +1,4 @@ -""" -Base class for MIME type messages that are not multipart. -""" +"""Base class for MIME type messages that are not multipart.""" from email.mime.base import MIMEBase diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/text.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/text.pyi index 5dcb283a6f..08264521d4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/text.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/mime/text.pyi @@ -1,6 +1,4 @@ -""" -Class representing text/* type MIME documents. -""" +"""Class representing text/* type MIME documents.""" from email._policybase import Policy from email.mime.nonmultipart import MIMENonMultipart diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/parser.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/parser.pyi index 669565c822..9afe54af8e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/parser.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/parser.pyi @@ -1,6 +1,4 @@ -""" -A parser of RFC 2822 and MIME email messages. -""" +"""A parser of RFC 2822 and MIME email messages.""" from _typeshed import SupportsRead from collections.abc import Callable diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/policy.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/policy.pyi index 72dae2ec4c..c00e048e08 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/policy.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/policy.pyi @@ -1,5 +1,4 @@ -""" -This will be the home for the policy that hooks in the new +"""This will be the home for the policy that hooks in the new code that adds all the email6 features. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/quoprimime.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/quoprimime.pyi index 572b9f52a2..7bb864bef7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/quoprimime.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/quoprimime.pyi @@ -1,5 +1,4 @@ -""" -Quoted-printable content transfer encoding per RFCs 2045-2047. +"""Quoted-printable content transfer encoding per RFCs 2045-2047. This module handles the content transfer encoding method defined in RFC 2045 to encode US ASCII-like 8-bit data called 'quoted-printable'. It is used to diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/email/utils.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/email/utils.pyi index 707b1d8c6f..05cd193288 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/email/utils.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/email/utils.pyi @@ -1,6 +1,4 @@ -""" -Miscellaneous utilities. -""" +"""Miscellaneous utilities.""" import datetime import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/__init__.pyi index 1f91774416..48d2b5ea13 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/__init__.pyi @@ -1,5 +1,4 @@ -""" -Standard "encodings" Package +"""Standard "encodings" Package Standard Python encoding modules are stored in this package directory. @@ -26,6 +25,7 @@ Standard "encodings" Package Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ from codecs import CodecInfo diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/aliases.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/aliases.pyi index fee3684a8d..ca13370cc6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/aliases.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/aliases.pyi @@ -1,5 +1,4 @@ -""" -Encoding Aliases Support +"""Encoding Aliases Support This module is used by the encodings package search function to map encodings names to module names. @@ -14,6 +13,7 @@ Contents: character set names for which the Python core library provides codecs. In addition to these, a few Python specific codec aliases have also been added. + """ aliases: dict[str, str] diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/ascii.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/ascii.pyi index 075b58d347..62be1000b2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/ascii.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/ascii.pyi @@ -1,10 +1,10 @@ -""" -Python 'ascii' Codec +"""Python 'ascii' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/base64_codec.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/base64_codec.pyi index 197834ff02..dedf3be9c8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/base64_codec.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/base64_codec.pyi @@ -1,5 +1,4 @@ -""" -Python 'base64_codec' Codec - base64 content transfer encoding. +"""Python 'base64_codec' Codec - base64 content transfer encoding. This codec de/encodes from bytes to bytes. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/bz2_codec.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/bz2_codec.pyi index 1a2dd85872..cf0f6ff30e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/bz2_codec.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/bz2_codec.pyi @@ -1,5 +1,4 @@ -""" -Python 'bz2_codec' Codec - bz2 compression encoding. +"""Python 'bz2_codec' Codec - bz2 compression encoding. This codec de/encodes from bytes to bytes and is therefore usable with bytes.transform() and bytes.untransform(). diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/charmap.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/charmap.pyi index f73416296a..83d14fdf04 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/charmap.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/charmap.pyi @@ -1,5 +1,4 @@ -""" -Generic Python Character Mapping Codec. +"""Generic Python Character Mapping Codec. Use this codec directly rather than through the automatic conversion mechanisms supplied by unicode() and .encode(). @@ -8,6 +7,7 @@ Generic Python Character Mapping Codec. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp037.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp037.pyi index 8623072e51..d8415c0d99 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp037.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp037.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp037 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP037.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp037 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP037.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1006.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1006.pyi index 0734cf3e92..7d4eed710a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1006.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1006.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1006 generated from 'MAPPINGS/VENDORS/MISC/CP1006.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1006 generated from 'MAPPINGS/VENDORS/MISC/CP1006.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1026.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1026.pyi index b1018ce816..9dbbf0d295 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1026.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1026.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1026 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP1026.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1026 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP1026.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1125.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1125.pyi index a43daa6d00..65f02593dd 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1125.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1125.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec for CP1125 -""" +"""Python Character Mapping Codec for CP1125""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1140.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1140.pyi index 720c2e359e..1477632e88 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1140.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1140.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1140 generated from 'python-mappings/CP1140.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1140 generated from 'python-mappings/CP1140.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1250.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1250.pyi index 2bdf015a4e..846276ec73 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1250.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1250.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1250 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1250.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1250 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1250.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1251.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1251.pyi index a90cce1168..a945fdd558 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1251.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1251.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1251 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1251.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1251 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1251.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1252.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1252.pyi index c90bf18b2e..5e25a55b97 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1252.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1252.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1252 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1252 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1253.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1253.pyi index 93bfa6f9ed..db602cb995 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1253.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1253.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1253 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1253.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1253 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1253.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1254.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1254.pyi index b8cc5e311e..3618e631b6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1254.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1254.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1254 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1254.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1254 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1254.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1255.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1255.pyi index 649cafffd2..1a094bc49b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1255.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1255.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1255 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1255.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1255 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1255.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1256.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1256.pyi index 5f0275cb73..470adf7eeb 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1256.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1256.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1256 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1256.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1256 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1256.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1257.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1257.pyi index 3cf2cfbe43..81a6a39c0c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1257.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1257.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1257 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1257.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1257 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1257.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1258.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1258.pyi index 134e6b251c..51322b0474 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1258.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp1258.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp1258 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1258.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp1258 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1258.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp273.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp273.pyi index ce31f93131..fb2b9c0234 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp273.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp273.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp273 generated from 'python-mappings/CP273.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp273 generated from 'python-mappings/CP273.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp424.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp424.pyi index 6aeede4167..ef2d7e50a5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp424.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp424.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp424 generated from 'MAPPINGS/VENDORS/MISC/CP424.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp424 generated from 'MAPPINGS/VENDORS/MISC/CP424.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp437.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp437.pyi index 63b330e5de..da6ce75fb4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp437.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp437.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp437 generated from 'VENDORS/MICSFT/PC/CP437.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp437 generated from 'VENDORS/MICSFT/PC/CP437.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp500.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp500.pyi index 5424e2b897..9d7ba23c0d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp500.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp500.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp500 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP500.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp500 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP500.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp720.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp720.pyi index 7719d82ed4..12222a8b75 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp720.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp720.pyi @@ -1,5 +1,4 @@ -""" -Python Character Mapping Codec cp720 generated on Windows: +"""Python Character Mapping Codec cp720 generated on Windows: Vista 6.0.6002 SP2 Multiprocessor Free with the command: python Tools/unicode/genwincodec.py 720 """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp737.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp737.pyi index 191ff95241..d1be95602f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp737.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp737.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp737 generated from 'VENDORS/MICSFT/PC/CP737.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp737 generated from 'VENDORS/MICSFT/PC/CP737.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp775.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp775.pyi index 487e652cba..e6c838d216 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp775.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp775.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp775 generated from 'VENDORS/MICSFT/PC/CP775.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp775 generated from 'VENDORS/MICSFT/PC/CP775.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp850.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp850.pyi index 65f4a0100f..cf3d6c9362 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp850.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp850.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP850.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP850.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp852.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp852.pyi index d4c1be02c0..0caf316eea 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp852.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp852.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP852.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP852.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp855.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp855.pyi index 969256b422..449b6570bb 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp855.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp855.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP855.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP855.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp856.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp856.pyi index 7e4a1a064c..f9e2b6cd6e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp856.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp856.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp856 generated from 'MAPPINGS/VENDORS/MISC/CP856.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp856 generated from 'MAPPINGS/VENDORS/MISC/CP856.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp857.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp857.pyi index a27a216f81..10d9eedf06 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp857.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp857.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP857.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP857.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp858.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp858.pyi index ca8f0ac573..68a9a7186b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp858.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp858.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec for CP858, modified from cp850. -""" +"""Python Character Mapping Codec for CP858, modified from cp850.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp860.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp860.pyi index 29364634b4..3cb4ca72b6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp860.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp860.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP860.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP860.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp861.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp861.pyi index ca5cdc4d53..dfe41216e8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp861.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp861.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP861.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP861.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp862.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp862.pyi index e993cdf796..0846ae9a4e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp862.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp862.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP862.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP862.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp863.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp863.pyi index 9793f7bf5f..2c8e9cd40f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp863.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp863.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP863.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP863.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp864.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp864.pyi index d8d4889b8c..26402123e7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp864.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp864.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP864.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP864.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp865.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp865.pyi index 2056fc1228..ff9d33db6f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp865.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp865.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP865.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP865.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp866.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp866.pyi index 60eed003b4..f581f58b95 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp866.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp866.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP866.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP866.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp869.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp869.pyi index 91bcfd3c5b..d047ab42bb 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp869.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp869.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP869.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/MICSFT/PC/CP869.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp874.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp874.pyi index 76635f2054..7bceeabf21 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp874.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp874.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp874 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP874.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp874 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP874.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp875.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp875.pyi index cd958a96ff..c14444902d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp875.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/cp875.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec cp875 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP875.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec cp875 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP875.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/hex_codec.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/hex_codec.pyi index fa92f4a9bf..3427418636 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/hex_codec.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/hex_codec.pyi @@ -1,5 +1,4 @@ -""" -Python 'hex_codec' Codec - 2-digit hex content transfer encoding. +"""Python 'hex_codec' Codec - 2-digit hex content transfer encoding. This codec de/encodes from bytes to bytes. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/hp_roman8.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/hp_roman8.pyi index b987c62ae1..eeaea3e14a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/hp_roman8.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/hp_roman8.pyi @@ -1,5 +1,4 @@ -""" -Python Character Mapping Codec generated from 'hp_roman8.txt' with gencodec.py. +"""Python Character Mapping Codec generated from 'hp_roman8.txt' with gencodec.py. Based on data from ftp://dkuug.dk/i18n/charmaps/HP-ROMAN8 (Keld Simonsen) @@ -7,6 +6,7 @@ Original source: LaserJet IIP Printer User's Manual HP part no 33471-90901, Hewlet-Packard, June 1989. (Used with permission) + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_1.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_1.pyi index 162bad4ccb..a557aa1885 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_1.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_1.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_1 generated from 'MAPPINGS/ISO8859/8859-1.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_1 generated from 'MAPPINGS/ISO8859/8859-1.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_10.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_10.pyi index 437e2752fb..eb77204555 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_10.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_10.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_10 generated from 'MAPPINGS/ISO8859/8859-10.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_10 generated from 'MAPPINGS/ISO8859/8859-10.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_11.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_11.pyi index 2f1af84b6d..ff75663e36 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_11.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_11.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_11 generated from 'MAPPINGS/ISO8859/8859-11.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_11 generated from 'MAPPINGS/ISO8859/8859-11.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_13.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_13.pyi index 35105341a0..b83a44185d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_13.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_13.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_13 generated from 'MAPPINGS/ISO8859/8859-13.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_13 generated from 'MAPPINGS/ISO8859/8859-13.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_14.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_14.pyi index 7ebfbf6456..99db89a0ef 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_14.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_14.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_14 generated from 'MAPPINGS/ISO8859/8859-14.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_14 generated from 'MAPPINGS/ISO8859/8859-14.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_15.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_15.pyi index dc3e15dae7..88271ed1d4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_15.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_15.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_15 generated from 'MAPPINGS/ISO8859/8859-15.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_15 generated from 'MAPPINGS/ISO8859/8859-15.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_16.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_16.pyi index d7e1950ae9..1f6c8c8db1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_16.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_16.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_16 generated from 'MAPPINGS/ISO8859/8859-16.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_16 generated from 'MAPPINGS/ISO8859/8859-16.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_2.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_2.pyi index 5e39226038..c812f8a5c1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_2.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_2.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_2 generated from 'MAPPINGS/ISO8859/8859-2.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_2 generated from 'MAPPINGS/ISO8859/8859-2.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_3.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_3.pyi index 2b319339e5..8414a39157 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_3.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_3.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_3 generated from 'MAPPINGS/ISO8859/8859-3.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_3 generated from 'MAPPINGS/ISO8859/8859-3.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_4.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_4.pyi index 95b99dca02..49291ee183 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_4.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_4.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_4 generated from 'MAPPINGS/ISO8859/8859-4.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_4 generated from 'MAPPINGS/ISO8859/8859-4.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_5.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_5.pyi index 9bbfc11d3d..636c07388e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_5.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_5.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_5 generated from 'MAPPINGS/ISO8859/8859-5.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_5 generated from 'MAPPINGS/ISO8859/8859-5.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_6.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_6.pyi index 7328e2ad1e..2664a18952 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_6.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_6.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_6 generated from 'MAPPINGS/ISO8859/8859-6.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_6 generated from 'MAPPINGS/ISO8859/8859-6.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_7.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_7.pyi index 59f3742959..6716b97022 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_7.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_7.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_7 generated from 'MAPPINGS/ISO8859/8859-7.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_7 generated from 'MAPPINGS/ISO8859/8859-7.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_8.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_8.pyi index fde245a6de..308832217a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_8.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_8.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_8 generated from 'MAPPINGS/ISO8859/8859-8.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_8 generated from 'MAPPINGS/ISO8859/8859-8.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_9.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_9.pyi index 9a73388eb4..9d06803516 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_9.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/iso8859_9.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec iso8859_9 generated from 'MAPPINGS/ISO8859/8859-9.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec iso8859_9 generated from 'MAPPINGS/ISO8859/8859-9.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_r.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_r.pyi index 82878eac4a..85393efacd 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_r.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_r.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec koi8_r generated from 'MAPPINGS/VENDORS/MISC/KOI8-R.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec koi8_r generated from 'MAPPINGS/VENDORS/MISC/KOI8-R.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_t.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_t.pyi index 0d534f55c4..5d8feb27ce 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_t.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_t.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec koi8_t -""" +"""Python Character Mapping Codec koi8_t""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_u.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_u.pyi index 7d7618fcff..feb2736531 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_u.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/koi8_u.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec koi8_u generated from 'python-mappings/KOI8-U.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec koi8_u generated from 'python-mappings/KOI8-U.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/kz1048.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/kz1048.pyi index 01952fad27..1bcefed6c3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/kz1048.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/kz1048.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec kz1048 generated from 'MAPPINGS/VENDORS/MISC/KZ1048.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec kz1048 generated from 'MAPPINGS/VENDORS/MISC/KZ1048.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/latin_1.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/latin_1.pyi index e3d0fb9611..87419a70e2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/latin_1.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/latin_1.pyi @@ -1,10 +1,10 @@ -""" -Python 'latin-1' Codec +"""Python 'latin-1' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_arabic.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_arabic.pyi index 60322e5bb5..b267b1eb49 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_arabic.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_arabic.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec generated from 'VENDORS/APPLE/ARABIC.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec generated from 'VENDORS/APPLE/ARABIC.TXT' with gencodec.py.""" import codecs from _typeshed import ReadableBuffer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_croatian.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_croatian.pyi index 314ef78319..b5894c73b3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_croatian.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_croatian.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec mac_croatian generated from 'MAPPINGS/VENDORS/APPLE/CROATIAN.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec mac_croatian generated from 'MAPPINGS/VENDORS/APPLE/CROATIAN.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_cyrillic.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_cyrillic.pyi index 95de88fe49..6314158198 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_cyrillic.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_cyrillic.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec mac_cyrillic generated from 'MAPPINGS/VENDORS/APPLE/CYRILLIC.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec mac_cyrillic generated from 'MAPPINGS/VENDORS/APPLE/CYRILLIC.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_farsi.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_farsi.pyi index 3a04c85fa6..3b73beecb1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_farsi.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_farsi.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec mac_farsi generated from 'MAPPINGS/VENDORS/APPLE/FARSI.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec mac_farsi generated from 'MAPPINGS/VENDORS/APPLE/FARSI.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_greek.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_greek.pyi index 13ac6ad86c..9b49f6b8f0 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_greek.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_greek.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec mac_greek generated from 'MAPPINGS/VENDORS/APPLE/GREEK.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec mac_greek generated from 'MAPPINGS/VENDORS/APPLE/GREEK.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_iceland.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_iceland.pyi index 5f2ed755aa..c0a02d06ce 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_iceland.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_iceland.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec mac_iceland generated from 'MAPPINGS/VENDORS/APPLE/ICELAND.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec mac_iceland generated from 'MAPPINGS/VENDORS/APPLE/ICELAND.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_latin2.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_latin2.pyi index 269c25e84b..3e0b50e5f8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_latin2.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_latin2.pyi @@ -1,10 +1,10 @@ -""" -Python Character Mapping Codec mac_latin2 generated from 'MAPPINGS/VENDORS/MICSFT/MAC/LATIN2.TXT' with gencodec.py. +"""Python Character Mapping Codec mac_latin2 generated from 'MAPPINGS/VENDORS/MICSFT/MAC/LATIN2.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. (c) Copyright 2000 Guido van Rossum. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_roman.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_roman.pyi index aefd1258ca..387546e419 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_roman.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_roman.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec mac_roman generated from 'MAPPINGS/VENDORS/APPLE/ROMAN.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec mac_roman generated from 'MAPPINGS/VENDORS/APPLE/ROMAN.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_romanian.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_romanian.pyi index 1b3c6567e9..c2f955eb49 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_romanian.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_romanian.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec mac_romanian generated from 'MAPPINGS/VENDORS/APPLE/ROMANIAN.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec mac_romanian generated from 'MAPPINGS/VENDORS/APPLE/ROMANIAN.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_turkish.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_turkish.pyi index 7e5aec8a18..4858ecacd4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_turkish.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mac_turkish.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec mac_turkish generated from 'MAPPINGS/VENDORS/APPLE/TURKISH.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec mac_turkish generated from 'MAPPINGS/VENDORS/APPLE/TURKISH.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mbcs.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mbcs.pyi index 3c1fd63c8c..9332b0587d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mbcs.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/mbcs.pyi @@ -1,11 +1,11 @@ -""" -Python 'mbcs' Codec for Windows +"""Python 'mbcs' Codec for Windows Cloned by Mark Hammond (mhammond@skippinet.com.au) from ascii.py, which was written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/oem.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/oem.pyi index 28697d1806..65a0e13a27 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/oem.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/oem.pyi @@ -1,6 +1,4 @@ -""" -Python 'oem' Codec for Windows -""" +"""Python 'oem' Codec for Windows""" import codecs import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/palmos.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/palmos.pyi index f6f663b501..9b1e097e96 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/palmos.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/palmos.pyi @@ -1,7 +1,7 @@ -""" -Python Character Mapping Codec for PalmOS 3.5. +"""Python Character Mapping Codec for PalmOS 3.5. Written by Sjoerd Mullender (sjoerd@acm.org); based on iso8859_15.py. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/ptcp154.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/ptcp154.pyi index c56a6d8ff0..a0fca2c6d0 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/ptcp154.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/ptcp154.pyi @@ -1,10 +1,10 @@ -""" -Python Character Mapping Codec generated from 'PTCP154.txt' with gencodec.py. +"""Python Character Mapping Codec generated from 'PTCP154.txt' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. (c) Copyright 2000 Guido van Rossum. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/punycode.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/punycode.pyi index ef9bedd19d..69d61ef8e2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/punycode.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/punycode.pyi @@ -1,5 +1,4 @@ -""" -Codec for the Punycode encoding, as specified in RFC 3492 +"""Codec for the Punycode encoding, as specified in RFC 3492 Written by Martin v. Löwis. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/quopri_codec.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/quopri_codec.pyi index 6d657acad0..0670265cba 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/quopri_codec.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/quopri_codec.pyi @@ -1,5 +1,4 @@ -""" -Codec for quoted-printable encoding. +"""Codec for quoted-printable encoding. This codec de/encodes from bytes to bytes. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/raw_unicode_escape.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/raw_unicode_escape.pyi index 5cc6f425e6..39f2d11537 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/raw_unicode_escape.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/raw_unicode_escape.pyi @@ -1,10 +1,10 @@ -""" -Python 'raw-unicode-escape' Codec +"""Python 'raw-unicode-escape' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/rot_13.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/rot_13.pyi index 5492994ab7..60431b2597 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/rot_13.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/rot_13.pyi @@ -1,5 +1,4 @@ -""" -Python Character Mapping Codec for ROT13. +"""Python Character Mapping Codec for ROT13. This codec de/encodes from str to str. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/tis_620.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/tis_620.pyi index e80bdc4159..bce7bd673b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/tis_620.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/tis_620.pyi @@ -1,6 +1,4 @@ -""" -Python Character Mapping Codec tis_620 generated from 'python-mappings/TIS-620.TXT' with gencodec.py. -""" +"""Python Character Mapping Codec tis_620 generated from 'python-mappings/TIS-620.TXT' with gencodec.py.""" import codecs from _codecs import _EncodingMap diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/undefined.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/undefined.pyi index 37f67d8dfd..d1d4f8dad8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/undefined.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/undefined.pyi @@ -1,5 +1,4 @@ -""" -Python 'undefined' Codec +"""Python 'undefined' Codec This codec will always raise a UnicodeError exception when being used. It is intended for use by the site.py file to switch off @@ -8,6 +7,7 @@ Python 'undefined' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/unicode_escape.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/unicode_escape.pyi index 479f527dd7..6273f12b8b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/unicode_escape.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/unicode_escape.pyi @@ -1,10 +1,10 @@ -""" -Python 'unicode-escape' Codec +"""Python 'unicode-escape' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16.pyi index 8267786e90..a67441b32f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16.pyi @@ -1,10 +1,10 @@ -""" -Python 'utf-16' Codec +"""Python 'utf-16' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16_be.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16_be.pyi index 7dd1ce761c..2c6e718bea 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16_be.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16_be.pyi @@ -1,10 +1,10 @@ -""" -Python 'utf-16-be' Codec +"""Python 'utf-16-be' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16_le.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16_le.pyi index f753a1c26a..106e801258 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16_le.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_16_le.pyi @@ -1,10 +1,10 @@ -""" -Python 'utf-16-le' Codec +"""Python 'utf-16-le' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32.pyi index 9b4533a2af..f294f44802 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32.pyi @@ -1,5 +1,4 @@ """ - Python 'utf-32' Codec """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32_be.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32_be.pyi index 053c4ec060..360d0f69fe 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32_be.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32_be.pyi @@ -1,5 +1,4 @@ """ - Python 'utf-32-be' Codec """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32_le.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32_le.pyi index 03fe8c9854..40149d98d2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32_le.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_32_le.pyi @@ -1,5 +1,4 @@ """ - Python 'utf-32-le' Codec """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_7.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_7.pyi index f372c4cb89..cc1ac51151 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_7.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_7.pyi @@ -1,5 +1,4 @@ -""" -Python 'utf-7' Codec +"""Python 'utf-7' Codec Written by Brian Quinlan (brian@sweetapp.com). """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_8.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_8.pyi index 11ccb8cc84..ae6671e94b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_8.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_8.pyi @@ -1,10 +1,10 @@ -""" -Python 'utf-8' Codec +"""Python 'utf-8' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. + """ import codecs diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_8_sig.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_8_sig.pyi index 13798af738..1e7d176fa4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_8_sig.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/utf_8_sig.pyi @@ -1,5 +1,4 @@ -""" -Python 'utf-8-sig' Codec +"""Python 'utf-8-sig' Codec This work similar to UTF-8 with the following changes: * On encoding/writing a UTF-8 encoded BOM will be prepended/written as the diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/uu_codec.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/uu_codec.pyi index bff1ae13ba..9f59d5921e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/uu_codec.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/uu_codec.pyi @@ -1,5 +1,4 @@ -""" -Python 'uu_codec' Codec - UU content transfer encoding. +"""Python 'uu_codec' Codec - UU content transfer encoding. This codec de/encodes from bytes to bytes. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/zlib_codec.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/zlib_codec.pyi index a06a7d959f..7926d78c0c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/encodings/zlib_codec.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/encodings/zlib_codec.pyi @@ -1,5 +1,4 @@ -""" -Python 'zlib_codec' Codec - zlib compression encoding. +"""Python 'zlib_codec' Codec - zlib compression encoding. This codec de/encodes from bytes to bytes. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/enum.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/enum.pyi index 63a785ce26..3be379222c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/enum.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/enum.pyi @@ -143,31 +143,16 @@ class EnumMeta(type): """ elif sys.version_info >= (3, 11): def __contains__(self: type[Any], member: object) -> bool: - """Return True if `value` is in `cls`. + """Return True if member is a member of this enum + raises TypeError if member is not an enum member - `value` is in `cls` if: - 1) `value` is a member of `cls`, or - 2) `value` is the value of one of the `cls`'s members. - 3) `value` is a pseudo-member (flags) + note: in 3.12 TypeError will no longer be raised, and True will also be + returned if member is the value of a member in this enum """ elif sys.version_info >= (3, 10): - def __contains__(self: type[Any], obj: object) -> bool: - """Return True if `value` is in `cls`. - - `value` is in `cls` if: - 1) `value` is a member of `cls`, or - 2) `value` is the value of one of the `cls`'s members. - 3) `value` is a pseudo-member (flags) - """ + def __contains__(self: type[Any], obj: object) -> bool: ... else: - def __contains__(self: type[Any], member: object) -> bool: - """Return True if `value` is in `cls`. - - `value` is in `cls` if: - 1) `value` is a member of `cls`, or - 2) `value` is the value of one of the `cls`'s members. - 3) `value` is a pseudo-member (flags) - """ + def __contains__(self: type[Any], member: object) -> bool: ... def __getitem__(self: type[_EnumMemberT], name: str) -> _EnumMemberT: """Return the member matching `name`.""" @@ -273,8 +258,6 @@ class EnumMeta(type): to an enumeration member (i.e. Color(3)) and for the functional API (i.e. Color = Enum('Color', names='RED GREEN BLUE')). - The value lookup branch is chosen if the enum is final. - When used for the functional API: `value` will be the name of the new class. @@ -428,7 +411,9 @@ class Enum(metaclass=EnumMeta): """Returns public methods and other interesting attributes.""" def __hash__(self) -> int: ... - def __format__(self, format_spec: str) -> str: ... + def __format__(self, format_spec: str) -> str: + """Returns format using actual value type unless __str__ has been overridden.""" + def __reduce_ex__(self, proto: Unused) -> tuple[Any, ...]: ... if sys.version_info >= (3, 11): def __copy__(self) -> Self: ... @@ -436,6 +421,11 @@ class Enum(metaclass=EnumMeta): if sys.version_info >= (3, 12) and sys.version_info < (3, 14): @classmethod def __signature__(cls) -> str: ... + if sys.version_info >= (3, 13): + # Value may be any type, even in special enums. Enabling Enum parsing from + # multiple value types + def _add_value_alias_(self, value: Any) -> None: ... + def _add_alias_(self, name: str) -> None: ... if sys.version_info >= (3, 11): class ReprEnum(Enum): @@ -593,7 +583,13 @@ class auto: _value_: Any @_magic_enum_attr - def value(self) -> Any: ... + def value(self) -> Any: + """The base class of the class hierarchy. + + When called, it accepts no arguments and returns a new featureless + instance that has no instance attributes and cannot be given any. + """ + def __new__(cls) -> Self: ... # These don't exist, but auto is basically immediately replaced with diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/errno.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/errno.pyi index 9be7fcf552..1efac527bd 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/errno.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/errno.pyi @@ -1,5 +1,4 @@ -""" -This module makes available standard errno system symbols. +"""This module makes available standard errno system symbols. The value of each symbol is the corresponding integer value, e.g., on most systems, errno.ENOENT equals the integer 2. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/faulthandler.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/faulthandler.pyi index 2049374456..d52bf3a681 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/faulthandler.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/faulthandler.pyi @@ -1,6 +1,4 @@ -""" -faulthandler module. -""" +"""faulthandler module.""" import sys from _typeshed import FileDescriptorLike diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/fcntl.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/fcntl.pyi index 43182de9ea..279f7a99e8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/fcntl.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/fcntl.pyi @@ -1,5 +1,4 @@ -""" -This module performs file control and I/O control on file +"""This module performs file control and I/O control on file descriptors. It is an interface to the fcntl() and ioctl() Unix routines. File descriptors can be obtained with the fileno() method of a file or socket object. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/filecmp.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/filecmp.pyi index 83194e2f11..520c8654b5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/filecmp.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/filecmp.pyi @@ -1,5 +1,4 @@ -""" -Utilities for comparing files and directories. +"""Utilities for comparing files and directories. Classes: dircmp @@ -8,6 +7,7 @@ Functions: cmp(f1, f2, shallow=True) -> int cmpfiles(a, b, common) -> ([], [], []) clear_cache() + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/fileinput.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/fileinput.pyi index 3c603a7537..38a3653dc4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/fileinput.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/fileinput.pyi @@ -1,5 +1,4 @@ -""" -Helper class to quickly write a loop over all standard input files. +"""Helper class to quickly write a loop over all standard input files. Typical use is: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/fnmatch.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/fnmatch.pyi index f5a7a31a60..bea649b871 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/fnmatch.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/fnmatch.pyi @@ -1,5 +1,4 @@ -""" -Filename matching with shell patterns. +"""Filename matching with shell patterns. fnmatch(FILENAME, PATTERN) matches according to the local convention. fnmatchcase(FILENAME, PATTERN) always takes case in account. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/formatter.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/formatter.pyi index 63e0b0afae..bc11eaec5a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/formatter.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/formatter.pyi @@ -1,5 +1,4 @@ -""" -Generic output formatting. +"""Generic output formatting. Formatter objects transform an abstract flow of formatting events into specific output events on writer objects. Formatters manage several stack diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/fractions.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/fractions.pyi index c7a071680a..75638a871f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/fractions.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/fractions.pyi @@ -1,6 +1,4 @@ -""" -Fraction, infinite-precision, rational numbers. -""" +"""Fraction, infinite-precision, rational numbers.""" import sys from collections.abc import Callable diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/ftplib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/ftplib.pyi index baf709684b..229f9cce34 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/ftplib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/ftplib.pyi @@ -1,5 +1,4 @@ -""" -An FTP client class and some helper functions. +"""An FTP client class and some helper functions. Based on RFC 959: File Transfer Protocol (FTP), by J. Postel and J. Reynolds diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/functools.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/functools.pyi index 0bac0d4b3d..4481f9cb5c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/functools.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/functools.pyi @@ -1,6 +1,4 @@ -""" -functools.py - Tools for working with functions and callable objects -""" +"""functools.py - Tools for working with functions and callable objects""" import sys import types @@ -64,7 +62,16 @@ else: """ @overload -def reduce(function: Callable[[_T, _T], _T], iterable: Iterable[_T], /) -> _T: ... +def reduce(function: Callable[[_T, _T], _T], iterable: Iterable[_T], /) -> _T: + """Apply a function of two arguments cumulatively to the items of an iterable, from left to right. + + This effectively reduces the iterable to a single value. If initial is present, + it is placed before the items of the iterable in the calculation, and serves as + a default when the iterable is empty. + + For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) + calculates ((((1 + 2) + 3) + 4) + 5). + """ class _CacheInfo(NamedTuple): """CacheInfo(hits, misses, maxsize, currsize)""" diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/gc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/gc.pyi index 4c81b6e47a..c5aae2462f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/gc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/gc.pyi @@ -1,5 +1,4 @@ -""" -This module provides access to the garbage collector for reference cycles. +"""This module provides access to the garbage collector for reference cycles. enable() -- Enable automatic garbage collection. disable() -- Disable automatic garbage collection. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/genericpath.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/genericpath.pyi index a43beedb37..af647a69b4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/genericpath.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/genericpath.pyi @@ -1,5 +1,4 @@ """ - Path operations common to more than one OS Do not use directly. The OS specific modules import the appropriate functions from this module themselves. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/getopt.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/getopt.pyi index 85eb6d694e..0770ea1049 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/getopt.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/getopt.pyi @@ -1,5 +1,4 @@ -""" -Parser for command line options. +"""Parser for command line options. This module helps scripts to parse the command line arguments in sys.argv. It supports the same conventions as the Unix getopt() diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/getpass.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/getpass.pyi index 8b31291227..3f5afa80ef 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/getpass.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/getpass.pyi @@ -1,5 +1,4 @@ -""" -Utilities to get a password and/or the current user name. +"""Utilities to get a password and/or the current user name. getpass(prompt[, stream[, echo_char]]) - Prompt for a password, with echo turned off and optional keyboard feedback. @@ -9,6 +8,7 @@ GetPassWarning - This UserWarning is issued when getpass() cannot prevent echoing of the password contents while reading. On Windows, the msvcrt module will be used. + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/gettext.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/gettext.pyi index e0296695fe..8d3623d7e7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/gettext.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/gettext.pyi @@ -1,5 +1,4 @@ -""" -Internationalization and localization support. +"""Internationalization and localization support. This module provides internationalization (I18N) and localization (L10N) support for your Python programs by providing an interface to the GNU gettext @@ -8,6 +7,7 @@ message catalog library. I18N refers to the operation by which a program is made aware of multiple languages. L10N refers to the adaptation of your program, once internationalized, to the local language and cultural habits. + """ import io diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/glob.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/glob.pyi index 8470e755bf..a1ca7a6de6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/glob.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/glob.pyi @@ -1,6 +1,4 @@ -""" -Filename globbing utility. -""" +"""Filename globbing utility.""" import sys from _typeshed import StrOrBytesPath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/grp.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/grp.pyi index f8e3f82e1c..2364e81f89 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/grp.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/grp.pyi @@ -1,5 +1,4 @@ -""" -Access to the Unix group database. +"""Access to the Unix group database. Group entries are reported as 4-tuples containing the following fields from the group database, in order: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/gzip.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/gzip.pyi index 0d93995b97..b31946776f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/gzip.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/gzip.pyi @@ -1,5 +1,4 @@ -""" -Functions that read and write gzipped files. +"""Functions that read and write gzipped files. The user of the file doesn't have to worry about the compression, but random access is not allowed. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/hashlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/hashlib.pyi index b34bc088c3..9f68beea56 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/hashlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/hashlib.pyi @@ -1,5 +1,4 @@ -""" -hashlib module - A common interface to many hash functions. +"""hashlib module - A common interface to many hash functions. new(name, data=b'', **kwargs) - returns a new hash object implementing the given hash function; initializing the hash @@ -47,6 +46,7 @@ More condensed: >>> hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest() 'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2' + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/heapq.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/heapq.pyi index bf6e04806d..199c0641c7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/heapq.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/heapq.pyi @@ -1,5 +1,4 @@ -""" -Heap queue algorithm (a.k.a. priority queue). +"""Heap queue algorithm (a.k.a. priority queue). Heaps are arrays for which a[k] <= a[2*k+1] and a[k] <= a[2*k+2] for all k, counting elements from 0. For the sake of comparison, diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/hmac.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/hmac.pyi index 597ce815c4..1e103ef558 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/hmac.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/hmac.pyi @@ -1,5 +1,4 @@ -""" -HMAC (Keyed-Hashing for Message Authentication) module. +"""HMAC (Keyed-Hashing for Message Authentication) module. Implements the HMAC algorithm as described by RFC 2104. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/html/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/html/__init__.pyi index 06b2bbfd1d..4d9a27cc42 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/html/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/html/__init__.pyi @@ -1,5 +1,4 @@ """ - General functions for HTML manipulation. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/html/entities.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/html/entities.pyi index 7d9167e12a..a44d3e10e2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/html/entities.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/html/entities.pyi @@ -1,6 +1,4 @@ -""" -HTML character entity references. -""" +"""HTML character entity references.""" __all__ = ["html5", "name2codepoint", "codepoint2name", "entitydefs"] diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/html/parser.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/html/parser.pyi index 69a29c995b..526ce38811 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/html/parser.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/html/parser.pyi @@ -1,6 +1,4 @@ -""" -A parser for HTML and XHTML. -""" +"""A parser for HTML and XHTML.""" from _markupbase import ParserBase from re import Pattern diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/http/client.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/http/client.pyi index c4b862d77d..068db03914 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/http/client.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/http/client.pyi @@ -1,5 +1,4 @@ -""" -HTTP/1.1 client library +"""HTTP/1.1 client library diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/http/cookiejar.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/http/cookiejar.pyi index 37df513fea..d73b583bea 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/http/cookiejar.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/http/cookiejar.pyi @@ -1,5 +1,4 @@ -""" -HTTP cookie handling for web clients. +"""HTTP cookie handling for web clients. This module has (now fairly distant) origins in Gisle Aas' Perl module HTTP::Cookies, from the libwww-perl library. @@ -23,6 +22,7 @@ http://wwwsearch.sf.net/): | / MSIEDBCookieJar BSDDBCookieJar |/ MSIECookieJar + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/http/cookies.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/http/cookies.pyi index a9eacda2b8..e1c797e3d1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/http/cookies.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/http/cookies.pyi @@ -1,5 +1,4 @@ """ - Here's a sample session to show how to use this module. At the moment, this is the only documentation. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/http/server.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/http/server.pyi index 963b4655e1..c6177b7f00 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/http/server.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/http/server.pyi @@ -1,5 +1,4 @@ -""" -HTTP server classes. +"""HTTP server classes. Note: BaseHTTPRequestHandler doesn't implement any HTTP request; see SimpleHTTPRequestHandler for simple implementations of GET, HEAD and POST, diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/imaplib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/imaplib.pyi index 8f8ec666af..dca7377e76 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/imaplib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/imaplib.pyi @@ -1,5 +1,4 @@ -""" -IMAP4 client. +"""IMAP4 client. Based on RFC 2060. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/imghdr.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/imghdr.pyi index 00b8af25bc..7d54851ea8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/imghdr.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/imghdr.pyi @@ -1,6 +1,4 @@ -""" -Recognize image file formats based on their first few bytes. -""" +"""Recognize image file formats based on their first few bytes.""" from _typeshed import StrPath from collections.abc import Callable diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/imp.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/imp.pyi index eb1fccb1ec..540eac2943 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/imp.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/imp.pyi @@ -1,9 +1,9 @@ -""" -This module provides the components needed to build your own __import__ +"""This module provides the components needed to build your own __import__ function. Undocumented functions are obsolete. In most cases it is preferred you consider using the importlib module's functionality over this module. + """ import types diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/__init__.pyi index a7c8a8e075..c9fa371af1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/__init__.pyi @@ -1,6 +1,4 @@ -""" -A pure Python implementation of import. -""" +"""A pure Python implementation of import.""" import sys from importlib._bootstrap import __import__ as __import__ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_abc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_abc.pyi index e53e76180d..94924e66bf 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_abc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_abc.pyi @@ -1,6 +1,4 @@ -""" -Subset of importlib.abc used to reduce importlib.util imports. -""" +"""Subset of importlib.abc used to reduce importlib.util imports.""" import sys import types @@ -24,7 +22,14 @@ if sys.version_info >= (3, 10): functionality for this method. """ if sys.version_info < (3, 12): - def module_repr(self, module: types.ModuleType) -> str: ... + def module_repr(self, module: types.ModuleType) -> str: + """Return a module's repr. + + Used by the module type when the method does not raise + NotImplementedError. + + This method is deprecated. + """ def create_module(self, spec: ModuleSpec) -> types.ModuleType | None: """Return a module to initialize and into which to load. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_bootstrap.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_bootstrap.pyi index 26a3a05dfe..116884f228 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_bootstrap.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_bootstrap.pyi @@ -1,10 +1,10 @@ -""" -Core implementation of import. +"""Core implementation of import. This module is NOT meant to be directly imported! It has been designed such that it can be bootstrapped into Python as the implementation of import. As such it requires the injection of specific modules and attributes in order to work. One should use importlib as the public-facing version of this module. + """ from _frozen_importlib import * diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_bootstrap_external.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_bootstrap_external.pyi index 6d3bbb6bad..a4d2aeccd2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_bootstrap_external.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/_bootstrap_external.pyi @@ -1,10 +1,10 @@ -""" -Core implementation of path-based import. +"""Core implementation of path-based import. This module is NOT meant to be directly imported! It has been designed such that it can be bootstrapped into Python as the implementation of import. As such it requires the injection of specific modules and attributes in order to work. One should use importlib as the public-facing version of this module. + """ from _frozen_importlib_external import * diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/abc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/abc.pyi index d7dc14bd5e..b2e75ae586 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/abc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/abc.pyi @@ -1,6 +1,4 @@ -""" -Abstract base classes related to import. -""" +"""Abstract base classes related to import.""" import _ast import sys @@ -200,7 +198,16 @@ if sys.version_info >= (3, 10): """Abstract base class for import finders on sys.meta_path.""" if sys.version_info < (3, 12): - def find_module(self, fullname: str, path: Sequence[str] | None) -> Loader | None: ... + def find_module(self, fullname: str, path: Sequence[str] | None) -> Loader | None: + """Return a loader for the module. + + If no module is found, return None. The fullname is a str and + the path is a list of strings or None. + + This method is deprecated since Python 3.4 in favor of + finder.find_spec(). If find_spec() exists then backwards-compatible + functionality is provided for this method. + """ def invalidate_caches(self) -> None: """An optional method for clearing the finder's cache, if any. @@ -215,8 +222,28 @@ if sys.version_info >= (3, 10): """Abstract base class for path entry finders used by PathFinder.""" if sys.version_info < (3, 12): - def find_module(self, fullname: str) -> Loader | None: ... - def find_loader(self, fullname: str) -> tuple[Loader | None, Sequence[str]]: ... + def find_module(self, fullname: str) -> Loader | None: + """Try to find a loader for the specified module by delegating to + self.find_loader(). + + This method is deprecated in favor of finder.find_spec(). + """ + + def find_loader(self, fullname: str) -> tuple[Loader | None, Sequence[str]]: + """Return (loader, namespace portion) for the path entry. + + The fullname is a str. The namespace portion is a sequence of + path entries contributing to part of a namespace package. The + sequence may be empty. If loader is not None, the portion will + be ignored. + + The portion will be discarded if another path entry finder + locates the module as a normal module or package. + + This method is deprecated since Python 3.4 in favor of + finder.find_spec(). If find_spec() is provided than backwards-compatible + functionality is provided. + """ def invalidate_caches(self) -> None: """An optional method for clearing the finder's cache, if any. @@ -337,10 +364,7 @@ if sys.version_info < (3, 11): else: @abstractmethod def is_resource(self, name: str) -> bool: - """Return True if the named 'path' is a resource. - - Files are resources, directories are not. - """ + """Return True if the named 'name' is consider a resource.""" @abstractmethod def contents(self) -> Iterator[str]: @@ -365,8 +389,7 @@ if sys.version_info < (3, 11): """Yield Traversable objects in self""" if sys.version_info >= (3, 11): @abstractmethod - def joinpath(self, *descendants: str) -> Traversable: - """Return Traversable child in self""" + def joinpath(self, *descendants: str) -> Traversable: ... else: @abstractmethod def joinpath(self, child: str, /) -> Traversable: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/machinery.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/machinery.pyi index 815f861a7f..9cbc94326f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/machinery.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/machinery.pyi @@ -1,6 +1,4 @@ -""" -The machinery of importlib: finders, loaders, hooks, etc. -""" +"""The machinery of importlib: finders, loaders, hooks, etc.""" import sys from importlib._bootstrap import BuiltinImporter as BuiltinImporter, FrozenImporter as FrozenImporter, ModuleSpec as ModuleSpec diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/metadata/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/metadata/__init__.pyi index 6c8679cd60..c52736de1d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/metadata/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/metadata/__init__.pyi @@ -53,7 +53,8 @@ class PackageNotFoundError(ModuleNotFoundError): """The package was not found.""" @property - def name(self) -> str: ... # type: ignore[override] + def name(self) -> str: # type: ignore[override] + """module name""" if sys.version_info >= (3, 13): _EntryPointBase = object @@ -153,7 +154,8 @@ class EntryPoint(_EntryPointBase): if sys.version_info >= (3, 11): def __lt__(self, other: object) -> bool: ... if sys.version_info < (3, 12): - def __iter__(self) -> Iterator[Any]: ... # result of iter((str, Self)), really + def __iter__(self) -> Iterator[Any]: # result of iter((str, Self)), really + """Supply iter so one may construct dicts of EntryPoints by name.""" if sys.version_info >= (3, 12): class EntryPoints(tuple[EntryPoint, ...]): @@ -440,20 +442,11 @@ class Distribution(_distribution_parent): """Return the parsed metadata for this Distribution. The returned object will have keys that name the various bits of - metadata per the - `Core metadata specifications `_. - - Custom providers may provide the METADATA file or override this - property. + metadata. See PEP 566 for details. """ @property - def entry_points(self) -> list[EntryPoint]: - """Return EntryPoints for this distribution. - - Custom providers may provide the ``entry_points.txt`` file - or override this property. - """ + def entry_points(self) -> list[EntryPoint]: ... @property def version(self) -> str: @@ -547,16 +540,10 @@ class MetadataPathFinder(DistributionFinder): """ if sys.version_info >= (3, 11): @classmethod - def invalidate_caches(cls) -> None: - """An optional method for clearing the finder's cache, if any. - This method is used by importlib.invalidate_caches(). - """ + def invalidate_caches(cls) -> None: ... elif sys.version_info >= (3, 10): # Yes, this is an instance method that has a parameter named "cls" - def invalidate_caches(cls) -> None: - """An optional method for clearing the finder's cache, if any. - This method is used by importlib.invalidate_caches(). - """ + def invalidate_caches(cls) -> None: ... class PathDistribution(Distribution): _path: _SimplePath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/readers.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/readers.pyi index ed6936150a..101a81434d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/readers.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/readers.pyi @@ -1,5 +1,4 @@ """ - Compatibility shim for .resources.readers as found on Python 3.10. Consumers that can rely on Python 3.11 should use the other diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/__init__.pyi index ad5ec45608..0a96883cb9 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/__init__.pyi @@ -1,5 +1,4 @@ """ - Read resources contained within a package. This codebase is shared between importlib.resources in the stdlib diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/_functional.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/_functional.pyi index 32a2297629..e25c9a8e3a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/_functional.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/_functional.pyi @@ -1,6 +1,4 @@ -""" -Simplified function-based API for importlib.resources -""" +"""Simplified function-based API for importlib.resources""" import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/abc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/abc.pyi index dfe9156668..bb2a409c9e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/abc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/abc.pyi @@ -24,20 +24,13 @@ if sys.version_info >= (3, 11): If the resource does not exist on the file system, raise FileNotFoundError. """ - if sys.version_info >= (3, 10): - @abstractmethod - def is_resource(self, path: str) -> bool: - """Return True if the named 'path' is a resource. - Files are resources, directories are not. - """ - else: - @abstractmethod - def is_resource(self, name: str) -> bool: - """Return True if the named 'path' is a resource. + @abstractmethod + def is_resource(self, path: str) -> bool: + """Return True if the named 'path' is a resource. - Files are resources, directories are not. - """ + Files are resources, directories are not. + """ @abstractmethod def contents(self) -> Iterator[str]: @@ -63,24 +56,15 @@ if sys.version_info >= (3, 11): @abstractmethod def iterdir(self) -> Iterator[Traversable]: """Yield Traversable objects in self""" - if sys.version_info >= (3, 11): - @abstractmethod - def joinpath(self, *descendants: str) -> Traversable: - """Return Traversable resolved with any descendants applied. - Each descendant should be a path segment relative to self - and each may contain multiple levels separated by - ``posixpath.sep`` (``/``). - """ - else: - @abstractmethod - def joinpath(self, child: str, /) -> Traversable: - """Return Traversable resolved with any descendants applied. + @abstractmethod + def joinpath(self, *descendants: str) -> Traversable: + """Return Traversable resolved with any descendants applied. - Each descendant should be a path segment relative to self - and each may contain multiple levels separated by - ``posixpath.sep`` (``/``). - """ + Each descendant should be a path segment relative to self + and each may contain multiple levels separated by + ``posixpath.sep`` (``/``). + """ # The documentation and runtime protocol allows *args, **kwargs arguments, # but this would mean that all implementers would have to support them, # which is not the case. @@ -101,13 +85,9 @@ if sys.version_info >= (3, 11): @abstractmethod def name(self) -> str: """The base name of this object without any parent references.""" - if sys.version_info >= (3, 10): - def __truediv__(self, child: str, /) -> Traversable: - """Return Traversable child in self""" - else: - @abstractmethod - def __truediv__(self, child: str, /) -> Traversable: - """Return Traversable child in self""" + + def __truediv__(self, child: str, /) -> Traversable: + """Return Traversable child in self""" @abstractmethod def read_bytes(self) -> bytes: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/simple.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/simple.pyi index 15ab5872db..2ab607fb53 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/simple.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/resources/simple.pyi @@ -1,5 +1,4 @@ """ - Interface adapters for low-level readers. """ @@ -73,13 +72,7 @@ if sys.version_info >= (3, 11): def iterdir(self) -> Iterator[ResourceHandle | ResourceContainer]: ... def open(self, *args: Never, **kwargs: Never) -> NoReturn: ... # type: ignore[override] if sys.version_info < (3, 12): - def joinpath(self, *descendants: str) -> Traversable: - """Return Traversable resolved with any descendants applied. - - Each descendant should be a path segment relative to self - and each may contain multiple levels separated by - ``posixpath.sep`` (``/``). - """ + def joinpath(self, *descendants: str) -> Traversable: ... class TraversableReader(TraversableResources, SimpleReader, metaclass=abc.ABCMeta): """A TraversableResources based on SimpleReader. Resource providers diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/simple.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/simple.pyi index c8a78d3dbe..4c6f230844 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/simple.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/simple.pyi @@ -1,5 +1,4 @@ """ - Compatibility shim for .resources.simple as found on Python 3.10. Consumers that can rely on Python 3.11 should use the other diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/util.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/util.pyi index b92f591585..839e3184a6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/importlib/util.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/importlib/util.pyi @@ -1,6 +1,4 @@ -""" -Utility code for constructing importers, etc. -""" +"""Utility code for constructing importers, etc.""" import importlib.machinery import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/inspect.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/inspect.pyi index 9e21a229f2..c7e4960d4a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/inspect.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/inspect.pyi @@ -1,5 +1,4 @@ -""" -Get useful information from live Python objects. +"""Get useful information from live Python objects. This module encapsulates the interface provided by the internal special attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion. @@ -718,11 +717,6 @@ class Signature: signature will try to fit into the *max_width*. If signature is longer than *max_width*, all parameters will be on separate lines. - - If *quote_annotation_strings* is False, annotations - in the signature are displayed without opening and closing quotation - marks. This is useful when the signature was created with the - STRING format or when ``from __future__ import annotations`` was used. """ def __eq__(self, other: object) -> bool: ... @@ -1119,6 +1113,7 @@ def unwrap(func: Callable[..., Any], *, stop: Callable[[Callable[..., Any]], Any chain has a ``__signature__`` attribute defined. :exc:`ValueError` is raised if a cycle is encountered. + """ # diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/io.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/io.pyi index 0b70621594..34366c036f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/io.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/io.pyi @@ -1,5 +1,4 @@ -""" -The io module provides the Python interfaces to stream handling. The +"""The io module provides the Python interfaces to stream handling. The builtin open function is defined in this module. At the top of the I/O hierarchy is the abstract base class IOBase. It diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/ipaddress.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/ipaddress.pyi index 0924d38d14..ce9fe4bc15 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/ipaddress.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/ipaddress.pyi @@ -1,8 +1,8 @@ -""" -A fast, lightweight IPv4/IPv6 manipulation library in Python. +"""A fast, lightweight IPv4/IPv6 manipulation library in Python. This library is used to create/poke/manipulate IPv4 and IPv6 addresses and networks. + """ import sys @@ -401,40 +401,9 @@ class _BaseV4: max_prefixlen: Final = 32 else: @property - def version(self) -> Literal[4]: - """int([x]) -> integer - int(x, base=10) -> integer - - Convert a number or string to an integer, or return 0 if no arguments - are given. If x is a number, return x.__int__(). For floating-point - numbers, this truncates towards zero. - - If x is not a number or if base is given, then x must be a string, - bytes, or bytearray instance representing an integer literal in the - given base. The literal can be preceded by '+' or '-' and be surrounded - by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. - Base 0 means to interpret the base from the string as an integer literal. - >>> int('0b100', base=0) - 4 - """ - + def version(self) -> Literal[4]: ... @property - def max_prefixlen(self) -> Literal[32]: - """int([x]) -> integer - int(x, base=10) -> integer - - Convert a number or string to an integer, or return 0 if no arguments - are given. If x is a number, return x.__int__(). For floating-point - numbers, this truncates towards zero. - - If x is not a number or if base is given, then x must be a string, - bytes, or bytearray instance representing an integer literal in the - given base. The literal can be preceded by '+' or '-' and be surrounded - by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. - Base 0 means to interpret the base from the string as an integer literal. - >>> int('0b100', base=0) - 4 - """ + def max_prefixlen(self) -> Literal[32]: ... class IPv4Address(_BaseV4, _BaseAddress): """Represent and manipulate single IPv4 Addresses.""" @@ -616,40 +585,9 @@ class _BaseV6: max_prefixlen: Final = 128 else: @property - def version(self) -> Literal[6]: - """int([x]) -> integer - int(x, base=10) -> integer - - Convert a number or string to an integer, or return 0 if no arguments - are given. If x is a number, return x.__int__(). For floating-point - numbers, this truncates towards zero. - - If x is not a number or if base is given, then x must be a string, - bytes, or bytearray instance representing an integer literal in the - given base. The literal can be preceded by '+' or '-' and be surrounded - by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. - Base 0 means to interpret the base from the string as an integer literal. - >>> int('0b100', base=0) - 4 - """ - + def version(self) -> Literal[6]: ... @property - def max_prefixlen(self) -> Literal[128]: - """int([x]) -> integer - int(x, base=10) -> integer - - Convert a number or string to an integer, or return 0 if no arguments - are given. If x is a number, return x.__int__(). For floating-point - numbers, this truncates towards zero. - - If x is not a number or if base is given, then x must be a string, - bytes, or bytearray instance representing an integer literal in the - given base. The literal can be preceded by '+' or '-' and be surrounded - by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. - Base 0 means to interpret the base from the string as an integer literal. - >>> int('0b100', base=0) - 4 - """ + def max_prefixlen(self) -> Literal[128]: ... class IPv6Address(_BaseV6, _BaseAddress): """Represent and manipulate single IPv6 Addresses.""" diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/itertools.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/itertools.pyi index c196950715..453ec01c94 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/itertools.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/itertools.pyi @@ -1,5 +1,4 @@ -""" -Functional tools for creating and using iterators. +"""Functional tools for creating and using iterators. Infinite iterators: count(start=0, step=1) --> start, start+step, start+2*step, ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/json/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/json/__init__.pyi index fd0fc27da9..0716146683 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/json/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/json/__init__.pyi @@ -1,5 +1,4 @@ -""" -JSON (JavaScript Object Notation) is a subset of +"""JSON (JavaScript Object Notation) is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/json/decoder.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/json/decoder.pyi index e1f898f2d7..dc31823aac 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/json/decoder.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/json/decoder.pyi @@ -1,6 +1,4 @@ -""" -Implementation of JSONDecoder -""" +"""Implementation of JSONDecoder""" from collections.abc import Callable from typing import Any diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/json/encoder.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/json/encoder.pyi index 7652045282..86b93864fe 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/json/encoder.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/json/encoder.pyi @@ -1,6 +1,4 @@ -""" -Implementation of JSONEncoder -""" +"""Implementation of JSONEncoder""" from collections.abc import Callable, Iterator from re import Pattern diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/json/scanner.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/json/scanner.pyi index ff75423c01..ea8f53c47c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/json/scanner.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/json/scanner.pyi @@ -1,6 +1,4 @@ -""" -JSON token scanner -""" +"""JSON token scanner""" from _json import make_scanner as make_scanner from re import Pattern diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/json/tool.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/json/tool.pyi index 7e7363e797..1ca4f2ec30 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/json/tool.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/json/tool.pyi @@ -1 +1,7 @@ +"""Command-line tool to validate and pretty-print JSON + +See `json.__main__` for a usage example (invocation as +`python -m json.tool` is supported for backwards compatibility). +""" + def main() -> None: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/keyword.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/keyword.pyi index 4e0f3023dd..dde44c3fe1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/keyword.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/keyword.pyi @@ -1,5 +1,4 @@ -""" -Keywords (from "Grammar/python.gram") +"""Keywords (from "Grammar/python.gram") This file is automatically generated; please don't muck it up! diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/btm_matcher.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/btm_matcher.pyi index 1c7797dd51..5f2b10c0dd 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/btm_matcher.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/btm_matcher.pyi @@ -1,5 +1,4 @@ -""" -A bottom-up tree matching algorithm implementation meant to speed +"""A bottom-up tree matching algorithm implementation meant to speed up 2to3's matching process. After the tree patterns are reduced to their rarest linear path, a linear Aho-Corasick automaton is created. The linear automaton traverses the linear paths from the diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixer_base.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixer_base.pyi index 361b55eb08..95baa2bef0 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixer_base.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixer_base.pyi @@ -1,6 +1,4 @@ -""" -Base class for fixers (optional, but recommended). -""" +"""Base class for fixers (optional, but recommended).""" from _typeshed import Incomplete, StrPath from abc import ABCMeta, abstractmethod diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi index 76456618c2..2ce199a27a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi @@ -1,5 +1,4 @@ -""" -Fixer for apply(). +"""Fixer for apply(). This converts apply(func, v, k) into (func)(*v, **k). """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi index 978bca36a8..ce79d93f4e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi @@ -1,6 +1,4 @@ -""" -Fixer that replaces deprecated unittest method names. -""" +"""Fixer that replaces deprecated unittest method names.""" from typing import ClassVar, Final, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi index fb9a495093..49c66c877d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi @@ -1,6 +1,4 @@ -""" -Fixer for basestring -> str. -""" +"""Fixer for basestring -> str.""" from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi index 5b3ae95008..bc798b5ac7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi @@ -1,6 +1,4 @@ -""" -Fixer that changes buffer(...) into memoryview(...). -""" +"""Fixer that changes buffer(...) into memoryview(...).""" from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi index a937bc0994..3cc91c5569 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi @@ -1,5 +1,4 @@ -""" -Fixer for dict methods. +"""Fixer for dict methods. d.keys() -> list(d.keys()) d.items() -> list(d.items()) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_except.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_except.pyi index 7a2514d0ad..5d12137d55 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_except.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_except.pyi @@ -1,5 +1,4 @@ -""" -Fixer for except statements with named exceptions. +"""Fixer for except statements with named exceptions. The following cases will be converted: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi index d5571196f6..b8a77be440 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi @@ -1,5 +1,4 @@ -""" -Fixer for exec. +"""Fixer for exec. This converts usages of the exec statement into calls to a built-in exec() function. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi index b6a6232260..9d77b2d8db 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi @@ -1,5 +1,4 @@ -""" -Fixer for execfile. +"""Fixer for execfile. This converts usages of the execfile function into calls to the built-in exec() function. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi index 6403ada4ac..b0cd78d8fe 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi @@ -1,5 +1,4 @@ """ - Convert use of sys.exitfunc to use the atexit module. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi index 88a45fc28c..ef5907daac 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi @@ -1,5 +1,4 @@ -""" -Fixer that changes filter(F, X) into list(filter(F, X)). +"""Fixer that changes filter(F, X) into list(filter(F, X)). We avoid the transformation if the filter() call is directly contained in iter(<>), list(<>), tuple(<>), sorted(<>), ...join(<>), or diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi index 6f964e4adc..f9d236bd0f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi @@ -1,6 +1,4 @@ -""" -Fix function attribute names (f.func_x -> f.__x__). -""" +"""Fix function attribute names (f.func_x -> f.__x__).""" from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_future.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_future.pyi index 18cba07ffd..bf23287d81 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_future.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_future.pyi @@ -1,5 +1,4 @@ -""" -Remove __future__ imports +"""Remove __future__ imports from __future__ import foo is replaced with an empty line. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi index d575746fe2..fb20d47718 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi @@ -1,5 +1,4 @@ """ - Fixer that changes os.getcwdu() to os.getcwd(). """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi index 0da3fe416b..1323b5209d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi @@ -1,5 +1,4 @@ -""" -Fixer for has_key(). +"""Fixer for has_key(). Calls to .has_key() methods are expressed in terms of the 'in' operator: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi index 70d59d255a..a654a002d4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi @@ -1,5 +1,4 @@ -""" -Adjust some old Python 2 idioms to their modern counterparts. +"""Adjust some old Python 2 idioms to their modern counterparts. * Change some type comparisons to isinstance() calls: type(x) == T -> isinstance(x, T) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_import.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_import.pyi index d3779413fd..bb89d8e595 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_import.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_import.pyi @@ -1,5 +1,4 @@ -""" -Fixer for import statements. +"""Fixer for import statements. If spam is being imported from the local directory, this import: from spam import eggs Becomes: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi index 0b067be71c..4aa8734f15 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi @@ -1,6 +1,4 @@ -""" -Fix incompatible imports and module references. -""" +"""Fix incompatible imports and module references.""" from _typeshed import StrPath from collections.abc import Generator diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi index 2ed569aedf..dba1376bed 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi @@ -1,5 +1,4 @@ -""" -Fix incompatible imports and module references that must be fixed after +"""Fix incompatible imports and module references that must be fixed after fix_imports. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_input.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_input.pyi index c11dec6b4b..1105e93218 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_input.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_input.pyi @@ -1,6 +1,4 @@ -""" -Fixer that changes input(...) into eval(input(...)). -""" +"""Fixer that changes input(...) into eval(input(...)).""" from _typeshed import Incomplete from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi index fb714a7e27..4808fe189d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi @@ -1,5 +1,4 @@ -""" -Fixer for intern(). +"""Fixer for intern(). intern(s) -> sys.intern(s) """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi index ed85a7e217..7d236eef8d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi @@ -1,5 +1,4 @@ -""" -Fixer that cleans up a tuple argument to isinstance after the tokens +"""Fixer that cleans up a tuple argument to isinstance after the tokens in it were fixed. This is mainly used to remove double occurrences of tokens as a leftover of the long -> int / unicode -> str conversion. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi index bfdcfe13b8..2bba3174b7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi @@ -1,11 +1,10 @@ -""" -Fixer for itertools.(imap|ifilter|izip) --> (map|filter|zip) and - itertools.ifilterfalse --> itertools.filterfalse (bugs 2360-2363) +"""Fixer for itertools.(imap|ifilter|izip) --> (map|filter|zip) and +itertools.ifilterfalse --> itertools.filterfalse (bugs 2360-2363) - imports from itertools are fixed in fix_itertools_import.py +imports from itertools are fixed in fix_itertools_import.py - If itertools is imported as something else (ie: import itertools as it; - it.izip(spam, eggs)) method calls will not get fixed. +If itertools is imported as something else (ie: import itertools as it; +it.izip(spam, eggs)) method calls will not get fixed. """ from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi index 2a319540f5..554f71d74f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi @@ -1,6 +1,4 @@ -""" -Fixer for imports of itertools.(imap|ifilter|izip|ifilterfalse) -""" +"""Fixer for imports of itertools.(imap|ifilter|izip|ifilterfalse)""" from lib2to3 import fixer_base from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_long.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_long.pyi index 0fbe0090fd..5b4e0002ec 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_long.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_long.pyi @@ -1,6 +1,4 @@ -""" -Fixer that turns 'long' into 'int' everywhere. -""" +"""Fixer that turns 'long' into 'int' everywhere.""" from lib2to3 import fixer_base from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_map.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_map.pyi index 7543f6dded..866c5dc8b3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_map.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_map.pyi @@ -1,5 +1,4 @@ -""" -Fixer that changes map(F, ...) into list(map(F, ...)) unless there +"""Fixer that changes map(F, ...) into list(map(F, ...)) unless there exists a 'from future_builtins import map' statement in the top-level namespace. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi index 24aab4a020..70ced90db3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi @@ -1,19 +1,19 @@ -""" -Fixer for __metaclass__ = X -> (metaclass=X) methods. +"""Fixer for __metaclass__ = X -> (metaclass=X) methods. - The various forms of classef (inherits nothing, inherits once, inherits - many) don't parse the same in the CST so we look at ALL classes for - a __metaclass__ and if we find one normalize the inherits to all be - an arglist. +The various forms of classef (inherits nothing, inherits once, inherits +many) don't parse the same in the CST so we look at ALL classes for +a __metaclass__ and if we find one normalize the inherits to all be +an arglist. - For one-liner classes ('class X: pass') there is no indent/dedent so - we normalize those into having a suite. +For one-liner classes ('class X: pass') there is no indent/dedent so +we normalize those into having a suite. - Moving the __metaclass__ into the classdef can also cause the class - body to be empty so there is some special casing for that as well. +Moving the __metaclass__ into the classdef can also cause the class +body to be empty so there is some special casing for that as well. + +This fixer also tries very hard to keep original indenting and spacing +in all those corner cases. - This fixer also tries very hard to keep original indenting and spacing - in all those corner cases. """ from collections.abc import Generator diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi index 9f738d0b36..b886514c16 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi @@ -1,6 +1,4 @@ -""" -Fix bound method attributes (method.im_? -> method.__?__). -""" +"""Fix bound method attributes (method.im_? -> method.__?__).""" from typing import ClassVar, Final, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi index 79fac3eff1..0e85174028 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi @@ -1,6 +1,4 @@ -""" -Fixer that turns <> into !=. -""" +"""Fixer that turns <> into !=.""" from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_next.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_next.pyi index 3c14d11ad3..87a4d61e79 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_next.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_next.pyi @@ -1,6 +1,4 @@ -""" -Fixer for it.next() -> next(it), per PEP 3114. -""" +"""Fixer for it.next() -> next(it), per PEP 3114.""" from _typeshed import StrPath from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi index 0f34b61f30..60bd7dffba 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi @@ -1,6 +1,4 @@ -""" -Fixer for __nonzero__ -> __bool__ methods. -""" +"""Fixer for __nonzero__ -> __bool__ methods.""" from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi index c591a4902f..71dc901619 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi @@ -1,6 +1,4 @@ -""" -Fixer that turns 1L into 1, 0755 into 0o755. -""" +"""Fixer that turns 1L into 1, 0755 into 0o755.""" from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi index c30d7a2b55..08750a9689 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi @@ -1,5 +1,4 @@ -""" -Fixer for operator functions. +"""Fixer for operator functions. operator.isCallable(obj) -> callable(obj) operator.sequenceIncludes(obj) -> operator.contains(obj) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi index af4a6af625..ba7f01a849 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi @@ -1,5 +1,4 @@ -""" -Fixer that adds parentheses where they are required +"""Fixer that adds parentheses where they are required This converts ``[x for x in 1, 2]`` to ``[x for x in (1, 2)]``. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_print.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_print.pyi index f89397db86..1d6a8c661a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_print.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_print.pyi @@ -1,5 +1,4 @@ -""" -Fixer for print. +"""Fixer for print. Change: 'print' into 'print()' @@ -8,6 +7,7 @@ Change: 'print >>x, ...' into 'print(..., file=x)' No changes are applied if print_function is imported from __future__ + """ from _typeshed import Incomplete diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi index 0073338372..d5fa6461e6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi @@ -1,5 +1,4 @@ -""" -Fixer for 'raise E, V, T' +"""Fixer for 'raise E, V, T' raise -> raise raise E -> raise E diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi index 7162119774..717649bf41 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi @@ -1,6 +1,4 @@ -""" -Fixer that changes raw_input(...) into input(...). -""" +"""Fixer that changes raw_input(...) into input(...).""" from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi index a3ab9368c6..24a992749e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi @@ -1,5 +1,4 @@ -""" -Fixer for reduce(). +"""Fixer for reduce(). Makes sure reduce() is imported from the functools module if reduce is used in that module. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi index 9bed9ead93..23f9853331 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi @@ -1,5 +1,4 @@ -""" -Fixer for reload(). +"""Fixer for reload(). reload(s) -> importlib.reload(s) """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi index 771821c31b..ff1d30d77b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi @@ -1,5 +1,4 @@ -""" -Fix incompatible renames +"""Fix incompatible renames Fixes: * sys.maxint -> sys.maxsize diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi index 3b6dbcbdc1..84569e3985 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi @@ -1,6 +1,4 @@ -""" -Fixer that transforms `xyzzy` into repr(xyzzy). -""" +"""Fixer that transforms `xyzzy` into repr(xyzzy).""" from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi index abe1b5b534..eb550907de 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi @@ -1,5 +1,4 @@ """ - Optional fixer to transform set() calls to set literals. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi index 6a0952d900..adb75ffcc3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi @@ -1,6 +1,4 @@ -""" -Fixer for StandardError -> Exception. -""" +"""Fixer for StandardError -> Exception.""" from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi index 7fd2e6c318..7797fbae94 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi @@ -1,5 +1,4 @@ -""" -Fixer for sys.exc_{type, value, traceback} +"""Fixer for sys.exc_{type, value, traceback} sys.exc_type -> sys.exc_info()[0] sys.exc_value -> sys.exc_info()[1] diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi index bdd87b9e54..63291df410 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi @@ -1,5 +1,4 @@ -""" -Fixer for generator.throw(E, V, T). +"""Fixer for generator.throw(E, V, T). g.throw(E) -> g.throw(E) g.throw(E, V) -> g.throw(E(V)) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi index 5a3525bccb..f61837d19d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi @@ -1,5 +1,4 @@ -""" -Fixer for function definitions with tuple parameters. +"""Fixer for function definitions with tuple parameters. def func(((a, b), c), d): ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_types.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_types.pyi index fb621801c7..ea9f88f8fe 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_types.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_types.pyi @@ -1,5 +1,4 @@ -""" -Fixer for removing uses of the types module. +"""Fixer for removing uses of the types module. These work for only the known names in the types module. The forms above can include types. or not. ie, It is assumed the module is imported either as: @@ -14,6 +13,7 @@ There should be another fixer that handles at least the following constants: type([]) -> list type(()) -> tuple type('') -> str + """ from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi index 1bc97674a1..2a4d1e9ced 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi @@ -1,11 +1,11 @@ -""" -Fixer for unicode. +"""Fixer for unicode. * Changes unicode to str and unichr to chr. * If "...\\u..." is not unicode literal change it into "...\\\\u...". * Change u"..." into "...". + """ from _typeshed import StrPath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi index f789cd3c8f..214350c28e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi @@ -1,7 +1,6 @@ -""" -Fix changes imports of urllib which are now incompatible. - This is rather similar to fix_imports, but because of the more - complex nature of the fixing for urllib, it has its own fixer. +"""Fix changes imports of urllib which are now incompatible. +This is rather similar to fix_imports, but because of the more +complex nature of the fixing for urllib, it has its own fixer. """ from collections.abc import Generator diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi index ebef1bc15d..43db27641f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi @@ -1,8 +1,8 @@ -""" -Fixer that changes 'a ,b' into 'a, b'. +"""Fixer that changes 'a ,b' into 'a, b'. This also changes '{a :b}' into '{a: b}', but does not touch other uses of colons. It does not touch other uses of whitespace. + """ from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi index daf0d1fa14..aa87720f33 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi @@ -1,6 +1,4 @@ -""" -Fixer that changes xrange(...) into range(...). -""" +"""Fixer that changes xrange(...) into range(...).""" from _typeshed import Incomplete, StrPath from typing import ClassVar, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi index 52ef7a2ed8..d48c2ef460 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi @@ -1,5 +1,4 @@ -""" -Fix "for x in f.xreadlines()" -> "for x in f". +"""Fix "for x in f.xreadlines()" -> "for x in f". This fixer will also convert g(f.xreadlines) into g(f.__iter__). """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi index aae26e74c5..06a30dd1be 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi @@ -1,5 +1,4 @@ """ - Fixer that changes zip(seq0, seq1, ...) into list(zip(seq0, seq1, ...) unless there exists a 'from future_builtins import zip' statement in the top-level namespace. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/main.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/main.pyi index 85e700e854..1912aca72f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/main.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/main.pyi @@ -1,5 +1,4 @@ """ - Main program for 2to3. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/__init__.pyi index bf4c232857..8a246f1044 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/__init__.pyi @@ -1,6 +1,4 @@ -""" -The pgen2 package. -""" +"""The pgen2 package.""" from collections.abc import Callable from typing import Any diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/driver.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/driver.pyi index c5dbc14feb..957375a0bc 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/driver.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/driver.pyi @@ -1,7 +1,7 @@ -""" -Parser driver. +"""Parser driver. This provides a high-level interface to parse a file into a syntax tree. + """ from _typeshed import StrPath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/grammar.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/grammar.pyi index dbe2313e1e..7cd50198e5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/grammar.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/grammar.pyi @@ -1,5 +1,4 @@ -""" -This module defines the data structures used to represent a grammar. +"""This module defines the data structures used to represent a grammar. These are a bit arcane because they are derived from the data structures used by Python's 'pgen' parser generator. @@ -7,6 +6,7 @@ structures used by Python's 'pgen' parser generator. There's also a table here mapping operators to their names in the token module; the Python tokenize module reports all operators as the fallback token code OP, but the parser needs the actual token code. + """ from _typeshed import StrPath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/literals.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/literals.pyi index daf0d6e5a1..9b991d20e4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/literals.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/literals.pyi @@ -1,6 +1,4 @@ -""" -Safely evaluate Python string literals without using eval(). -""" +"""Safely evaluate Python string literals without using eval().""" from re import Match diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/parse.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/parse.pyi index 86c131ec50..b36641f554 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/parse.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/parse.pyi @@ -1,10 +1,10 @@ -""" -Parser engine for the grammar tables generated by pgen. +"""Parser engine for the grammar tables generated by pgen. The grammar table must be loaded first. See Parser/parser.c in the Python distribution for additional info on how this parsing engine works. + """ from _typeshed import Incomplete diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/token.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/token.pyi index 26620582fe..e465beca20 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/token.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/token.pyi @@ -1,6 +1,4 @@ -""" -Token constants (from "token.h"). -""" +"""Token constants (from "token.h").""" from typing import Final diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi index d6447fd872..bc7cfe9193 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi @@ -1,5 +1,4 @@ -""" -Tokenization help for Python programs. +"""Tokenization help for Python programs. generate_tokens(readline) is a generator that breaks a stream of text into Python tokens. It accepts a readline-like method which is called diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pygram.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pygram.pyi index d0724c2237..1f43c10e7b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pygram.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pygram.pyi @@ -1,6 +1,4 @@ -""" -Export the Python grammar and symbols. -""" +"""Export the Python grammar and symbols.""" from .pgen2.grammar import Grammar diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pytree.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pytree.pyi index 1d1482fa25..0d348566bf 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pytree.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/pytree.pyi @@ -1,5 +1,4 @@ """ - Python parse tree definitions. This is a very concrete parse tree; we need to keep every token and diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/refactor.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/refactor.pyi index 8fc075912f..2bc4725c31 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/refactor.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lib2to3/refactor.pyi @@ -1,5 +1,4 @@ -""" -Refactoring framework. +"""Refactoring framework. Used as a main program, this can refactor any number of files and/or recursively descend down directories. Imported as a module, this diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/linecache.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/linecache.pyi index e8790e1eab..368ce1b044 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/linecache.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/linecache.pyi @@ -1,5 +1,4 @@ -""" -Cache lines from Python source files. +"""Cache lines from Python source files. This is intended to read lines from modules imported -- hence if a filename is not found, it will look down the module search path for a file by diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/locale.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/locale.pyi index 82adc4546b..f4cf197498 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/locale.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/locale.pyi @@ -1,5 +1,4 @@ -""" -Locale support module. +"""Locale support module. The module provides low-level access to the C lib's locale APIs and adds high level number formatting APIs as well as a locale aliasing engine to complement @@ -8,6 +7,7 @@ these. The aliasing engine includes support for many commonly used locale names and maps them to values suitable for passing to the C lib's setlocale() function. It also includes default encodings for all supported locale names. + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/logging/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/logging/__init__.pyi index ba20f2dbf0..ef10f345d3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/logging/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/logging/__init__.pyi @@ -1,5 +1,4 @@ """ - Logging package for Python. Based on PEP 282 and comments thereto in comp.lang.python. @@ -139,25 +138,12 @@ class Filterer: """Determine if a record is loggable by consulting all the filters. The default is to allow the record to be logged; any filter can veto - this by returning a false value. - If a filter attached to a handler returns a log record instance, - then that instance is used in place of the original log record in - any further processing of the event by that handler. - If a filter returns any other true value, the original log record - is used in any further processing of the event by that handler. - - If none of the filters return false values, this method returns - a log record. - If any of the filters return a false value, this method returns - a false value. + this and the record is then dropped. Returns a zero value if a record + is to be dropped, else non-zero. .. versionchanged:: 3.2 Allow filters to be just callables. - - .. versionchanged:: 3.12 - Allow filters to return a LogRecord instead of - modifying it in place. """ class Manager: # undocumented @@ -852,16 +838,6 @@ class LoggerAdapter(Generic[_L]): following example: adapter = LoggerAdapter(someLogger, dict(p1=v1, p2="v2")) - - By default, LoggerAdapter objects will drop the "extra" argument - passed on the individual log calls to use its own instead. - - Initializing it with merge_extra=True will instead merge both - maps when logging, the individual call extra taking precedence - over the LoggerAdapter instance extra - - .. versionchanged:: 3.13 - The *merge_extra* argument was added. """ else: def __init__(self, logger: _L, extra: Mapping[str, object]) -> None: @@ -873,16 +849,6 @@ class LoggerAdapter(Generic[_L]): following example: adapter = LoggerAdapter(someLogger, dict(p1=v1, p2="v2")) - - By default, LoggerAdapter objects will drop the "extra" argument - passed on the individual log calls to use its own instead. - - Initializing it with merge_extra=True will instead merge both - maps when logging, the individual call extra taking precedence - over the LoggerAdapter instance extra - - .. versionchanged:: 3.13 - The *merge_extra* argument was added. """ if sys.version_info >= (3, 10): extra: Mapping[str, object] | None diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/logging/config.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/logging/config.pyi index a077d1de8a..bcc1846189 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/logging/config.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/logging/config.pyi @@ -1,5 +1,4 @@ """ - Configuration functions for the logging package for Python. The core package is based on PEP 282 and comments thereto in comp.lang.python, and influenced by Apache's log4j system. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/logging/handlers.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/logging/handlers.pyi index 27b39c7ac5..075832a21e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/logging/handlers.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/logging/handlers.pyi @@ -1,5 +1,4 @@ """ - Additional handlers for the logging package for Python. The core package is based on PEP 282 and comments thereto in comp.lang.python. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/lzma.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/lzma.pyi index 1b2586366d..927c76c55f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/lzma.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/lzma.pyi @@ -1,5 +1,4 @@ -""" -Interface to the liblzma compression library. +"""Interface to the liblzma compression library. This module provides a class for reading and writing compressed files, classes for incremental (de)compression, and convenience functions for diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/mailbox.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/mailbox.pyi index 98312ce3c4..ef31fcf83d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/mailbox.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/mailbox.pyi @@ -1,6 +1,4 @@ -""" -Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes. -""" +"""Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes.""" import email.message import io diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/mailcap.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/mailcap.pyi index 107ee54559..403aaa4ae5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/mailcap.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/mailcap.pyi @@ -1,6 +1,4 @@ -""" -Mailcap file handling. See RFC 1524. -""" +"""Mailcap file handling. See RFC 1524.""" from collections.abc import Mapping, Sequence from typing_extensions import TypeAlias diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/marshal.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/marshal.pyi index 03235042eb..760ed43735 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/marshal.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/marshal.pyi @@ -1,5 +1,4 @@ -""" -This module contains functions that can read and write Python values in +"""This module contains functions that can read and write Python values in a binary format. The format is specific to Python, but independent of machine architecture issues. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/math.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/math.pyi index 2965976b62..a1d0d7a060 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/math.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/math.pyi @@ -1,5 +1,4 @@ -""" -This module provides access to the mathematical functions +"""This module provides access to the mathematical functions defined by the C standard. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/mimetypes.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/mimetypes.pyi index 6b7dd06db0..9c02ef733a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/mimetypes.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/mimetypes.pyi @@ -1,5 +1,4 @@ -""" -Guess the MIME type of a file. +"""Guess the MIME type of a file. This module defines two useful functions: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/modulefinder.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/modulefinder.pyi index e7f733bbec..692cb04850 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/modulefinder.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/modulefinder.pyi @@ -1,6 +1,4 @@ -""" -Find modules used by a script, using introspection. -""" +"""Find modules used by a script, using introspection.""" import sys from collections.abc import Container, Iterable, Iterator, Sequence diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/multiprocessing/shared_memory.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/multiprocessing/shared_memory.pyi index 470f48d39b..4f0097e06b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/multiprocessing/shared_memory.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/multiprocessing/shared_memory.pyi @@ -1,5 +1,4 @@ -""" -Provides shared memory for direct access across processes. +"""Provides shared memory for direct access across processes. The API of this package is currently provisional. Refer to the documentation for details. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/netrc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/netrc.pyi index cd68e9a1ce..e7aa5955b8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/netrc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/netrc.pyi @@ -1,6 +1,4 @@ -""" -An object-oriented interface to .netrc files. -""" +"""An object-oriented interface to .netrc files.""" import sys from _typeshed import StrOrBytesPath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/nis.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/nis.pyi index 4b5882cb9d..699a0ff4e0 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/nis.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/nis.pyi @@ -1,6 +1,4 @@ -""" -This module contains functions for accessing NIS maps. -""" +"""This module contains functions for accessing NIS maps.""" import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/nntplib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/nntplib.pyi index 8987e40c3a..67e82dec00 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/nntplib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/nntplib.pyi @@ -1,5 +1,4 @@ -""" -An NNTP client class based on: +"""An NNTP client class based on: - RFC 977: Network News Transfer Protocol - RFC 2980: Common NNTP Extensions - RFC 3977: Network News Transfer Protocol (version 2) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/nt.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/nt.pyi index af6e62aabd..8d2eee0183 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/nt.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/nt.pyi @@ -1,5 +1,4 @@ -""" -This module provides access to operating system functionality that is +"""This module provides access to operating system functionality that is standardized by the C Standard and the POSIX standard (a thinly disguised Unix interface). Refer to the library manual and corresponding Unix manual entries for more information on calls. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/ntpath.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/ntpath.pyi index d308340865..337fbe46c8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/ntpath.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/ntpath.pyi @@ -1,5 +1,4 @@ -""" -Common pathname manipulations, WindowsNT/95 version. +"""Common pathname manipulations, WindowsNT/95 version. Instead of importing this module directly, import os and refer to this module as os.path. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/nturl2path.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/nturl2path.pyi index b954810abf..ff01fc19c8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/nturl2path.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/nturl2path.pyi @@ -1,5 +1,4 @@ -""" -Convert a NT pathname to a file URL and vice versa. +"""Convert a NT pathname to a file URL and vice versa. This module only exists to provide OS-specific code for urllib.requests, thus do not use directly. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/numbers.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/numbers.pyi index fd89f33111..ae3aeedb59 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/numbers.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/numbers.pyi @@ -1,5 +1,4 @@ -""" -Abstract Base Classes (ABCs) for numbers, according to PEP 3141. +"""Abstract Base Classes (ABCs) for numbers, according to PEP 3141. TODO: Fill out more detailed documentation on the operators. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/opcode.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/opcode.pyi index 42a1c181a0..3afb98232d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/opcode.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/opcode.pyi @@ -1,5 +1,4 @@ """ - opcode module - potentially shared between dis and other modules which operate on bytecodes (e.g. peephole optimizers). """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/operator.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/operator.pyi index ad6b3bb9c3..790288021b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/operator.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/operator.pyi @@ -1,5 +1,4 @@ -""" -Operator interface. +"""Operator interface. This module exports a set of functions implemented in C corresponding to the intrinsic operators of Python. For example, operator.add(x, y) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/optparse.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/optparse.pyi index 7c7b46000c..2b72698ddd 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/optparse.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/optparse.pyi @@ -1,5 +1,4 @@ -""" -A powerful, extensible, and easy-to-use option parser. +"""A powerful, extensible, and easy-to-use option parser. By Greg Ward diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/os/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/os/__init__.pyi index 252792d7da..8684b80b38 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/os/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/os/__init__.pyi @@ -1,5 +1,4 @@ -""" -OS routines for NT or Posix depending on what system we're on. +"""OS routines for NT or Posix depending on what system we're on. This exports: - all functions from posix or nt, e.g. unlink, stat, etc. @@ -886,14 +885,20 @@ In the future, this property will contain the last metadata change time.""" """time of last change in nanoseconds""" if sys.platform == "win32": @property - def st_file_attributes(self) -> int: ... + def st_file_attributes(self) -> int: + """Windows file attribute bits""" + @property - def st_reparse_tag(self) -> int: ... + def st_reparse_tag(self) -> int: + """Windows reparse tag""" if sys.version_info >= (3, 12): @property - def st_birthtime(self) -> float: ... # time of file creation in seconds + def st_birthtime(self) -> float: # time of file creation in seconds + """time of creation""" + @property - def st_birthtime_ns(self) -> int: ... # time of file creation in nanoseconds + def st_birthtime_ns(self) -> int: # time of file creation in nanoseconds + """time of creation in nanoseconds""" else: @property def st_blocks(self) -> int: # number of blocks allocated for file @@ -911,12 +916,16 @@ In the future, this property will contain the last metadata change time.""" # On other Unix systems (such as FreeBSD), the following attributes may be # available (but may be only filled out if root tries to use them): @property - def st_gen(self) -> int: ... # file generation number + def st_gen(self) -> int: # file generation number + """generation number""" + @property - def st_birthtime(self) -> float: ... # time of file creation in seconds + def st_birthtime(self) -> float: # time of file creation in seconds + """time of creation""" if sys.platform == "darwin": @property - def st_flags(self) -> int: ... # user defined flags for file + def st_flags(self) -> int: # user defined flags for file + """user defined flags for file""" # Attributes documented as sometimes appearing, but deliberately omitted from the stub: `st_creator`, `st_rsize`, `st_type`. # See https://github.com/python/typeshed/pull/6560#issuecomment-991253327 @@ -935,17 +944,17 @@ class PathLike(ABC, Protocol[AnyStr_co]): # type: ignore[misc] # pyright: igno def listdir(path: StrPath | None = None) -> list[str]: """Return a list containing the names of the files in the directory. - path can be specified as either str, bytes, or a path-like object. If path is bytes, - the filenames returned will also be bytes; in all other circumstances - the filenames returned will be str. - If path is None, uses the path='.'. - On some platforms, path may also be specified as an open file descriptor;\\ - the file descriptor must refer to a directory. - If this functionality is unavailable, using it raises NotImplementedError. +path can be specified as either str, bytes, or a path-like object. If path is bytes, + the filenames returned will also be bytes; in all other circumstances + the filenames returned will be str. +If path is None, uses the path='.'. +On some platforms, path may also be specified as an open file descriptor;\\ + the file descriptor must refer to a directory. + If this functionality is unavailable, using it raises NotImplementedError. - The list is in arbitrary order. It does not include the special - entries '.' and '..' even if they are present in the directory. - """ +The list is in arbitrary order. It does not include the special +entries '.' and '..' even if they are present in the directory. +""" @overload def listdir(path: BytesPath) -> list[bytes]: ... @@ -1787,30 +1796,30 @@ if sys.platform != "win32": def chown(path: FileDescriptorOrPath, uid: int, gid: int, *, dir_fd: int | None = None, follow_symlinks: bool = True) -> None: """Change the owner and group id of path to the numeric uid and gid.\\ - path - Path to be examined; can be string, bytes, a path-like object, or open-file-descriptor int. - dir_fd - If not None, it should be a file descriptor open to a directory, - and path should be relative; path will then be relative to that - directory. - follow_symlinks - If False, and the last element of the path is a symbolic link, - stat will examine the symbolic link itself instead of the file - the link points to. + path + Path to be examined; can be string, bytes, a path-like object, or open-file-descriptor int. + dir_fd + If not None, it should be a file descriptor open to a directory, + and path should be relative; path will then be relative to that + directory. + follow_symlinks + If False, and the last element of the path is a symbolic link, + stat will examine the symbolic link itself instead of the file + the link points to. - path may always be specified as a string. - On some platforms, path may also be specified as an open file descriptor. - If this functionality is unavailable, using it raises an exception. - If dir_fd is not None, it should be a file descriptor open to a directory, - and path should be relative; path will then be relative to that directory. - If follow_symlinks is False, and the last element of the path is a symbolic - link, chown will modify the symbolic link itself instead of the file the - link points to. - It is an error to use dir_fd or follow_symlinks when specifying path as - an open file descriptor. - dir_fd and follow_symlinks may not be implemented on your platform. - If they are unavailable, using them will raise a NotImplementedError. - """ +path may always be specified as a string. +On some platforms, path may also be specified as an open file descriptor. + If this functionality is unavailable, using it raises an exception. +If dir_fd is not None, it should be a file descriptor open to a directory, + and path should be relative; path will then be relative to that directory. +If follow_symlinks is False, and the last element of the path is a symbolic + link, chown will modify the symbolic link itself instead of the file the + link points to. +It is an error to use dir_fd or follow_symlinks when specifying path as + an open file descriptor. +dir_fd and follow_symlinks may not be implemented on your platform. + If they are unavailable, using them will raise a NotImplementedError. +""" def lchown(path: StrOrBytesPath, uid: int, gid: int) -> None: """Change the owner and group id of path to the numeric uid and gid. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/os/path.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/os/path.pyi index 8531bd44f1..4ba2953ca2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/os/path.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/os/path.pyi @@ -1,5 +1,4 @@ -""" -Common operations on Posix pathnames. +"""Common operations on Posix pathnames. Instead of importing this module directly, import os and refer to this module as os.path. The "os.path" name is an alias for this diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/parser.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/parser.pyi index c9144926fd..0c616fefc9 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/parser.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/parser.pyi @@ -1,6 +1,4 @@ -""" -This is an interface to Python's internal parser. -""" +"""This is an interface to Python's internal parser.""" from _typeshed import StrOrBytesPath from collections.abc import Sequence diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pathlib/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pathlib/__init__.pyi index aac0ecc774..fe026e1ead 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pathlib/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pathlib/__init__.pyi @@ -1,5 +1,4 @@ -""" -Object-oriented filesystem paths. +"""Object-oriented filesystem paths. This module provides classes to represent abstract paths and concrete paths with operations that have semantics appropriate for different @@ -157,11 +156,7 @@ class PurePath(PathLike[str]): """ else: def match(self, path_pattern: str) -> bool: - """Return True if this path matches the given pattern. If the pattern is - relative, matching is done from the right; otherwise, the entire path - is matched. The recursive wildcard '**' is *not* supported by this - method. - """ + """Return True if this path matches the given pattern.""" if sys.version_info >= (3, 14): def relative_to(self, other: StrPath, *, walk_up: bool = False) -> Self: """Return the relative path to another path identified by the passed @@ -184,10 +179,7 @@ class PurePath(PathLike[str]): def relative_to(self, *other: StrPath) -> Self: """Return the relative path to another path identified by the passed arguments. If the operation is not possible (because this is not - related to the other path), raise ValueError. - - The *walk_up* parameter controls whether `..` may be used to resolve - the path. + a subpath of the other path), raise ValueError. """ def with_name(self, name: str) -> Self: @@ -344,11 +336,7 @@ class Path(PurePath): """ else: def exists(self) -> bool: - """Whether this path exists. - - This method normally follows symlinks; to check whether a symlink exists, - add the argument follow_symlinks=False. - """ + """Whether this path exists.""" def is_symlink(self) -> bool: """Whether this path is a symbolic link.""" @@ -504,7 +492,7 @@ class Path(PurePath): # On py312+, it works properly on Windows, as with all other platforms if sys.platform == "win32" and sys.version_info < (3, 12): def is_mount(self: Never) -> bool: # type: ignore[misc] - """Check if this path is a mount point""" + """Check if this path is a POSIX mount point""" else: def is_mount(self) -> bool: """Check if this path is a mount point""" @@ -616,9 +604,26 @@ class Path(PurePath): if sys.version_info < (3, 12): if sys.version_info >= (3, 10): @deprecated("Deprecated as of Python 3.10 and removed in Python 3.12. Use hardlink_to() instead.") - def link_to(self, target: StrOrBytesPath) -> None: ... + def link_to(self, target: StrOrBytesPath) -> None: + """Make the target path a hard link pointing to this path. + + Note this function does not make this path a hard link to *target*, + despite the implication of the function and argument names. The order + of arguments (target, link) is the reverse of Path.symlink_to, but + matches that of os.link. + + Deprecated since Python 3.10 and scheduled for removal in Python 3.12. + Use `hardlink_to()` instead. + """ else: - def link_to(self, target: StrOrBytesPath) -> None: ... + def link_to(self, target: StrOrBytesPath) -> None: + """Make the target path a hard link pointing to this path. + + Note this function does not make this path a hard link to *target*, + despite the implication of the function and argument names. The order + of arguments (target, link) is the reverse of Path.symlink_to, but + matches that of os.link. + """ if sys.version_info >= (3, 12): def walk( self, top_down: bool = ..., on_error: Callable[[OSError], object] | None = ..., follow_symlinks: bool = ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pathlib/types.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pathlib/types.pyi index 453000165f..f5419ed28c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pathlib/types.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pathlib/types.pyi @@ -1,5 +1,4 @@ """ - Protocols for supporting classes in pathlib. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pdb.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pdb.pyi index 0979de21dd..a8d81ead57 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pdb.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pdb.pyi @@ -1,5 +1,4 @@ """ - The Python Debugger Pdb ======================= @@ -491,12 +490,7 @@ class Pdb(Bdb, Cmd): readrc: bool = True, ) -> None: ... if sys.version_info >= (3, 14): - def set_trace(self, frame: FrameType | None = None, *, commands: Iterable[str] | None = None) -> None: - """Start debugging from frame. - - If frame is not specified, debugging starts from caller's frame. - """ - + def set_trace(self, frame: FrameType | None = None, *, commands: Iterable[str] | None = None) -> None: ... async def set_trace_async(self, frame: FrameType | None = None, *, commands: Iterable[str] | None = None) -> None: ... def forget(self) -> None: ... @@ -573,12 +567,7 @@ class Pdb(Bdb, Cmd): def complete_multiline_names(self, text: str, line: str, begidx: int, endidx: int) -> list[str]: ... if sys.version_info >= (3, 13): - def completedefault(self, text: str, line: str, begidx: int, endidx: int) -> list[str]: - """Method called to complete an input line when no command-specific - complete_*() method is available. - - By default, it returns an empty list. - """ + def completedefault(self, text: str, line: str, begidx: int, endidx: int) -> list[str]: ... def do_commands(self, arg: str) -> bool | None: """(Pdb) commands [bpnumber] diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pickle.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pickle.pyi index 585e0b8541..071214bdc5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pickle.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pickle.pyi @@ -1,5 +1,4 @@ -""" -Create portable serialized representations of Python objects. +"""Create portable serialized representations of Python objects. See module copyreg for a mechanism for registering custom picklers. See module pickletools source for extensive comments. @@ -21,6 +20,7 @@ Misc variables: __version__ format_version compatible_formats + """ from _pickle import ( diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pickletools.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pickletools.pyi index a49a813a80..8544e035d6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pickletools.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pickletools.pyi @@ -1,5 +1,4 @@ -""" -"Executable documentation" for the pickle module. +""" "Executable documentation" for the pickle module. Extensive comments about the pickle protocols and pickle-machine opcodes can be found here. Some functions meant for external use: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pipes.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pipes.pyi index ba577166b4..360cb519ff 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pipes.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pipes.pyi @@ -1,5 +1,4 @@ -""" -Conversion pipeline templates. +"""Conversion pipeline templates. The problem: ------------ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pkgutil.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pkgutil.pyi index c95a7f3982..4b348d324d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pkgutil.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pkgutil.pyi @@ -1,6 +1,4 @@ -""" -Utilities to support packages. -""" +"""Utilities to support packages.""" import sys from _typeshed import StrOrBytesPath, SupportsRead diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/platform.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/platform.pyi index bcf0d8ba1b..c80a20d581 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/platform.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/platform.pyi @@ -1,10 +1,10 @@ -""" -This module tries to retrieve as much platform-identifying data as +"""This module tries to retrieve as much platform-identifying data as possible. It makes this information available via function APIs. If called from the command line, it prints the platform information concatenated as single string to stdout. The output format is usable as part of a filename. + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/plistlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/plistlib.pyi index b2c73b45a5..33d659c787 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/plistlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/plistlib.pyi @@ -1,5 +1,4 @@ -""" -plistlib.py -- a tool to generate and parse MacOSX .plist files. +"""plistlib.py -- a tool to generate and parse MacOSX .plist files. The property list (.plist) file format is a simple XML pickle supporting basic object types, like dictionaries, lists, numbers and strings. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/poplib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/poplib.pyi index 7dd21d41a5..25a5f84d62 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/poplib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/poplib.pyi @@ -1,5 +1,4 @@ -""" -A POP3 client class. +"""A POP3 client class. Based on the J. Myers POP3 draft, Jan. 96 """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/posix.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/posix.pyi index bfddac7e79..52aeeae72d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/posix.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/posix.pyi @@ -1,5 +1,4 @@ -""" -This module provides access to operating system functionality that is +"""This module provides access to operating system functionality that is standardized by the C Standard and the POSIX standard (a thinly disguised Unix interface). Refer to the library manual and corresponding Unix manual entries for more information on calls. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/posixpath.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/posixpath.pyi index a997806454..d501e9538f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/posixpath.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/posixpath.pyi @@ -1,5 +1,4 @@ -""" -Common operations on Posix pathnames. +"""Common operations on Posix pathnames. Instead of importing this module directly, import os and refer to this module as os.path. The "os.path" name is an alias for this diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pprint.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pprint.pyi index e3ea161cdb..e9e8a78d2f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pprint.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pprint.pyi @@ -1,5 +1,4 @@ -""" -Support to pretty-print lists, tuples, & dictionaries recursively. +"""Support to pretty-print lists, tuples, & dictionaries recursively. Very simple, but useful, especially in debugging data structures. @@ -22,6 +21,7 @@ pprint() saferepr() Generate a 'standard' repr()-like value, but protect against recursive data structures. + """ import sys @@ -187,9 +187,6 @@ class PrettyPrinter: sort_dicts If true, dict keys are sorted. - - underscore_numbers - If true, digit groups are separated with underscores. """ def pformat(self, object: object) -> str: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/profile.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/profile.pyi index 9049102fa4..dff0edf5e6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/profile.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/profile.pyi @@ -1,6 +1,4 @@ -""" -Class for profiling Python code. -""" +"""Class for profiling Python code.""" from _typeshed import StrOrBytesPath from collections.abc import Callable, Mapping diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pstats.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pstats.pyi index e2f0153259..fe07c90aea 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pstats.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pstats.pyi @@ -1,6 +1,4 @@ -""" -Class for printing reports on profiled python code. -""" +"""Class for printing reports on profiled python code.""" import sys from _typeshed import StrOrBytesPath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pty.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pty.pyi index 28629d2665..0038f4a77e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pty.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pty.pyi @@ -1,6 +1,4 @@ -""" -Pseudo terminal utilities. -""" +"""Pseudo terminal utilities.""" import sys from collections.abc import Callable, Iterable diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pwd.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pwd.pyi index e0365eb4d6..ceb7dc7cf7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pwd.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pwd.pyi @@ -1,5 +1,4 @@ -""" -This module provides access to the Unix password database. +"""This module provides access to the Unix password database. It is available on all Unix versions. Password database entries are reported as 7-tuples containing the following diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/py_compile.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/py_compile.pyi index aae28d6d80..c593bb8188 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/py_compile.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/py_compile.pyi @@ -1,5 +1,4 @@ -""" -Routine to "compile" a .py file to a .pyc file. +"""Routine to "compile" a .py file to a .pyc file. This module has intimate knowledge of the format of .pyc files. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pyclbr.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pyclbr.pyi index 41b81eb128..ad8a1aead6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pyclbr.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pyclbr.pyi @@ -1,5 +1,4 @@ -""" -Parse a Python module and describe its classes and functions. +"""Parse a Python module and describe its classes and functions. Parse enough of a Python file to recognize imports and class and function definitions, and to find out the superclasses of a class. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pydoc.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pydoc.pyi index d96df035bc..8a57f8289f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pydoc.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pydoc.pyi @@ -1,5 +1,4 @@ -""" -Generate Python documentation in HTML or text for interactive use. +"""Generate Python documentation in HTML or text for interactive use. At the Python interactive prompt, calling help(thing) on a Python object documents the object, and calling help() starts up an interactive diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/__init__.pyi index 4e7287715d..d58d06ba31 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/__init__.pyi @@ -1,6 +1,4 @@ -""" -Python wrapper for Expat parser. -""" +"""Python wrapper for Expat parser.""" from _typeshed import ReadableBuffer, SupportsRead from collections.abc import Callable diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/errors.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/errors.pyi index 52b7993a4d..3b5bbeb23e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/errors.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/errors.pyi @@ -1,6 +1,4 @@ -""" -Constants used to describe error conditions. -""" +"""Constants used to describe error conditions.""" import sys from typing import Final diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/model.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/model.pyi index 4c05247653..3de4eec9d8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/model.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/pyexpat/model.pyi @@ -1,6 +1,4 @@ -""" -Constants used to interpret content model information. -""" +"""Constants used to interpret content model information.""" from typing import Final diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/queue.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/queue.pyi index 58b86a5976..8ab929e446 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/queue.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/queue.pyi @@ -1,9 +1,8 @@ -""" -A multi-producer, multi-consumer queue. -""" +"""A multi-producer, multi-consumer queue.""" import sys from _queue import Empty as Empty, SimpleQueue as SimpleQueue +from _typeshed import SupportsRichComparisonT from threading import Condition, Lock from types import GenericAlias from typing import Any, Generic, TypeVar @@ -156,13 +155,13 @@ class Queue(Generic[_T]): E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,). """ -class PriorityQueue(Queue[_T]): +class PriorityQueue(Queue[SupportsRichComparisonT]): """Variant of Queue that retrieves open entries in priority order (lowest first). Entries are typically tuples of the form: (priority number, data). """ - queue: list[_T] + queue: list[SupportsRichComparisonT] class LifoQueue(Queue[_T]): """Variant of Queue that retrieves most recently added entries first.""" diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/quopri.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/quopri.pyi index adbf2c298e..68b1873177 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/quopri.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/quopri.pyi @@ -1,6 +1,4 @@ -""" -Conversions to/from quoted-printable transport encoding as per RFC 1521. -""" +"""Conversions to/from quoted-printable transport encoding as per RFC 1521.""" from _typeshed import ReadableBuffer, SupportsNoArgReadline, SupportsRead, SupportsWrite from typing import Protocol diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/random.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/random.pyi index c4c5cabe21..bb90244087 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/random.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/random.pyi @@ -1,5 +1,4 @@ -""" -Random variable generators. +"""Random variable generators. bytes ----- @@ -44,6 +43,7 @@ General notes on the underlying Mersenne Twister core generator: * It is one of the most extensively tested generators in existence. * The random() method is implemented in C, executes in a single Python step, and is, therefore, threadsafe. + """ import _random @@ -165,7 +165,12 @@ class Random(_random.Random): """Shuffle list x in place, and return None.""" else: def shuffle(self, x: MutableSequence[Any], random: Callable[[], float] | None = None) -> None: - """Shuffle list x in place, and return None.""" + """Shuffle list x in place, and return None. + + Optional argument random is a 0-argument function returning a + random float in [0.0, 1.0); if it is the default None, the + standard random.random will be used. + """ if sys.version_info >= (3, 11): def sample(self, population: Sequence[_T], k: int, *, counts: Iterable[int] | None = None) -> list[_T]: """Chooses k unique random elements from a population sequence. @@ -197,7 +202,7 @@ class Random(_random.Random): """ else: def sample(self, population: Sequence[_T] | AbstractSet[_T], k: int, *, counts: Iterable[int] | None = None) -> list[_T]: - """Chooses k unique random elements from a population sequence. + """Chooses k unique random elements from a population sequence or set. Returns a new list containing elements from the population while leaving the original population unchanged. The resulting list is @@ -305,11 +310,6 @@ class Random(_random.Random): a reserved word in Python.) Returned values range from 0 to positive infinity if lambd is positive, and from negative infinity to 0 if lambd is negative. - - The mean (expected value) and variance of the random variable are: - - E[X] = 1 / lambd - Var[X] = 1 / lambd ** 2 """ def gammavariate(self, alpha: float, beta: float) -> float: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/re.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/re.pyi index a45823c6d2..a1a60bc77e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/re.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/re.pyi @@ -1,5 +1,4 @@ -""" -Support for regular expressions (RE). +"""Support for regular expressions (RE). This module provides regular expression matching operations similar to those found in Perl. It supports both 8-bit and Unicode strings; both @@ -104,6 +103,7 @@ A, L, and U are mutually exclusive. This module also defines exception 'PatternError', aliased to 'error' for backward compatibility. + """ import enum diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/readline.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/readline.pyi index 80721636fc..0358c632ee 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/readline.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/readline.pyi @@ -1,6 +1,4 @@ -""" -Importing this module enables command line editing using libedit readline. -""" +"""Importing this module enables command line editing using libedit readline.""" import sys from _typeshed import StrOrBytesPath diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/reprlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/reprlib.pyi index e0df3c85df..e94cc4db69 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/reprlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/reprlib.pyi @@ -1,6 +1,4 @@ -""" -Redo the builtin repr() (representation) but with limits on most sizes. -""" +"""Redo the builtin repr() (representation) but with limits on most sizes.""" import sys from array import array diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/rlcompleter.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/rlcompleter.pyi index 4820d53976..daeec2a458 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/rlcompleter.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/rlcompleter.pyi @@ -1,5 +1,4 @@ -""" -Word completion for GNU readline. +"""Word completion for GNU readline. The completer completes keywords, built-ins and globals in a selectable namespace (which defaults to __main__); when completing NAME.NAME..., it @@ -27,6 +26,7 @@ Notes: - When the original stdin is not a tty device, GNU readline is never used, and this module (and the readline module) are silently inactive. + """ from typing import Any diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/runpy.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/runpy.pyi index 5442743e30..a52a3bd7f3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/runpy.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/runpy.pyi @@ -1,5 +1,4 @@ -""" -runpy.py - locating and running Python code using the module namespace +"""runpy.py - locating and running Python code using the module namespace Provides support for locating and running Python scripts using the Python module namespace instead of the native filesystem. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/sched.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/sched.pyi index 721651df07..2dd182cdbe 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/sched.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/sched.pyi @@ -1,5 +1,4 @@ -""" -A generally useful event scheduler class. +"""A generally useful event scheduler class. Each instance of this class manages its own queue. No multi-threading is implied; you are supposed to hack that diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/secrets.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/secrets.pyi index e7416a3153..42594b4ca3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/secrets.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/secrets.pyi @@ -1,9 +1,9 @@ -""" -Generate cryptographically strong pseudo-random numbers suitable for +"""Generate cryptographically strong pseudo-random numbers suitable for managing secrets such as account authentication, tokens, and similar. See PEP 506 for more information. https://peps.python.org/pep-0506/ + """ from _typeshed import SupportsLenAndGetItem diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/select.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/select.pyi index 2763bad971..71d08a1ee2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/select.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/select.pyi @@ -1,5 +1,4 @@ -""" -This module supports asynchronous I/O on multiple file descriptors. +"""This module supports asynchronous I/O on multiple file descriptors. *** IMPORTANT NOTICE *** On Windows, only sockets are supported; on Unix, all file descriptors. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/selectors.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/selectors.pyi index 0f4b38c47d..d35e437034 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/selectors.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/selectors.pyi @@ -1,5 +1,4 @@ -""" -Selectors module. +"""Selectors module. This module allows high-level and efficient I/O multiplexing, built upon the `select` module primitives. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/shelve.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/shelve.pyi index 478141c7b7..7fd7398162 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/shelve.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/shelve.pyi @@ -1,5 +1,4 @@ -""" -Manage shelves of pickled objects. +"""Manage shelves of pickled objects. A "shelf" is a persistent, dictionary-like object. The difference with dbm databases is that the values (not the keys!) in a shelf can diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/shlex.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/shlex.pyi index 3b837e969f..732cd5b06a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/shlex.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/shlex.pyi @@ -1,6 +1,4 @@ -""" -A lexical analyzer class for simple shell-like syntaxes. -""" +"""A lexical analyzer class for simple shell-like syntaxes.""" import sys from collections import deque diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/shutil.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/shutil.pyi index fdebb2e771..ea1a71c440 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/shutil.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/shutil.pyi @@ -1,7 +1,7 @@ -""" -Utility functions for copying and archiving files and directory trees. +"""Utility functions for copying and archiving files and directory trees. XXX The functions here don't copy the resource fork or other metadata on Mac. + """ import os diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/site.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/site.pyi index 4acb16ac51..9b30fd9014 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/site.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/site.pyi @@ -1,5 +1,4 @@ -""" -Append module search paths for third-party packages to sys.path. +"""Append module search paths for third-party packages to sys.path. **************************************************************** * This module is automatically imported during initialization. * diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/smtpd.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/smtpd.pyi index 133ec1bd7f..2dbad45be3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/smtpd.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/smtpd.pyi @@ -1,5 +1,4 @@ -""" -An RFC 5321 smtp proxy with optional RFC 1870 and RFC 6531 extensions. +"""An RFC 5321 smtp proxy with optional RFC 1870 and RFC 6531 extensions. Usage: %(program)s [options] [localhost:localport [remotehost:remoteport]] diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/smtplib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/smtplib.pyi index 338137be7f..58a99483f1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/smtplib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/smtplib.pyi @@ -1,5 +1,4 @@ -""" -SMTP/ESMTP client class. +"""SMTP/ESMTP client class. This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP Authentication) and RFC 2487 (Secure SMTP over TLS). @@ -433,7 +432,7 @@ class SMTP: method tries ESMTP EHLO first. If the server supports TLS, this will encrypt the rest of the SMTP - session. If you provide the context parameter, + session. If you provide the keyfile and certfile parameters, the identity of the SMTP server and client can be checked. This, however, depends on whether the socket module really checks the certificates. @@ -454,65 +453,65 @@ class SMTP: ) -> _SendErrs: """This command performs an entire mail transaction. - The arguments are: - - from_addr : The address sending this mail. - - to_addrs : A list of addresses to send this mail to. A bare - string will be treated as a list with 1 address. - - msg : The message to send. - - mail_options : List of ESMTP options (such as 8bitmime) for the - mail command. - - rcpt_options : List of ESMTP options (such as DSN commands) for - all the rcpt commands. +The arguments are: + - from_addr : The address sending this mail. + - to_addrs : A list of addresses to send this mail to. A bare + string will be treated as a list with 1 address. + - msg : The message to send. + - mail_options : List of ESMTP options (such as 8bitmime) for the + mail command. + - rcpt_options : List of ESMTP options (such as DSN commands) for + all the rcpt commands. - msg may be a string containing characters in the ASCII range, or a byte - string. A string is encoded to bytes using the ascii codec, and lone - \\r and \\n characters are converted to \\r\\n characters. +msg may be a string containing characters in the ASCII range, or a byte +string. A string is encoded to bytes using the ascii codec, and lone +\\r and \\n characters are converted to \\r\\n characters. - If there has been no previous EHLO or HELO command this session, this - method tries ESMTP EHLO first. If the server does ESMTP, message size - and each of the specified options will be passed to it. If EHLO - fails, HELO will be tried and ESMTP options suppressed. +If there has been no previous EHLO or HELO command this session, this +method tries ESMTP EHLO first. If the server does ESMTP, message size +and each of the specified options will be passed to it. If EHLO +fails, HELO will be tried and ESMTP options suppressed. - This method will return normally if the mail is accepted for at least - one recipient. It returns a dictionary, with one entry for each - recipient that was refused. Each entry contains a tuple of the SMTP - error code and the accompanying error message sent by the server. +This method will return normally if the mail is accepted for at least +one recipient. It returns a dictionary, with one entry for each +recipient that was refused. Each entry contains a tuple of the SMTP +error code and the accompanying error message sent by the server. - This method may raise the following exceptions: +This method may raise the following exceptions: - SMTPHeloError The server didn't reply properly to - the helo greeting. - SMTPRecipientsRefused The server rejected ALL recipients - (no mail was sent). - SMTPSenderRefused The server didn't accept the from_addr. - SMTPDataError The server replied with an unexpected - error code (other than a refusal of - a recipient). - SMTPNotSupportedError The mail_options parameter includes 'SMTPUTF8' - but the SMTPUTF8 extension is not supported by - the server. + SMTPHeloError The server didn't reply properly to + the helo greeting. + SMTPRecipientsRefused The server rejected ALL recipients + (no mail was sent). + SMTPSenderRefused The server didn't accept the from_addr. + SMTPDataError The server replied with an unexpected + error code (other than a refusal of + a recipient). + SMTPNotSupportedError The mail_options parameter includes 'SMTPUTF8' + but the SMTPUTF8 extension is not supported by + the server. - Note: the connection will be open even after an exception is raised. +Note: the connection will be open even after an exception is raised. - Example: +Example: - >>> import smtplib - >>> s=smtplib.SMTP("localhost") - >>> tolist=["one@one.org","two@two.org","three@three.org","four@four.org"] - >>> msg = '''\\ - ... From: Me@my.org - ... Subject: testin'... - ... - ... This is a test ''' - >>> s.sendmail("me@my.org",tolist,msg) - { "three@three.org" : ( 550 ,"User unknown" ) } - >>> s.quit() + >>> import smtplib + >>> s=smtplib.SMTP("localhost") + >>> tolist=["one@one.org","two@two.org","three@three.org","four@four.org"] + >>> msg = '''\\ + ... From: Me@my.org + ... Subject: testin'... + ... + ... This is a test ''' + >>> s.sendmail("me@my.org",tolist,msg) + { "three@three.org" : ( 550 ,"User unknown" ) } + >>> s.quit() - In the above example, the message was accepted for delivery to three - of the four addresses, and one was rejected, with the error code - 550. If all addresses are accepted, then the method will return an - empty dictionary. - """ +In the above example, the message was accepted for delivery to three +of the four addresses, and one was rejected, with the error code +550. If all addresses are accepted, then the method will return an +empty dictionary. +""" def send_message( self, diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/sndhdr.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/sndhdr.pyi index 0ff6c8aecf..e686378704 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/sndhdr.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/sndhdr.pyi @@ -1,5 +1,4 @@ -""" -Routines to help recognizing sound files. +"""Routines to help recognizing sound files. Function whathdr() recognizes various types of sound file headers. It understands almost all headers that SOX can decode. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/socket.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/socket.pyi index dbfa71419e..2538a37a0e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/socket.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/socket.pyi @@ -1,5 +1,4 @@ -""" -This module provides socket operations and some related functions. +"""This module provides socket operations and some related functions. On Unix, it supports IP (Internet Protocol) and Unix domain sockets. On other systems, it only supports IP. Functions specific for a socket are available as methods of the socket object. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/socketserver.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/socketserver.pyi index c81647e32b..2ff9e24f67 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/socketserver.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/socketserver.pyi @@ -1,5 +1,4 @@ -""" -Generic socket server classes. +"""Generic socket server classes. This module tries to capture the various aspects of defining a server: @@ -116,6 +115,7 @@ BaseServer: example: read entries from a SQL database (requires overriding get_request() to return a table entry from the database). entry is processed by a RequestHandlerClass. + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/spwd.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/spwd.pyi index c0588267eb..70e8e3ea4c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/spwd.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/spwd.pyi @@ -1,5 +1,4 @@ -""" -This module provides access to the Unix shadow password database. +"""This module provides access to the Unix shadow password database. It is available on various Unix versions. Shadow password database entries are reported as 9-tuples of type struct_spwd, diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/sqlite3/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/sqlite3/__init__.pyi index 7ab9f997d7..779778c6dc 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/sqlite3/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/sqlite3/__init__.pyi @@ -1,5 +1,4 @@ """ - The sqlite3 extension module provides a DB-API 2.0 (PEP 249) compliant interface to the SQLite library, and requires SQLite 3.15.2 or newer. @@ -460,11 +459,7 @@ class Connection: """ else: def iterdump(self) -> Generator[str, None, None]: - """Returns iterator to the dump of the database in an SQL text format. - - filter - An optional LIKE pattern for database objects to dump - """ + """Returns iterator to the dump of the database in an SQL text format.""" def rollback(self) -> None: """Roll back to the start of any pending transaction. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/sre_compile.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/sre_compile.pyi index 42736ca966..684f8d77f7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/sre_compile.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/sre_compile.pyi @@ -1,6 +1,4 @@ -""" -Internal support module for sre -""" +"""Internal support module for sre""" from re import Pattern from sre_constants import * diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/sre_constants.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/sre_constants.pyi index 64f0d8dd1a..0d22f3af5a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/sre_constants.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/sre_constants.pyi @@ -1,6 +1,4 @@ -""" -Internal support module for sre -""" +"""Internal support module for sre""" import sys from re import error as error diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/sre_parse.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/sre_parse.pyi index 3c41f5de5c..ad121383c7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/sre_parse.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/sre_parse.pyi @@ -1,6 +1,4 @@ -""" -Internal support module for sre -""" +"""Internal support module for sre""" import sys from collections.abc import Iterable diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/ssl.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/ssl.pyi index 5dd23f016c..78c46e4610 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/ssl.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/ssl.pyi @@ -1,5 +1,4 @@ -""" -This module provides some more Pythonic support for SSL. +"""This module provides some more Pythonic support for SSL. Object types: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/stat.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/stat.pyi index c70c1c7209..cee0bea41f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/stat.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/stat.pyi @@ -1,5 +1,4 @@ -""" -Constants/functions for interpreting results of os.stat() and os.lstat(). +"""Constants/functions for interpreting results of os.stat() and os.lstat(). Suggested usage: from stat import * """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/statistics.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/statistics.pyi index 5f2576d7ff..69499be6b3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/statistics.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/statistics.pyi @@ -1,5 +1,4 @@ """ - Basic statistics module. This module provides functions for calculating statistics of data, including @@ -102,6 +101,7 @@ Exceptions ---------- A single exception is defined: StatisticsError is a subclass of ValueError. + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/string/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/string/__init__.pyi index 7dc9eb1efa..302c661a9f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/string/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/string/__init__.pyi @@ -1,5 +1,4 @@ -""" -A collection of string constants. +"""A collection of string constants. Public module variables: @@ -12,6 +11,7 @@ hexdigits -- a string containing all ASCII hexadecimal digits octdigits -- a string containing all ASCII octal digits punctuation -- a string containing all ASCII punctuation characters printable -- a string containing all ASCII characters considered printable + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/string/templatelib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/string/templatelib.pyi index 1026ae7833..2d30224ce5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/string/templatelib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/string/templatelib.pyi @@ -1,6 +1,4 @@ -""" -Support for template string literals (t-strings). -""" +"""Support for template string literals (t-strings).""" from collections.abc import Iterator from types import GenericAlias diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/stringprep.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/stringprep.pyi index 5ae487fb46..4d262df8d9 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/stringprep.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/stringprep.pyi @@ -1,5 +1,4 @@ -""" -Library that exposes various tables found in the StringPrep RFC 3454. +"""Library that exposes various tables found in the StringPrep RFC 3454. There are two kinds of tables: sets, for which a member test is provided, and mappings, for which a mapping function is provided. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/struct.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/struct.pyi index ba2ce53d4c..9cc366060b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/struct.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/struct.pyi @@ -1,5 +1,4 @@ -""" -Functions to convert between Python values and C structs. +"""Functions to convert between Python values and C structs. Python bytes objects are used to hold the data representing the C struct and also as format strings (explained below) to describe the layout of data in the C struct. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/subprocess.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/subprocess.pyi index d592f1a58c..6fdaf89d19 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/subprocess.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/subprocess.pyi @@ -1,5 +1,4 @@ -""" -Subprocesses with accessible I/O streams +"""Subprocesses with accessible I/O streams This module allows you to spawn processes, connect to their input/output/error pipes, and obtain their return codes. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/sunau.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/sunau.pyi index 6cd23f4e09..7ccb82de85 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/sunau.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/sunau.pyi @@ -1,5 +1,4 @@ -""" -Stuff to parse Sun and NeXT audio files. +"""Stuff to parse Sun and NeXT audio files. An audio file consists of a header followed by the data. The structure of the header is as follows. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/symbol.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/symbol.pyi index 630207d017..1baab2b674 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/symbol.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/symbol.pyi @@ -1,6 +1,4 @@ -""" -Non-terminal symbols of Python grammar (from "graminit.h"). -""" +"""Non-terminal symbols of Python grammar (from "graminit.h").""" single_input: int file_input: int diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/symtable.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/symtable.pyi index 36280e42ca..413dee3477 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/symtable.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/symtable.pyi @@ -1,6 +1,4 @@ -""" -Interface to the compiler's internal symbol tables -""" +"""Interface to the compiler's internal symbol tables""" import sys from _collections_abc import dict_keys @@ -45,8 +43,8 @@ class SymbolTable: def get_type(self) -> str: """Return the type of the symbol table. - The value returned is one of the values in - the ``SymbolTableType`` enumeration. + The values returned are 'class', 'module', 'function', + 'annotation', 'TypeVar bound', 'type alias', and 'type parameter'. """ def get_id(self) -> int: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/sys/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/sys/__init__.pyi index 0fdc5de862..6677c73adf 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/sys/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/sys/__init__.pyi @@ -1,5 +1,4 @@ -""" -This module provides access to some objects used or maintained by the +"""This module provides access to some objects used or maintained by the interpreter and to functions that interact strongly with the interpreter. Dynamic objects: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/sys/_monitoring.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/sys/_monitoring.pyi index 0507eeedc2..3a8292ea0d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/sys/_monitoring.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/sys/_monitoring.pyi @@ -5,40 +5,52 @@ # of being a `types.ModuleType` instance that cannot be directly imported, # and exists in the `sys`-module namespace despite `sys` not being a package. +import sys from collections.abc import Callable from types import CodeType -from typing import Any +from typing import Any, Final, type_check_only +from typing_extensions import deprecated -DEBUGGER_ID: int -COVERAGE_ID: int -PROFILER_ID: int -OPTIMIZER_ID: int +DEBUGGER_ID: Final[int] +COVERAGE_ID: Final[int] +PROFILER_ID: Final[int] +OPTIMIZER_ID: Final[int] def use_tool_id(tool_id: int, name: str, /) -> None: ... def free_tool_id(tool_id: int, /) -> None: ... def get_tool(tool_id: int, /) -> str | None: ... -events: _events +events: Final[_events] +@type_check_only class _events: - BRANCH: int - CALL: int - C_RAISE: int - C_RETURN: int - EXCEPTION_HANDLED: int - INSTRUCTION: int - JUMP: int - LINE: int - NO_EVENTS: int - PY_RESUME: int - PY_RETURN: int - PY_START: int - PY_THROW: int - PY_UNWIND: int - PY_YIELD: int - RAISE: int - RERAISE: int - STOP_ITERATION: int + CALL: Final[int] + C_RAISE: Final[int] + C_RETURN: Final[int] + EXCEPTION_HANDLED: Final[int] + INSTRUCTION: Final[int] + JUMP: Final[int] + LINE: Final[int] + NO_EVENTS: Final[int] + PY_RESUME: Final[int] + PY_RETURN: Final[int] + PY_START: Final[int] + PY_THROW: Final[int] + PY_UNWIND: Final[int] + PY_YIELD: Final[int] + RAISE: Final[int] + RERAISE: Final[int] + STOP_ITERATION: Final[int] + if sys.version_info >= (3, 14): + BRANCH_LEFT: Final[int] + BRANCH_TAKEN: Final[int] + + @property + @deprecated("BRANCH is deprecated; use BRANCH_LEFT or BRANCH_TAKEN instead") + def BRANCH(self) -> int: ... + + else: + BRANCH: Final[int] def get_events(tool_id: int, /) -> int: ... def set_events(tool_id: int, event_set: int, /) -> None: ... @@ -46,7 +58,7 @@ def get_local_events(tool_id: int, code: CodeType, /) -> int: ... def set_local_events(tool_id: int, code: CodeType, event_set: int, /) -> int: ... def restart_events() -> None: ... -DISABLE: object -MISSING: object +DISABLE: Final[object] +MISSING: Final[object] def register_callback(tool_id: int, event: int, func: Callable[..., Any] | None, /) -> Callable[..., Any] | None: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/sysconfig.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/sysconfig.pyi index 8307f1bb3c..32cebed9e6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/sysconfig.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/sysconfig.pyi @@ -1,6 +1,4 @@ -""" -Access to Python's configuration information. -""" +"""Access to Python's configuration information.""" import sys from typing import IO, Any, Literal, overload diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tabnanny.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tabnanny.pyi index a02a23bd59..ddc1e8ae0d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tabnanny.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tabnanny.pyi @@ -1,5 +1,4 @@ -""" -The Tab Nanny despises ambiguous indentation. She knows no mercy. +"""The Tab Nanny despises ambiguous indentation. She knows no mercy. tabnanny -- Detection of ambiguous indentation diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tarfile.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tarfile.pyi index b8bd5b8ea4..d23520cfcb 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tarfile.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tarfile.pyi @@ -1,6 +1,4 @@ -""" -Read from and write to tar format archives. -""" +"""Read from and write to tar format archives.""" import bz2 import io @@ -178,13 +176,13 @@ class TarFile: errorlevel: int | None = None, copybufsize: int | None = None, # undocumented ) -> None: - """Open an (uncompressed) tar archive 'name'. 'mode' is either 'r' to + """Open an (uncompressed) tar archive `name'. `mode' is either 'r' to read from an existing archive, 'a' to append data to an existing - file or 'w' to create a new file overwriting an existing one. 'mode' + file or 'w' to create a new file overwriting an existing one. `mode' defaults to 'r'. - If 'fileobj' is given, it is used for reading or writing data. If it - can be determined, 'mode' is overridden by 'fileobj's mode. - 'fileobj' is not closed, when TarFile is closed. + If `fileobj' is given, it is used for reading or writing data. If it + can be determined, `mode' is overridden by `fileobj's mode. + `fileobj' is not closed, when TarFile is closed. """ def __enter__(self) -> Self: ... @@ -917,7 +915,12 @@ class TarFile: def makedev(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> None: # undocumented """Make a character or block device called targetpath.""" - def makelink(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> None: ... # undocumented + def makelink(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> None: # undocumented + """Make a (symbolic) link called targetpath. If it cannot be created + (platform limitation), we try to make a copy of the referenced file + instead of a link. + """ + def makelink_with_filter( self, tarinfo: TarInfo, targetpath: StrOrBytesPath, filter_function: _FilterFunction, extraction_root: str ) -> None: # undocumented diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/telnetlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/telnetlib.pyi index a35c3a5c12..8ed0c33f06 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/telnetlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/telnetlib.pyi @@ -1,5 +1,4 @@ -""" -TELNET client class. +"""TELNET client class. Based on RFC 854: TELNET Protocol Specification, by J. Postel and J. Reynolds @@ -29,6 +28,7 @@ To do: - option negotiation - timeout should be intrinsic to the connection object instead of an option on one of the read calls only + """ import socket diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tempfile.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tempfile.pyi index 607376b692..68700c49dc 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tempfile.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tempfile.pyi @@ -1,5 +1,4 @@ -""" -Temporary files. +"""Temporary files. This module provides generic, low- and high-level interfaces for creating temporary files and directories. All of the interfaces diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/termios.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/termios.pyi index 1b537fa184..e8113ccde2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/termios.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/termios.pyi @@ -1,5 +1,4 @@ -""" -This module provides an interface to the Posix calls for tty I/O control. +"""This module provides an interface to the Posix calls for tty I/O control. For a complete description of these calls, see the Posix or Unix manual pages. It is only available for those Unix versions that support Posix termios style tty I/O control. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/textwrap.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/textwrap.pyi index 71d877a3c6..8b01909c69 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/textwrap.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/textwrap.pyi @@ -1,6 +1,4 @@ -""" -Text wrapping and filling. -""" +"""Text wrapping and filling.""" from collections.abc import Callable from re import Pattern diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/threading.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/threading.pyi index 4c43e8555c..24c6c4f60b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/threading.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/threading.pyi @@ -1,6 +1,4 @@ -""" -Thread module emulating a subset of Java's threading model. -""" +"""Thread module emulating a subset of Java's threading model.""" import _thread import sys @@ -249,14 +247,6 @@ class Thread: *kwargs* is a dictionary of keyword arguments for the target invocation. Defaults to {}. - *context* is the contextvars.Context value to use for the thread. - The default value is None, which means to check - sys.flags.thread_inherit_context. If that flag is true, use a copy - of the context of the caller. If false, use an empty context. To - explicitly start with an empty context, pass a new instance of - contextvars.Context(). To explicitly start with a copy of the current - context, pass the value from contextvars.copy_context(). - If a subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()) before doing anything else to the thread. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/time.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/time.pyi index b9b45175f6..796248b6ab 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/time.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/time.pyi @@ -1,5 +1,4 @@ -""" -This module provides various functions to manipulate time values. +"""This module provides various functions to manipulate time values. There are two standard representations of time. One is the number of seconds since the Epoch, in UTC (a.k.a. GMT). It may be an integer diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/timeit.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/timeit.pyi index 93d8a10335..a24cf2c71b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/timeit.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/timeit.pyi @@ -1,5 +1,4 @@ -""" -Tool for measuring execution time of small code snippets. +"""Tool for measuring execution time of small code snippets. This module avoids a number of common traps for measuring execution times. See also Tim Peters' introduction to the Algorithms chapter in diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/__init__.pyi index fc35af7267..56a3475195 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/__init__.pyi @@ -1,5 +1,4 @@ -""" -Wrapper functions for Tcl/Tk. +"""Wrapper functions for Tcl/Tk. Tkinter provides classes which allow the display, positioning and control of widgets. Toplevel widgets are Tk and Toplevel. Other @@ -1646,17 +1645,22 @@ class Wm: else: @overload def wm_attributes(self) -> tuple[Any, ...]: - """Return or sets platform specific attributes. + """This subcommand returns or sets platform specific attributes - When called with a single argument return_python_dict=True, - return a dict of the platform specific attributes and their values. - When called without arguments or with a single argument - return_python_dict=False, return a tuple containing intermixed - attribute names with the minus prefix and their values. + The first form returns a list of the platform specific flags and + their values. The second form returns the value for the specific + option. The third form sets one or more of the values. The values + are as follows: - When called with a single string value, return the value for the - specific option. When called with keyword arguments, set the - corresponding attributes. + On Windows, -disabled gets or sets whether the window is in a + disabled state. -toolwindow gets or sets the style of the window + to toolwindow (as defined in the MSDN). -topmost gets or sets + whether this is a topmost window (displays above all other + windows). + + On Macintosh, XXXXX + + On Unix, there are currently no special attribute values. """ @overload @@ -5446,20 +5450,16 @@ class Text(Widget, XView, YView): @overload def count(self, index1: _TextIndex, index2: _TextIndex) -> tuple[int] | None: """Counts the number of relevant things between the two indices. - - If INDEX1 is after INDEX2, the result will be a negative number + If index1 is after index2, the result will be a negative number (and this holds for each of the possible options). - The actual items which are counted depends on the options given. - The result is a tuple of integers, one for the result of each - counting option given, if more than one option is specified or - return_ints is false (default), otherwise it is an integer. - Valid counting options are "chars", "displaychars", - "displayindices", "displaylines", "indices", "lines", "xpixels" - and "ypixels". The default value, if no option is specified, is - "indices". There is an additional possible option "update", - which if given then all subsequent options ensure that any - possible out of date information is recalculated. + The actual items which are counted depends on the options given by + args. The result is a list of integers, one for the result of each + counting option given. Valid counting options are "chars", + "displaychars", "displayindices", "displaylines", "indices", + "lines", "xpixels" and "ypixels". There is an additional possible + option "update", which if given then all subsequent options ensure + that any possible out of date information is recalculated. """ @overload @@ -6091,39 +6091,18 @@ class PhotoImage(Image, _PhotoImageLike): """ else: def copy(self) -> PhotoImage: - """Return a new PhotoImage with the same image as this widget. - - The FROM_COORDS option specifies a rectangular sub-region of the - source image to be copied. It must be a tuple or a list of 1 to 4 - integers (x1, y1, x2, y2). (x1, y1) and (x2, y2) specify diagonally - opposite corners of the rectangle. If x2 and y2 are not specified, - the default value is the bottom-right corner of the source image. - The pixels copied will include the left and top edges of the - specified rectangle but not the bottom or right edges. If the - FROM_COORDS option is not given, the default is the whole source - image. - - If SUBSAMPLE or ZOOM are specified, the image is transformed as in - the subsample() or zoom() methods. The value must be a single - integer or a pair of integers. - """ + """Return a new PhotoImage with the same image as this widget.""" def zoom(self, x: int, y: int | Literal[""] = "") -> PhotoImage: """Return a new PhotoImage with the same image as this widget - but zoom it with a factor of X in the X direction and Y in the Y - direction. If Y is not given, the default value is the same as X. - - The FROM_COORDS option specifies a rectangular sub-region of the - source image to be copied, as in the copy() method. + but zoom it with a factor of x in the X direction and y in the Y + direction. If y is not given, the default value is the same as x. """ def subsample(self, x: int, y: int | Literal[""] = "") -> PhotoImage: """Return a new PhotoImage based on the same image as this widget - but use only every Xth or Yth pixel. If Y is not given, the - default value is the same as X. - - The FROM_COORDS option specifies a rectangular sub-region of the - source image to be copied, as in the copy() method. + but use only every Xth or Yth pixel. If y is not given, the + default value is the same as x. """ def get(self, x: int, y: int) -> tuple[int, int, int]: @@ -6251,26 +6230,8 @@ class PhotoImage(Image, _PhotoImageLike): else: def write(self, filename: StrOrBytesPath, format: str | None = None, from_coords: tuple[int, int] | None = None) -> None: - """Writes image data from the image to a file named FILENAME. - - The FORMAT option specifies the name of the image file format - handler to be used to write the data to the file. If this option - is not given, the format is guessed from the file extension. - - The FROM_COORDS option specifies a rectangular region of the image - to be written to the image file. It must be a tuple or a list of 1 - to 4 integers (x1, y1, x2, y2). If only x1 and y1 are specified, - the region extends from (x1,y1) to the bottom-right corner of the - image. If all four coordinates are given, they specify diagonally - opposite corners of the rectangular region. The default, if this - option is not given, is the whole image. - - If BACKGROUND is specified, the data will not contain any - transparency information. In all transparent pixels the color will - be replaced by the specified color. - - If GRAYSCALE is true, the data will not contain color information. - All pixel data will be transformed into grayscale. + """Write image to file FILENAME in FORMAT starting from + position FROM_COORDS. """ def transparency_get(self, x: int, y: int) -> bool: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/dnd.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/dnd.pyi index 0d840b2d6e..aafa9144f0 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/dnd.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/dnd.pyi @@ -1,5 +1,4 @@ -""" -Drag-and-drop support for Tkinter. +"""Drag-and-drop support for Tkinter. This is very preliminary. I currently only support dnd *within* one application, between different windows (or within the same window). @@ -97,6 +96,7 @@ At any time during a dnd sequence, the application can cancel the sequence by calling the cancel() method on the object returned by dnd_start(). This will call dnd_leave() if a target is currently active; it will never call dnd_commit(). + """ from tkinter import Event, Misc, Tk, Widget diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/filedialog.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/filedialog.pyi index 600b735f10..580adf3f0d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/filedialog.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/filedialog.pyi @@ -1,5 +1,4 @@ -""" -File selection dialog classes. +"""File selection dialog classes. Classes: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/scrolledtext.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/scrolledtext.pyi index 25991680c6..028a6fb395 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/scrolledtext.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/scrolledtext.pyi @@ -1,5 +1,4 @@ -""" -A ScrolledText widget feels like a text widget but also has a +"""A ScrolledText widget feels like a text widget but also has a vertical scroll bar on its right. (Later, options may be added to add a horizontal bar as well, to make the bars disappear automatically when not needed, to move them to the other side of the diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/simpledialog.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/simpledialog.pyi index f98725caa2..af5375e2a6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/simpledialog.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/simpledialog.pyi @@ -1,5 +1,4 @@ -""" -This modules handles dialog boxes. +"""This modules handles dialog boxes. It contains the following public symbols: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/ttk.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/ttk.pyi index def58db8b7..c59ebf0969 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/ttk.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tkinter/ttk.pyi @@ -1,5 +1,4 @@ -""" -Ttk wrapper. +"""Ttk wrapper. This module provides classes to allow using Tk themed widget set. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/token.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/token.pyi index 4aa5b5b443..3da230b17b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/token.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/token.pyi @@ -1,6 +1,4 @@ -""" -Token constants. -""" +"""Token constants.""" import sys from typing import Final diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tokenize.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tokenize.pyi index aa42c68b4a..74cd6e22f4 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tokenize.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tokenize.pyi @@ -1,5 +1,4 @@ -""" -Tokenization help for Python programs. +"""Tokenization help for Python programs. tokenize(readline) is a generator that breaks a stream of bytes into Python tokens. It decodes the bytes according to PEP-0263 for diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/trace.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/trace.pyi index 559c499723..a564877580 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/trace.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/trace.pyi @@ -1,5 +1,4 @@ -""" -program/module to trace Python program or function execution +"""program/module to trace Python program or function execution Sample use, command line: trace.py -c -f counts --ignore-dir '$prefix' spam.py eggs @@ -79,9 +78,6 @@ class CoverageResults: :param coverdir: If None, the results of each module are placed in its directory, otherwise it is included in the directory specified. - :param ignore_missing_files: If True, counts for files that no longer - exist are silently ignored. Otherwise, a missing file - will raise a FileNotFoundError. """ def write_results_file( diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/traceback.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/traceback.pyi index 868c8ba51c..3cd22ef69d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/traceback.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/traceback.pyi @@ -1,6 +1,4 @@ -""" -Extract, format and print information about Python stack traces. -""" +"""Extract, format and print information about Python stack traces.""" import sys from _typeshed import SupportsWrite, Unused @@ -486,10 +484,6 @@ class TracebackException: display detailed information about where the syntax error occurred. Following the message, generator also yields all the exception's ``__notes__``. - - When *show_group* is ``True``, and the exception is an instance of - :exc:`BaseExceptionGroup`, the nested exceptions are included as - well, recursively, with indentation relative to their nesting depth. """ if sys.version_info >= (3, 11): def print(self, *, file: SupportsWrite[str] | None = None, chain: bool = True) -> None: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/tty.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/tty.pyi index e000b33fef..00ef5c39df 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/tty.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/tty.pyi @@ -1,6 +1,4 @@ -""" -Terminal utilities. -""" +"""Terminal utilities.""" import sys import termios diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/turtle.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/turtle.pyi index b2447c94a6..c3d972d665 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/turtle.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/turtle.pyi @@ -1,5 +1,4 @@ """ - Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966. @@ -1719,7 +1718,27 @@ class RawTurtle(TPen, TNavigator): # type: ignore[misc] # Conflicting methods ((50, -20), (30, 20), (-50, 20), (-30, -20)) """ if sys.version_info < (3, 13): - def settiltangle(self, angle: float) -> None: ... + def settiltangle(self, angle: float) -> None: + """Rotate the turtleshape to point in the specified direction + + Argument: angle -- number + + Rotate the turtleshape to point in the direction specified by angle, + regardless of its current tilt-angle. DO NOT change the turtle's + heading (direction of movement). + + Deprecated since Python 3.1 + + Examples (for a Turtle instance named turtle): + >>> turtle.shape("circle") + >>> turtle.shapesize(5,2) + >>> turtle.settiltangle(45) + >>> turtle.stamp() + >>> turtle.fd(50) + >>> turtle.settiltangle(-45) + >>> turtle.stamp() + >>> turtle.fd(50) + """ @overload def tiltangle(self, angle: None = None) -> float: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/types.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/types.pyi index a4c444015c..a1c1707f3b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/types.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/types.pyi @@ -1,5 +1,4 @@ """ - Define names for built-in types that aren't directly accessible as a builtin. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/typing.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/typing.pyi index 5e5d7c9cee..f3ccd276ed 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/typing.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/typing.pyi @@ -1,5 +1,4 @@ """ - The typing module: Support for gradual typing as defined by PEP 484 and subsequent PEPs. Among other things, the module includes the following: @@ -1568,16 +1567,20 @@ if sys.version_info >= (3, 10): def get_origin(tp: GenericAlias) -> type: """Get the unsubscripted version of a type. - This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar - and Annotated. Return None for unsupported types. Examples:: + This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar, + Annotated, and others. Return None for unsupported types. - get_origin(Literal[42]) is Literal - get_origin(int) is None - get_origin(ClassVar[int]) is ClassVar - get_origin(Generic) is Generic - get_origin(Generic[T]) is Generic - get_origin(Union[T, int]) is Union - get_origin(List[Tuple[T, T]][int]) == list + Examples:: + + >>> P = ParamSpec('P') + >>> assert get_origin(Literal[42]) is Literal + >>> assert get_origin(int) is None + >>> assert get_origin(ClassVar[int]) is ClassVar + >>> assert get_origin(Generic) is Generic + >>> assert get_origin(Generic[T]) is Generic + >>> assert get_origin(Union[T, int]) is Union + >>> assert get_origin(List[Tuple[T, T]][int]) is list + >>> assert get_origin(P.args) is P """ @overload diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/typing_extensions.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/typing_extensions.pyi index e2bf68b53a..e6c905027f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/typing_extensions.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/typing_extensions.pyi @@ -396,17 +396,20 @@ if sys.version_info >= (3, 10): def get_origin(tp: GenericAlias) -> type: """Get the unsubscripted version of a type. - This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar - and Annotated. Return None for unsupported types. Examples:: + This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar, + Annotated, and others. Return None for unsupported types. - get_origin(Literal[42]) is Literal - get_origin(int) is None - get_origin(ClassVar[int]) is ClassVar - get_origin(Generic) is Generic - get_origin(Generic[T]) is Generic - get_origin(Union[T, int]) is Union - get_origin(List[Tuple[T, T]][int]) == list - get_origin(P.args) is P + Examples:: + + >>> P = ParamSpec('P') + >>> assert get_origin(Literal[42]) is Literal + >>> assert get_origin(int) is None + >>> assert get_origin(ClassVar[int]) is ClassVar + >>> assert get_origin(Generic) is Generic + >>> assert get_origin(Generic[T]) is Generic + >>> assert get_origin(Union[T, int]) is Union + >>> assert get_origin(List[Tuple[T, T]][int]) is list + >>> assert get_origin(P.args) is P """ @overload diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/unicodedata.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/unicodedata.pyi index dcbe2a5cdb..d0c1559e92 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/unicodedata.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/unicodedata.pyi @@ -1,5 +1,4 @@ -""" -This module provides access to the Unicode Character Database which +"""This module provides access to the Unicode Character Database which defines character properties for all Unicode characters. The data in this database is based on the UnicodeData.txt file version 16.0.0 which is publicly available from ftp://ftp.unicode.org/. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/__init__.pyi index 921c450081..0d0cf6b528 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/__init__.pyi @@ -1,5 +1,4 @@ """ - Python unit testing framework, based on Erich Gamma's JUnit and Kent Beck's Smalltalk testing framework (used with permission). diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/case.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/case.pyi index a80568e315..208a3222a5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/case.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/case.pyi @@ -1,6 +1,4 @@ -""" -Test case implementation -""" +"""Test case implementation""" import logging import sys @@ -652,10 +650,8 @@ class TestCase: assertRegexpMatches = assertRegex assertNotRegexpMatches = assertNotRegex assertRaisesRegexp = assertRaisesRegex - def assertDictContainsSubset( - self, subset: Mapping[Any, Any], dictionary: Mapping[Any, Any], msg: object = None - ) -> None: ... - + def assertDictContainsSubset(self, subset: Mapping[Any, Any], dictionary: Mapping[Any, Any], msg: object = None) -> None: + """Checks whether dictionary is a superset of subset.""" if sys.version_info >= (3, 10): # Runtime has *args, **kwargs, but will error if any are supplied def __init_subclass__(cls, *args: Never, **kwargs: Never) -> None: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/loader.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/loader.pyi index b74a2836b9..670d206e8a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/loader.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/loader.pyi @@ -1,6 +1,4 @@ -""" -Loading unittests. -""" +"""Loading unittests.""" import sys import unittest.case diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/main.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/main.pyi index da35593d58..cd55eae32a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/main.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/main.pyi @@ -1,6 +1,4 @@ -""" -Unittest main program -""" +"""Unittest main program""" import sys import unittest.case diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/mock.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/mock.pyi index 7c5544f87f..1e3b07cada 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/mock.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/mock.pyi @@ -451,7 +451,7 @@ class _patch(Generic[_T]): # This class does not exist at runtime, it's a hack to make this work: # @patch("foo") # def bar(..., mock: MagicMock) -> None: ... -class _patch_default_new(_patch[MagicMock | AsyncMock]): +class _patch_pass_arg(_patch[_T]): @overload def __call__(self, func: _TT) -> _TT: ... # Can't use the following as ParamSpec is only allowed as last parameter: @@ -523,7 +523,7 @@ class _patcher: create: bool = ..., spec_set: Any | None = ..., autospec: Any | None = ..., - new_callable: Any | None = ..., + new_callable: Callable[..., Any] | None = ..., **kwargs: Any, ) -> _patch[_T]: ... @overload @@ -535,9 +535,21 @@ class _patcher: create: bool = ..., spec_set: Any | None = ..., autospec: Any | None = ..., - new_callable: Any | None = ..., + new_callable: Callable[..., _T], **kwargs: Any, - ) -> _patch_default_new: ... + ) -> _patch_pass_arg[_T]: ... + @overload + def __call__( + self, + target: str, + *, + spec: Any | None = ..., + create: bool = ..., + spec_set: Any | None = ..., + autospec: Any | None = ..., + new_callable: None = ..., + **kwargs: Any, + ) -> _patch_pass_arg[MagicMock | AsyncMock]: ... @overload @staticmethod def object( @@ -548,7 +560,7 @@ class _patcher: create: bool = ..., spec_set: Any | None = ..., autospec: Any | None = ..., - new_callable: Any | None = ..., + new_callable: Callable[..., Any] | None = ..., **kwargs: Any, ) -> _patch[_T]: ... @overload @@ -561,9 +573,22 @@ class _patcher: create: bool = ..., spec_set: Any | None = ..., autospec: Any | None = ..., - new_callable: Any | None = ..., + new_callable: Callable[..., _T], **kwargs: Any, - ) -> _patch[MagicMock | AsyncMock]: ... + ) -> _patch_pass_arg[_T]: ... + @overload + @staticmethod + def object( + target: Any, + attribute: str, + *, + spec: Any | None = ..., + create: bool = ..., + spec_set: Any | None = ..., + autospec: Any | None = ..., + new_callable: None = ..., + **kwargs: Any, + ) -> _patch_pass_arg[MagicMock | AsyncMock]: ... @staticmethod def multiple( target: Any, diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/result.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/result.pyi index 72fb81d963..121d275d3b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/result.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/result.pyi @@ -1,6 +1,4 @@ -""" -Test result object -""" +"""Test result object""" import sys import unittest.case diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/runner.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/runner.pyi index 700629bec9..e98d381cf3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/runner.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/runner.pyi @@ -1,6 +1,4 @@ -""" -Running tests -""" +"""Running tests""" import sys import unittest.case @@ -57,10 +55,7 @@ class TextTestResult(unittest.result.TestResult, Generic[_StreamT]): to ensure compatibility as the interface changes. """ else: - def __init__(self, stream: _StreamT, descriptions: bool, verbosity: int) -> None: - """Construct a TextTestResult. Subclasses should accept **kwargs - to ensure compatibility as the interface changes. - """ + def __init__(self, stream: _StreamT, descriptions: bool, verbosity: int) -> None: ... def getDescription(self, test: unittest.case.TestCase) -> str: ... def printErrorList(self, flavour: str, errors: Iterable[tuple[unittest.case.TestCase, str]]) -> None: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/suite.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/suite.pyi index 8bf449bda3..3445b85ce3 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/suite.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/suite.pyi @@ -1,6 +1,4 @@ -""" -TestSuite -""" +"""TestSuite""" import unittest.case import unittest.result diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/util.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/util.pyi index d61b410187..d0e0dfbacd 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/unittest/util.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/unittest/util.pyi @@ -1,6 +1,4 @@ -""" -Various utility functions. -""" +"""Various utility functions.""" from collections.abc import MutableSequence, Sequence from typing import Any, Final, TypeVar diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/error.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/error.pyi index abb3b5d4d1..42386f7f06 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/error.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/error.pyi @@ -1,5 +1,4 @@ -""" -Exception classes raised by urllib. +"""Exception classes raised by urllib. The base exception class is URLError, which inherits from OSError. It doesn't define any behavior of its own, but is the base class for all diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/parse.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/parse.pyi index 9a9c2cc613..db26e5d9b5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/parse.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/parse.pyi @@ -1,5 +1,4 @@ -""" -Parse (absolute and relative) URLs. +"""Parse (absolute and relative) URLs. urlparse module is based upon the following RFC specifications. @@ -421,15 +420,51 @@ def urlsplit(url: str, scheme: str = "", allow_fragments: bool = True) -> SplitR if sys.version_info >= (3, 11): @overload - def urlsplit( - url: bytes | None, scheme: bytes | None | Literal[""] = "", allow_fragments: bool = True - ) -> SplitResultBytes: ... + def urlsplit(url: bytes | None, scheme: bytes | None | Literal[""] = "", allow_fragments: bool = True) -> SplitResultBytes: + """Parse a URL into 5 components: + :///?# + + The result is a named 5-tuple with fields corresponding to the + above. It is either a SplitResult or SplitResultBytes object, + depending on the type of the url parameter. + + The username, password, hostname, and port sub-components of netloc + can also be accessed as attributes of the returned object. + + The scheme argument provides the default value of the scheme + component when no scheme is found in url. + + If allow_fragments is False, no attempt is made to separate the + fragment component from the previous component, which can be either + path or query. + + Note that % escapes are not expanded. + """ else: @overload def urlsplit( url: bytes | bytearray | None, scheme: bytes | bytearray | None | Literal[""] = "", allow_fragments: bool = True - ) -> SplitResultBytes: ... + ) -> SplitResultBytes: + """Parse a URL into 5 components: + :///?# + + The result is a named 5-tuple with fields corresponding to the + above. It is either a SplitResult or SplitResultBytes object, + depending on the type of the url parameter. + + The username, password, hostname, and port sub-components of netloc + can also be accessed as attributes of the returned object. + + The scheme argument provides the default value of the scheme + component when no scheme is found in url. + + If allow_fragments is False, no attempt is made to separate the + fragment component from the previous component, which can be either + path or query. + + Note that % escapes are not expanded. + """ # Requires an iterable of length 6 @overload diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/request.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/request.pyi index b6bbdc4d8a..4d5556867b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/request.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/request.pyi @@ -1,5 +1,4 @@ -""" -An extensible library for opening URLs using a variety of protocols +"""An extensible library for opening URLs using a variety of protocols The simplest way to use this module is to call the urlopen function, which accepts a string containing a URL or a Request object (described diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/response.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/response.pyi index 9e5bace7a9..0012cd166d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/response.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/response.pyi @@ -1,5 +1,4 @@ -""" -Response classes used by urllib. +"""Response classes used by urllib. The base class, addbase, defines a minimal file-like interface, including read() and readline(). The typical response object is an diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/robotparser.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/robotparser.pyi index 8a64bd78cc..406969f82d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/urllib/robotparser.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/urllib/robotparser.pyi @@ -1,5 +1,4 @@ -""" -robotparser.py +"""robotparser.py Copyright (C) 2000 Bastian Kleineidam diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/uu.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/uu.pyi index 5484712ab5..158a8affaa 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/uu.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/uu.pyi @@ -1,5 +1,4 @@ -""" -Implementation of the UUencode and UUdecode functions. +"""Implementation of the UUencode and UUdecode functions. encode(in_file, out_file [,name, mode], *, backtick=False) decode(in_file [, out_file, mode, quiet]) diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/uuid.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/uuid.pyi index 2f58bfc1a2..4241f5b881 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/uuid.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/uuid.pyi @@ -1,5 +1,4 @@ -""" -UUID objects (universally unique identifiers) according to RFC 4122/9562. +"""UUID objects (universally unique identifiers) according to RFC 4122/9562. This module provides immutable UUID objects (class UUID) and functions for generating UUIDs corresponding to a specific UUID version as specified in @@ -143,7 +142,7 @@ class UUID: int: builtins.int | None = None, version: builtins.int | None = None, *, - is_safe: SafeUUID = ..., + is_safe: SafeUUID = SafeUUID.unknown, ) -> None: """Create a UUID from either a string of 32 hexadecimal digits, a string of 16 bytes as the 'bytes' argument, a string of 16 bytes diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/venv/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/venv/__init__.pyi index 5ee02fa498..cf8063bf73 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/venv/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/venv/__init__.pyi @@ -1,11 +1,9 @@ """ - Virtual environment (venv) package for Python. Based on PEP 405. Copyright (C) 2011-2014 Vinay Sajip. Licensed to the PSF under a contributor agreement. """ - import logging import sys from _typeshed import StrOrBytesPath @@ -18,30 +16,30 @@ CORE_VENV_DEPS: tuple[str, ...] class EnvBuilder: """This class exists to allow virtual environment creation to be - customized. The constructor parameters determine the builder's - behaviour when called upon to create a virtual environment. +customized. The constructor parameters determine the builder's +behaviour when called upon to create a virtual environment. - By default, the builder makes the system (global) site-packages dir - *un*available to the created environment. +By default, the builder makes the system (global) site-packages dir +*un*available to the created environment. - If invoked using the Python -m option, the default is to use copying - on Windows platforms but symlinks elsewhere. If instantiated some - other way, the default is to *not* use symlinks. +If invoked using the Python -m option, the default is to use copying +on Windows platforms but symlinks elsewhere. If instantiated some +other way, the default is to *not* use symlinks. - :param system_site_packages: If True, the system (global) site-packages - dir is available to created environments. - :param clear: If True, delete the contents of the environment directory if - it already exists, before environment creation. - :param symlinks: If True, attempt to symlink rather than copy files into - virtual environment. - :param upgrade: If True, upgrade an existing virtual environment. - :param with_pip: If True, ensure pip is installed in the virtual - environment - :param prompt: Alternative terminal prefix for the environment. - :param upgrade_deps: Update the base venv modules to the latest on PyPI - :param scm_ignore_files: Create ignore files for the SCMs specified by the - iterable. - """ +:param system_site_packages: If True, the system (global) site-packages + dir is available to created environments. +:param clear: If True, delete the contents of the environment directory if + it already exists, before environment creation. +:param symlinks: If True, attempt to symlink rather than copy files into + virtual environment. +:param upgrade: If True, upgrade an existing virtual environment. +:param with_pip: If True, ensure pip is installed in the virtual + environment +:param prompt: Alternative terminal prefix for the environment. +:param upgrade_deps: Update the base venv modules to the latest on PyPI +:param scm_ignore_files: Create ignore files for the SCMs specified by the + iterable. +""" system_site_packages: bool clear: bool symlinks: bool @@ -77,86 +75,86 @@ class EnvBuilder: def create(self, env_dir: StrOrBytesPath) -> None: """Create a virtual environment in a directory. - :param env_dir: The target directory to create an environment in. - """ +:param env_dir: The target directory to create an environment in. +""" def clear_directory(self, path: StrOrBytesPath) -> None: ... # undocumented def ensure_directories(self, env_dir: StrOrBytesPath) -> SimpleNamespace: """Create the directories for the environment. - Returns a context object which holds paths in the environment, - for use by subsequent logic. - """ +Returns a context object which holds paths in the environment, +for use by subsequent logic. +""" def create_configuration(self, context: SimpleNamespace) -> None: """Create a configuration file indicating where the environment's Python - was copied from, and whether the system site-packages should be made - available in the environment. +was copied from, and whether the system site-packages should be made +available in the environment. - :param context: The information for the environment creation request - being processed. - """ +:param context: The information for the environment creation request + being processed. +""" def symlink_or_copy( self, src: StrOrBytesPath, dst: StrOrBytesPath, relative_symlinks_ok: bool = False ) -> None: # undocumented """Try symlinking a file, and if that fails, fall back to copying. - (Unused on Windows, because we can't just copy a failed symlink file: we - switch to a different set of files instead.) - """ +(Unused on Windows, because we can't just copy a failed symlink file: we +switch to a different set of files instead.) +""" def setup_python(self, context: SimpleNamespace) -> None: """Set up a Python executable in the environment. - :param context: The information for the environment creation request - being processed. - """ +:param context: The information for the environment creation request + being processed. +""" def _setup_pip(self, context: SimpleNamespace) -> None: # undocumented """Installs or upgrades pip in a virtual environment - """ +""" def setup_scripts(self, context: SimpleNamespace) -> None: """Set up scripts into the created environment from a directory. - This method installs the default scripts into the environment - being created. You can prevent the default installation by overriding - this method if you really need to, or if you need to specify - a different location for the scripts to install. By default, the - 'scripts' directory in the venv package is used as the source of - scripts to install. - """ +This method installs the default scripts into the environment +being created. You can prevent the default installation by overriding +this method if you really need to, or if you need to specify +a different location for the scripts to install. By default, the +'scripts' directory in the venv package is used as the source of +scripts to install. +""" def post_setup(self, context: SimpleNamespace) -> None: """Hook for post-setup modification of the venv. Subclasses may install - additional packages or scripts here, add activation shell scripts, etc. +additional packages or scripts here, add activation shell scripts, etc. - :param context: The information for the environment creation request - being processed. - """ +:param context: The information for the environment creation request + being processed. +""" def replace_variables(self, text: str, context: SimpleNamespace) -> str: # undocumented """Replace variable placeholders in script text with context-specific - variables. +variables. - Return the text passed in , but with variables replaced. +Return the text passed in , but with variables replaced. - :param text: The text in which to replace placeholder variables. - :param context: The information for the environment creation request - being processed. - """ +:param text: The text in which to replace placeholder variables. +:param context: The information for the environment creation request + being processed. +""" def install_scripts(self, context: SimpleNamespace, path: str) -> None: """Install scripts into the created environment from a directory. - :param context: The information for the environment creation request - being processed. - :param path: Absolute pathname of a directory containing script. - Scripts in the 'common' subdirectory of this directory, - and those in the directory named for the platform - being run on, are installed in the created environment. - Placeholder variables are replaced with environment- - specific values. - """ +:param context: The information for the environment creation request + being processed. +:param path: Absolute pathname of a directory containing script. + Scripts in the 'common' subdirectory of this directory, + and those in the directory named for the platform + being run on, are installed in the created environment. + Placeholder variables are replaced with environment- + specific values. +""" def upgrade_dependencies(self, context: SimpleNamespace) -> None: ... if sys.version_info >= (3, 13): def create_git_ignore_file(self, context: SimpleNamespace) -> None: """Create a .gitignore file in the environment directory. - The contents of the file cause the entire environment directory to be - ignored by git. - """ +The contents of the file cause the entire environment directory to be +ignored by git. +""" if sys.version_info >= (3, 13): def create( @@ -171,7 +169,7 @@ if sys.version_info >= (3, 13): scm_ignore_files: Iterable[str] = ..., ) -> None: """Create a virtual environment in a directory. - """ +""" else: def create( @@ -184,6 +182,6 @@ else: upgrade_deps: bool = False, ) -> None: """Create a virtual environment in a directory. - """ +""" def main(args: Sequence[str] | None = None) -> None: ... diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/warnings.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/warnings.pyi index 1f0a32e880..3a91bedd41 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/warnings.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/warnings.pyi @@ -1,6 +1,4 @@ -""" -Python part of the warnings subsystem. -""" +"""Python part of the warnings subsystem.""" import re import sys @@ -158,6 +156,9 @@ class catch_warnings(Generic[_W_co]): def __init__(self: catch_warnings[None], *, record: Literal[False] = False, module: ModuleType | None = None) -> None: """Specify whether to record warnings and if an alternative module should be used other than sys.modules['warnings']. + + For compatibility with Python 3.0, please consider all arguments to be + keyword-only. """ @overload diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/wave.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/wave.pyi index 5ba98cf5a4..11d79c127c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/wave.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/wave.pyi @@ -1,5 +1,4 @@ -""" -Stuff to parse WAVE files. +"""Stuff to parse WAVE files. Usage. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/weakref.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/weakref.pyi index 0aedfdef6a..162d6aecbf 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/weakref.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/weakref.pyi @@ -1,5 +1,4 @@ -""" -Weak reference support for Python. +"""Weak reference support for Python. This module is an implementation of PEP 205: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/webbrowser.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/webbrowser.pyi index f35cc7cdd7..84e1466005 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/webbrowser.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/webbrowser.pyi @@ -1,6 +1,4 @@ -""" -Interfaces for launching and remotely controlling web browsers. -""" +"""Interfaces for launching and remotely controlling web browsers.""" import sys from abc import abstractmethod diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/winreg.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/winreg.pyi index a717fe3f3f..328e131386 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/winreg.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/winreg.pyi @@ -1,5 +1,4 @@ -""" -This module provides access to the Windows registry API. +"""This module provides access to the Windows registry API. Functions: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/winsound.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/winsound.pyi index 99ed1cc450..cd80dab55a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/winsound.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/winsound.pyi @@ -1,5 +1,4 @@ -""" -PlaySound(sound, flags) - play a sound +"""PlaySound(sound, flags) - play a sound SND_FILENAME - sound is a wav file name SND_ALIAS - sound is a registry sound association name SND_LOOP - Play the sound repeatedly; must also specify SND_ASYNC diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/__init__.pyi index e69de29bb2..59ee48fdde 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/__init__.pyi @@ -0,0 +1,25 @@ +"""wsgiref -- a WSGI (PEP 3333) Reference Library + +Current Contents: + +* util -- Miscellaneous useful functions and wrappers + +* headers -- Manage response headers + +* handlers -- base classes for server/gateway implementations + +* simple_server -- a simple BaseHTTPServer that supports WSGI + +* validate -- validation wrapper that sits between an app and a server + to detect errors in either + +* types -- collection of WSGI-related types for static type checking + +To-Do: + +* cgi_gateway -- Run WSGI apps under CGI (pending a deployment standard) + +* cgi_wrapper -- Run CGI apps under WSGI + +* router -- a simple middleware component that handles URL traversal +""" diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/handlers.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/handlers.pyi index 35b3b8756d..82f7f560a7 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/handlers.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/handlers.pyi @@ -1,6 +1,4 @@ -""" -Base classes for server/gateway implementations -""" +"""Base classes for server/gateway implementations""" from _typeshed import OptExcInfo from _typeshed.wsgi import ErrorStream, InputStream, StartResponse, WSGIApplication, WSGIEnvironment diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/headers.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/headers.pyi index ee1d7c2094..324876c9ab 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/headers.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/headers.pyi @@ -1,5 +1,4 @@ -""" -Manage HTTP Response Headers +"""Manage HTTP Response Headers Much of this module is red-handedly pilfered from email.message in the stdlib, so portions are Copyright (C) 2001 Python Software Foundation, and were diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/simple_server.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/simple_server.pyi index 3a5032fbc9..4dd421534e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/simple_server.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/simple_server.pyi @@ -1,5 +1,4 @@ -""" -BaseHTTPServer that implements the Python WSGI protocol (PEP 3333) +"""BaseHTTPServer that implements the Python WSGI protocol (PEP 3333) This is both an example of how WSGI can be implemented, and a basis for running simple web applications on a local machine, such as might be done when testing diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/types.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/types.pyi index 3ee4da7362..cbb98184ec 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/types.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/types.pyi @@ -1,6 +1,4 @@ -""" -WSGI-related types for static type checking -""" +"""WSGI-related types for static type checking""" from _typeshed import OptExcInfo from collections.abc import Callable, Iterable, Iterator diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/util.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/util.pyi index 4005e3b8bc..a89336a1c1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/util.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/util.pyi @@ -1,6 +1,4 @@ -""" -Miscellaneous WSGI-related Utilities -""" +"""Miscellaneous WSGI-related Utilities""" import sys from _typeshed.wsgi import WSGIEnvironment diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/validate.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/validate.pyi index ad2d25da22..260758b47a 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/validate.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/wsgiref/validate.pyi @@ -1,5 +1,4 @@ """ - Middleware to check for obedience to the WSGI specification. Some of the things this checks: diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xdrlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xdrlib.pyi index 9a2ed92bea..b9029e0170 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xdrlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xdrlib.pyi @@ -1,7 +1,7 @@ -""" -Implements (a subset of) Sun XDR -- eXternal Data Representation. +"""Implements (a subset of) Sun XDR -- eXternal Data Representation. See: RFC 1014 + """ from collections.abc import Callable, Sequence diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/__init__.pyi index 9798a6ca97..a99fc38e3f 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/__init__.pyi @@ -1,5 +1,4 @@ -""" -Core XML support for Python. +"""Core XML support for Python. This package contains four sub-packages: @@ -14,6 +13,7 @@ sax -- The Simple API for XML, developed by XML-Dev, led by David etree -- The ElementTree XML library. This is a subset of the full ElementTree XML release. + """ # At runtime, listing submodules in __all__ without them being imported is diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/__init__.pyi index a29f7d06ab..b620f0ac0c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/__init__.pyi @@ -1,5 +1,4 @@ -""" -W3C Document Object Model implementation for Python. +"""W3C Document Object Model implementation for Python. The Python mapping of the Document Object Model is documented in the Python Library Reference in the section on the xml.dom package. @@ -12,6 +11,7 @@ minidom -- A simple implementation of the Level 1 DOM with namespace pulldom -- DOM builder supporting on-demand tree-building for selected subtrees of the document. + """ from typing import Any, Final, Literal diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/domreg.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/domreg.pyi index 05cbbaf72d..4d6cf5f45c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/domreg.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/domreg.pyi @@ -1,5 +1,4 @@ -""" -Registration facilities for DOM. This module should not be used +"""Registration facilities for DOM. This module should not be used directly. Instead, the functions getDOMImplementation and registerDOMImplementation should be imported from xml.dom. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/expatbuilder.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/expatbuilder.pyi index cdb0ce4047..658d9830d8 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/expatbuilder.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/expatbuilder.pyi @@ -1,5 +1,4 @@ -""" -Facility to use the Expat parser to load a minidom instance +"""Facility to use the Expat parser to load a minidom instance from a string or file. This avoids all the overhead of SAX and pulldom to gain performance. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/minicompat.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/minicompat.pyi index 026e1db05f..2ca37b881b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/minicompat.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/minicompat.pyi @@ -1,5 +1,4 @@ -""" -Python version compatibility support for minidom. +"""Python version compatibility support for minidom. This module contains internal implementation details and should not be imported; use xml.dom.minidom instead. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/minidom.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/minidom.pyi index bac8efb041..05de51bf38 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/minidom.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/minidom.pyi @@ -1,5 +1,4 @@ -""" -Simple implementation of the Level 1 DOM. +"""Simple implementation of the Level 1 DOM. Namespaces and other minor Level 2 features are also supported. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/xmlbuilder.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/xmlbuilder.pyi index 8fa87d80d9..6a03e23a8e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/xmlbuilder.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/dom/xmlbuilder.pyi @@ -1,6 +1,4 @@ -""" -Implementation of the DOM Level 3 'LS-Load' feature. -""" +"""Implementation of the DOM Level 3 'LS-Load' feature.""" from _typeshed import SupportsRead from typing import Any, Literal, NoReturn diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/etree/ElementTree.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/etree/ElementTree.pyi index 19138824c3..da6015c6ff 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/etree/ElementTree.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/etree/ElementTree.pyi @@ -1,5 +1,4 @@ -""" -Lightweight XML support for Python. +"""Lightweight XML support for Python. XML is an inherently hierarchical data format, and the most natural way to represent it is with a tree. This module has two classes for this purpose: @@ -31,6 +30,7 @@ or the SubElement factory function. You can also use the ElementTree class to wrap an element structure and convert it to and from XML. + """ import sys diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/__init__.pyi index 3cd09120cc..82eee29371 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/__init__.pyi @@ -1,10 +1,10 @@ -""" -Python interfaces to XML parsers. +"""Python interfaces to XML parsers. This package contains one module: expat -- Python wrapper for James Clark's Expat parser, with namespace support. + """ from xml.parsers import expat as expat diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/__init__.pyi index 2c90c5d8e0..c4ec99a4b1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/__init__.pyi @@ -1,6 +1,4 @@ -""" -Interface to the Expat non-validating XML parser. -""" +"""Interface to the Expat non-validating XML parser.""" from pyexpat import * diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/errors.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/errors.pyi index f657ed4ae6..185a8df99c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/errors.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/errors.pyi @@ -1,5 +1,3 @@ -""" -Constants used to describe error conditions. -""" +"""Constants used to describe error conditions.""" from pyexpat.errors import * diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/model.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/model.pyi index 7995207dbd..23131be71d 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/model.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/parsers/expat/model.pyi @@ -1,5 +1,3 @@ -""" -Constants used to interpret content model information. -""" +"""Constants used to interpret content model information.""" from pyexpat.model import * diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/__init__.pyi index e29ad16a3c..720ca5c57c 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/__init__.pyi @@ -1,5 +1,4 @@ -""" -Simple API for XML (SAX) implementation for Python. +"""Simple API for XML (SAX) implementation for Python. This module provides an implementation of the SAX 2 interface; information about the Java version of the interface can be found at diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/_exceptions.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/_exceptions.pyi index 96f8bf7cb9..1803a2abc1 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/_exceptions.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/_exceptions.pyi @@ -1,6 +1,4 @@ -""" -Different kinds of SAX Exceptions -""" +"""Different kinds of SAX Exceptions""" from typing import NoReturn from xml.sax.xmlreader import Locator diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/expatreader.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/expatreader.pyi index 37cd77e100..366cb60c80 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/expatreader.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/expatreader.pyi @@ -1,5 +1,4 @@ """ - SAX driver for the pyexpat C module. This driver works with pyexpat.__version__ == '2.22'. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/handler.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/handler.pyi index 77e0970532..d35ad8a713 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/handler.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/handler.pyi @@ -1,5 +1,4 @@ """ - This module contains the core classes of version 2.0 of SAX for Python. This file provides only default classes with absolutely minimum functionality, from which drivers and applications can be subclassed. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/saxutils.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/saxutils.pyi index 88ae28c3b9..9873218936 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/saxutils.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/saxutils.pyi @@ -1,5 +1,4 @@ -""" -A library of useful helper classes to the SAX classes, for the +"""A library of useful helper classes to the SAX classes, for the convenience of application and driver writers. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/xmlreader.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/xmlreader.pyi index f6285d61de..27ada17927 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/xmlreader.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xml/sax/xmlreader.pyi @@ -1,5 +1,4 @@ -""" -An XML Reader is the SAX 2 name for an XML parser. XML Parsers +"""An XML Reader is the SAX 2 name for an XML parser. XML Parsers should be based on this code. """ diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xmlrpc/client.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xmlrpc/client.pyi index b0758e5007..02c4e94beb 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xmlrpc/client.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xmlrpc/client.pyi @@ -1,5 +1,4 @@ """ - An XML-RPC client interface for Python. The marshalling and response parser code can also be used to diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xmlrpc/server.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xmlrpc/server.pyi index cec2524fbc..d35128bcb6 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xmlrpc/server.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xmlrpc/server.pyi @@ -1,5 +1,4 @@ -""" -XML-RPC Servers. +"""XML-RPC Servers. This module can be used to create simple XML-RPC servers by creating a server and either installing functions, a diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/xxlimited.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/xxlimited.pyi index d63d49a6eb..17d744cf83 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/xxlimited.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/xxlimited.pyi @@ -1,6 +1,4 @@ -""" -This is a template module just for instruction. -""" +"""This is a template module just for instruction.""" import sys from typing import Any, ClassVar, final diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/zipfile/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/zipfile/__init__.pyi index 1a8ca7b1f3..5ec2e053b2 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/zipfile/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/zipfile/__init__.pyi @@ -1,5 +1,4 @@ """ - Read and write ZIP files. XXX references to utf-8 need further investigation. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/zipfile/_path/__init__.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/zipfile/_path/__init__.pyi index 05fddc05ad..fb82418ea5 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/zipfile/_path/__init__.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/zipfile/_path/__init__.pyi @@ -1,5 +1,4 @@ """ - A Path-like interface for zipfiles. This codebase is shared between zipfile.Path in the stdlib diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/zipimport.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/zipimport.pyi index 0e56e78be3..1cd54d940b 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/zipimport.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/zipimport.pyi @@ -1,5 +1,4 @@ -""" -zipimport provides support for importing Python modules from Zip archives. +"""zipimport provides support for importing Python modules from Zip archives. This module exports two objects: - zipimporter: a class; its constructor takes a path to a Zip archive. @@ -54,8 +53,30 @@ class zipimporter(_LoaderBasics): def __init__(self, path: StrOrBytesPath) -> None: ... if sys.version_info < (3, 12): - def find_loader(self, fullname: str, path: str | None = None) -> tuple[zipimporter | None, list[str]]: ... # undocumented - def find_module(self, fullname: str, path: str | None = None) -> zipimporter | None: ... + def find_loader(self, fullname: str, path: str | None = None) -> tuple[zipimporter | None, list[str]]: # undocumented + """find_loader(fullname, path=None) -> self, str or None. + + Search for a module specified by 'fullname'. 'fullname' must be the + fully qualified (dotted) module name. It returns the zipimporter + instance itself if the module was found, a string containing the + full path name if it's possibly a portion of a namespace package, + or None otherwise. The optional 'path' argument is ignored -- it's + there for compatibility with the importer protocol. + + Deprecated since Python 3.10. Use find_spec() instead. + """ + + def find_module(self, fullname: str, path: str | None = None) -> zipimporter | None: + """find_module(fullname, path=None) -> self or None. + + Search for a module specified by 'fullname'. 'fullname' must be the + fully qualified (dotted) module name. It returns the zipimporter + instance itself if the module was found, or None if it wasn't. + The optional 'path' argument is ignored -- it's there for compatibility + with the importer protocol. + + Deprecated since Python 3.10. Use find_spec() instead. + """ def get_code(self, fullname: str) -> CodeType: """get_code(fullname) -> code object. @@ -85,7 +106,11 @@ class zipimporter(_LoaderBasics): """Return the ResourceReader for a module in a zip file.""" else: def get_resource_reader(self, fullname: str) -> ResourceReader | None: # undocumented - """Return the ResourceReader for a module in a zip file.""" + """Return the ResourceReader for a package in a zip file. + + If 'fullname' is a package within the zip file, return the + 'ResourceReader' object for the package. Otherwise return None. + """ def get_source(self, fullname: str) -> str | None: """get_source(fullname) -> source string. diff --git a/crates/ty_vendored/vendor/typeshed/stdlib/zlib.pyi b/crates/ty_vendored/vendor/typeshed/stdlib/zlib.pyi index 0e0c160037..93e1ac5c1e 100644 --- a/crates/ty_vendored/vendor/typeshed/stdlib/zlib.pyi +++ b/crates/ty_vendored/vendor/typeshed/stdlib/zlib.pyi @@ -1,5 +1,4 @@ -""" -The functions in this module allow compression and decompression using the +"""The functions in this module allow compression and decompression using the zlib library, which is based on GNU zip. adler32(string[, start]) -- Compute an Adler-32 checksum.