content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
import sys\nfrom abc import ABCMeta\nfrom typing import Any, Dict, Iterator, List, Mapping, Type, TypeVar, Union\n\n_T = TypeVar("_T")\n_S = TypeVar("_S", bound=Type[Enum])\n\n# Note: EnumMeta actually subclasses type directly, not ABCMeta.\n# This is a temporary workaround to allow multiple creation of enums with builtins\n# such as str as mixins, which due to the handling of ABCs of builtin types, cause\n# spurious inconsistent metaclass structure. See #1595.\n# Structurally: Iterable[T], Reversible[T], Container[T] where T is the enum itself\nclass EnumMeta(ABCMeta):\n def __iter__(self: Type[_T]) -> Iterator[_T]: ...\n def __reversed__(self: Type[_T]) -> Iterator[_T]: ...\n def __contains__(self: Type[_T], member: object) -> bool: ...\n def __getitem__(self: Type[_T], name: str) -> _T: ...\n @property\n def __members__(self: Type[_T]) -> Mapping[str, _T]: ...\n def __len__(self) -> int: ...\n\nclass Enum(metaclass=EnumMeta):\n name: str\n value: Any\n _name_: str\n _value_: Any\n _member_names_: List[str] # undocumented\n _member_map_: Dict[str, Enum] # undocumented\n _value2member_map_: Dict[int, Enum] # undocumented\n if sys.version_info >= (3, 7):\n _ignore_: Union[str, List[str]]\n _order_: str\n __order__: str\n @classmethod\n def _missing_(cls, value: object) -> Any: ...\n @staticmethod\n def _generate_next_value_(name: str, start: int, count: int, last_values: List[Any]) -> Any: ...\n def __new__(cls: Type[_T], value: object) -> _T: ...\n def __repr__(self) -> str: ...\n def __str__(self) -> str: ...\n def __dir__(self) -> List[str]: ...\n def __format__(self, format_spec: str) -> str: ...\n def __hash__(self) -> Any: ...\n def __reduce_ex__(self, proto: object) -> Any: ...\n\nclass IntEnum(int, Enum):\n value: int\n\ndef unique(enumeration: _S) -> _S: ...\n\n_auto_null: Any\n\n# subclassing IntFlag so it picks up all implemented base functions, best modeling behavior of enum.auto()\nclass auto(IntFlag):\n value: Any\n\nclass Flag(Enum):\n def __contains__(self: _T, other: _T) -> bool: ...\n def __repr__(self) -> str: ...\n def __str__(self) -> str: ...\n def __bool__(self) -> bool: ...\n def __or__(self: _T, other: _T) -> _T: ...\n def __and__(self: _T, other: _T) -> _T: ...\n def __xor__(self: _T, other: _T) -> _T: ...\n def __invert__(self: _T) -> _T: ...\n\nclass IntFlag(int, Flag):\n def __or__(self: _T, other: Union[int, _T]) -> _T: ...\n def __and__(self: _T, other: Union[int, _T]) -> _T: ...\n def __xor__(self: _T, other: Union[int, _T]) -> _T: ...\n __ror__ = __or__\n __rand__ = __and__\n __rxor__ = __xor__\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\enum.pyi | enum.pyi | Other | 2,643 | 0.95 | 0.465753 | 0.09375 | vue-tools | 661 | 2024-07-27T12:44:24.448149 | BSD-3-Clause | false | f25e6805a5089e1f879d11ed586cee48 |
import sys\nfrom _typeshed import FileDescriptorLike\n\ndef cancel_dump_traceback_later() -> None: ...\ndef disable() -> None: ...\ndef dump_traceback(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ...\ndef dump_traceback_later(timeout: float, repeat: bool = ..., file: FileDescriptorLike = ..., exit: bool = ...) -> None: ...\ndef enable(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ...\ndef is_enabled() -> bool: ...\n\nif sys.platform != "win32":\n def register(signum: int, file: FileDescriptorLike = ..., all_threads: bool = ..., chain: bool = ...) -> None: ...\n def unregister(signum: int) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\faulthandler.pyi | faulthandler.pyi | Other | 644 | 0.85 | 0.692308 | 0 | python-kit | 743 | 2025-01-07T13:07:32.893993 | GPL-3.0 | false | 0896c09fd453e48b97190e79438af70c |
import sys\nfrom _typeshed import FileDescriptorLike\nfrom array import array\nfrom typing import Any, Union, overload\nfrom typing_extensions import Literal\n\nFASYNC: int\nFD_CLOEXEC: int\nDN_ACCESS: int\nDN_ATTRIB: int\nDN_CREATE: int\nDN_DELETE: int\nDN_MODIFY: int\nDN_MULTISHOT: int\nDN_RENAME: int\nF_DUPFD: int\nF_DUPFD_CLOEXEC: int\nF_FULLFSYNC: int\nF_EXLCK: int\nF_GETFD: int\nF_GETFL: int\nF_GETLEASE: int\nF_GETLK: int\nF_GETLK64: int\nF_GETOWN: int\nF_NOCACHE: int\nF_GETSIG: int\nF_NOTIFY: int\nF_RDLCK: int\nF_SETFD: int\nF_SETFL: int\nF_SETLEASE: int\nF_SETLK: int\nF_SETLK64: int\nF_SETLKW: int\nF_SETLKW64: int\nif sys.version_info >= (3, 9) and sys.platform == "linux":\n F_OFD_GETLK: int\n F_OFD_SETLK: int\n F_OFD_SETLKW: int\nF_SETOWN: int\nF_SETSIG: int\nF_SHLCK: int\nF_UNLCK: int\nF_WRLCK: int\nI_ATMARK: int\nI_CANPUT: int\nI_CKBAND: int\nI_FDINSERT: int\nI_FIND: int\nI_FLUSH: int\nI_FLUSHBAND: int\nI_GETBAND: int\nI_GETCLTIME: int\nI_GETSIG: int\nI_GRDOPT: int\nI_GWROPT: int\nI_LINK: int\nI_LIST: int\nI_LOOK: int\nI_NREAD: int\nI_PEEK: int\nI_PLINK: int\nI_POP: int\nI_PUNLINK: int\nI_PUSH: int\nI_RECVFD: int\nI_SENDFD: int\nI_SETCLTIME: int\nI_SETSIG: int\nI_SRDOPT: int\nI_STR: int\nI_SWROPT: int\nI_UNLINK: int\nLOCK_EX: int\nLOCK_MAND: int\nLOCK_NB: int\nLOCK_READ: int\nLOCK_RW: int\nLOCK_SH: int\nLOCK_UN: int\nLOCK_WRITE: int\n@overload\ndef fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: int = ...) -> int: ...\n@overload\ndef fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: bytes) -> bytes: ...\n\n_ReadOnlyBuffer = bytes\n_WritableBuffer = Union[bytearray, memoryview, array]\n@overload\ndef ioctl(__fd: FileDescriptorLike, __request: int, __arg: int = ..., __mutate_flag: bool = ...) -> int: ...\n@overload\ndef ioctl(__fd: FileDescriptorLike, __request: int, __arg: _WritableBuffer, __mutate_flag: Literal[True] = ...) -> int: ...\n@overload\ndef ioctl(__fd: FileDescriptorLike, __request: int, __arg: _WritableBuffer, __mutate_flag: Literal[False]) -> bytes: ...\n@overload\ndef ioctl(__fd: FileDescriptorLike, __request: int, __arg: _ReadOnlyBuffer, __mutate_flag: bool = ...) -> bytes: ...\ndef flock(__fd: FileDescriptorLike, __operation: int) -> None: ...\ndef lockf(__fd: FileDescriptorLike, __cmd: int, __len: int = ..., __start: int = ..., __whence: int = ...) -> Any: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\fcntl.pyi | fcntl.pyi | Other | 2,244 | 0.85 | 0.090909 | 0 | awesome-app | 739 | 2025-05-25T20:38:52.554687 | Apache-2.0 | false | 2000762aba57656d8f351b03c7ef3516 |
from typing import AnyStr, Iterable, List\n\ndef fnmatch(name: AnyStr, pat: AnyStr) -> bool: ...\ndef fnmatchcase(name: AnyStr, pat: AnyStr) -> bool: ...\ndef filter(names: Iterable[AnyStr], pat: AnyStr) -> List[AnyStr]: ...\ndef translate(pat: str) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\fnmatch.pyi | fnmatch.pyi | Other | 257 | 0.85 | 0.666667 | 0 | node-utils | 417 | 2025-07-09T02:27:04.330323 | GPL-3.0 | false | 9909ef20bec73c2f9d356620ea2b1680 |
import sys\nfrom _typeshed import SupportsLessThan\nfrom typing import (\n Any,\n Callable,\n Dict,\n Generic,\n Hashable,\n Iterable,\n Mapping,\n NamedTuple,\n Optional,\n Sequence,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_AnyCallable = Callable[..., Any]\n\n_T = TypeVar("_T")\n_S = TypeVar("_S")\n@overload\ndef reduce(function: Callable[[_T, _S], _T], sequence: Iterable[_S], initial: _T) -> _T: ...\n@overload\ndef reduce(function: Callable[[_T, _T], _T], sequence: Iterable[_T]) -> _T: ...\n\nclass _CacheInfo(NamedTuple):\n hits: int\n misses: int\n maxsize: int\n currsize: int\n\nclass _lru_cache_wrapper(Generic[_T]):\n __wrapped__: Callable[..., _T]\n def __call__(self, *args: Hashable, **kwargs: Hashable) -> _T: ...\n def cache_info(self) -> _CacheInfo: ...\n def cache_clear(self) -> None: ...\n\nif sys.version_info >= (3, 8):\n @overload\n def lru_cache(maxsize: Optional[int] = ..., typed: bool = ...) -> Callable[[Callable[..., _T]], _lru_cache_wrapper[_T]]: ...\n @overload\n def lru_cache(maxsize: Callable[..., _T], typed: bool = ...) -> _lru_cache_wrapper[_T]: ...\n\nelse:\n def lru_cache(maxsize: Optional[int] = ..., typed: bool = ...) -> Callable[[Callable[..., _T]], _lru_cache_wrapper[_T]]: ...\n\nWRAPPER_ASSIGNMENTS: Sequence[str]\nWRAPPER_UPDATES: Sequence[str]\n\ndef update_wrapper(wrapper: _T, wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> _T: ...\ndef wraps(wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> Callable[[_T], _T]: ...\ndef total_ordering(cls: Type[_T]) -> Type[_T]: ...\ndef cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], SupportsLessThan]: ...\n\nclass partial(Generic[_T]):\n func: Callable[..., _T]\n args: Tuple[Any, ...]\n keywords: Dict[str, Any]\n def __init__(self, func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...\n def __call__(self, *args: Any, **kwargs: Any) -> _T: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\n# With protocols, this could change into a generic protocol that defines __get__ and returns _T\n_Descriptor = Any\n\nclass partialmethod(Generic[_T]):\n func: Union[Callable[..., _T], _Descriptor]\n args: Tuple[Any, ...]\n keywords: Dict[str, Any]\n @overload\n def __init__(self, __func: Callable[..., _T], *args: Any, **keywords: Any) -> None: ...\n @overload\n def __init__(self, __func: _Descriptor, *args: Any, **keywords: Any) -> None: ...\n def __get__(self, obj: Any, cls: Type[Any]) -> Callable[..., _T]: ...\n @property\n def __isabstractmethod__(self) -> bool: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass _SingleDispatchCallable(Generic[_T]):\n registry: Mapping[Any, Callable[..., _T]]\n def dispatch(self, cls: Any) -> Callable[..., _T]: ...\n @overload\n def register(self, cls: Any) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...\n @overload\n def register(self, cls: Any, func: Callable[..., _T]) -> Callable[..., _T]: ...\n def _clear_cache(self) -> None: ...\n def __call__(self, *args: Any, **kwargs: Any) -> _T: ...\n\ndef singledispatch(func: Callable[..., _T]) -> _SingleDispatchCallable[_T]: ...\n\nif sys.version_info >= (3, 8):\n class singledispatchmethod(Generic[_T]):\n dispatcher: _SingleDispatchCallable[_T]\n func: Callable[..., _T]\n def __init__(self, func: Callable[..., _T]) -> None: ...\n @overload\n def register(self, cls: Any, method: None = ...) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...\n @overload\n def register(self, cls: Any, method: Callable[..., _T]) -> Callable[..., _T]: ...\n def __call__(self, *args: Any, **kwargs: Any) -> _T: ...\n class cached_property(Generic[_T]):\n func: Callable[[Any], _T]\n attrname: Optional[str]\n def __init__(self, func: Callable[[Any], _T]) -> None: ...\n @overload\n def __get__(self, instance: None, owner: Optional[Type[Any]] = ...) -> cached_property[_T]: ...\n @overload\n def __get__(self, instance: _S, owner: Optional[Type[Any]] = ...) -> _T: ...\n def __set_name__(self, owner: Type[Any], name: str) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nif sys.version_info >= (3, 9):\n def cache(__user_function: Callable[..., _T]) -> _lru_cache_wrapper[_T]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\functools.pyi | functools.pyi | Other | 4,613 | 0.95 | 0.422764 | 0.009346 | awesome-app | 396 | 2023-11-16T06:52:27.535334 | BSD-3-Clause | false | c4233dd777b7bd2d03c81b20af9f5f53 |
import sys\nfrom typing import Any, Dict, List, Optional, Tuple\n\nDEBUG_COLLECTABLE: int\nDEBUG_LEAK: int\nDEBUG_SAVEALL: int\nDEBUG_STATS: int\nDEBUG_UNCOLLECTABLE: int\ncallbacks: List[Any]\ngarbage: List[Any]\n\ndef collect(generation: int = ...) -> int: ...\ndef disable() -> None: ...\ndef enable() -> None: ...\ndef get_count() -> Tuple[int, int, int]: ...\ndef get_debug() -> int: ...\n\nif sys.version_info >= (3, 8):\n def get_objects(generation: Optional[int] = ...) -> List[Any]: ...\n\nelse:\n def get_objects() -> List[Any]: ...\n\nif sys.version_info >= (3, 7):\n def freeze() -> None: ...\n def unfreeze() -> None: ...\n def get_freeze_count() -> int: ...\n\ndef get_referents(*objs: Any) -> List[Any]: ...\ndef get_referrers(*objs: Any) -> List[Any]: ...\ndef get_stats() -> List[Dict[str, Any]]: ...\ndef get_threshold() -> Tuple[int, int, int]: ...\ndef is_tracked(__obj: Any) -> bool: ...\n\nif sys.version_info >= (3, 9):\n def is_finalized(__obj: Any) -> bool: ...\n\ndef isenabled() -> bool: ...\ndef set_debug(__flags: int) -> None: ...\ndef set_threshold(threshold0: int, threshold1: int = ..., threshold2: int = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\gc.pyi | gc.pyi | Other | 1,135 | 0.85 | 0.55 | 0 | awesome-app | 262 | 2023-09-18T13:13:45.805782 | Apache-2.0 | false | d8016482ff590b815fe4983ef0a548f2 |
from typing import List, Tuple\n\ndef getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...\ndef gnu_getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...\n\nclass GetoptError(Exception):\n msg: str\n opt: str\n\nerror = GetoptError\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\getopt.pyi | getopt.pyi | Other | 352 | 0.85 | 0.3 | 0 | awesome-app | 178 | 2024-09-15T05:23:23.529814 | Apache-2.0 | false | 25e11a38d9f295f417122c86ae4dd79a |
from typing import Optional, TextIO\n\ndef getpass(prompt: str = ..., stream: Optional[TextIO] = ...) -> str: ...\ndef getuser() -> str: ...\n\nclass GetPassWarning(UserWarning): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\getpass.pyi | getpass.pyi | Other | 178 | 0.85 | 0.5 | 0 | awesome-app | 724 | 2023-09-11T02:54:02.847743 | Apache-2.0 | false | a2e4bb6ca49cb48c379545e2f0ea697a |
import sys\nfrom _typeshed import StrPath\nfrom typing import IO, Any, Container, Iterable, Optional, Sequence, Type, TypeVar, overload\nfrom typing_extensions import Literal\n\nclass NullTranslations:\n def __init__(self, fp: Optional[IO[str]] = ...) -> None: ...\n def _parse(self, fp: IO[str]) -> None: ...\n def add_fallback(self, fallback: NullTranslations) -> None: ...\n def gettext(self, message: str) -> str: ...\n def lgettext(self, message: str) -> str: ...\n def ngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...\n def lngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...\n if sys.version_info >= (3, 8):\n def pgettext(self, context: str, message: str) -> str: ...\n def npgettext(self, context: str, msgid1: str, msgid2: str, n: int) -> str: ...\n def info(self) -> Any: ...\n def charset(self) -> Any: ...\n def output_charset(self) -> Any: ...\n def set_output_charset(self, charset: str) -> None: ...\n def install(self, names: Optional[Container[str]] = ...) -> None: ...\n\nclass GNUTranslations(NullTranslations):\n LE_MAGIC: int\n BE_MAGIC: int\n CONTEXT: str\n VERSIONS: Sequence[int]\n\ndef find(domain: str, localedir: Optional[StrPath] = ..., languages: Optional[Iterable[str]] = ..., all: bool = ...) -> Any: ...\n\n_T = TypeVar("_T")\n@overload\ndef translation(\n domain: str,\n localedir: Optional[StrPath] = ...,\n languages: Optional[Iterable[str]] = ...,\n class_: None = ...,\n fallback: bool = ...,\n codeset: Optional[str] = ...,\n) -> NullTranslations: ...\n@overload\ndef translation(\n domain: str,\n localedir: Optional[StrPath] = ...,\n languages: Optional[Iterable[str]] = ...,\n class_: Type[_T] = ...,\n fallback: Literal[False] = ...,\n codeset: Optional[str] = ...,\n) -> _T: ...\n@overload\ndef translation(\n domain: str,\n localedir: Optional[StrPath] = ...,\n languages: Optional[Iterable[str]] = ...,\n class_: Type[_T] = ...,\n fallback: Literal[True] = ...,\n codeset: Optional[str] = ...,\n) -> Any: ...\ndef install(\n domain: str, localedir: Optional[StrPath] = ..., codeset: Optional[str] = ..., names: Optional[Container[str]] = ...\n) -> None: ...\ndef textdomain(domain: Optional[str] = ...) -> str: ...\ndef bindtextdomain(domain: str, localedir: Optional[StrPath] = ...) -> str: ...\ndef bind_textdomain_codeset(domain: str, codeset: Optional[str] = ...) -> str: ...\ndef dgettext(domain: str, message: str) -> str: ...\ndef ldgettext(domain: str, message: str) -> str: ...\ndef dngettext(domain: str, msgid1: str, msgid2: str, n: int) -> str: ...\ndef ldngettext(domain: str, msgid1: str, msgid2: str, n: int) -> str: ...\ndef gettext(message: str) -> str: ...\ndef lgettext(message: str) -> str: ...\ndef ngettext(msgid1: str, msgid2: str, n: int) -> str: ...\ndef lngettext(msgid1: str, msgid2: str, n: int) -> str: ...\n\nif sys.version_info >= (3, 8):\n def pgettext(context: str, message: str) -> str: ...\n def dpgettext(domain: str, context: str, message: str) -> str: ...\n def npgettext(context: str, msgid1: str, msgid2: str, n: int) -> str: ...\n def dnpgettext(domain: str, context: str, msgid1: str, msgid2: str, n: int) -> str: ...\n\nCatalog = translation\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\gettext.pyi | gettext.pyi | Other | 3,208 | 0.85 | 0.475 | 0 | vue-tools | 192 | 2024-02-05T03:19:50.717444 | BSD-3-Clause | false | fe93f3101e3df1636d6023932f7340b2 |
from typing import AnyStr, Iterator, List, Union\n\ndef glob0(dirname: AnyStr, pattern: AnyStr) -> List[AnyStr]: ...\ndef glob1(dirname: AnyStr, pattern: AnyStr) -> List[AnyStr]: ...\ndef glob(pathname: AnyStr, *, recursive: bool = ...) -> List[AnyStr]: ...\ndef iglob(pathname: AnyStr, *, recursive: bool = ...) -> Iterator[AnyStr]: ...\ndef escape(pathname: AnyStr) -> AnyStr: ...\ndef has_magic(s: Union[str, bytes]) -> bool: ... # undocumented\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\glob.pyi | glob.pyi | Other | 442 | 0.95 | 0.75 | 0 | python-kit | 262 | 2023-09-12T04:50:15.477115 | BSD-3-Clause | false | 7d175c5af0c164767d8ca1ec9427c12a |
import _compression\nimport sys\nimport zlib\nfrom _typeshed import AnyPath, ReadableBuffer\nfrom typing import IO, Optional, TextIO, Union, overload\nfrom typing_extensions import Literal\n\n_OpenBinaryMode = Literal["r", "rb", "a", "ab", "w", "wb", "x", "xb"]\n_OpenTextMode = Literal["rt", "at", "wt", "xt"]\n@overload\ndef open(\n filename: Union[AnyPath, IO[bytes]],\n mode: _OpenBinaryMode = ...,\n compresslevel: int = ...,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n) -> GzipFile: ...\n@overload\ndef open(\n filename: AnyPath,\n mode: _OpenTextMode,\n compresslevel: int = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n) -> TextIO: ...\n@overload\ndef open(\n filename: Union[AnyPath, IO[bytes]],\n mode: str,\n compresslevel: int = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n) -> Union[GzipFile, TextIO]: ...\n\nclass _PaddedFile:\n file: IO[bytes]\n def __init__(self, f: IO[bytes], prepend: bytes = ...) -> None: ...\n def read(self, size: int) -> bytes: ...\n def prepend(self, prepend: bytes = ...) -> None: ...\n def seek(self, off: int) -> int: ...\n def seekable(self) -> bool: ...\n\nif sys.version_info >= (3, 8):\n class BadGzipFile(OSError): ...\n\nclass GzipFile(_compression.BaseStream):\n myfileobj: Optional[IO[bytes]]\n mode: str\n name: str\n compress: zlib._Compress\n fileobj: IO[bytes]\n def __init__(\n self,\n filename: Optional[AnyPath] = ...,\n mode: Optional[str] = ...,\n compresslevel: int = ...,\n fileobj: Optional[IO[bytes]] = ...,\n mtime: Optional[float] = ...,\n ) -> None: ...\n @property\n def filename(self) -> str: ...\n @property\n def mtime(self) -> Optional[int]: ...\n crc: int\n def write(self, data: ReadableBuffer) -> int: ...\n def read(self, size: Optional[int] = ...) -> bytes: ...\n def read1(self, size: int = ...) -> bytes: ...\n def peek(self, n: int) -> bytes: ...\n @property\n def closed(self) -> bool: ...\n def close(self) -> None: ...\n def flush(self, zlib_mode: int = ...) -> None: ...\n def fileno(self) -> int: ...\n def rewind(self) -> None: ...\n def readable(self) -> bool: ...\n def writable(self) -> bool: ...\n def seekable(self) -> bool: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def readline(self, size: Optional[int] = ...) -> bytes: ...\n\nclass _GzipReader(_compression.DecompressReader):\n def __init__(self, fp: IO[bytes]) -> None: ...\n def read(self, size: int = ...) -> bytes: ...\n\nif sys.version_info >= (3, 8):\n def compress(data: bytes, compresslevel: int = ..., *, mtime: Optional[float] = ...) -> bytes: ...\n\nelse:\n def compress(data: bytes, compresslevel: int = ...) -> bytes: ...\n\ndef decompress(data: bytes) -> bytes: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\gzip.pyi | gzip.pyi | Other | 2,909 | 0.85 | 0.382979 | 0 | awesome-app | 355 | 2025-05-19T16:15:04.419990 | Apache-2.0 | false | 4bc29051205a1437e382be50cb43a1c8 |
import sys\nfrom _typeshed import ReadableBuffer\nfrom typing import AbstractSet, Optional\n\nclass _Hash(object):\n digest_size: int\n block_size: int\n\n # [Python documentation note] Changed in version 3.4: The name attribute has\n # been present in CPython since its inception, but until Python 3.4 was not\n # formally specified, so may not exist on some platforms\n name: str\n def __init__(self, data: ReadableBuffer = ...) -> None: ...\n def copy(self) -> _Hash: ...\n def digest(self) -> bytes: ...\n def hexdigest(self) -> str: ...\n def update(self, __data: ReadableBuffer) -> None: ...\n\nif sys.version_info >= (3, 9):\n def md5(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...\n def sha1(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...\n def sha224(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...\n def sha256(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...\n def sha384(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...\n def sha512(string: ReadableBuffer = ..., *, usedforsecurity: bool = ...) -> _Hash: ...\n\nelif sys.version_info >= (3, 8):\n def md5(string: ReadableBuffer = ...) -> _Hash: ...\n def sha1(string: ReadableBuffer = ...) -> _Hash: ...\n def sha224(string: ReadableBuffer = ...) -> _Hash: ...\n def sha256(string: ReadableBuffer = ...) -> _Hash: ...\n def sha384(string: ReadableBuffer = ...) -> _Hash: ...\n def sha512(string: ReadableBuffer = ...) -> _Hash: ...\n\nelse:\n def md5(__string: ReadableBuffer = ...) -> _Hash: ...\n def sha1(__string: ReadableBuffer = ...) -> _Hash: ...\n def sha224(__string: ReadableBuffer = ...) -> _Hash: ...\n def sha256(__string: ReadableBuffer = ...) -> _Hash: ...\n def sha384(__string: ReadableBuffer = ...) -> _Hash: ...\n def sha512(__string: ReadableBuffer = ...) -> _Hash: ...\n\ndef new(name: str, data: ReadableBuffer = ...) -> _Hash: ...\n\nalgorithms_guaranteed: AbstractSet[str]\nalgorithms_available: AbstractSet[str]\n\ndef pbkdf2_hmac(\n hash_name: str, password: ReadableBuffer, salt: ReadableBuffer, iterations: int, dklen: Optional[int] = ...\n) -> bytes: ...\n\nclass _VarLenHash(object):\n digest_size: int\n block_size: int\n name: str\n def __init__(self, data: ReadableBuffer = ...) -> None: ...\n def copy(self) -> _VarLenHash: ...\n def digest(self, __length: int) -> bytes: ...\n def hexdigest(self, __length: int) -> str: ...\n def update(self, __data: ReadableBuffer) -> None: ...\n\nsha3_224 = _Hash\nsha3_256 = _Hash\nsha3_384 = _Hash\nsha3_512 = _Hash\nshake_128 = _VarLenHash\nshake_256 = _VarLenHash\n\ndef scrypt(\n password: ReadableBuffer,\n *,\n salt: Optional[ReadableBuffer] = ...,\n n: Optional[int] = ...,\n r: Optional[int] = ...,\n p: Optional[int] = ...,\n maxmem: int = ...,\n dklen: int = ...,\n) -> bytes: ...\n\nclass _BlakeHash(_Hash):\n MAX_DIGEST_SIZE: int\n MAX_KEY_SIZE: int\n PERSON_SIZE: int\n SALT_SIZE: int\n\n if sys.version_info >= (3, 9):\n def __init__(\n self,\n __data: ReadableBuffer = ...,\n *,\n digest_size: int = ...,\n key: ReadableBuffer = ...,\n salt: ReadableBuffer = ...,\n person: ReadableBuffer = ...,\n fanout: int = ...,\n depth: int = ...,\n leaf_size: int = ...,\n node_offset: int = ...,\n node_depth: int = ...,\n inner_size: int = ...,\n last_node: bool = ...,\n usedforsecurity: bool = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n __data: ReadableBuffer = ...,\n *,\n digest_size: int = ...,\n key: ReadableBuffer = ...,\n salt: ReadableBuffer = ...,\n person: ReadableBuffer = ...,\n fanout: int = ...,\n depth: int = ...,\n leaf_size: int = ...,\n node_offset: int = ...,\n node_depth: int = ...,\n inner_size: int = ...,\n last_node: bool = ...,\n ) -> None: ...\n\nblake2b = _BlakeHash\nblake2s = _BlakeHash\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\hashlib.pyi | hashlib.pyi | Other | 4,195 | 0.95 | 0.308943 | 0.055046 | python-kit | 292 | 2023-08-27T01:49:10.580372 | BSD-3-Clause | false | b7bf792eeb0ee30e2000dcd5a1a0c2a7 |
from _typeshed import SupportsLessThan\nfrom typing import Any, Callable, Iterable, List, Optional, TypeVar\n\n_T = TypeVar("_T")\n\ndef heappush(__heap: List[_T], __item: _T) -> None: ...\ndef heappop(__heap: List[_T]) -> _T: ...\ndef heappushpop(__heap: List[_T], __item: _T) -> _T: ...\ndef heapify(__heap: List[_T]) -> None: ...\ndef heapreplace(__heap: List[_T], __item: _T) -> _T: ...\ndef merge(*iterables: Iterable[_T], key: Optional[Callable[[_T], Any]] = ..., reverse: bool = ...) -> Iterable[_T]: ...\ndef nlargest(n: int, iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsLessThan]] = ...) -> List[_T]: ...\ndef nsmallest(n: int, iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsLessThan]] = ...) -> List[_T]: ...\ndef _heapify_max(__x: List[_T]) -> None: ... # undocumented\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\heapq.pyi | heapq.pyi | Other | 798 | 0.95 | 0.642857 | 0 | awesome-app | 655 | 2024-12-26T23:47:18.245760 | GPL-3.0 | false | 67c2b5188f318a96194535c573d8bbb5 |
import os\nimport types\nfrom _typeshed import StrPath\nfrom typing import IO, Any, List, Optional, Protocol, Tuple, TypeVar, Union\n\nfrom _imp import (\n acquire_lock as acquire_lock,\n create_dynamic as create_dynamic,\n get_frozen_object as get_frozen_object,\n init_frozen as init_frozen,\n is_builtin as is_builtin,\n is_frozen as is_frozen,\n is_frozen_package as is_frozen_package,\n lock_held as lock_held,\n release_lock as release_lock,\n)\n\n_T = TypeVar("_T")\n\nSEARCH_ERROR: int\nPY_SOURCE: int\nPY_COMPILED: int\nC_EXTENSION: int\nPY_RESOURCE: int\nPKG_DIRECTORY: int\nC_BUILTIN: int\nPY_FROZEN: int\nPY_CODERESOURCE: int\nIMP_HOOK: int\n\ndef new_module(name: str) -> types.ModuleType: ...\ndef get_magic() -> bytes: ...\ndef get_tag() -> str: ...\ndef cache_from_source(path: StrPath, debug_override: Optional[bool] = ...) -> str: ...\ndef source_from_cache(path: StrPath) -> str: ...\ndef get_suffixes() -> List[Tuple[str, str, int]]: ...\n\nclass NullImporter:\n def __init__(self, path: StrPath) -> None: ...\n def find_module(self, fullname: Any) -> None: ...\n\n# Technically, a text file has to support a slightly different set of operations than a binary file,\n# but we ignore that here.\nclass _FileLike(Protocol):\n closed: bool\n mode: str\n def read(self) -> Union[str, bytes]: ...\n def close(self) -> Any: ...\n def __enter__(self) -> Any: ...\n def __exit__(self, *args: Any) -> Any: ...\n\n# PathLike doesn't work for the pathname argument here\ndef load_source(name: str, pathname: str, file: Optional[_FileLike] = ...) -> types.ModuleType: ...\ndef load_compiled(name: str, pathname: str, file: Optional[_FileLike] = ...) -> types.ModuleType: ...\ndef load_package(name: str, path: StrPath) -> types.ModuleType: ...\ndef load_module(name: str, file: Optional[_FileLike], filename: str, details: Tuple[str, str, int]) -> types.ModuleType: ...\n\n# IO[Any] is a TextIOWrapper if name is a .py file, and a FileIO otherwise.\ndef find_module(\n name: str, path: Union[None, List[str], List[os.PathLike[str]], List[StrPath]] = ...\n) -> Tuple[IO[Any], str, Tuple[str, str, int]]: ...\ndef reload(module: types.ModuleType) -> types.ModuleType: ...\ndef init_builtin(name: str) -> Optional[types.ModuleType]: ...\ndef load_dynamic(name: str, path: str, file: Any = ...) -> types.ModuleType: ... # file argument is ignored\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\imp.pyi | imp.pyi | Other | 2,343 | 0.95 | 0.375 | 0.071429 | python-kit | 205 | 2023-12-09T22:49:39.182159 | GPL-3.0 | false | f8516c87d255cf11c2bb523591ab8359 |
import enum\nimport sys\nfrom collections import OrderedDict\nfrom types import CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType\nfrom typing import (\n AbstractSet,\n Any,\n Callable,\n ClassVar,\n Dict,\n Generator,\n List,\n Mapping,\n NamedTuple,\n Optional,\n Sequence,\n Tuple,\n Type,\n Union,\n)\nfrom typing_extensions import Literal\n\n#\n# Types and members\n#\nclass EndOfBlock(Exception): ...\n\nclass BlockFinder:\n indent: int\n islambda: bool\n started: bool\n passline: bool\n indecorator: bool\n decoratorhasargs: bool\n last: int\n def tokeneater(self, type: int, token: str, srowcol: Tuple[int, int], erowcol: Tuple[int, int], line: str) -> None: ...\n\nCO_OPTIMIZED: int\nCO_NEWLOCALS: int\nCO_VARARGS: int\nCO_VARKEYWORDS: int\nCO_NESTED: int\nCO_GENERATOR: int\nCO_NOFREE: int\nCO_COROUTINE: int\nCO_ITERABLE_COROUTINE: int\nCO_ASYNC_GENERATOR: int\nTPFLAGS_IS_ABSTRACT: int\n\ndef getmembers(object: object, predicate: Optional[Callable[[Any], bool]] = ...) -> List[Tuple[str, Any]]: ...\ndef getmodulename(path: str) -> Optional[str]: ...\ndef ismodule(object: object) -> bool: ...\ndef isclass(object: object) -> bool: ...\ndef ismethod(object: object) -> bool: ...\ndef isfunction(object: object) -> bool: ...\n\nif sys.version_info >= (3, 8):\n def isgeneratorfunction(obj: object) -> bool: ...\n def iscoroutinefunction(obj: object) -> bool: ...\n\nelse:\n def isgeneratorfunction(object: object) -> bool: ...\n def iscoroutinefunction(object: object) -> bool: ...\n\ndef isgenerator(object: object) -> bool: ...\ndef iscoroutine(object: object) -> bool: ...\ndef isawaitable(object: object) -> bool: ...\n\nif sys.version_info >= (3, 8):\n def isasyncgenfunction(obj: object) -> bool: ...\n\nelse:\n def isasyncgenfunction(object: object) -> bool: ...\n\ndef isasyncgen(object: object) -> bool: ...\ndef istraceback(object: object) -> bool: ...\ndef isframe(object: object) -> bool: ...\ndef iscode(object: object) -> bool: ...\ndef isbuiltin(object: object) -> bool: ...\ndef isroutine(object: object) -> bool: ...\ndef isabstract(object: object) -> bool: ...\ndef ismethoddescriptor(object: object) -> bool: ...\ndef isdatadescriptor(object: object) -> bool: ...\ndef isgetsetdescriptor(object: object) -> bool: ...\ndef ismemberdescriptor(object: object) -> bool: ...\n\n#\n# Retrieving source code\n#\n_SourceObjectType = Union[ModuleType, Type[Any], MethodType, FunctionType, TracebackType, FrameType, CodeType, Callable[..., Any]]\n\ndef findsource(object: _SourceObjectType) -> Tuple[List[str], int]: ...\ndef getabsfile(object: _SourceObjectType, _filename: Optional[str] = ...) -> str: ...\ndef getblock(lines: Sequence[str]) -> Sequence[str]: ...\ndef getdoc(object: object) -> Optional[str]: ...\ndef getcomments(object: object) -> Optional[str]: ...\ndef getfile(object: _SourceObjectType) -> str: ...\ndef getmodule(object: object, _filename: Optional[str] = ...) -> Optional[ModuleType]: ...\ndef getsourcefile(object: _SourceObjectType) -> Optional[str]: ...\ndef getsourcelines(object: _SourceObjectType) -> Tuple[List[str], int]: ...\ndef getsource(object: _SourceObjectType) -> str: ...\ndef cleandoc(doc: str) -> str: ...\ndef indentsize(line: str) -> int: ...\n\n#\n# Introspecting callables with the Signature object\n#\ndef signature(obj: Callable[..., Any], *, follow_wrapped: bool = ...) -> Signature: ...\n\nclass Signature:\n def __init__(self, parameters: Optional[Sequence[Parameter]] = ..., *, return_annotation: Any = ...) -> None: ...\n # TODO: can we be more specific here?\n empty: object = ...\n\n parameters: Mapping[str, Parameter]\n\n # TODO: can we be more specific here?\n return_annotation: Any\n def bind(self, *args: Any, **kwargs: Any) -> BoundArguments: ...\n def bind_partial(self, *args: Any, **kwargs: Any) -> BoundArguments: ...\n def replace(self, *, parameters: Optional[Sequence[Parameter]] = ..., return_annotation: Any = ...) -> Signature: ...\n @classmethod\n def from_callable(cls, obj: Callable[..., Any], *, follow_wrapped: bool = ...) -> Signature: ...\n\n# The name is the same as the enum's name in CPython\nclass _ParameterKind(enum.IntEnum):\n POSITIONAL_ONLY: int\n POSITIONAL_OR_KEYWORD: int\n VAR_POSITIONAL: int\n KEYWORD_ONLY: int\n VAR_KEYWORD: int\n\n if sys.version_info >= (3, 8):\n description: str\n\nclass Parameter:\n def __init__(self, name: str, kind: _ParameterKind, *, default: Any = ..., annotation: Any = ...) -> None: ...\n empty: Any = ...\n name: str\n default: Any\n annotation: Any\n\n kind: _ParameterKind\n POSITIONAL_ONLY: ClassVar[Literal[_ParameterKind.POSITIONAL_ONLY]]\n POSITIONAL_OR_KEYWORD: ClassVar[Literal[_ParameterKind.POSITIONAL_OR_KEYWORD]]\n VAR_POSITIONAL: ClassVar[Literal[_ParameterKind.VAR_POSITIONAL]]\n KEYWORD_ONLY: ClassVar[Literal[_ParameterKind.KEYWORD_ONLY]]\n VAR_KEYWORD: ClassVar[Literal[_ParameterKind.VAR_KEYWORD]]\n def replace(\n self, *, name: Optional[str] = ..., kind: Optional[_ParameterKind] = ..., default: Any = ..., annotation: Any = ...\n ) -> Parameter: ...\n\nclass BoundArguments:\n arguments: OrderedDict[str, Any]\n args: Tuple[Any, ...]\n kwargs: Dict[str, Any]\n signature: Signature\n def __init__(self, signature: Signature, arguments: OrderedDict[str, Any]) -> None: ...\n def apply_defaults(self) -> None: ...\n\n#\n# Classes and functions\n#\n\n# TODO: The actual return type should be List[_ClassTreeItem] but mypy doesn't\n# seem to be supporting this at the moment:\n# _ClassTreeItem = Union[List[_ClassTreeItem], Tuple[type, Tuple[type, ...]]]\ndef getclasstree(classes: List[type], unique: bool = ...) -> Any: ...\n\nclass ArgSpec(NamedTuple):\n args: List[str]\n varargs: Optional[str]\n keywords: Optional[str]\n defaults: Tuple[Any, ...]\n\nclass Arguments(NamedTuple):\n args: List[str]\n varargs: Optional[str]\n varkw: Optional[str]\n\ndef getargs(co: CodeType) -> Arguments: ...\ndef getargspec(func: object) -> ArgSpec: ...\n\nclass FullArgSpec(NamedTuple):\n args: List[str]\n varargs: Optional[str]\n varkw: Optional[str]\n defaults: Optional[Tuple[Any, ...]]\n kwonlyargs: List[str]\n kwonlydefaults: Optional[Dict[str, Any]]\n annotations: Dict[str, Any]\n\ndef getfullargspec(func: object) -> FullArgSpec: ...\n\nclass ArgInfo(NamedTuple):\n args: List[str]\n varargs: Optional[str]\n keywords: Optional[str]\n locals: Dict[str, Any]\n\ndef getargvalues(frame: FrameType) -> ArgInfo: ...\ndef formatannotation(annotation: object, base_module: Optional[str] = ...) -> str: ...\ndef formatannotationrelativeto(object: object) -> Callable[[object], str]: ...\ndef formatargspec(\n args: List[str],\n varargs: Optional[str] = ...,\n varkw: Optional[str] = ...,\n defaults: Optional[Tuple[Any, ...]] = ...,\n kwonlyargs: Optional[Sequence[str]] = ...,\n kwonlydefaults: Optional[Dict[str, Any]] = ...,\n annotations: Dict[str, Any] = ...,\n formatarg: Callable[[str], str] = ...,\n formatvarargs: Callable[[str], str] = ...,\n formatvarkw: Callable[[str], str] = ...,\n formatvalue: Callable[[Any], str] = ...,\n formatreturns: Callable[[Any], str] = ...,\n formatannotation: Callable[[Any], str] = ...,\n) -> str: ...\ndef formatargvalues(\n args: List[str],\n varargs: Optional[str],\n varkw: Optional[str],\n locals: Optional[Dict[str, Any]],\n formatarg: Optional[Callable[[str], str]] = ...,\n formatvarargs: Optional[Callable[[str], str]] = ...,\n formatvarkw: Optional[Callable[[str], str]] = ...,\n formatvalue: Optional[Callable[[Any], str]] = ...,\n) -> str: ...\ndef getmro(cls: type) -> Tuple[type, ...]: ...\ndef getcallargs(__func: Callable[..., Any], *args: Any, **kwds: Any) -> Dict[str, Any]: ...\n\nclass ClosureVars(NamedTuple):\n nonlocals: Mapping[str, Any]\n globals: Mapping[str, Any]\n builtins: Mapping[str, Any]\n unbound: AbstractSet[str]\n\ndef getclosurevars(func: Callable[..., Any]) -> ClosureVars: ...\ndef unwrap(func: Callable[..., Any], *, stop: Optional[Callable[[Any], Any]] = ...) -> Any: ...\n\n#\n# The interpreter stack\n#\n\nclass Traceback(NamedTuple):\n filename: str\n lineno: int\n function: str\n code_context: Optional[List[str]]\n index: Optional[int] # type: ignore\n\nclass FrameInfo(NamedTuple):\n frame: FrameType\n filename: str\n lineno: int\n function: str\n code_context: Optional[List[str]]\n index: Optional[int] # type: ignore\n\ndef getframeinfo(frame: Union[FrameType, TracebackType], context: int = ...) -> Traceback: ...\ndef getouterframes(frame: Any, context: int = ...) -> List[FrameInfo]: ...\ndef getinnerframes(tb: TracebackType, context: int = ...) -> List[FrameInfo]: ...\ndef getlineno(frame: FrameType) -> int: ...\ndef currentframe() -> Optional[FrameType]: ...\ndef stack(context: int = ...) -> List[FrameInfo]: ...\ndef trace(context: int = ...) -> List[FrameInfo]: ...\n\n#\n# Fetching attributes statically\n#\n\ndef getattr_static(obj: object, attr: str, default: Optional[Any] = ...) -> Any: ...\n\n#\n# Current State of Generators and Coroutines\n#\n\n# TODO In the next two blocks of code, can we be more specific regarding the\n# type of the "enums"?\n\nGEN_CREATED: str\nGEN_RUNNING: str\nGEN_SUSPENDED: str\nGEN_CLOSED: str\n\ndef getgeneratorstate(generator: Generator[Any, Any, Any]) -> str: ...\n\nCORO_CREATED: str\nCORO_RUNNING: str\nCORO_SUSPENDED: str\nCORO_CLOSED: str\n# TODO can we be more specific than "object"?\ndef getcoroutinestate(coroutine: object) -> str: ...\ndef getgeneratorlocals(generator: Generator[Any, Any, Any]) -> Dict[str, Any]: ...\n\n# TODO can we be more specific than "object"?\ndef getcoroutinelocals(coroutine: object) -> Dict[str, Any]: ...\n\n# Create private type alias to avoid conflict with symbol of same\n# name created in Attribute class.\n_Object = object\n\nclass Attribute(NamedTuple):\n name: str\n kind: str\n defining_class: type\n object: _Object\n\ndef classify_class_attrs(cls: type) -> List[Attribute]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\inspect.pyi | inspect.pyi | Other | 9,929 | 0.95 | 0.307443 | 0.125954 | react-lib | 901 | 2024-03-15T01:08:08.455879 | Apache-2.0 | false | 8442261607cc37aa90cbd201eb20c8ed |
import builtins\nimport codecs\nimport sys\nfrom _typeshed import ReadableBuffer, WriteableBuffer\nfrom types import TracebackType\nfrom typing import IO, Any, BinaryIO, Callable, Iterable, Iterator, List, Optional, TextIO, Tuple, Type, TypeVar, Union\n\nDEFAULT_BUFFER_SIZE: int\n\nSEEK_SET: int\nSEEK_CUR: int\nSEEK_END: int\n\n_T = TypeVar("_T", bound=IOBase)\n\nopen = builtins.open\n\nif sys.version_info >= (3, 8):\n def open_code(path: str) -> IO[bytes]: ...\n\nBlockingIOError = builtins.BlockingIOError\n\nclass UnsupportedOperation(OSError, ValueError): ...\n\nclass IOBase:\n def __iter__(self) -> Iterator[bytes]: ...\n def __next__(self) -> bytes: ...\n def __enter__(self: _T) -> _T: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n def close(self) -> None: ...\n def fileno(self) -> int: ...\n def flush(self) -> None: ...\n def isatty(self) -> bool: ...\n def readable(self) -> bool: ...\n def readlines(self, __hint: int = ...) -> List[bytes]: ...\n def seek(self, __offset: int, __whence: int = ...) -> int: ...\n def seekable(self) -> bool: ...\n def tell(self) -> int: ...\n def truncate(self, __size: Optional[int] = ...) -> int: ...\n def writable(self) -> bool: ...\n def writelines(self, __lines: Iterable[ReadableBuffer]) -> None: ...\n def readline(self, __size: Optional[int] = ...) -> bytes: ...\n def __del__(self) -> None: ...\n @property\n def closed(self) -> bool: ...\n def _checkClosed(self, msg: Optional[str] = ...) -> None: ... # undocumented\n\nclass RawIOBase(IOBase):\n def readall(self) -> bytes: ...\n def readinto(self, __buffer: WriteableBuffer) -> Optional[int]: ...\n def write(self, __b: ReadableBuffer) -> Optional[int]: ...\n def read(self, __size: int = ...) -> Optional[bytes]: ...\n\nclass BufferedIOBase(IOBase):\n raw: RawIOBase # This is not part of the BufferedIOBase API and may not exist on some implementations.\n def detach(self) -> RawIOBase: ...\n def readinto(self, __buffer: WriteableBuffer) -> int: ...\n def write(self, __buffer: ReadableBuffer) -> int: ...\n def readinto1(self, __buffer: WriteableBuffer) -> int: ...\n def read(self, __size: Optional[int] = ...) -> bytes: ...\n def read1(self, __size: int = ...) -> bytes: ...\n\nclass FileIO(RawIOBase, BinaryIO):\n mode: str\n # Technically this is whatever is passed in as file, either a str, a bytes, or an int.\n name: Union[int, str] # type: ignore\n def __init__(\n self,\n file: Union[str, bytes, int],\n mode: str = ...,\n closefd: bool = ...,\n opener: Optional[Callable[[Union[int, str], str], int]] = ...,\n ) -> None: ...\n @property\n def closefd(self) -> bool: ...\n def write(self, __b: ReadableBuffer) -> int: ...\n def read(self, __size: int = ...) -> bytes: ...\n def __enter__(self: _T) -> _T: ...\n\nclass BytesIO(BufferedIOBase, BinaryIO):\n def __init__(self, initial_bytes: bytes = ...) -> None: ...\n # BytesIO does not contain a "name" field. This workaround is necessary\n # to allow BytesIO sub-classes to add this field, as it is defined\n # as a read-only property on IO[].\n name: Any\n def __enter__(self: _T) -> _T: ...\n def getvalue(self) -> bytes: ...\n def getbuffer(self) -> memoryview: ...\n if sys.version_info >= (3, 7):\n def read1(self, __size: Optional[int] = ...) -> bytes: ...\n else:\n def read1(self, __size: Optional[int]) -> bytes: ... # type: ignore\n\nclass BufferedReader(BufferedIOBase, BinaryIO):\n def __enter__(self: _T) -> _T: ...\n def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...\n def peek(self, __size: int = ...) -> bytes: ...\n if sys.version_info >= (3, 7):\n def read1(self, __size: int = ...) -> bytes: ...\n else:\n def read1(self, __size: int) -> bytes: ... # type: ignore\n\nclass BufferedWriter(BufferedIOBase, BinaryIO):\n def __enter__(self: _T) -> _T: ...\n def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...\n def write(self, __buffer: ReadableBuffer) -> int: ...\n\nclass BufferedRandom(BufferedReader, BufferedWriter):\n def __enter__(self: _T) -> _T: ...\n def __init__(self, raw: RawIOBase, buffer_size: int = ...) -> None: ...\n def seek(self, __target: int, __whence: int = ...) -> int: ...\n if sys.version_info >= (3, 7):\n def read1(self, __size: int = ...) -> bytes: ...\n else:\n def read1(self, __size: int) -> bytes: ... # type: ignore\n\nclass BufferedRWPair(BufferedIOBase):\n def __init__(self, reader: RawIOBase, writer: RawIOBase, buffer_size: int = ...) -> None: ...\n def peek(self, __size: int = ...) -> bytes: ...\n\nclass TextIOBase(IOBase):\n encoding: str\n errors: Optional[str]\n newlines: Union[str, Tuple[str, ...], None]\n def __iter__(self) -> Iterator[str]: ... # type: ignore\n def __next__(self) -> str: ... # type: ignore\n def detach(self) -> BinaryIO: ...\n def write(self, __s: str) -> int: ...\n def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore\n def readline(self, __size: int = ...) -> str: ... # type: ignore\n def readlines(self, __hint: int = ...) -> List[str]: ... # type: ignore\n def read(self, __size: Optional[int] = ...) -> str: ...\n def tell(self) -> int: ...\n\nclass TextIOWrapper(TextIOBase, TextIO):\n def __init__(\n self,\n buffer: IO[bytes],\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n line_buffering: bool = ...,\n write_through: bool = ...,\n ) -> None: ...\n @property\n def buffer(self) -> BinaryIO: ...\n @property\n def closed(self) -> bool: ...\n @property\n def line_buffering(self) -> bool: ...\n if sys.version_info >= (3, 7):\n @property\n def write_through(self) -> bool: ...\n def reconfigure(\n self,\n *,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n line_buffering: Optional[bool] = ...,\n write_through: Optional[bool] = ...,\n ) -> None: ...\n # These are inherited from TextIOBase, but must exist in the stub to satisfy mypy.\n def __enter__(self: _T) -> _T: ...\n def __iter__(self) -> Iterator[str]: ... # type: ignore\n def __next__(self) -> str: ... # type: ignore\n def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore\n def readline(self, __size: int = ...) -> str: ... # type: ignore\n def readlines(self, __hint: int = ...) -> List[str]: ... # type: ignore\n def seek(self, __cookie: int, __whence: int = ...) -> int: ...\n\nclass StringIO(TextIOWrapper):\n def __init__(self, initial_value: Optional[str] = ..., newline: Optional[str] = ...) -> None: ...\n # StringIO does not contain a "name" field. This workaround is necessary\n # to allow StringIO sub-classes to add this field, as it is defined\n # as a read-only property on IO[].\n name: Any\n def getvalue(self) -> str: ...\n\nclass IncrementalNewlineDecoder(codecs.IncrementalDecoder):\n def __init__(self, decoder: Optional[codecs.IncrementalDecoder], translate: bool, errors: str = ...) -> None: ...\n def decode(self, input: Union[bytes, str], final: bool = ...) -> str: ...\n @property\n def newlines(self) -> Optional[Union[str, Tuple[str, ...]]]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\io.pyi | io.pyi | Other | 7,499 | 0.95 | 0.553763 | 0.054217 | awesome-app | 537 | 2024-01-22T11:24:49.534213 | Apache-2.0 | false | e820f05c52a22263fdee40df965fa7ea |
import sys\nfrom typing import Any, Container, Generic, Iterable, Iterator, Optional, SupportsInt, Tuple, TypeVar, overload\n\n# Undocumented length constants\nIPV4LENGTH: int\nIPV6LENGTH: int\n\n_A = TypeVar("_A", IPv4Address, IPv6Address)\n_N = TypeVar("_N", IPv4Network, IPv6Network)\n_T = TypeVar("_T")\n\ndef ip_address(address: object) -> Any: ... # morally Union[IPv4Address, IPv6Address]\ndef ip_network(address: object, strict: bool = ...) -> Any: ... # morally Union[IPv4Network, IPv6Network]\ndef ip_interface(address: object) -> Any: ... # morally Union[IPv4Interface, IPv6Interface]\n\nclass _IPAddressBase:\n def __eq__(self, other: Any) -> bool: ...\n def __ge__(self: _T, other: _T) -> bool: ...\n def __gt__(self: _T, other: _T) -> bool: ...\n def __le__(self: _T, other: _T) -> bool: ...\n def __lt__(self: _T, other: _T) -> bool: ...\n def __ne__(self, other: Any) -> bool: ...\n @property\n def compressed(self) -> str: ...\n @property\n def exploded(self) -> str: ...\n @property\n def reverse_pointer(self) -> str: ...\n @property\n def version(self) -> int: ...\n\nclass _BaseAddress(_IPAddressBase, SupportsInt):\n def __init__(self, address: object) -> None: ...\n def __add__(self: _T, other: int) -> _T: ...\n def __hash__(self) -> int: ...\n def __int__(self) -> int: ...\n def __sub__(self: _T, other: int) -> _T: ...\n @property\n def is_global(self) -> bool: ...\n @property\n def is_link_local(self) -> bool: ...\n @property\n def is_loopback(self) -> bool: ...\n @property\n def is_multicast(self) -> bool: ...\n @property\n def is_private(self) -> bool: ...\n @property\n def is_reserved(self) -> bool: ...\n @property\n def is_unspecified(self) -> bool: ...\n @property\n def max_prefixlen(self) -> int: ...\n @property\n def packed(self) -> bytes: ...\n\nclass _BaseNetwork(_IPAddressBase, Container[_A], Iterable[_A], Generic[_A]):\n network_address: _A\n netmask: _A\n def __init__(self, address: object, strict: bool = ...) -> None: ...\n def __contains__(self, other: Any) -> bool: ...\n def __getitem__(self, n: int) -> _A: ...\n def __iter__(self) -> Iterator[_A]: ...\n def address_exclude(self: _T, other: _T) -> Iterator[_T]: ...\n @property\n def broadcast_address(self) -> _A: ...\n def compare_networks(self: _T, other: _T) -> int: ...\n def hosts(self) -> Iterator[_A]: ...\n @property\n def is_global(self) -> bool: ...\n @property\n def is_link_local(self) -> bool: ...\n @property\n def is_loopback(self) -> bool: ...\n @property\n def is_multicast(self) -> bool: ...\n @property\n def is_private(self) -> bool: ...\n @property\n def is_reserved(self) -> bool: ...\n @property\n def is_unspecified(self) -> bool: ...\n @property\n def max_prefixlen(self) -> int: ...\n @property\n def num_addresses(self) -> int: ...\n def overlaps(self, other: _BaseNetwork[_A]) -> bool: ...\n @property\n def prefixlen(self) -> int: ...\n if sys.version_info >= (3, 7):\n def subnet_of(self: _T, other: _T) -> bool: ...\n def supernet_of(self: _T, other: _T) -> bool: ...\n def subnets(self: _T, prefixlen_diff: int = ..., new_prefix: Optional[int] = ...) -> Iterator[_T]: ...\n def supernet(self: _T, prefixlen_diff: int = ..., new_prefix: Optional[int] = ...) -> _T: ...\n @property\n def with_hostmask(self) -> str: ...\n @property\n def with_netmask(self) -> str: ...\n @property\n def with_prefixlen(self) -> str: ...\n @property\n def hostmask(self) -> _A: ...\n\nclass _BaseInterface(_BaseAddress, Generic[_A, _N]):\n hostmask: _A\n netmask: _A\n network: _N\n @property\n def ip(self) -> _A: ...\n @property\n def with_hostmask(self) -> str: ...\n @property\n def with_netmask(self) -> str: ...\n @property\n def with_prefixlen(self) -> str: ...\n\nclass IPv4Address(_BaseAddress): ...\nclass IPv4Network(_BaseNetwork[IPv4Address]): ...\nclass IPv4Interface(IPv4Address, _BaseInterface[IPv4Address, IPv4Network]): ...\n\nclass IPv6Address(_BaseAddress):\n @property\n def ipv4_mapped(self) -> Optional[IPv4Address]: ...\n @property\n def is_site_local(self) -> bool: ...\n @property\n def sixtofour(self) -> Optional[IPv4Address]: ...\n @property\n def teredo(self) -> Optional[Tuple[IPv4Address, IPv4Address]]: ...\n\nclass IPv6Network(_BaseNetwork[IPv6Address]):\n @property\n def is_site_local(self) -> bool: ...\n\nclass IPv6Interface(IPv6Address, _BaseInterface[IPv6Address, IPv6Network]): ...\n\ndef v4_int_to_packed(address: int) -> bytes: ...\ndef v6_int_to_packed(address: int) -> bytes: ...\n@overload\ndef summarize_address_range(first: IPv4Address, last: IPv4Address) -> Iterator[IPv4Network]: ...\n@overload\ndef summarize_address_range(first: IPv6Address, last: IPv6Address) -> Iterator[IPv6Network]: ...\ndef collapse_addresses(addresses: Iterable[_N]) -> Iterator[_N]: ...\n@overload\ndef get_mixed_type_key(obj: _A) -> Tuple[int, _A]: ...\n@overload\ndef get_mixed_type_key(obj: IPv4Network) -> Tuple[int, IPv4Address, IPv4Address]: ...\n@overload\ndef get_mixed_type_key(obj: IPv6Network) -> Tuple[int, IPv6Address, IPv6Address]: ...\n\nclass AddressValueError(ValueError): ...\nclass NetmaskValueError(ValueError): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\ipaddress.pyi | ipaddress.pyi | Other | 5,252 | 0.95 | 0.552632 | 0.007194 | vue-tools | 878 | 2024-01-15T23:48:56.685503 | BSD-3-Clause | false | 383f9a106cbc8dfba1091c3b5e124fdb |
import sys\nfrom typing import Any, Callable, Generic, Iterable, Iterator, Optional, Tuple, TypeVar, overload\nfrom typing_extensions import Literal\n\n_T = TypeVar("_T")\n_S = TypeVar("_S")\n_N = TypeVar("_N", int, float)\nPredicate = Callable[[_T], object]\n\ndef count(start: _N = ..., step: _N = ...) -> Iterator[_N]: ... # more general types?\n\nclass cycle(Iterator[_T], Generic[_T]):\n def __init__(self, iterable: Iterable[_T]) -> None: ...\n def __next__(self) -> _T: ...\n def __iter__(self) -> Iterator[_T]: ...\n\n@overload\ndef repeat(object: _T) -> Iterator[_T]: ...\n@overload\ndef repeat(object: _T, times: int) -> Iterator[_T]: ...\n\nif sys.version_info >= (3, 8):\n @overload\n def accumulate(iterable: Iterable[_T], func: Callable[[_T, _T], _T] = ...) -> Iterator[_T]: ...\n @overload\n def accumulate(iterable: Iterable[_T], func: Callable[[_S, _T], _S], initial: Optional[_S]) -> Iterator[_S]: ...\n\nelse:\n def accumulate(iterable: Iterable[_T], func: Callable[[_T, _T], _T] = ...) -> Iterator[_T]: ...\n\nclass chain(Iterator[_T], Generic[_T]):\n def __init__(self, *iterables: Iterable[_T]) -> None: ...\n def __next__(self) -> _T: ...\n def __iter__(self) -> Iterator[_T]: ...\n @staticmethod\n def from_iterable(iterable: Iterable[Iterable[_S]]) -> Iterator[_S]: ...\n\ndef compress(data: Iterable[_T], selectors: Iterable[Any]) -> Iterator[_T]: ...\ndef dropwhile(predicate: Predicate[_T], iterable: Iterable[_T]) -> Iterator[_T]: ...\ndef filterfalse(predicate: Optional[Predicate[_T]], iterable: Iterable[_T]) -> Iterator[_T]: ...\n@overload\ndef groupby(iterable: Iterable[_T], key: None = ...) -> Iterator[Tuple[_T, Iterator[_T]]]: ...\n@overload\ndef groupby(iterable: Iterable[_T], key: Callable[[_T], _S]) -> Iterator[Tuple[_S, Iterator[_T]]]: ...\n@overload\ndef islice(iterable: Iterable[_T], stop: Optional[int]) -> Iterator[_T]: ...\n@overload\ndef islice(iterable: Iterable[_T], start: Optional[int], stop: Optional[int], step: Optional[int] = ...) -> Iterator[_T]: ...\ndef starmap(func: Callable[..., _S], iterable: Iterable[Iterable[Any]]) -> Iterator[_S]: ...\ndef takewhile(predicate: Predicate[_T], iterable: Iterable[_T]) -> Iterator[_T]: ...\ndef tee(iterable: Iterable[_T], n: int = ...) -> Tuple[Iterator[_T], ...]: ...\ndef zip_longest(*p: Iterable[Any], fillvalue: Any = ...) -> Iterator[Any]: ...\n\n_T1 = TypeVar("_T1")\n_T2 = TypeVar("_T2")\n_T3 = TypeVar("_T3")\n_T4 = TypeVar("_T4")\n_T5 = TypeVar("_T5")\n_T6 = TypeVar("_T6")\n@overload\ndef product(iter1: Iterable[_T1]) -> Iterator[Tuple[_T1]]: ...\n@overload\ndef product(iter1: Iterable[_T1], iter2: Iterable[_T2]) -> Iterator[Tuple[_T1, _T2]]: ...\n@overload\ndef product(iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3]) -> Iterator[Tuple[_T1, _T2, _T3]]: ...\n@overload\ndef product(\n iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4]\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4]]: ...\n@overload\ndef product(\n iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4], iter5: Iterable[_T5]\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...\n@overload\ndef product(\n iter1: Iterable[_T1],\n iter2: Iterable[_T2],\n iter3: Iterable[_T3],\n iter4: Iterable[_T4],\n iter5: Iterable[_T5],\n iter6: Iterable[_T6],\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5, _T6]]: ...\n@overload\ndef product(\n iter1: Iterable[Any],\n iter2: Iterable[Any],\n iter3: Iterable[Any],\n iter4: Iterable[Any],\n iter5: Iterable[Any],\n iter6: Iterable[Any],\n iter7: Iterable[Any],\n *iterables: Iterable[Any],\n) -> Iterator[Tuple[Any, ...]]: ...\n@overload\ndef product(*iterables: Iterable[_T1], repeat: int) -> Iterator[Tuple[_T1, ...]]: ...\n@overload\ndef product(*iterables: Iterable[Any], repeat: int = ...) -> Iterator[Tuple[Any, ...]]: ...\ndef permutations(iterable: Iterable[_T], r: Optional[int] = ...) -> Iterator[Tuple[_T, ...]]: ...\n@overload\ndef combinations(iterable: Iterable[_T], r: Literal[2]) -> Iterator[Tuple[_T, _T]]: ...\n@overload\ndef combinations(iterable: Iterable[_T], r: Literal[3]) -> Iterator[Tuple[_T, _T, _T]]: ...\n@overload\ndef combinations(iterable: Iterable[_T], r: Literal[4]) -> Iterator[Tuple[_T, _T, _T, _T]]: ...\n@overload\ndef combinations(iterable: Iterable[_T], r: Literal[5]) -> Iterator[Tuple[_T, _T, _T, _T, _T]]: ...\n@overload\ndef combinations(iterable: Iterable[_T], r: int) -> Iterator[Tuple[_T, ...]]: ...\ndef combinations_with_replacement(iterable: Iterable[_T], r: int) -> Iterator[Tuple[_T, ...]]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\itertools.pyi | itertools.pyi | Other | 4,524 | 0.95 | 0.394495 | 0.01 | python-kit | 673 | 2023-10-23T12:22:28.083337 | GPL-3.0 | false | 0c67fa944ad14743a832eefe080e12a2 |
import io\nfrom _typeshed import AnyPath, ReadableBuffer\nfrom typing import IO, Any, Mapping, Optional, Sequence, TextIO, TypeVar, Union, overload\nfrom typing_extensions import Literal\n\n_OpenBinaryWritingMode = Literal["w", "wb", "x", "xb", "a", "ab"]\n_OpenTextWritingMode = Literal["wt", "xt", "at"]\n\n_PathOrFile = Union[AnyPath, IO[bytes]]\n\n_FilterChain = Sequence[Mapping[str, Any]]\n_T = TypeVar("_T")\n\nFORMAT_AUTO: int\nFORMAT_XZ: int\nFORMAT_ALONE: int\nFORMAT_RAW: int\nCHECK_NONE: int\nCHECK_CRC32: int\nCHECK_CRC64: int\nCHECK_SHA256: int\nCHECK_ID_MAX: int\nCHECK_UNKNOWN: int\nFILTER_LZMA1: int\nFILTER_LZMA2: int\nFILTER_DELTA: int\nFILTER_X86: int\nFILTER_IA64: int\nFILTER_ARM: int\nFILTER_ARMTHUMB: int\nFILTER_SPARC: int\nFILTER_POWERPC: int\nMF_HC3: int\nMF_HC4: int\nMF_BT2: int\nMF_BT3: int\nMF_BT4: int\nMODE_FAST: int\nMODE_NORMAL: int\nPRESET_DEFAULT: int\nPRESET_EXTREME: int\n\n# from _lzma.c\nclass LZMADecompressor(object):\n def __init__(\n self, format: Optional[int] = ..., memlimit: Optional[int] = ..., filters: Optional[_FilterChain] = ...\n ) -> None: ...\n def decompress(self, data: bytes, max_length: int = ...) -> bytes: ...\n @property\n def check(self) -> int: ...\n @property\n def eof(self) -> bool: ...\n @property\n def unused_data(self) -> bytes: ...\n @property\n def needs_input(self) -> bool: ...\n\n# from _lzma.c\nclass LZMACompressor(object):\n def __init__(\n self, format: Optional[int] = ..., check: int = ..., preset: Optional[int] = ..., filters: Optional[_FilterChain] = ...\n ) -> None: ...\n def compress(self, data: bytes) -> bytes: ...\n def flush(self) -> bytes: ...\n\nclass LZMAError(Exception): ...\n\nclass LZMAFile(io.BufferedIOBase, IO[bytes]):\n def __init__(\n self,\n filename: Optional[_PathOrFile] = ...,\n mode: str = ...,\n *,\n format: Optional[int] = ...,\n check: int = ...,\n preset: Optional[int] = ...,\n filters: Optional[_FilterChain] = ...,\n ) -> None: ...\n def __enter__(self: _T) -> _T: ...\n def close(self) -> None: ...\n @property\n def closed(self) -> bool: ...\n def fileno(self) -> int: ...\n def seekable(self) -> bool: ...\n def readable(self) -> bool: ...\n def writable(self) -> bool: ...\n def peek(self, size: int = ...) -> bytes: ...\n def read(self, size: Optional[int] = ...) -> bytes: ...\n def read1(self, size: int = ...) -> bytes: ...\n def readline(self, size: Optional[int] = ...) -> bytes: ...\n def write(self, data: ReadableBuffer) -> int: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def tell(self) -> int: ...\n\n@overload\ndef open(\n filename: _PathOrFile,\n mode: Literal["r", "rb"] = ...,\n *,\n format: Optional[int] = ...,\n check: Literal[-1] = ...,\n preset: None = ...,\n filters: Optional[_FilterChain] = ...,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n) -> LZMAFile: ...\n@overload\ndef open(\n filename: _PathOrFile,\n mode: _OpenBinaryWritingMode,\n *,\n format: Optional[int] = ...,\n check: int = ...,\n preset: Optional[int] = ...,\n filters: Optional[_FilterChain] = ...,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n) -> LZMAFile: ...\n@overload\ndef open(\n filename: AnyPath,\n mode: Literal["rt"],\n *,\n format: Optional[int] = ...,\n check: Literal[-1] = ...,\n preset: None = ...,\n filters: Optional[_FilterChain] = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n) -> TextIO: ...\n@overload\ndef open(\n filename: AnyPath,\n mode: _OpenTextWritingMode,\n *,\n format: Optional[int] = ...,\n check: int = ...,\n preset: Optional[int] = ...,\n filters: Optional[_FilterChain] = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n) -> TextIO: ...\n@overload\ndef open(\n filename: _PathOrFile,\n mode: str,\n *,\n format: Optional[int] = ...,\n check: int = ...,\n preset: Optional[int] = ...,\n filters: Optional[_FilterChain] = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n) -> Union[LZMAFile, TextIO]: ...\ndef compress(\n data: bytes, format: int = ..., check: int = ..., preset: Optional[int] = ..., filters: Optional[_FilterChain] = ...\n) -> bytes: ...\ndef decompress(data: bytes, format: int = ..., memlimit: Optional[int] = ..., filters: Optional[_FilterChain] = ...) -> bytes: ...\ndef is_check_supported(check: int) -> bool: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\lzma.pyi | lzma.pyi | Other | 4,580 | 0.95 | 0.219512 | 0.051613 | node-utils | 811 | 2024-08-03T08:28:45.533792 | BSD-3-Clause | false | d8ffb6b0f60b4d163919b9d0231ee3e2 |
import sys\nfrom typing import Union\n\nif sys.version_info < (3, 7):\n def url2pathname(pathname: str) -> str: ...\n def pathname2url(pathname: str) -> str: ...\n def _pncomp2url(component: Union[str, bytes]) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\macurl2path.pyi | macurl2path.pyi | Other | 225 | 0.85 | 0.571429 | 0 | react-lib | 133 | 2025-02-19T06:22:56.133588 | MIT | false | d2b79ea1a899b734e78934fe622f3a46 |
import datetime\nimport socket\nimport ssl\nimport sys\nfrom typing import IO, Any, Dict, Iterable, List, NamedTuple, Optional, Tuple, TypeVar, Union\n\n_SelfT = TypeVar("_SelfT", bound=_NNTPBase)\n_File = Union[IO[bytes], bytes, str, None]\n\nclass NNTPError(Exception):\n response: str\n\nclass NNTPReplyError(NNTPError): ...\nclass NNTPTemporaryError(NNTPError): ...\nclass NNTPPermanentError(NNTPError): ...\nclass NNTPProtocolError(NNTPError): ...\nclass NNTPDataError(NNTPError): ...\n\nNNTP_PORT: int\nNNTP_SSL_PORT: int\n\nclass GroupInfo(NamedTuple):\n group: str\n last: str\n first: str\n flag: str\n\nclass ArticleInfo(NamedTuple):\n number: int\n message_id: str\n lines: List[bytes]\n\ndef decode_header(header_str: str) -> str: ...\n\nclass _NNTPBase:\n encoding: str\n errors: str\n\n host: str\n file: IO[bytes]\n debugging: int\n welcome: str\n readermode_afterauth: bool\n tls_on: bool\n authenticated: bool\n nntp_implementation: str\n nntp_version: int\n def __init__(self, file: IO[bytes], host: str, readermode: Optional[bool] = ..., timeout: float = ...) -> None: ...\n def __enter__(self: _SelfT) -> _SelfT: ...\n def __exit__(self, *args: Any) -> None: ...\n def getwelcome(self) -> str: ...\n def getcapabilities(self) -> Dict[str, List[str]]: ...\n def set_debuglevel(self, level: int) -> None: ...\n def debug(self, level: int) -> None: ...\n def capabilities(self) -> Tuple[str, Dict[str, List[str]]]: ...\n def newgroups(self, date: Union[datetime.date, datetime.datetime], *, file: _File = ...) -> Tuple[str, List[str]]: ...\n def newnews(\n self, group: str, date: Union[datetime.date, datetime.datetime], *, file: _File = ...\n ) -> Tuple[str, List[str]]: ...\n def list(self, group_pattern: Optional[str] = ..., *, file: _File = ...) -> Tuple[str, List[str]]: ...\n def description(self, group: str) -> str: ...\n def descriptions(self, group_pattern: str) -> Tuple[str, Dict[str, str]]: ...\n def group(self, name: str) -> Tuple[str, int, int, int, str]: ...\n def help(self, *, file: _File = ...) -> Tuple[str, List[str]]: ...\n def stat(self, message_spec: Any = ...) -> Tuple[str, int, str]: ...\n def next(self) -> Tuple[str, int, str]: ...\n def last(self) -> Tuple[str, int, str]: ...\n def head(self, message_spec: Any = ..., *, file: _File = ...) -> Tuple[str, ArticleInfo]: ...\n def body(self, message_spec: Any = ..., *, file: _File = ...) -> Tuple[str, ArticleInfo]: ...\n def article(self, message_spec: Any = ..., *, file: _File = ...) -> Tuple[str, ArticleInfo]: ...\n def slave(self) -> str: ...\n def xhdr(self, hdr: str, str: Any, *, file: _File = ...) -> Tuple[str, List[str]]: ...\n def xover(self, start: int, end: int, *, file: _File = ...) -> Tuple[str, List[Tuple[int, Dict[str, str]]]]: ...\n def over(\n self, message_spec: Union[None, str, List[Any], Tuple[Any, ...]], *, file: _File = ...\n ) -> Tuple[str, List[Tuple[int, Dict[str, str]]]]: ...\n if sys.version_info < (3, 9):\n def xgtitle(self, group: str, *, file: _File = ...) -> Tuple[str, List[Tuple[str, str]]]: ...\n def xpath(self, id: Any) -> Tuple[str, str]: ...\n def date(self) -> Tuple[str, datetime.datetime]: ...\n def post(self, data: Union[bytes, Iterable[bytes]]) -> str: ...\n def ihave(self, message_id: Any, data: Union[bytes, Iterable[bytes]]) -> str: ...\n def quit(self) -> str: ...\n def login(self, user: Optional[str] = ..., password: Optional[str] = ..., usenetrc: bool = ...) -> None: ...\n def starttls(self, ssl_context: Optional[ssl.SSLContext] = ...) -> None: ...\n\nclass NNTP(_NNTPBase):\n port: int\n sock: socket.socket\n def __init__(\n self,\n host: str,\n port: int = ...,\n user: Optional[str] = ...,\n password: Optional[str] = ...,\n readermode: Optional[bool] = ...,\n usenetrc: bool = ...,\n timeout: float = ...,\n ) -> None: ...\n\nclass NNTP_SSL(_NNTPBase):\n sock: socket.socket\n def __init__(\n self,\n host: str,\n port: int = ...,\n user: Optional[str] = ...,\n password: Optional[str] = ...,\n ssl_context: Optional[ssl.SSLContext] = ...,\n readermode: Optional[bool] = ...,\n usenetrc: bool = ...,\n timeout: float = ...,\n ) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\nntplib.pyi | nntplib.pyi | Other | 4,325 | 0.85 | 0.424779 | 0 | python-kit | 739 | 2023-12-22T00:51:29.098468 | BSD-3-Clause | false | cbe13595e6bd78fae83108cc17c4397a |
import os\nimport sys\nfrom _typeshed import AnyPath, BytesPath, StrPath\nfrom genericpath import exists as exists\nfrom typing import Any, AnyStr, Optional, Sequence, Tuple, TypeVar, overload\n\n_T = TypeVar("_T")\n\nif sys.version_info >= (3, 6):\n from builtins import _PathLike\n\n# ----- os.path variables -----\nsupports_unicode_filenames: bool\n# aliases (also in os)\ncurdir: str\npardir: str\nsep: str\nif sys.platform == "win32":\n altsep: str\nelse:\n altsep: Optional[str]\nextsep: str\npathsep: str\ndefpath: str\ndevnull: str\n\n# ----- os.path function stubs -----\nif sys.version_info >= (3, 6):\n # Overloads are necessary to work around python/mypy#3644.\n @overload\n def abspath(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def abspath(path: AnyStr) -> AnyStr: ...\n @overload\n def basename(p: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def basename(p: AnyStr) -> AnyStr: ...\n @overload\n def dirname(p: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def dirname(p: AnyStr) -> AnyStr: ...\n @overload\n def expanduser(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def expanduser(path: AnyStr) -> AnyStr: ...\n @overload\n def expandvars(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def expandvars(path: AnyStr) -> AnyStr: ...\n @overload\n def normcase(s: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def normcase(s: AnyStr) -> AnyStr: ...\n @overload\n def normpath(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def normpath(path: AnyStr) -> AnyStr: ...\n if sys.platform == "win32":\n @overload\n def realpath(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def realpath(path: AnyStr) -> AnyStr: ...\n else:\n @overload\n def realpath(filename: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def realpath(filename: AnyStr) -> AnyStr: ...\n\nelse:\n def abspath(path: AnyStr) -> AnyStr: ...\n def basename(p: AnyStr) -> AnyStr: ...\n def dirname(p: AnyStr) -> AnyStr: ...\n def expanduser(path: AnyStr) -> AnyStr: ...\n def expandvars(path: AnyStr) -> AnyStr: ...\n def normcase(s: AnyStr) -> AnyStr: ...\n def normpath(path: AnyStr) -> AnyStr: ...\n if sys.platform == "win32":\n def realpath(path: AnyStr) -> AnyStr: ...\n else:\n def realpath(filename: AnyStr) -> AnyStr: ...\n\nif sys.version_info >= (3, 6):\n # In reality it returns str for sequences of StrPath and bytes for sequences\n # of BytesPath, but mypy does not accept such a signature.\n def commonpath(paths: Sequence[AnyPath]) -> Any: ...\n\nelif sys.version_info >= (3, 5):\n def commonpath(paths: Sequence[AnyStr]) -> AnyStr: ...\n\n# NOTE: Empty lists results in '' (str) regardless of contained type.\n# So, fall back to Any\ndef commonprefix(m: Sequence[AnyPath]) -> Any: ...\ndef lexists(path: AnyPath) -> bool: ...\n\n# These return float if os.stat_float_times() == True,\n# but int is a subclass of float.\ndef getatime(filename: AnyPath) -> float: ...\ndef getmtime(filename: AnyPath) -> float: ...\ndef getctime(filename: AnyPath) -> float: ...\ndef getsize(filename: AnyPath) -> int: ...\ndef isabs(s: AnyPath) -> bool: ...\ndef isfile(path: AnyPath) -> bool: ...\ndef isdir(s: AnyPath) -> bool: ...\ndef islink(path: AnyPath) -> bool: ...\ndef ismount(path: AnyPath) -> bool: ...\n\nif sys.version_info >= (3, 6):\n @overload\n def join(a: StrPath, *paths: StrPath) -> str: ...\n @overload\n def join(a: BytesPath, *paths: BytesPath) -> bytes: ...\n\nelse:\n def join(a: AnyStr, *paths: AnyStr) -> AnyStr: ...\n\n@overload\ndef relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...\n@overload\ndef relpath(path: StrPath, start: Optional[StrPath] = ...) -> str: ...\ndef samefile(f1: AnyPath, f2: AnyPath) -> bool: ...\ndef sameopenfile(fp1: int, fp2: int) -> bool: ...\ndef samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...\n\nif sys.version_info >= (3, 6):\n @overload\n def split(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitdrive(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitext(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n\nelse:\n def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n\nif sys.version_info < (3, 7) and sys.platform == "win32":\n def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\ntpath.pyi | ntpath.pyi | Other | 4,721 | 0.95 | 0.493056 | 0.077519 | python-kit | 209 | 2025-06-04T14:35:51.012033 | Apache-2.0 | false | d6525de34375179d12889a176a91255d |
def url2pathname(url: str) -> str: ...\ndef pathname2url(p: str) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\nturl2path.pyi | nturl2path.pyi | Other | 76 | 0.65 | 1 | 0 | node-utils | 681 | 2024-04-22T04:30:18.476715 | BSD-3-Clause | false | c55b91dc6ead4b3ae3b5695aa8a50131 |
import os\nimport sys\nfrom _typeshed import OpenBinaryMode, OpenBinaryModeReading, OpenBinaryModeUpdating, OpenBinaryModeWriting, OpenTextMode\nfrom io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper\nfrom types import TracebackType\nfrom typing import IO, Any, BinaryIO, Generator, List, Optional, Sequence, Tuple, Type, TypeVar, Union, overload\nfrom typing_extensions import Literal\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_P = TypeVar("_P", bound=PurePath)\n\nif sys.version_info >= (3, 6):\n _PurePathBase = os.PathLike[str]\n _PathLike = os.PathLike[str]\nelse:\n _PurePathBase = object\n _PathLike = PurePath\n\nclass PurePath(_PurePathBase):\n parts: Tuple[str, ...]\n drive: str\n root: str\n anchor: str\n name: str\n suffix: str\n suffixes: List[str]\n stem: str\n def __new__(cls: Type[_P], *args: Union[str, _PathLike]) -> _P: ...\n def __hash__(self) -> int: ...\n def __lt__(self, other: PurePath) -> bool: ...\n def __le__(self, other: PurePath) -> bool: ...\n def __gt__(self, other: PurePath) -> bool: ...\n def __ge__(self, other: PurePath) -> bool: ...\n def __truediv__(self: _P, key: Union[str, _PathLike]) -> _P: ...\n def __rtruediv__(self: _P, key: Union[str, _PathLike]) -> _P: ...\n def __bytes__(self) -> bytes: ...\n def as_posix(self) -> str: ...\n def as_uri(self) -> str: ...\n def is_absolute(self) -> bool: ...\n def is_reserved(self) -> bool: ...\n if sys.version_info >= (3, 9):\n def is_relative_to(self, *other: Union[str, os.PathLike[str]]) -> bool: ...\n def match(self, path_pattern: str) -> bool: ...\n def relative_to(self: _P, *other: Union[str, _PathLike]) -> _P: ...\n def with_name(self: _P, name: str) -> _P: ...\n if sys.version_info >= (3, 9):\n def with_stem(self: _P, stem: str) -> _P: ...\n def with_suffix(self: _P, suffix: str) -> _P: ...\n def joinpath(self: _P, *other: Union[str, _PathLike]) -> _P: ...\n @property\n def parents(self: _P) -> Sequence[_P]: ...\n @property\n def parent(self: _P) -> _P: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, type: Any) -> GenericAlias: ...\n\nclass PurePosixPath(PurePath): ...\nclass PureWindowsPath(PurePath): ...\n\nclass Path(PurePath):\n def __new__(cls: Type[_P], *args: Union[str, _PathLike], **kwargs: Any) -> _P: ...\n def __enter__(self: _P) -> _P: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType]\n ) -> Optional[bool]: ...\n @classmethod\n def cwd(cls: Type[_P]) -> _P: ...\n def stat(self) -> os.stat_result: ...\n def chmod(self, mode: int) -> None: ...\n def exists(self) -> bool: ...\n def glob(self: _P, pattern: str) -> Generator[_P, None, None]: ...\n def group(self) -> str: ...\n def is_dir(self) -> bool: ...\n def is_file(self) -> bool: ...\n if sys.version_info >= (3, 7):\n def is_mount(self) -> bool: ...\n def is_symlink(self) -> bool: ...\n def is_socket(self) -> bool: ...\n def is_fifo(self) -> bool: ...\n def is_block_device(self) -> bool: ...\n def is_char_device(self) -> bool: ...\n def iterdir(self: _P) -> Generator[_P, None, None]: ...\n def lchmod(self, mode: int) -> None: ...\n def lstat(self) -> os.stat_result: ...\n def mkdir(self, mode: int = ..., parents: bool = ..., exist_ok: bool = ...) -> None: ...\n # Adapted from builtins.open\n # Text mode: always returns a TextIOWrapper\n @overload\n def open(\n self,\n mode: OpenTextMode = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n ) -> TextIOWrapper: ...\n # Unbuffered binary mode: returns a FileIO\n @overload\n def open(\n self, mode: OpenBinaryMode, buffering: Literal[0], encoding: None = ..., errors: None = ..., newline: None = ...\n ) -> FileIO: ...\n # Buffering is on: return BufferedRandom, BufferedReader, or BufferedWriter\n @overload\n def open(\n self,\n mode: OpenBinaryModeUpdating,\n buffering: Literal[-1, 1] = ...,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n ) -> BufferedRandom: ...\n @overload\n def open(\n self,\n mode: OpenBinaryModeWriting,\n buffering: Literal[-1, 1] = ...,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n ) -> BufferedWriter: ...\n @overload\n def open(\n self,\n mode: OpenBinaryModeReading,\n buffering: Literal[-1, 1] = ...,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n ) -> BufferedReader: ...\n # Buffering cannot be determined: fall back to BinaryIO\n @overload\n def open(\n self, mode: OpenBinaryMode, buffering: int, encoding: None = ..., errors: None = ..., newline: None = ...\n ) -> BinaryIO: ...\n # Fallback if mode is not specified\n @overload\n def open(\n self,\n mode: str,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n ) -> IO[Any]: ...\n def owner(self) -> str: ...\n if sys.version_info >= (3, 9):\n def readlink(self: _P) -> _P: ...\n if sys.version_info >= (3, 8):\n def rename(self: _P, target: Union[str, PurePath]) -> _P: ...\n def replace(self: _P, target: Union[str, PurePath]) -> _P: ...\n else:\n def rename(self, target: Union[str, PurePath]) -> None: ...\n def replace(self, target: Union[str, PurePath]) -> None: ...\n def resolve(self: _P, strict: bool = ...) -> _P: ...\n def rglob(self: _P, pattern: str) -> Generator[_P, None, None]: ...\n def rmdir(self) -> None: ...\n def symlink_to(self, target: Union[str, Path], target_is_directory: bool = ...) -> None: ...\n def touch(self, mode: int = ..., exist_ok: bool = ...) -> None: ...\n if sys.version_info >= (3, 8):\n def unlink(self, missing_ok: bool = ...) -> None: ...\n else:\n def unlink(self) -> None: ...\n @classmethod\n def home(cls: Type[_P]) -> _P: ...\n def absolute(self: _P) -> _P: ...\n def expanduser(self: _P) -> _P: ...\n def read_bytes(self) -> bytes: ...\n def read_text(self, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> str: ...\n def samefile(self, other_path: Union[str, bytes, int, Path]) -> bool: ...\n def write_bytes(self, data: bytes) -> int: ...\n def write_text(self, data: str, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> int: ...\n if sys.version_info >= (3, 8):\n def link_to(self, target: Union[str, bytes, os.PathLike[str]]) -> None: ...\n\nclass PosixPath(Path, PurePosixPath): ...\nclass WindowsPath(Path, PureWindowsPath): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\pathlib.pyi | pathlib.pyi | Other | 6,899 | 0.95 | 0.505618 | 0.035088 | node-utils | 810 | 2024-07-25T17:54:36.244474 | GPL-3.0 | false | 5c88c4d43267cd839370dbd003eb95b3 |
import os\n\nclass Template:\n def __init__(self) -> None: ...\n def reset(self) -> None: ...\n def clone(self) -> Template: ...\n def debug(self, flag: bool) -> None: ...\n def append(self, cmd: str, kind: str) -> None: ...\n def prepend(self, cmd: str, kind: str) -> None: ...\n def open(self, file: str, rw: str) -> os._wrap_close: ...\n def copy(self, file: str, rw: str) -> os._wrap_close: ...\n\n# Not documented, but widely used.\n# Documented as shlex.quote since 3.3.\ndef quote(s: str) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\pipes.pyi | pipes.pyi | Other | 518 | 0.95 | 0.666667 | 0.153846 | react-lib | 443 | 2024-04-01T01:07:25.457585 | BSD-3-Clause | false | 140157f67e8956b24f0c90bdd8911a4f |
import sys\n\nif sys.version_info < (3, 9):\n import os\n\n DEV_NULL = os.devnull\nfrom typing import NamedTuple, Optional, Tuple\n\nif sys.version_info >= (3, 8):\n def libc_ver(\n executable: Optional[str] = ..., lib: str = ..., version: str = ..., chunksize: int = ...\n ) -> Tuple[str, str]: ...\n\nelse:\n def libc_ver(executable: str = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> Tuple[str, str]: ...\n\nif sys.version_info < (3, 8):\n def linux_distribution(\n distname: str = ...,\n version: str = ...,\n id: str = ...,\n supported_dists: Tuple[str, ...] = ...,\n full_distribution_name: bool = ...,\n ) -> Tuple[str, str, str]: ...\n def dist(\n distname: str = ..., version: str = ..., id: str = ..., supported_dists: Tuple[str, ...] = ...\n ) -> Tuple[str, str, str]: ...\n\ndef win32_ver(release: str = ..., version: str = ..., csd: str = ..., ptype: str = ...) -> Tuple[str, str, str, str]: ...\n\nif sys.version_info >= (3, 8):\n def win32_edition() -> str: ...\n def win32_is_iot() -> bool: ...\n\ndef mac_ver(\n release: str = ..., versioninfo: Tuple[str, str, str] = ..., machine: str = ...\n) -> Tuple[str, Tuple[str, str, str], str]: ...\ndef java_ver(\n release: str = ..., vendor: str = ..., vminfo: Tuple[str, str, str] = ..., osinfo: Tuple[str, str, str] = ...\n) -> Tuple[str, str, Tuple[str, str, str], Tuple[str, str, str]]: ...\ndef system_alias(system: str, release: str, version: str) -> Tuple[str, str, str]: ...\ndef architecture(executable: str = ..., bits: str = ..., linkage: str = ...) -> Tuple[str, str]: ...\n\nclass uname_result(NamedTuple):\n system: str\n node: str\n release: str\n version: str\n machine: str\n processor: str\n\ndef uname() -> uname_result: ...\ndef system() -> str: ...\ndef node() -> str: ...\ndef release() -> str: ...\ndef version() -> str: ...\ndef machine() -> str: ...\ndef processor() -> str: ...\ndef python_implementation() -> str: ...\ndef python_version() -> str: ...\ndef python_version_tuple() -> Tuple[str, str, str]: ...\ndef python_branch() -> str: ...\ndef python_revision() -> str: ...\ndef python_build() -> Tuple[str, str]: ...\ndef python_compiler() -> str: ...\ndef platform(aliased: bool = ..., terse: bool = ...) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\platform.pyi | platform.pyi | Other | 2,272 | 0.85 | 0.469697 | 0 | vue-tools | 798 | 2024-08-14T03:57:58.801955 | GPL-3.0 | false | e5f80c0a790351eadb6be656ec1b305f |
import sys\nfrom builtins import _PathLike # See comment in builtins\nfrom os import stat_result as stat_result\nfrom typing import Dict, List, NamedTuple, Optional, overload\n\nclass uname_result(NamedTuple):\n sysname: str\n nodename: str\n release: str\n version: str\n machine: str\n\nclass times_result(NamedTuple):\n user: float\n system: float\n children_user: float\n children_system: float\n elapsed: float\n\nclass waitid_result(NamedTuple):\n si_pid: int\n si_uid: int\n si_signo: int\n si_status: int\n si_code: int\n\nclass sched_param(NamedTuple):\n sched_priority: int\n\nCLD_CONTINUED: int\nCLD_DUMPED: int\nCLD_EXITED: int\nCLD_TRAPPED: int\n\nEX_CANTCREAT: int\nEX_CONFIG: int\nEX_DATAERR: int\nEX_IOERR: int\nEX_NOHOST: int\nEX_NOINPUT: int\nEX_NOPERM: int\nEX_NOTFOUND: int\nEX_NOUSER: int\nEX_OK: int\nEX_OSERR: int\nEX_OSFILE: int\nEX_PROTOCOL: int\nEX_SOFTWARE: int\nEX_TEMPFAIL: int\nEX_UNAVAILABLE: int\nEX_USAGE: int\n\nF_OK: int\nR_OK: int\nW_OK: int\nX_OK: int\n\nF_LOCK: int\nF_TEST: int\nF_TLOCK: int\nF_ULOCK: int\n\nGRND_NONBLOCK: int\nGRND_RANDOM: int\nNGROUPS_MAX: int\n\nO_APPEND: int\nO_ACCMODE: int\nO_ASYNC: int\nO_CREAT: int\nO_DIRECT: int\nO_DIRECTORY: int\nO_DSYNC: int\nO_EXCL: int\nO_LARGEFILE: int\nO_NDELAY: int\nO_NOATIME: int\nO_NOCTTY: int\nO_NOFOLLOW: int\nO_NONBLOCK: int\nO_RDONLY: int\nO_RDWR: int\nO_RSYNC: int\nO_SYNC: int\nO_TRUNC: int\nO_WRONLY: int\n\nPOSIX_FADV_DONTNEED: int\nPOSIX_FADV_NOREUSE: int\nPOSIX_FADV_NORMAL: int\nPOSIX_FADV_RANDOM: int\nPOSIX_FADV_SEQUENTIAL: int\nPOSIX_FADV_WILLNEED: int\n\nPRIO_PGRP: int\nPRIO_PROCESS: int\nPRIO_USER: int\n\nP_ALL: int\nP_PGID: int\nP_PID: int\n\nRTLD_DEEPBIND: int\nRTLD_GLOBAL: int\nRTLD_LAZY: int\nRTLD_LOCAL: int\nRTLD_NODELETE: int\nRTLD_NOLOAD: int\nRTLD_NOW: int\n\nSCHED_BATCH: int\nSCHED_FIFO: int\nSCHED_IDLE: int\nSCHED_OTHER: int\nSCHED_RESET_ON_FORK: int\nSCHED_RR: int\n\nSEEK_DATA: int\nSEEK_HOLE: int\n\nST_APPEND: int\nST_MANDLOCK: int\nST_NOATIME: int\nST_NODEV: int\nST_NODIRATIME: int\nST_NOEXEC: int\nST_NOSUID: int\nST_RDONLY: int\nST_RELATIME: int\nST_SYNCHRONOUS: int\nST_WRITE: int\n\nTMP_MAX: int\nWCONTINUED: int\n\ndef WCOREDUMP(__status: int) -> bool: ...\ndef WEXITSTATUS(status: int) -> int: ...\ndef WIFCONTINUED(status: int) -> bool: ...\ndef WIFEXITED(status: int) -> bool: ...\ndef WIFSIGNALED(status: int) -> bool: ...\ndef WIFSTOPPED(status: int) -> bool: ...\n\nWNOHANG: int\n\ndef WSTOPSIG(status: int) -> int: ...\ndef WTERMSIG(status: int) -> int: ...\n\nWUNTRACED: int\n\nXATTR_CREATE: int\nXATTR_REPLACE: int\nXATTR_SIZE_MAX: int\n@overload\ndef listdir(path: Optional[str] = ...) -> List[str]: ...\n@overload\ndef listdir(path: bytes) -> List[bytes]: ...\n@overload\ndef listdir(path: int) -> List[str]: ...\n@overload\ndef listdir(path: _PathLike[str]) -> List[str]: ...\n\nif sys.platform == "win32":\n environ: Dict[str, str]\nelse:\n environ: Dict[bytes, bytes]\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\posix.pyi | posix.pyi | Other | 2,810 | 0.95 | 0.10303 | 0 | python-kit | 451 | 2025-05-31T21:59:09.594768 | Apache-2.0 | false | fc5a13bfaed14b3ccef19ac883b60f2e |
import os\nimport sys\nfrom _typeshed import AnyPath, BytesPath, StrPath\nfrom genericpath import exists as exists\nfrom typing import Any, AnyStr, Optional, Sequence, Tuple, TypeVar, overload\n\n_T = TypeVar("_T")\n\nif sys.version_info >= (3, 6):\n from builtins import _PathLike\n\n# ----- os.path variables -----\nsupports_unicode_filenames: bool\n# aliases (also in os)\ncurdir: str\npardir: str\nsep: str\nif sys.platform == "win32":\n altsep: str\nelse:\n altsep: Optional[str]\nextsep: str\npathsep: str\ndefpath: str\ndevnull: str\n\n# ----- os.path function stubs -----\nif sys.version_info >= (3, 6):\n # Overloads are necessary to work around python/mypy#3644.\n @overload\n def abspath(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def abspath(path: AnyStr) -> AnyStr: ...\n @overload\n def basename(p: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def basename(p: AnyStr) -> AnyStr: ...\n @overload\n def dirname(p: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def dirname(p: AnyStr) -> AnyStr: ...\n @overload\n def expanduser(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def expanduser(path: AnyStr) -> AnyStr: ...\n @overload\n def expandvars(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def expandvars(path: AnyStr) -> AnyStr: ...\n @overload\n def normcase(s: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def normcase(s: AnyStr) -> AnyStr: ...\n @overload\n def normpath(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def normpath(path: AnyStr) -> AnyStr: ...\n if sys.platform == "win32":\n @overload\n def realpath(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def realpath(path: AnyStr) -> AnyStr: ...\n else:\n @overload\n def realpath(filename: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def realpath(filename: AnyStr) -> AnyStr: ...\n\nelse:\n def abspath(path: AnyStr) -> AnyStr: ...\n def basename(p: AnyStr) -> AnyStr: ...\n def dirname(p: AnyStr) -> AnyStr: ...\n def expanduser(path: AnyStr) -> AnyStr: ...\n def expandvars(path: AnyStr) -> AnyStr: ...\n def normcase(s: AnyStr) -> AnyStr: ...\n def normpath(path: AnyStr) -> AnyStr: ...\n if sys.platform == "win32":\n def realpath(path: AnyStr) -> AnyStr: ...\n else:\n def realpath(filename: AnyStr) -> AnyStr: ...\n\nif sys.version_info >= (3, 6):\n # In reality it returns str for sequences of StrPath and bytes for sequences\n # of BytesPath, but mypy does not accept such a signature.\n def commonpath(paths: Sequence[AnyPath]) -> Any: ...\n\nelif sys.version_info >= (3, 5):\n def commonpath(paths: Sequence[AnyStr]) -> AnyStr: ...\n\n# NOTE: Empty lists results in '' (str) regardless of contained type.\n# So, fall back to Any\ndef commonprefix(m: Sequence[AnyPath]) -> Any: ...\ndef lexists(path: AnyPath) -> bool: ...\n\n# These return float if os.stat_float_times() == True,\n# but int is a subclass of float.\ndef getatime(filename: AnyPath) -> float: ...\ndef getmtime(filename: AnyPath) -> float: ...\ndef getctime(filename: AnyPath) -> float: ...\ndef getsize(filename: AnyPath) -> int: ...\ndef isabs(s: AnyPath) -> bool: ...\ndef isfile(path: AnyPath) -> bool: ...\ndef isdir(s: AnyPath) -> bool: ...\ndef islink(path: AnyPath) -> bool: ...\ndef ismount(path: AnyPath) -> bool: ...\n\nif sys.version_info >= (3, 6):\n @overload\n def join(a: StrPath, *paths: StrPath) -> str: ...\n @overload\n def join(a: BytesPath, *paths: BytesPath) -> bytes: ...\n\nelse:\n def join(a: AnyStr, *paths: AnyStr) -> AnyStr: ...\n\n@overload\ndef relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...\n@overload\ndef relpath(path: StrPath, start: Optional[StrPath] = ...) -> str: ...\ndef samefile(f1: AnyPath, f2: AnyPath) -> bool: ...\ndef sameopenfile(fp1: int, fp2: int) -> bool: ...\ndef samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...\n\nif sys.version_info >= (3, 6):\n @overload\n def split(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitdrive(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitext(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n\nelse:\n def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n\nif sys.version_info < (3, 7) and sys.platform == "win32":\n def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\posixpath.pyi | posixpath.pyi | Other | 4,721 | 0.95 | 0.493056 | 0.077519 | node-utils | 210 | 2025-02-20T22:32:03.136558 | MIT | false | d6525de34375179d12889a176a91255d |
import sys\nfrom threading import Condition, Lock\nfrom typing import Any, Generic, Optional, TypeVar\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_T = TypeVar("_T")\n\nclass Empty(Exception): ...\nclass Full(Exception): ...\n\nclass Queue(Generic[_T]):\n maxsize: int\n\n mutex: Lock # undocumented\n not_empty: Condition # undocumented\n not_full: Condition # undocumented\n all_tasks_done: Condition # undocumented\n unfinished_tasks: int # undocumented\n queue: Any # undocumented\n def __init__(self, maxsize: int = ...) -> None: ...\n def _init(self, maxsize: int) -> None: ...\n def empty(self) -> bool: ...\n def full(self) -> bool: ...\n def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...\n def get_nowait(self) -> _T: ...\n def _get(self) -> _T: ...\n def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...\n def put_nowait(self, item: _T) -> None: ...\n def _put(self, item: _T) -> None: ...\n def join(self) -> None: ...\n def qsize(self) -> int: ...\n def _qsize(self) -> int: ...\n def task_done(self) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass PriorityQueue(Queue[_T]): ...\nclass LifoQueue(Queue[_T]): ...\n\nif sys.version_info >= (3, 7):\n class SimpleQueue(Generic[_T]):\n def __init__(self) -> None: ...\n def empty(self) -> bool: ...\n def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...\n def get_nowait(self) -> _T: ...\n def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...\n def put_nowait(self, item: _T) -> None: ...\n def qsize(self) -> int: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\queue.pyi | queue.pyi | Other | 1,884 | 0.95 | 0.634615 | 0 | python-kit | 589 | 2024-09-12T10:20:35.853653 | MIT | false | c7784789fd2207b9e526cb7ac62977a9 |
import _random\nimport sys\nfrom typing import AbstractSet, Any, Callable, Iterable, List, MutableSequence, Optional, Sequence, Tuple, TypeVar, Union\n\n_T = TypeVar("_T")\n\nclass Random(_random.Random):\n def __init__(self, x: Any = ...) -> None: ...\n def seed(self, a: Any = ..., version: int = ...) -> None: ...\n def getstate(self) -> Tuple[Any, ...]: ...\n def setstate(self, state: Tuple[Any, ...]) -> None: ...\n def getrandbits(self, __k: int) -> int: ...\n def randrange(self, start: int, stop: Optional[int] = ..., step: int = ...) -> int: ...\n def randint(self, a: int, b: int) -> int: ...\n if sys.version_info >= (3, 9):\n def randbytes(self, n: int) -> bytes: ...\n def choice(self, seq: Sequence[_T]) -> _T: ...\n def choices(\n self,\n population: Sequence[_T],\n weights: Optional[Sequence[float]] = ...,\n *,\n cum_weights: Optional[Sequence[float]] = ...,\n k: int = ...,\n ) -> List[_T]: ...\n def shuffle(self, x: MutableSequence[Any], random: Optional[Callable[[], float]] = ...) -> None: ...\n if sys.version_info >= (3, 9):\n def sample(\n self, population: Union[Sequence[_T], AbstractSet[_T]], k: int, *, counts: Optional[Iterable[_T]] = ...\n ) -> List[_T]: ...\n else:\n def sample(self, population: Union[Sequence[_T], AbstractSet[_T]], k: int) -> List[_T]: ...\n def random(self) -> float: ...\n def uniform(self, a: float, b: float) -> float: ...\n def triangular(self, low: float = ..., high: float = ..., mode: Optional[float] = ...) -> float: ...\n def betavariate(self, alpha: float, beta: float) -> float: ...\n def expovariate(self, lambd: float) -> float: ...\n def gammavariate(self, alpha: float, beta: float) -> float: ...\n def gauss(self, mu: float, sigma: float) -> float: ...\n def lognormvariate(self, mu: float, sigma: float) -> float: ...\n def normalvariate(self, mu: float, sigma: float) -> float: ...\n def vonmisesvariate(self, mu: float, kappa: float) -> float: ...\n def paretovariate(self, alpha: float) -> float: ...\n def weibullvariate(self, alpha: float, beta: float) -> float: ...\n\n# SystemRandom is not implemented for all OS's; good on Windows & Linux\nclass SystemRandom(Random): ...\n\n# ----- random function stubs -----\ndef seed(a: Any = ..., version: int = ...) -> None: ...\ndef getstate() -> object: ...\ndef setstate(state: object) -> None: ...\ndef getrandbits(__k: int) -> int: ...\ndef randrange(start: int, stop: Union[None, int] = ..., step: int = ...) -> int: ...\ndef randint(a: int, b: int) -> int: ...\n\nif sys.version_info >= (3, 9):\n def randbytes(n: int) -> bytes: ...\n\ndef choice(seq: Sequence[_T]) -> _T: ...\ndef choices(\n population: Sequence[_T],\n weights: Optional[Sequence[float]] = ...,\n *,\n cum_weights: Optional[Sequence[float]] = ...,\n k: int = ...,\n) -> List[_T]: ...\ndef shuffle(x: MutableSequence[Any], random: Optional[Callable[[], float]] = ...) -> None: ...\n\nif sys.version_info >= (3, 9):\n def sample(population: Union[Sequence[_T], AbstractSet[_T]], k: int, *, counts: Optional[Iterable[_T]] = ...) -> List[_T]: ...\n\nelse:\n def sample(population: Union[Sequence[_T], AbstractSet[_T]], k: int) -> List[_T]: ...\n\ndef random() -> float: ...\ndef uniform(a: float, b: float) -> float: ...\ndef triangular(low: float = ..., high: float = ..., mode: Optional[float] = ...) -> float: ...\ndef betavariate(alpha: float, beta: float) -> float: ...\ndef expovariate(lambd: float) -> float: ...\ndef gammavariate(alpha: float, beta: float) -> float: ...\ndef gauss(mu: float, sigma: float) -> float: ...\ndef lognormvariate(mu: float, sigma: float) -> float: ...\ndef normalvariate(mu: float, sigma: float) -> float: ...\ndef vonmisesvariate(mu: float, kappa: float) -> float: ...\ndef paretovariate(alpha: float) -> float: ...\ndef weibullvariate(alpha: float, beta: float) -> float: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\random.pyi | random.pyi | Other | 3,901 | 0.95 | 0.655172 | 0.051282 | react-lib | 912 | 2024-06-03T22:05:29.656869 | BSD-3-Clause | false | 664640c952bb2e24edb9d5a76b1de7be |
import enum\nimport sys\nfrom typing import Any, AnyStr, Callable, Iterator, List, Optional, Tuple, Union, overload\n\n# ----- re variables and constants -----\nif sys.version_info >= (3, 7):\n from typing import Match as Match, Pattern as Pattern\nelse:\n from typing import Match, Pattern\n\nclass RegexFlag(enum.IntFlag):\n A: int\n ASCII: int\n DEBUG: int\n I: int\n IGNORECASE: int\n L: int\n LOCALE: int\n M: int\n MULTILINE: int\n S: int\n DOTALL: int\n X: int\n VERBOSE: int\n U: int\n UNICODE: int\n T: int\n TEMPLATE: int\n\nA = RegexFlag.A\nASCII = RegexFlag.ASCII\nDEBUG = RegexFlag.DEBUG\nI = RegexFlag.I\nIGNORECASE = RegexFlag.IGNORECASE\nL = RegexFlag.L\nLOCALE = RegexFlag.LOCALE\nM = RegexFlag.M\nMULTILINE = RegexFlag.MULTILINE\nS = RegexFlag.S\nDOTALL = RegexFlag.DOTALL\nX = RegexFlag.X\nVERBOSE = RegexFlag.VERBOSE\nU = RegexFlag.U\nUNICODE = RegexFlag.UNICODE\nT = RegexFlag.T\nTEMPLATE = RegexFlag.TEMPLATE\n_FlagsType = Union[int, RegexFlag]\n\nif sys.version_info < (3, 7):\n # undocumented\n _pattern_type: type\n\nclass error(Exception):\n msg: str\n pattern: str\n pos: Optional[int]\n lineno: Optional[int]\n colno: Optional[int]\n\n@overload\ndef compile(pattern: AnyStr, flags: _FlagsType = ...) -> Pattern[AnyStr]: ...\n@overload\ndef compile(pattern: Pattern[AnyStr], flags: _FlagsType = ...) -> Pattern[AnyStr]: ...\n@overload\ndef search(pattern: AnyStr, string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...\n@overload\ndef search(pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...\n@overload\ndef match(pattern: AnyStr, string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...\n@overload\ndef match(pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...\n\n# New in Python 3.4\n@overload\ndef fullmatch(pattern: AnyStr, string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...\n@overload\ndef fullmatch(pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> Optional[Match[AnyStr]]: ...\n@overload\ndef split(pattern: AnyStr, string: AnyStr, maxsplit: int = ..., flags: _FlagsType = ...) -> List[AnyStr]: ...\n@overload\ndef split(pattern: Pattern[AnyStr], string: AnyStr, maxsplit: int = ..., flags: _FlagsType = ...) -> List[AnyStr]: ...\n@overload\ndef findall(pattern: AnyStr, string: AnyStr, flags: _FlagsType = ...) -> List[Any]: ...\n@overload\ndef findall(pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> List[Any]: ...\n\n# Return an iterator yielding match objects over all non-overlapping matches\n# for the RE pattern in string. The string is scanned left-to-right, and\n# matches are returned in the order found. Empty matches are included in the\n# result unless they touch the beginning of another match.\n@overload\ndef finditer(pattern: AnyStr, string: AnyStr, flags: _FlagsType = ...) -> Iterator[Match[AnyStr]]: ...\n@overload\ndef finditer(pattern: Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> Iterator[Match[AnyStr]]: ...\n@overload\ndef sub(pattern: AnyStr, repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...) -> AnyStr: ...\n@overload\ndef sub(\n pattern: AnyStr, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...\n) -> AnyStr: ...\n@overload\ndef sub(pattern: Pattern[AnyStr], repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...) -> AnyStr: ...\n@overload\ndef sub(\n pattern: Pattern[AnyStr], repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...\n) -> AnyStr: ...\n@overload\ndef subn(pattern: AnyStr, repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...) -> Tuple[AnyStr, int]: ...\n@overload\ndef subn(\n pattern: AnyStr, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...\n) -> Tuple[AnyStr, int]: ...\n@overload\ndef subn(\n pattern: Pattern[AnyStr], repl: AnyStr, string: AnyStr, count: int = ..., flags: _FlagsType = ...\n) -> Tuple[AnyStr, int]: ...\n@overload\ndef subn(\n pattern: Pattern[AnyStr], repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: _FlagsType = ...\n) -> Tuple[AnyStr, int]: ...\ndef escape(pattern: AnyStr) -> AnyStr: ...\ndef purge() -> None: ...\ndef template(pattern: Union[AnyStr, Pattern[AnyStr]], flags: _FlagsType = ...) -> Pattern[AnyStr]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\re.pyi | re.pyi | Other | 4,442 | 0.95 | 0.243902 | 0.06087 | vue-tools | 70 | 2023-07-14T14:08:58.821142 | GPL-3.0 | false | 5208b26258d7a0ed297409bac8386abc |
from array import array\nfrom typing import Any, Callable, Deque, Dict, FrozenSet, List, Set, Tuple\n\n_ReprFunc = Callable[[Any], str]\n\ndef recursive_repr(fillvalue: str = ...) -> Callable[[_ReprFunc], _ReprFunc]: ...\n\nclass Repr:\n maxlevel: int\n maxdict: int\n maxlist: int\n maxtuple: int\n maxset: int\n maxfrozenset: int\n maxdeque: int\n maxarray: int\n maxlong: int\n maxstring: int\n maxother: int\n def __init__(self) -> None: ...\n def repr(self, x: Any) -> str: ...\n def repr1(self, x: Any, level: int) -> str: ...\n def repr_tuple(self, x: Tuple[Any, ...], level: int) -> str: ...\n def repr_list(self, x: List[Any], level: int) -> str: ...\n def repr_array(self, x: array[Any], level: int) -> str: ...\n def repr_set(self, x: Set[Any], level: int) -> str: ...\n def repr_frozenset(self, x: FrozenSet[Any], level: int) -> str: ...\n def repr_deque(self, x: Deque[Any], level: int) -> str: ...\n def repr_dict(self, x: Dict[Any, Any], level: int) -> str: ...\n def repr_str(self, x: str, level: int) -> str: ...\n def repr_int(self, x: int, level: int) -> str: ...\n def repr_instance(self, x: Any, level: int) -> str: ...\n\naRepr: Repr\n\ndef repr(x: object) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\reprlib.pyi | reprlib.pyi | Other | 1,228 | 0.85 | 0.444444 | 0 | node-utils | 112 | 2024-01-19T20:22:59.989750 | GPL-3.0 | false | dacd356bcc60d17dd831ea0b2cea776a |
import sys\nfrom typing import NamedTuple, Tuple, overload\n\nRLIMIT_AS: int\nRLIMIT_CORE: int\nRLIMIT_CPU: int\nRLIMIT_DATA: int\nRLIMIT_FSIZE: int\nRLIMIT_MEMLOCK: int\nRLIMIT_NOFILE: int\nRLIMIT_NPROC: int\nRLIMIT_RSS: int\nRLIMIT_STACK: int\nRLIM_INFINITY: int\nRUSAGE_CHILDREN: int\nRUSAGE_SELF: int\nif sys.platform == "linux":\n RLIMIT_MSGQUEUE: int\n RLIMIT_NICE: int\n RLIMIT_OFILE: int\n RLIMIT_RTPRIO: int\n RLIMIT_RTTIME: int\n RLIMIT_SIGPENDING: int\n RUSAGE_THREAD: int\n\nclass _RUsage(NamedTuple):\n ru_utime: float\n ru_stime: float\n ru_maxrss: int\n ru_ixrss: int\n ru_idrss: int\n ru_isrss: int\n ru_minflt: int\n ru_majflt: int\n ru_nswap: int\n ru_inblock: int\n ru_oublock: int\n ru_msgsnd: int\n ru_msgrcv: int\n ru_nsignals: int\n ru_nvcsw: int\n ru_nivcsw: int\n\ndef getpagesize() -> int: ...\ndef getrlimit(__resource: int) -> Tuple[int, int]: ...\ndef getrusage(__who: int) -> _RUsage: ...\ndef setrlimit(__resource: int, __limits: Tuple[int, int]) -> None: ...\n\nif sys.platform == "linux":\n @overload\n def prlimit(pid: int, resource: int, limits: Tuple[int, int]) -> Tuple[int, int]: ...\n @overload\n def prlimit(pid: int, resource: int) -> Tuple[int, int]: ...\n\nerror = OSError\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\resource.pyi | resource.pyi | Other | 1,243 | 0.85 | 0.163636 | 0 | node-utils | 79 | 2024-08-16T16:21:50.333253 | GPL-3.0 | false | 84e08c76af05095632312e87ca39707d |
from types import ModuleType\nfrom typing import Any, Dict, Optional, TypeVar\n\n_T = TypeVar("_T")\n\nclass _TempModule:\n mod_name: str = ...\n module: ModuleType = ...\n def __init__(self, mod_name: str) -> None: ...\n def __enter__(self: _T) -> _T: ...\n def __exit__(self, *args: Any) -> None: ...\n\nclass _ModifiedArgv0:\n value: Any = ...\n def __init__(self, value: Any) -> None: ...\n def __enter__(self: _T) -> _T: ...\n def __exit__(self, *args: Any) -> None: ...\n\ndef run_module(\n mod_name: str, init_globals: Optional[Dict[str, Any]] = ..., run_name: Optional[str] = ..., alter_sys: bool = ...\n) -> None: ...\ndef run_path(path_name: str, init_globals: Optional[Dict[str, Any]] = ..., run_name: str = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\runpy.pyi | runpy.pyi | Other | 746 | 0.85 | 0.454545 | 0 | awesome-app | 541 | 2024-12-04T23:26:43.586699 | Apache-2.0 | false | b9a333ab82968e761d99b5e6580d3c60 |
from hmac import compare_digest as compare_digest\nfrom random import SystemRandom as SystemRandom\nfrom typing import Optional, Sequence, TypeVar\n\n_T = TypeVar("_T")\n\ndef randbelow(exclusive_upper_bound: int) -> int: ...\ndef randbits(k: int) -> int: ...\ndef choice(seq: Sequence[_T]) -> _T: ...\ndef token_bytes(nbytes: Optional[int] = ...) -> bytes: ...\ndef token_hex(nbytes: Optional[int] = ...) -> str: ...\ndef token_urlsafe(nbytes: Optional[int] = ...) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\secrets.pyi | secrets.pyi | Other | 467 | 0.85 | 0.5 | 0 | python-kit | 77 | 2025-01-07T04:03:30.898403 | GPL-3.0 | false | 2a04cbebe9d004ca876717528906db86 |
import sys\nfrom _typeshed import FileDescriptor, FileDescriptorLike\nfrom abc import ABCMeta, abstractmethod\nfrom typing import Any, List, Mapping, NamedTuple, Optional, Tuple\n\n_EventMask = int\n\nEVENT_READ: _EventMask\nEVENT_WRITE: _EventMask\n\nclass SelectorKey(NamedTuple):\n fileobj: FileDescriptorLike\n fd: FileDescriptor\n events: _EventMask\n data: Any\n\nclass BaseSelector(metaclass=ABCMeta):\n @abstractmethod\n def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...\n @abstractmethod\n def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...\n def modify(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...\n @abstractmethod\n def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...\n def close(self) -> None: ...\n def get_key(self, fileobj: FileDescriptorLike) -> SelectorKey: ...\n @abstractmethod\n def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...\n def __enter__(self) -> BaseSelector: ...\n def __exit__(self, *args: Any) -> None: ...\n\nclass SelectSelector(BaseSelector):\n def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...\n def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...\n def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...\n def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...\n\nif sys.platform != "win32":\n class PollSelector(BaseSelector):\n def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...\n def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...\n def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...\n def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...\n class EpollSelector(BaseSelector):\n def fileno(self) -> int: ...\n def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...\n def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...\n def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...\n def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...\n\nclass DevpollSelector(BaseSelector):\n def fileno(self) -> int: ...\n def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...\n def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...\n def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...\n def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...\n\nclass KqueueSelector(BaseSelector):\n def fileno(self) -> int: ...\n def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...\n def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...\n def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...\n def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...\n\nclass DefaultSelector(BaseSelector):\n def register(self, fileobj: FileDescriptorLike, events: _EventMask, data: Any = ...) -> SelectorKey: ...\n def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...\n def select(self, timeout: Optional[float] = ...) -> List[Tuple[SelectorKey, _EventMask]]: ...\n def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\selectors.pyi | selectors.pyi | Other | 3,644 | 0.85 | 0.652174 | 0 | python-kit | 531 | 2024-12-03T21:41:54.827837 | GPL-3.0 | false | f256858a29efe6251a8b1f9e6a0fff6b |
import collections\nfrom typing import Any, Dict, Iterator, Optional, Tuple\n\nclass Shelf(collections.MutableMapping[Any, Any]):\n def __init__(\n self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...\n ) -> None: ...\n def __iter__(self) -> Iterator[str]: ...\n def __len__(self) -> int: ...\n def __contains__(self, key: Any) -> bool: ... # key should be str, but it would conflict with superclass's type signature\n def get(self, key: str, default: Any = ...) -> Any: ...\n def __getitem__(self, key: str) -> Any: ...\n def __setitem__(self, key: str, value: Any) -> None: ...\n def __delitem__(self, key: str) -> None: ...\n def __enter__(self) -> Shelf: ...\n def __exit__(self, type: Any, value: Any, traceback: Any) -> None: ...\n def close(self) -> None: ...\n def __del__(self) -> None: ...\n def sync(self) -> None: ...\n\nclass BsdDbShelf(Shelf):\n def __init__(\n self, dict: Dict[bytes, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...\n ) -> None: ...\n def set_location(self, key: Any) -> Tuple[str, Any]: ...\n def next(self) -> Tuple[str, Any]: ...\n def previous(self) -> Tuple[str, Any]: ...\n def first(self) -> Tuple[str, Any]: ...\n def last(self) -> Tuple[str, Any]: ...\n\nclass DbfilenameShelf(Shelf):\n def __init__(self, filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> None: ...\n\ndef open(filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> DbfilenameShelf: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\shelve.pyi | shelve.pyi | Other | 1,605 | 0.95 | 0.705882 | 0 | node-utils | 200 | 2023-09-02T02:02:44.963487 | Apache-2.0 | false | dd4cfbb40ed21b0e800a3a072e686f8b |
import sys\nfrom typing import Any, Iterable, List, Optional, TextIO, Tuple, TypeVar, Union\n\ndef split(s: str, comments: bool = ..., posix: bool = ...) -> List[str]: ...\n\nif sys.version_info >= (3, 8):\n def join(split_command: Iterable[str]) -> str: ...\n\ndef quote(s: str) -> str: ...\n\n_SLT = TypeVar("_SLT", bound=shlex)\n\nclass shlex(Iterable[str]):\n commenters: str\n wordchars: str\n whitespace: str\n escape: str\n quotes: str\n escapedquotes: str\n whitespace_split: bool\n infile: str\n instream: TextIO\n source: str\n debug: int\n lineno: int\n token: str\n eof: str\n punctuation_chars: str\n def __init__(\n self,\n instream: Union[str, TextIO] = ...,\n infile: Optional[str] = ...,\n posix: bool = ...,\n punctuation_chars: Union[bool, str] = ...,\n ) -> None: ...\n def get_token(self) -> str: ...\n def push_token(self, tok: str) -> None: ...\n def read_token(self) -> str: ...\n def sourcehook(self, filename: str) -> Tuple[str, TextIO]: ...\n # TODO argument types\n def push_source(self, newstream: Any, newfile: Any = ...) -> None: ...\n def pop_source(self) -> None: ...\n def error_leader(self, infile: str = ..., lineno: int = ...) -> None: ...\n def __iter__(self: _SLT) -> _SLT: ...\n def __next__(self) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\shlex.pyi | shlex.pyi | Other | 1,325 | 0.95 | 0.333333 | 0.025 | vue-tools | 748 | 2024-07-22T13:42:52.044251 | BSD-3-Clause | false | 17c1692d89ea5ce7fcdc063ecdd1d93c |
import sys\nfrom enum import IntEnum\nfrom types import FrameType\nfrom typing import Any, Callable, Iterable, Optional, Set, Tuple, Union\n\nif sys.platform != "win32":\n class ItimerError(IOError): ...\n ITIMER_PROF: int\n ITIMER_REAL: int\n ITIMER_VIRTUAL: int\n\nNSIG: int\n\nclass Signals(IntEnum):\n SIGABRT: int\n if sys.platform != "win32":\n SIGALRM: int\n if sys.platform == "win32":\n SIGBREAK: int\n if sys.platform != "win32":\n SIGBUS: int\n SIGCHLD: int\n if sys.platform != "darwin" and sys.platform != "win32":\n SIGCLD: int\n if sys.platform != "win32":\n SIGCONT: int\n SIGEMT: int\n SIGFPE: int\n if sys.platform != "win32":\n SIGHUP: int\n SIGILL: int\n SIGINFO: int\n SIGINT: int\n if sys.platform != "win32":\n SIGIO: int\n SIGIOT: int\n SIGKILL: int\n SIGPIPE: int\n if sys.platform != "darwin" and sys.platform != "win32":\n SIGPOLL: int\n SIGPWR: int\n if sys.platform != "win32":\n SIGPROF: int\n SIGQUIT: int\n if sys.platform != "darwin" and sys.platform != "win32":\n SIGRTMAX: int\n SIGRTMIN: int\n SIGSEGV: int\n if sys.platform != "win32":\n SIGSTOP: int\n SIGSYS: int\n SIGTERM: int\n if sys.platform != "win32":\n SIGTRAP: int\n SIGTSTP: int\n SIGTTIN: int\n SIGTTOU: int\n SIGURG: int\n SIGUSR1: int\n SIGUSR2: int\n SIGVTALRM: int\n SIGWINCH: int\n SIGXCPU: int\n SIGXFSZ: int\n\nclass Handlers(IntEnum):\n SIG_DFL: int\n SIG_IGN: int\n\nSIG_DFL = Handlers.SIG_DFL\nSIG_IGN = Handlers.SIG_IGN\n\nif sys.platform != "win32":\n class Sigmasks(IntEnum):\n SIG_BLOCK: int\n SIG_UNBLOCK: int\n SIG_SETMASK: int\n SIG_BLOCK = Sigmasks.SIG_BLOCK\n SIG_UNBLOCK = Sigmasks.SIG_UNBLOCK\n SIG_SETMASK = Sigmasks.SIG_SETMASK\n\n_SIGNUM = Union[int, Signals]\n_HANDLER = Union[Callable[[Signals, FrameType], Any], int, Handlers, None]\n\nSIGABRT: Signals\nif sys.platform != "win32":\n SIGALRM: Signals\nif sys.platform == "win32":\n SIGBREAK: Signals\nif sys.platform != "win32":\n SIGBUS: Signals\n SIGCHLD: Signals\nif sys.platform != "darwin" and sys.platform != "win32":\n SIGCLD: Signals\nif sys.platform != "win32":\n SIGCONT: Signals\nSIGEMT: Signals\nSIGFPE: Signals\nif sys.platform != "win32":\n SIGHUP: Signals\nSIGILL: Signals\nSIGINFO: Signals\nSIGINT: Signals\nif sys.platform != "win32":\n SIGIO: Signals\n SIGIOT: Signals\n SIGKILL: Signals\n SIGPIPE: Signals\nif sys.platform != "darwin" and sys.platform != "win32":\n SIGPOLL: Signals\n SIGPWR: Signals\nif sys.platform != "win32":\n SIGPROF: Signals\n SIGQUIT: Signals\nif sys.platform != "darwin" and sys.platform != "win32":\n SIGRTMAX: Signals\n SIGRTMIN: Signals\nSIGSEGV: Signals\nif sys.platform != "win32":\n SIGSTOP: Signals\n SIGSYS: Signals\nSIGTERM: Signals\nif sys.platform != "win32":\n SIGTRAP: Signals\n SIGTSTP: Signals\n SIGTTIN: Signals\n SIGTTOU: Signals\n SIGURG: Signals\n SIGUSR1: Signals\n SIGUSR2: Signals\n SIGVTALRM: Signals\n SIGWINCH: Signals\n SIGXCPU: Signals\n SIGXFSZ: Signals\n\nif sys.platform == "win32":\n CTRL_C_EVENT: int\n CTRL_BREAK_EVENT: int\n\nif sys.platform != "win32":\n class struct_siginfo(Tuple[int, int, int, int, int, int, int]):\n def __init__(self, sequence: Iterable[int]) -> None: ...\n @property\n def si_signo(self) -> int: ...\n @property\n def si_code(self) -> int: ...\n @property\n def si_errno(self) -> int: ...\n @property\n def si_pid(self) -> int: ...\n @property\n def si_uid(self) -> int: ...\n @property\n def si_status(self) -> int: ...\n @property\n def si_band(self) -> int: ...\n\nif sys.platform != "win32":\n def alarm(__seconds: int) -> int: ...\n\ndef default_int_handler(signum: int, frame: FrameType) -> None: ...\n\nif sys.platform != "win32":\n def getitimer(__which: int) -> Tuple[float, float]: ...\n\ndef getsignal(__signalnum: _SIGNUM) -> _HANDLER: ...\n\nif sys.version_info >= (3, 8):\n def strsignal(__signalnum: _SIGNUM) -> Optional[str]: ...\n def valid_signals() -> Set[Signals]: ...\n def raise_signal(__signalnum: _SIGNUM) -> None: ...\n\nif sys.platform != "win32":\n def pause() -> None: ...\n def pthread_kill(__thread_id: int, __signalnum: int) -> None: ...\n def pthread_sigmask(__how: int, __mask: Iterable[int]) -> Set[_SIGNUM]: ...\n\nif sys.version_info >= (3, 7):\n def set_wakeup_fd(fd: int, *, warn_on_full_buffer: bool = ...) -> int: ...\n\nelse:\n def set_wakeup_fd(fd: int) -> int: ...\n\nif sys.platform != "win32":\n def setitimer(__which: int, __seconds: float, __interval: float = ...) -> Tuple[float, float]: ...\n def siginterrupt(__signalnum: int, __flag: bool) -> None: ...\n\ndef signal(__signalnum: _SIGNUM, __handler: _HANDLER) -> _HANDLER: ...\n\nif sys.platform != "win32":\n def sigpending() -> Any: ...\n def sigtimedwait(sigset: Iterable[int], timeout: float) -> Optional[struct_siginfo]: ...\n def sigwait(__sigset: Iterable[int]) -> _SIGNUM: ...\n def sigwaitinfo(sigset: Iterable[int]) -> struct_siginfo: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\signal.pyi | signal.pyi | Other | 5,209 | 0.85 | 0.345361 | 0 | node-utils | 125 | 2025-03-08T07:46:52.235822 | Apache-2.0 | false | 6db14f7ebc1f6d3f7b8ddd47ddcf5680 |
from email.message import Message as _Message\nfrom socket import socket\nfrom ssl import SSLContext\nfrom types import TracebackType\nfrom typing import Any, Dict, List, Optional, Pattern, Protocol, Sequence, Tuple, Type, Union, overload\n\n_Reply = Tuple[int, bytes]\n_SendErrs = Dict[str, _Reply]\n# Should match source_address for socket.create_connection\n_SourceAddress = Tuple[Union[bytearray, bytes, str], int]\n\nSMTP_PORT: int\nSMTP_SSL_PORT: int\nCRLF: str\nbCRLF: bytes\n\nOLDSTYLE_AUTH: Pattern[str]\n\nclass SMTPException(OSError): ...\nclass SMTPNotSupportedError(SMTPException): ...\nclass SMTPServerDisconnected(SMTPException): ...\n\nclass SMTPResponseException(SMTPException):\n smtp_code: int\n smtp_error: Union[bytes, str]\n args: Union[Tuple[int, Union[bytes, str]], Tuple[int, bytes, str]]\n def __init__(self, code: int, msg: Union[bytes, str]) -> None: ...\n\nclass SMTPSenderRefused(SMTPResponseException):\n smtp_code: int\n smtp_error: bytes\n sender: str\n args: Tuple[int, bytes, str]\n def __init__(self, code: int, msg: bytes, sender: str) -> None: ...\n\nclass SMTPRecipientsRefused(SMTPException):\n recipients: _SendErrs\n args: Tuple[_SendErrs]\n def __init__(self, recipients: _SendErrs) -> None: ...\n\nclass SMTPDataError(SMTPResponseException): ...\nclass SMTPConnectError(SMTPResponseException): ...\nclass SMTPHeloError(SMTPResponseException): ...\nclass SMTPAuthenticationError(SMTPResponseException): ...\n\ndef quoteaddr(addrstring: str) -> str: ...\ndef quotedata(data: str) -> str: ...\n\nclass _AuthObject(Protocol):\n @overload\n def __call__(self, challenge: None = ...) -> Optional[str]: ...\n @overload\n def __call__(self, challenge: bytes) -> str: ...\n\nclass SMTP:\n debuglevel: int = ...\n sock: Optional[socket] = ...\n # Type of file should match what socket.makefile() returns\n file: Optional[Any] = ...\n helo_resp: Optional[bytes] = ...\n ehlo_msg: str = ...\n ehlo_resp: Optional[bytes] = ...\n does_esmtp: bool = ...\n default_port: int = ...\n timeout: float\n esmtp_features: Dict[str, str]\n command_encoding: str\n source_address: Optional[_SourceAddress]\n local_hostname: str\n def __init__(\n self,\n host: str = ...,\n port: int = ...,\n local_hostname: Optional[str] = ...,\n timeout: float = ...,\n source_address: Optional[_SourceAddress] = ...,\n ) -> None: ...\n def __enter__(self) -> SMTP: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], tb: Optional[TracebackType]\n ) -> None: ...\n def set_debuglevel(self, debuglevel: int) -> None: ...\n def connect(self, host: str = ..., port: int = ..., source_address: Optional[_SourceAddress] = ...) -> _Reply: ...\n def send(self, s: Union[bytes, str]) -> None: ...\n def putcmd(self, cmd: str, args: str = ...) -> None: ...\n def getreply(self) -> _Reply: ...\n def docmd(self, cmd: str, args: str = ...) -> _Reply: ...\n def helo(self, name: str = ...) -> _Reply: ...\n def ehlo(self, name: str = ...) -> _Reply: ...\n def has_extn(self, opt: str) -> bool: ...\n def help(self, args: str = ...) -> bytes: ...\n def rset(self) -> _Reply: ...\n def noop(self) -> _Reply: ...\n def mail(self, sender: str, options: Sequence[str] = ...) -> _Reply: ...\n def rcpt(self, recip: str, options: Sequence[str] = ...) -> _Reply: ...\n def data(self, msg: Union[bytes, str]) -> _Reply: ...\n def verify(self, address: str) -> _Reply: ...\n vrfy = verify\n def expn(self, address: str) -> _Reply: ...\n def ehlo_or_helo_if_needed(self) -> None: ...\n user: str\n password: str\n def auth(self, mechanism: str, authobject: _AuthObject, *, initial_response_ok: bool = ...) -> _Reply: ...\n @overload\n def auth_cram_md5(self, challenge: None = ...) -> None: ...\n @overload\n def auth_cram_md5(self, challenge: bytes) -> str: ...\n def auth_plain(self, challenge: Optional[bytes] = ...) -> str: ...\n def auth_login(self, challenge: Optional[bytes] = ...) -> str: ...\n def login(self, user: str, password: str, *, initial_response_ok: bool = ...) -> _Reply: ...\n def starttls(\n self, keyfile: Optional[str] = ..., certfile: Optional[str] = ..., context: Optional[SSLContext] = ...\n ) -> _Reply: ...\n def sendmail(\n self,\n from_addr: str,\n to_addrs: Union[str, Sequence[str]],\n msg: Union[bytes, str],\n mail_options: Sequence[str] = ...,\n rcpt_options: List[str] = ...,\n ) -> _SendErrs: ...\n def send_message(\n self,\n msg: _Message,\n from_addr: Optional[str] = ...,\n to_addrs: Optional[Union[str, Sequence[str]]] = ...,\n mail_options: List[str] = ...,\n rcpt_options: Sequence[str] = ...,\n ) -> _SendErrs: ...\n def close(self) -> None: ...\n def quit(self) -> _Reply: ...\n\nclass SMTP_SSL(SMTP):\n default_port: int = ...\n keyfile: Optional[str]\n certfile: Optional[str]\n context: SSLContext\n def __init__(\n self,\n host: str = ...,\n port: int = ...,\n local_hostname: Optional[str] = ...,\n keyfile: Optional[str] = ...,\n certfile: Optional[str] = ...,\n timeout: float = ...,\n source_address: Optional[_SourceAddress] = ...,\n context: Optional[SSLContext] = ...,\n ) -> None: ...\n\nLMTP_PORT: int\n\nclass LMTP(SMTP):\n def __init__(\n self,\n host: str = ...,\n port: int = ...,\n local_hostname: Optional[str] = ...,\n source_address: Optional[_SourceAddress] = ...,\n ) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\smtplib.pyi | smtplib.pyi | Other | 5,606 | 0.95 | 0.352201 | 0.013793 | react-lib | 885 | 2023-12-04T09:21:48.574230 | MIT | false | 7e117004c509695810f65977744bef99 |
import sys\nimport types\nfrom socket import SocketType\nfrom typing import Any, BinaryIO, Callable, ClassVar, List, Optional, Tuple, Type, Union\n\nclass BaseServer:\n address_family: int\n RequestHandlerClass: Callable[..., BaseRequestHandler]\n server_address: Tuple[str, int]\n socket: SocketType\n allow_reuse_address: bool\n request_queue_size: int\n socket_type: int\n timeout: Optional[float]\n def __init__(self, server_address: Any, RequestHandlerClass: Callable[..., BaseRequestHandler]) -> None: ...\n def fileno(self) -> int: ...\n def handle_request(self) -> None: ...\n def serve_forever(self, poll_interval: float = ...) -> None: ...\n def shutdown(self) -> None: ...\n def server_close(self) -> None: ...\n def finish_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...\n def get_request(self) -> Tuple[SocketType, Tuple[str, int]]: ...\n def handle_error(self, request: bytes, client_address: Tuple[str, int]) -> None: ...\n def handle_timeout(self) -> None: ...\n def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...\n def server_activate(self) -> None: ...\n def server_bind(self) -> None: ...\n def verify_request(self, request: bytes, client_address: Tuple[str, int]) -> bool: ...\n if sys.version_info >= (3, 6):\n def __enter__(self) -> BaseServer: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[types.TracebackType]\n ) -> None: ...\n def service_actions(self) -> None: ...\n\nclass TCPServer(BaseServer):\n def __init__(\n self,\n server_address: Tuple[str, int],\n RequestHandlerClass: Callable[..., BaseRequestHandler],\n bind_and_activate: bool = ...,\n ) -> None: ...\n\nclass UDPServer(BaseServer):\n def __init__(\n self,\n server_address: Tuple[str, int],\n RequestHandlerClass: Callable[..., BaseRequestHandler],\n bind_and_activate: bool = ...,\n ) -> None: ...\n\nif sys.platform != "win32":\n class UnixStreamServer(BaseServer):\n def __init__(\n self,\n server_address: Union[str, bytes],\n RequestHandlerClass: Callable[..., BaseRequestHandler],\n bind_and_activate: bool = ...,\n ) -> None: ...\n class UnixDatagramServer(BaseServer):\n def __init__(\n self,\n server_address: Union[str, bytes],\n RequestHandlerClass: Callable[..., BaseRequestHandler],\n bind_and_activate: bool = ...,\n ) -> None: ...\n\nif sys.platform != "win32":\n class ForkingMixIn:\n timeout: Optional[float] # undocumented\n active_children: Optional[List[int]] # undocumented\n max_children: int # undocumented\n if sys.version_info >= (3, 7):\n block_on_close: bool\n if sys.version_info >= (3, 6):\n def collect_children(self, *, blocking: bool = ...) -> None: ... # undocumented\n else:\n def collect_children(self) -> None: ... # undocumented\n def handle_timeout(self) -> None: ... # undocumented\n def service_actions(self) -> None: ... # undocumented\n def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...\n if sys.version_info >= (3, 6):\n def server_close(self) -> None: ...\n\nclass ThreadingMixIn:\n daemon_threads: bool\n if sys.version_info >= (3, 7):\n block_on_close: bool\n def process_request_thread(self, request: bytes, client_address: Tuple[str, int]) -> None: ... # undocumented\n def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...\n if sys.version_info >= (3, 6):\n def server_close(self) -> None: ...\n\nif sys.platform != "win32":\n class ForkingTCPServer(ForkingMixIn, TCPServer): ...\n class ForkingUDPServer(ForkingMixIn, UDPServer): ...\n\nclass ThreadingTCPServer(ThreadingMixIn, TCPServer): ...\nclass ThreadingUDPServer(ThreadingMixIn, UDPServer): ...\n\nif sys.platform != "win32":\n class ThreadingUnixStreamServer(ThreadingMixIn, UnixStreamServer): ...\n class ThreadingUnixDatagramServer(ThreadingMixIn, UnixDatagramServer): ...\n\nclass BaseRequestHandler:\n # Those are technically of types, respectively:\n # * Union[SocketType, Tuple[bytes, SocketType]]\n # * Union[Tuple[str, int], str]\n # But there are some concerns that having unions here would cause\n # too much inconvenience to people using it (see\n # https://github.com/python/typeshed/pull/384#issuecomment-234649696)\n request: Any\n client_address: Any\n server: BaseServer\n def __init__(self, request: Any, client_address: Any, server: BaseServer) -> None: ...\n def setup(self) -> None: ...\n def handle(self) -> None: ...\n def finish(self) -> None: ...\n\nclass StreamRequestHandler(BaseRequestHandler):\n rbufsize: ClassVar[int] # Undocumented\n wbufsize: ClassVar[int] # Undocumented\n timeout: ClassVar[Optional[float]] # Undocumented\n disable_nagle_algorithm: ClassVar[bool] # Undocumented\n connection: SocketType # Undocumented\n rfile: BinaryIO\n wfile: BinaryIO\n\nclass DatagramRequestHandler(BaseRequestHandler):\n packet: SocketType # Undocumented\n socket: SocketType # Undocumented\n rfile: BinaryIO\n wfile: BinaryIO\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\socketserver.pyi | socketserver.pyi | Other | 5,367 | 0.95 | 0.451128 | 0.049587 | react-lib | 582 | 2023-10-14T18:34:47.369440 | Apache-2.0 | false | 807a49ff326488254ee439eb902e055b |
from typing import List, NamedTuple\n\nclass struct_spwd(NamedTuple):\n sp_namp: str\n sp_pwdp: str\n sp_lstchg: int\n sp_min: int\n sp_max: int\n sp_warn: int\n sp_inact: int\n sp_expire: int\n sp_flag: int\n\ndef getspall() -> List[struct_spwd]: ...\ndef getspnam(name: str) -> struct_spwd: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\spwd.pyi | spwd.pyi | Other | 310 | 0.85 | 0.2 | 0 | python-kit | 122 | 2025-06-23T13:30:59.964257 | Apache-2.0 | false | d8cf23bd4d72e1021e76d1b05bd52c37 |
from typing import Any, Dict, List, Optional, Union\n\nMAGIC: int\n\nclass error(Exception):\n msg: str\n pattern: Optional[Union[str, bytes]]\n pos: Optional[int]\n lineno: int\n colno: int\n def __init__(self, msg: str, pattern: Union[str, bytes] = ..., pos: int = ...) -> None: ...\n\nclass _NamedIntConstant(int):\n name: Any\n def __new__(cls, value: int, name: str) -> _NamedIntConstant: ...\n\nMAXREPEAT: _NamedIntConstant\nOPCODES: List[_NamedIntConstant]\nATCODES: List[_NamedIntConstant]\nCHCODES: List[_NamedIntConstant]\nOP_IGNORE: Dict[_NamedIntConstant, _NamedIntConstant]\nAT_MULTILINE: Dict[_NamedIntConstant, _NamedIntConstant]\nAT_LOCALE: Dict[_NamedIntConstant, _NamedIntConstant]\nAT_UNICODE: Dict[_NamedIntConstant, _NamedIntConstant]\nCH_LOCALE: Dict[_NamedIntConstant, _NamedIntConstant]\nCH_UNICODE: Dict[_NamedIntConstant, _NamedIntConstant]\nSRE_FLAG_TEMPLATE: int\nSRE_FLAG_IGNORECASE: int\nSRE_FLAG_LOCALE: int\nSRE_FLAG_MULTILINE: int\nSRE_FLAG_DOTALL: int\nSRE_FLAG_UNICODE: int\nSRE_FLAG_VERBOSE: int\nSRE_FLAG_DEBUG: int\nSRE_FLAG_ASCII: int\nSRE_INFO_PREFIX: int\nSRE_INFO_LITERAL: int\nSRE_INFO_CHARSET: int\n\n# Stubgen above; manually defined constants below (dynamic at runtime)\n\n# from OPCODES\nFAILURE: _NamedIntConstant\nSUCCESS: _NamedIntConstant\nANY: _NamedIntConstant\nANY_ALL: _NamedIntConstant\nASSERT: _NamedIntConstant\nASSERT_NOT: _NamedIntConstant\nAT: _NamedIntConstant\nBRANCH: _NamedIntConstant\nCALL: _NamedIntConstant\nCATEGORY: _NamedIntConstant\nCHARSET: _NamedIntConstant\nBIGCHARSET: _NamedIntConstant\nGROUPREF: _NamedIntConstant\nGROUPREF_EXISTS: _NamedIntConstant\nGROUPREF_IGNORE: _NamedIntConstant\nIN: _NamedIntConstant\nIN_IGNORE: _NamedIntConstant\nINFO: _NamedIntConstant\nJUMP: _NamedIntConstant\nLITERAL: _NamedIntConstant\nLITERAL_IGNORE: _NamedIntConstant\nMARK: _NamedIntConstant\nMAX_UNTIL: _NamedIntConstant\nMIN_UNTIL: _NamedIntConstant\nNOT_LITERAL: _NamedIntConstant\nNOT_LITERAL_IGNORE: _NamedIntConstant\nNEGATE: _NamedIntConstant\nRANGE: _NamedIntConstant\nREPEAT: _NamedIntConstant\nREPEAT_ONE: _NamedIntConstant\nSUBPATTERN: _NamedIntConstant\nMIN_REPEAT_ONE: _NamedIntConstant\nRANGE_IGNORE: _NamedIntConstant\nMIN_REPEAT: _NamedIntConstant\nMAX_REPEAT: _NamedIntConstant\n\n# from ATCODES\nAT_BEGINNING: _NamedIntConstant\nAT_BEGINNING_LINE: _NamedIntConstant\nAT_BEGINNING_STRING: _NamedIntConstant\nAT_BOUNDARY: _NamedIntConstant\nAT_NON_BOUNDARY: _NamedIntConstant\nAT_END: _NamedIntConstant\nAT_END_LINE: _NamedIntConstant\nAT_END_STRING: _NamedIntConstant\nAT_LOC_BOUNDARY: _NamedIntConstant\nAT_LOC_NON_BOUNDARY: _NamedIntConstant\nAT_UNI_BOUNDARY: _NamedIntConstant\nAT_UNI_NON_BOUNDARY: _NamedIntConstant\n\n# from CHCODES\nCATEGORY_DIGIT: _NamedIntConstant\nCATEGORY_NOT_DIGIT: _NamedIntConstant\nCATEGORY_SPACE: _NamedIntConstant\nCATEGORY_NOT_SPACE: _NamedIntConstant\nCATEGORY_WORD: _NamedIntConstant\nCATEGORY_NOT_WORD: _NamedIntConstant\nCATEGORY_LINEBREAK: _NamedIntConstant\nCATEGORY_NOT_LINEBREAK: _NamedIntConstant\nCATEGORY_LOC_WORD: _NamedIntConstant\nCATEGORY_LOC_NOT_WORD: _NamedIntConstant\nCATEGORY_UNI_DIGIT: _NamedIntConstant\nCATEGORY_UNI_NOT_DIGIT: _NamedIntConstant\nCATEGORY_UNI_SPACE: _NamedIntConstant\nCATEGORY_UNI_NOT_SPACE: _NamedIntConstant\nCATEGORY_UNI_WORD: _NamedIntConstant\nCATEGORY_UNI_NOT_WORD: _NamedIntConstant\nCATEGORY_UNI_LINEBREAK: _NamedIntConstant\nCATEGORY_UNI_NOT_LINEBREAK: _NamedIntConstant\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\sre_constants.pyi | sre_constants.pyi | Other | 3,348 | 0.95 | 0.036036 | 0.038835 | python-kit | 780 | 2025-07-02T07:13:48.477753 | MIT | false | 2d7b775775f233de1375724802a3080e |
import sys\nfrom sre_constants import _NamedIntConstant as _NIC, error as _Error\nfrom typing import Any, Dict, FrozenSet, Iterable, List, Match, Optional, Pattern as _Pattern, Tuple, Union, overload\n\nSPECIAL_CHARS: str\nREPEAT_CHARS: str\nDIGITS: FrozenSet[str]\nOCTDIGITS: FrozenSet[str]\nHEXDIGITS: FrozenSet[str]\nASCIILETTERS: FrozenSet[str]\nWHITESPACE: FrozenSet[str]\nESCAPES: Dict[str, Tuple[_NIC, int]]\nCATEGORIES: Dict[str, Union[Tuple[_NIC, _NIC], Tuple[_NIC, List[Tuple[_NIC, _NIC]]]]]\nFLAGS: Dict[str, int]\nGLOBAL_FLAGS: int\n\nclass Verbose(Exception): ...\n\nclass _State:\n flags: int\n groupdict: Dict[str, int]\n groupwidths: List[Optional[int]]\n lookbehindgroups: Optional[int]\n def __init__(self) -> None: ...\n @property\n def groups(self) -> int: ...\n def opengroup(self, name: str = ...) -> int: ...\n def closegroup(self, gid: int, p: SubPattern) -> None: ...\n def checkgroup(self, gid: int) -> bool: ...\n def checklookbehindgroup(self, gid: int, source: Tokenizer) -> None: ...\n\nif sys.version_info >= (3, 8):\n State = _State\nelse:\n Pattern = _State\n\n_OpSubpatternType = Tuple[Optional[int], int, int, SubPattern]\n_OpGroupRefExistsType = Tuple[int, SubPattern, SubPattern]\n_OpInType = List[Tuple[_NIC, int]]\n_OpBranchType = Tuple[None, List[SubPattern]]\n_AvType = Union[_OpInType, _OpBranchType, Iterable[SubPattern], _OpGroupRefExistsType, _OpSubpatternType]\n_CodeType = Tuple[_NIC, _AvType]\n\nclass SubPattern:\n data: List[_CodeType]\n width: Optional[int]\n\n if sys.version_info >= (3, 8):\n state: State\n def __init__(self, state: State, data: Optional[List[_CodeType]] = ...) -> None: ...\n else:\n pattern: Pattern\n def __init__(self, pattern: Pattern, data: Optional[List[_CodeType]] = ...) -> None: ...\n def dump(self, level: int = ...) -> None: ...\n def __len__(self) -> int: ...\n def __delitem__(self, index: Union[int, slice]) -> None: ...\n def __getitem__(self, index: Union[int, slice]) -> Union[SubPattern, _CodeType]: ...\n def __setitem__(self, index: Union[int, slice], code: _CodeType) -> None: ...\n def insert(self, index: int, code: _CodeType) -> None: ...\n def append(self, code: _CodeType) -> None: ...\n def getwidth(self) -> int: ...\n\nclass Tokenizer:\n istext: bool\n string: Any\n decoded_string: str\n index: int\n next: Optional[str]\n def __init__(self, string: Any) -> None: ...\n def match(self, char: str) -> bool: ...\n def get(self) -> Optional[str]: ...\n def getwhile(self, n: int, charset: Iterable[str]) -> str: ...\n if sys.version_info >= (3, 8):\n def getuntil(self, terminator: str, name: str) -> str: ...\n else:\n def getuntil(self, terminator: str) -> str: ...\n @property\n def pos(self) -> int: ...\n def tell(self) -> int: ...\n def seek(self, index: int) -> None: ...\n def error(self, msg: str, offset: int = ...) -> _Error: ...\n\ndef fix_flags(src: Union[str, bytes], flags: int) -> int: ...\n\n_TemplateType = Tuple[List[Tuple[int, int]], List[Optional[str]]]\n_TemplateByteType = Tuple[List[Tuple[int, int]], List[Optional[bytes]]]\nif sys.version_info >= (3, 8):\n def parse(str: str, flags: int = ..., state: Optional[State] = ...) -> SubPattern: ...\n @overload\n def parse_template(source: str, state: _Pattern[Any]) -> _TemplateType: ...\n @overload\n def parse_template(source: bytes, state: _Pattern[Any]) -> _TemplateByteType: ...\n\nelse:\n def parse(str: str, flags: int = ..., pattern: Optional[Pattern] = ...) -> SubPattern: ...\n @overload\n def parse_template(source: str, pattern: _Pattern[Any]) -> _TemplateType: ...\n @overload\n def parse_template(source: bytes, pattern: _Pattern[Any]) -> _TemplateByteType: ...\n\ndef expand_template(template: _TemplateType, match: Match[Any]) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\sre_parse.pyi | sre_parse.pyi | Other | 3,820 | 0.85 | 0.415842 | 0 | awesome-app | 386 | 2024-05-17T17:28:17.048590 | MIT | false | c219cb9e50fbcaa995375c247846bf5a |
import sys\n\ndef S_ISDIR(mode: int) -> bool: ...\ndef S_ISCHR(mode: int) -> bool: ...\ndef S_ISBLK(mode: int) -> bool: ...\ndef S_ISREG(mode: int) -> bool: ...\ndef S_ISFIFO(mode: int) -> bool: ...\ndef S_ISLNK(mode: int) -> bool: ...\ndef S_ISSOCK(mode: int) -> bool: ...\ndef S_IMODE(mode: int) -> int: ...\ndef S_IFMT(mode: int) -> int: ...\ndef filemode(mode: int) -> str: ...\n\nST_MODE: int\nST_INO: int\nST_DEV: int\nST_NLINK: int\nST_UID: int\nST_GID: int\nST_SIZE: int\nST_ATIME: int\nST_MTIME: int\nST_CTIME: int\n\nS_IFSOCK: int\nS_IFLNK: int\nS_IFREG: int\nS_IFBLK: int\nS_IFDIR: int\nS_IFCHR: int\nS_IFIFO: int\nS_ISUID: int\nS_ISGID: int\nS_ISVTX: int\n\nS_IRWXU: int\nS_IRUSR: int\nS_IWUSR: int\nS_IXUSR: int\n\nS_IRWXG: int\nS_IRGRP: int\nS_IWGRP: int\nS_IXGRP: int\n\nS_IRWXO: int\nS_IROTH: int\nS_IWOTH: int\nS_IXOTH: int\n\nS_ENFMT: int\nS_IREAD: int\nS_IWRITE: int\nS_IEXEC: int\n\nUF_NODUMP: int\nUF_IMMUTABLE: int\nUF_APPEND: int\nUF_OPAQUE: int\nUF_NOUNLINK: int\nif sys.platform == "darwin":\n UF_COMPRESSED: int # OS X 10.6+ only\n UF_HIDDEN: int # OX X 10.5+ only\nSF_ARCHIVED: int\nSF_IMMUTABLE: int\nSF_APPEND: int\nSF_NOUNLINK: int\nSF_SNAPSHOT: int\n\nFILE_ATTRIBUTE_ARCHIVE: int\nFILE_ATTRIBUTE_COMPRESSED: int\nFILE_ATTRIBUTE_DEVICE: int\nFILE_ATTRIBUTE_DIRECTORY: int\nFILE_ATTRIBUTE_ENCRYPTED: int\nFILE_ATTRIBUTE_HIDDEN: int\nFILE_ATTRIBUTE_INTEGRITY_STREAM: int\nFILE_ATTRIBUTE_NORMAL: int\nFILE_ATTRIBUTE_NOT_CONTENT_INDEXED: int\nFILE_ATTRIBUTE_NO_SCRUB_DATA: int\nFILE_ATTRIBUTE_OFFLINE: int\nFILE_ATTRIBUTE_READONLY: int\nFILE_ATTRIBUTE_REPARSE_POINT: int\nFILE_ATTRIBUTE_SPARSE_FILE: int\nFILE_ATTRIBUTE_SYSTEM: int\nFILE_ATTRIBUTE_TEMPORARY: int\nFILE_ATTRIBUTE_VIRTUAL: int\n\nif sys.platform == "win32" and sys.version_info >= (3, 8):\n IO_REPARSE_TAG_SYMLINK: int\n IO_REPARSE_TAG_MOUNT_POINT: int\n IO_REPARSE_TAG_APPEXECLINK: int\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\stat.pyi | stat.pyi | Other | 1,805 | 0.95 | 0.131868 | 0 | vue-tools | 972 | 2024-10-10T02:51:44.247465 | MIT | false | 4a91add053df262c4ca2115ac96b33c2 |
import sys\nfrom _typeshed import SupportsLessThanT\nfrom decimal import Decimal\nfrom fractions import Fraction\nfrom typing import Any, Hashable, Iterable, List, Optional, SupportsFloat, Type, TypeVar, Union\n\n_T = TypeVar("_T")\n# Most functions in this module accept homogeneous collections of one of these types\n_Number = TypeVar("_Number", float, Decimal, Fraction)\n\n# Used in mode, multimode\n_HashableT = TypeVar("_HashableT", bound=Hashable)\n\nclass StatisticsError(ValueError): ...\n\nif sys.version_info >= (3, 8):\n def fmean(data: Iterable[SupportsFloat]) -> float: ...\n def geometric_mean(data: Iterable[SupportsFloat]) -> float: ...\n\ndef mean(data: Iterable[_Number]) -> _Number: ...\ndef harmonic_mean(data: Iterable[_Number]) -> _Number: ...\ndef median(data: Iterable[_Number]) -> _Number: ...\ndef median_low(data: Iterable[SupportsLessThanT]) -> SupportsLessThanT: ...\ndef median_high(data: Iterable[SupportsLessThanT]) -> SupportsLessThanT: ...\ndef median_grouped(data: Iterable[_Number], interval: _Number = ...) -> _Number: ...\ndef mode(data: Iterable[_HashableT]) -> _HashableT: ...\n\nif sys.version_info >= (3, 8):\n def multimode(data: Iterable[_HashableT]) -> List[_HashableT]: ...\n\ndef pstdev(data: Iterable[_Number], mu: Optional[_Number] = ...) -> _Number: ...\ndef pvariance(data: Iterable[_Number], mu: Optional[_Number] = ...) -> _Number: ...\n\nif sys.version_info >= (3, 8):\n def quantiles(data: Iterable[_Number], *, n: int = ..., method: str = ...) -> List[_Number]: ...\n\ndef stdev(data: Iterable[_Number], xbar: Optional[_Number] = ...) -> _Number: ...\ndef variance(data: Iterable[_Number], xbar: Optional[_Number] = ...) -> _Number: ...\n\nif sys.version_info >= (3, 8):\n class NormalDist:\n def __init__(self, mu: float = ..., sigma: float = ...) -> None: ...\n @property\n def mean(self) -> float: ...\n @property\n def median(self) -> float: ...\n @property\n def mode(self) -> float: ...\n @property\n def stdev(self) -> float: ...\n @property\n def variance(self) -> float: ...\n @classmethod\n def from_samples(cls: Type[_T], data: Iterable[SupportsFloat]) -> _T: ...\n def samples(self, n: int, *, seed: Optional[Any] = ...) -> List[float]: ...\n def pdf(self, x: float) -> float: ...\n def cdf(self, x: float) -> float: ...\n def inv_cdf(self, p: float) -> float: ...\n def overlap(self, other: NormalDist) -> float: ...\n def quantiles(self, n: int = ...) -> List[float]: ...\n if sys.version_info >= (3, 9):\n def zscore(self, x: float) -> float: ...\n def __add__(self, x2: Union[float, NormalDist]) -> NormalDist: ...\n def __sub__(self, x2: Union[float, NormalDist]) -> NormalDist: ...\n def __mul__(self, x2: float) -> NormalDist: ...\n def __truediv__(self, x2: float) -> NormalDist: ...\n def __pos__(self) -> NormalDist: ...\n def __neg__(self) -> NormalDist: ...\n __radd__ = __add__\n def __rsub__(self, x2: Union[float, NormalDist]) -> NormalDist: ...\n __rmul__ = __mul__\n def __hash__(self) -> int: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\statistics.pyi | statistics.pyi | Other | 3,149 | 0.95 | 0.611111 | 0.032258 | node-utils | 994 | 2025-02-20T05:09:32.132104 | GPL-3.0 | false | 6f33c5daa9d89815bb7d3ea08d1d4c7f |
from typing import Any, Iterable, Mapping, Optional, Sequence, Tuple, Union\n\nascii_letters: str\nascii_lowercase: str\nascii_uppercase: str\ndigits: str\nhexdigits: str\noctdigits: str\npunctuation: str\nprintable: str\nwhitespace: str\n\ndef capwords(s: str, sep: Optional[str] = ...) -> str: ...\n\nclass Template:\n template: str\n def __init__(self, template: str) -> None: ...\n def substitute(self, __mapping: Mapping[str, object] = ..., **kwds: object) -> str: ...\n def safe_substitute(self, __mapping: Mapping[str, object] = ..., **kwds: object) -> str: ...\n\n# TODO(MichalPokorny): This is probably badly and/or loosely typed.\nclass Formatter:\n def format(self, __format_string: str, *args: Any, **kwargs: Any) -> str: ...\n def vformat(self, format_string: str, args: Sequence[Any], kwargs: Mapping[str, Any]) -> str: ...\n def parse(self, format_string: str) -> Iterable[Tuple[str, Optional[str], Optional[str], Optional[str]]]: ...\n def get_field(self, field_name: str, args: Sequence[Any], kwargs: Mapping[str, Any]) -> Any: ...\n def get_value(self, key: Union[int, str], args: Sequence[Any], kwargs: Mapping[str, Any]) -> Any: ...\n def check_unused_args(self, used_args: Sequence[Union[int, str]], args: Sequence[Any], kwargs: Mapping[str, Any]) -> None: ...\n def format_field(self, value: Any, format_spec: str) -> Any: ...\n def convert_field(self, value: Any, conversion: str) -> Any: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\string.pyi | string.pyi | Other | 1,423 | 0.95 | 0.466667 | 0.038462 | react-lib | 621 | 2024-12-26T17:17:23.114685 | BSD-3-Clause | false | 4bcc13c93b6875bf3ccc90fe34987963 |
import sys\nfrom _typeshed import AnyPath\nfrom types import TracebackType\nfrom typing import IO, Any, AnyStr, Callable, Generic, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union, overload\nfrom typing_extensions import Literal\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n# We prefer to annotate inputs to methods (eg subprocess.check_call) with these\n# union types.\n# For outputs we use laborious literal based overloads to try to determine\n# which specific return types to use, and prefer to fall back to Any when\n# this does not work, so the caller does not have to use an assertion to confirm\n# which type.\n#\n# For example:\n#\n# try:\n# x = subprocess.check_output(["ls", "-l"])\n# reveal_type(x) # bytes, based on the overloads\n# except TimeoutError as e:\n# reveal_type(e.cmd) # Any, but morally is _CMD\n_FILE = Union[None, int, IO[Any]]\n_TXT = Union[bytes, str]\n# Python 3.6 does't support _CMD being a single PathLike.\n# See: https://bugs.python.org/issue31961\n_CMD = Union[_TXT, Sequence[AnyPath]]\n_ENV = Union[Mapping[bytes, _TXT], Mapping[str, _TXT]]\n\n_S = TypeVar("_S")\n_T = TypeVar("_T")\n\nclass CompletedProcess(Generic[_T]):\n # morally: _CMD\n args: Any\n returncode: int\n # These are really both Optional, but requiring checks would be tedious\n # and writing all the overloads would be horrific.\n stdout: _T\n stderr: _T\n def __init__(self, args: _CMD, returncode: int, stdout: Optional[_T] = ..., stderr: Optional[_T] = ...) -> None: ...\n def check_returncode(self) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nif sys.version_info >= (3, 7):\n # Nearly the same args as for 3.6, except for capture_output and text\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n capture_output: bool = ...,\n check: bool = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n input: Optional[str] = ...,\n text: Literal[True],\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[str]: ...\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n capture_output: bool = ...,\n check: bool = ...,\n encoding: str,\n errors: Optional[str] = ...,\n input: Optional[str] = ...,\n text: Optional[bool] = ...,\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[str]: ...\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n capture_output: bool = ...,\n check: bool = ...,\n encoding: Optional[str] = ...,\n errors: str,\n input: Optional[str] = ...,\n text: Optional[bool] = ...,\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[str]: ...\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n *,\n universal_newlines: Literal[True],\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n # where the *real* keyword only args start\n capture_output: bool = ...,\n check: bool = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n input: Optional[str] = ...,\n text: Optional[bool] = ...,\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[str]: ...\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: Literal[False] = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n capture_output: bool = ...,\n check: bool = ...,\n encoding: None = ...,\n errors: None = ...,\n input: Optional[bytes] = ...,\n text: Literal[None, False] = ...,\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[bytes]: ...\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n capture_output: bool = ...,\n check: bool = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n input: Optional[_TXT] = ...,\n text: Optional[bool] = ...,\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[Any]: ...\n\nelse:\n # Nearly same args as Popen.__init__ except for timeout, input, and check\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n check: bool = ...,\n encoding: str,\n errors: Optional[str] = ...,\n input: Optional[str] = ...,\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[str]: ...\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n check: bool = ...,\n encoding: Optional[str] = ...,\n errors: str,\n input: Optional[str] = ...,\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[str]: ...\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n *,\n universal_newlines: Literal[True],\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n # where the *real* keyword only args start\n check: bool = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n input: Optional[str] = ...,\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[str]: ...\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: Literal[False] = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n check: bool = ...,\n encoding: None = ...,\n errors: None = ...,\n input: Optional[bytes] = ...,\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[bytes]: ...\n @overload\n def run(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n check: bool = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n input: Optional[_TXT] = ...,\n timeout: Optional[float] = ...,\n ) -> CompletedProcess[Any]: ...\n\n# Same args as Popen.__init__\ndef call(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n timeout: Optional[float] = ...,\n) -> int: ...\n\n# Same args as Popen.__init__\ndef check_call(\n args: _CMD,\n bufsize: int = ...,\n executable: AnyPath = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n timeout: Optional[float] = ...,\n) -> int: ...\n\nif sys.version_info >= (3, 7):\n # 3.7 added text\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n text: Literal[True],\n ) -> str: ...\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: str,\n errors: Optional[str] = ...,\n text: Optional[bool] = ...,\n ) -> str: ...\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: Optional[str] = ...,\n errors: str,\n text: Optional[bool] = ...,\n ) -> str: ...\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n *,\n universal_newlines: Literal[True],\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n # where the real keyword only ones start\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n text: Optional[bool] = ...,\n ) -> str: ...\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: Literal[False] = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: None = ...,\n errors: None = ...,\n text: Literal[None, False] = ...,\n ) -> bytes: ...\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n text: Optional[bool] = ...,\n ) -> Any: ... # morally: -> _TXT\n\nelse:\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: str,\n errors: Optional[str] = ...,\n ) -> str: ...\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: Optional[str] = ...,\n errors: str,\n ) -> str: ...\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n universal_newlines: Literal[True],\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n ) -> str: ...\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: Literal[False] = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: None = ...,\n errors: None = ...,\n ) -> bytes: ...\n @overload\n def check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n timeout: Optional[float] = ...,\n input: _TXT = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n ) -> Any: ... # morally: -> _TXT\n\nPIPE: int\nSTDOUT: int\nDEVNULL: int\n\nclass SubprocessError(Exception): ...\n\nclass TimeoutExpired(SubprocessError):\n def __init__(self, cmd: _CMD, timeout: float, output: Optional[_TXT] = ..., stderr: Optional[_TXT] = ...) -> None: ...\n # morally: _CMD\n cmd: Any\n timeout: float\n # morally: Optional[_TXT]\n output: Any\n stdout: Any\n stderr: Any\n\nclass CalledProcessError(SubprocessError):\n returncode: int\n # morally: _CMD\n cmd: Any\n # morally: Optional[_TXT]\n output: Any\n\n # morally: Optional[_TXT]\n stdout: Any\n stderr: Any\n def __init__(self, returncode: int, cmd: _CMD, output: Optional[_TXT] = ..., stderr: Optional[_TXT] = ...) -> None: ...\n\nclass Popen(Generic[AnyStr]):\n args: _CMD\n stdin: Optional[IO[AnyStr]]\n stdout: Optional[IO[AnyStr]]\n stderr: Optional[IO[AnyStr]]\n pid: int\n returncode: int\n universal_newlines: bool\n\n # Technically it is wrong that Popen provides __new__ instead of __init__\n # but this shouldn't come up hopefully?\n\n if sys.version_info >= (3, 7):\n # text is added in 3.7\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n text: Optional[bool] = ...,\n encoding: str,\n errors: Optional[str] = ...,\n ) -> Popen[str]: ...\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n text: Optional[bool] = ...,\n encoding: Optional[str] = ...,\n errors: str,\n ) -> Popen[str]: ...\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n *,\n universal_newlines: Literal[True],\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n # where the *real* keyword only args start\n text: Optional[bool] = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n ) -> Popen[str]: ...\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n text: Literal[True],\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n ) -> Popen[str]: ...\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: Literal[False] = ...,\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n text: Literal[None, False] = ...,\n encoding: None = ...,\n errors: None = ...,\n ) -> Popen[bytes]: ...\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n text: Optional[bool] = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n ) -> Popen[Any]: ...\n else:\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n encoding: str,\n errors: Optional[str] = ...,\n ) -> Popen[str]: ...\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n encoding: Optional[str] = ...,\n errors: str,\n ) -> Popen[str]: ...\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n *,\n universal_newlines: Literal[True],\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n # where the *real* keyword only args start\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n ) -> Popen[str]: ...\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: Literal[False] = ...,\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n encoding: None = ...,\n errors: None = ...,\n ) -> Popen[bytes]: ...\n @overload\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[AnyPath] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[AnyPath] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n restore_signals: bool = ...,\n start_new_session: bool = ...,\n pass_fds: Any = ...,\n *,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n ) -> Popen[Any]: ...\n def poll(self) -> Optional[int]: ...\n if sys.version_info >= (3, 7):\n def wait(self, timeout: Optional[float] = ...) -> int: ...\n else:\n def wait(self, timeout: Optional[float] = ..., endtime: Optional[float] = ...) -> int: ...\n # Return str/bytes\n def communicate(\n self,\n input: Optional[AnyStr] = ...,\n timeout: Optional[float] = ...,\n # morally this should be optional\n ) -> Tuple[AnyStr, AnyStr]: ...\n def send_signal(self, sig: int) -> None: ...\n def terminate(self) -> None: ...\n def kill(self) -> None: ...\n def __enter__(self: _S) -> _S: ...\n def __exit__(\n self, type: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]\n ) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\n# The result really is always a str.\ndef getstatusoutput(cmd: _TXT) -> Tuple[int, str]: ...\ndef getoutput(cmd: _TXT) -> str: ...\ndef list2cmdline(seq: Sequence[str]) -> str: ... # undocumented\n\nif sys.platform == "win32":\n class STARTUPINFO:\n if sys.version_info >= (3, 7):\n def __init__(\n self,\n *,\n dwFlags: int = ...,\n hStdInput: Optional[Any] = ...,\n hStdOutput: Optional[Any] = ...,\n hStdError: Optional[Any] = ...,\n wShowWindow: int = ...,\n lpAttributeList: Optional[Mapping[str, Any]] = ...,\n ) -> None: ...\n dwFlags: int\n hStdInput: Optional[Any]\n hStdOutput: Optional[Any]\n hStdError: Optional[Any]\n wShowWindow: int\n if sys.version_info >= (3, 7):\n lpAttributeList: Mapping[str, Any]\n STD_INPUT_HANDLE: Any\n STD_OUTPUT_HANDLE: Any\n STD_ERROR_HANDLE: Any\n SW_HIDE: int\n STARTF_USESTDHANDLES: int\n STARTF_USESHOWWINDOW: int\n CREATE_NEW_CONSOLE: int\n CREATE_NEW_PROCESS_GROUP: int\n if sys.version_info >= (3, 7):\n ABOVE_NORMAL_PRIORITY_CLASS: int\n BELOW_NORMAL_PRIORITY_CLASS: int\n HIGH_PRIORITY_CLASS: int\n IDLE_PRIORITY_CLASS: int\n NORMAL_PRIORITY_CLASS: int\n REALTIME_PRIORITY_CLASS: int\n CREATE_NO_WINDOW: int\n DETACHED_PROCESS: int\n CREATE_DEFAULT_ERROR_MODE: int\n CREATE_BREAKAWAY_FROM_JOB: int\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\subprocess.pyi | subprocess.pyi | Other | 34,320 | 0.95 | 0.072106 | 0.072534 | awesome-app | 690 | 2025-04-18T19:47:21.641944 | Apache-2.0 | false | 2d190a66931c4a3843fb51df6bbc7b95 |
from typing import Dict\n\nsingle_input: int\nfile_input: int\neval_input: int\ndecorator: int\ndecorators: int\ndecorated: int\nasync_funcdef: int\nfuncdef: int\nparameters: int\ntypedargslist: int\ntfpdef: int\nvarargslist: int\nvfpdef: int\nstmt: int\nsimple_stmt: int\nsmall_stmt: int\nexpr_stmt: int\nannassign: int\ntestlist_star_expr: int\naugassign: int\ndel_stmt: int\npass_stmt: int\nflow_stmt: int\nbreak_stmt: int\ncontinue_stmt: int\nreturn_stmt: int\nyield_stmt: int\nraise_stmt: int\nimport_stmt: int\nimport_name: int\nimport_from: int\nimport_as_name: int\ndotted_as_name: int\nimport_as_names: int\ndotted_as_names: int\ndotted_name: int\nglobal_stmt: int\nnonlocal_stmt: int\nassert_stmt: int\ncompound_stmt: int\nasync_stmt: int\nif_stmt: int\nwhile_stmt: int\nfor_stmt: int\ntry_stmt: int\nwith_stmt: int\nwith_item: int\nexcept_clause: int\nsuite: int\ntest: int\ntest_nocond: int\nlambdef: int\nlambdef_nocond: int\nor_test: int\nand_test: int\nnot_test: int\ncomparison: int\ncomp_op: int\nstar_expr: int\nexpr: int\nxor_expr: int\nand_expr: int\nshift_expr: int\narith_expr: int\nterm: int\nfactor: int\npower: int\natom_expr: int\natom: int\ntestlist_comp: int\ntrailer: int\nsubscriptlist: int\nsubscript: int\nsliceop: int\nexprlist: int\ntestlist: int\ndictorsetmaker: int\nclassdef: int\narglist: int\nargument: int\ncomp_iter: int\ncomp_for: int\ncomp_if: int\nencoding_decl: int\nyield_expr: int\nyield_arg: int\n\nsym_name: Dict[int, str]\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\symbol.pyi | symbol.pyi | Other | 1,383 | 0.85 | 0 | 0 | react-lib | 437 | 2023-07-19T07:55:35.817456 | MIT | false | 5fd786b6215c8e381b8fecc66d11729b |
import sys\nfrom builtins import object as _object\nfrom importlib.abc import MetaPathFinder, PathEntryFinder\nfrom types import FrameType, ModuleType, TracebackType\nfrom typing import (\n Any,\n AsyncGenerator,\n Callable,\n Dict,\n List,\n NoReturn,\n Optional,\n Sequence,\n TextIO,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\n\n_T = TypeVar("_T")\n\n# The following type alias are stub-only and do not exist during runtime\n_ExcInfo = Tuple[Type[BaseException], BaseException, TracebackType]\n_OptExcInfo = Union[_ExcInfo, Tuple[None, None, None]]\n\n# ----- sys variables -----\nif sys.platform != "win32":\n abiflags: str\nargv: List[str]\nbase_exec_prefix: str\nbase_prefix: str\nbyteorder: str\nbuiltin_module_names: Sequence[str] # actually a tuple of strings\ncopyright: str\nif sys.platform == "win32":\n dllhandle: int\ndont_write_bytecode: bool\ndisplayhook: Callable[[object], Any]\nexcepthook: Callable[[Type[BaseException], BaseException, TracebackType], Any]\nexec_prefix: str\nexecutable: str\nfloat_repr_style: str\nhexversion: int\nlast_type: Optional[Type[BaseException]]\nlast_value: Optional[BaseException]\nlast_traceback: Optional[TracebackType]\nmaxsize: int\nmaxunicode: int\nmeta_path: List[MetaPathFinder]\nmodules: Dict[str, ModuleType]\npath: List[str]\npath_hooks: List[Any] # TODO precise type; function, path to finder\npath_importer_cache: Dict[str, Optional[PathEntryFinder]]\nplatform: str\nif sys.version_info >= (3, 9):\n platlibdir: str\nprefix: str\nif sys.version_info >= (3, 8):\n pycache_prefix: Optional[str]\nps1: str\nps2: str\nstdin: TextIO\nstdout: TextIO\nstderr: TextIO\n__stdin__: TextIO\n__stdout__: TextIO\n__stderr__: TextIO\ntracebacklimit: int\nversion: str\napi_version: int\nwarnoptions: Any\n# Each entry is a tuple of the form (action, message, category, module,\n# lineno)\nif sys.platform == "win32":\n winver: str\n_xoptions: Dict[Any, Any]\n\nflags: _flags\n\nclass _flags:\n debug: int\n division_warning: int\n inspect: int\n interactive: int\n optimize: int\n dont_write_bytecode: int\n no_user_site: int\n no_site: int\n ignore_environment: int\n verbose: int\n bytes_warning: int\n quiet: int\n hash_randomization: int\n if sys.version_info >= (3, 7):\n dev_mode: int\n utf8_mode: int\n\nfloat_info: _float_info\n\nclass _float_info:\n epsilon: float # DBL_EPSILON\n dig: int # DBL_DIG\n mant_dig: int # DBL_MANT_DIG\n max: float # DBL_MAX\n max_exp: int # DBL_MAX_EXP\n max_10_exp: int # DBL_MAX_10_EXP\n min: float # DBL_MIN\n min_exp: int # DBL_MIN_EXP\n min_10_exp: int # DBL_MIN_10_EXP\n radix: int # FLT_RADIX\n rounds: int # FLT_ROUNDS\n\nhash_info: _hash_info\n\nclass _hash_info:\n width: int\n modulus: int\n inf: int\n nan: int\n imag: int\n\nimplementation: _implementation\n\nclass _implementation:\n name: str\n version: _version_info\n hexversion: int\n cache_tag: str\n\nint_info: _int_info\n\nclass _int_info:\n bits_per_digit: int\n sizeof_digit: int\n\nclass _version_info(Tuple[int, int, int, str, int]):\n major: int\n minor: int\n micro: int\n releaselevel: str\n serial: int\n\nversion_info: _version_info\n\ndef call_tracing(__func: Callable[..., _T], __args: Any) -> _T: ...\ndef _clear_type_cache() -> None: ...\ndef _current_frames() -> Dict[int, Any]: ...\ndef _debugmallocstats() -> None: ...\ndef __displayhook__(value: object) -> None: ...\ndef __excepthook__(type_: Type[BaseException], value: BaseException, traceback: TracebackType) -> None: ...\ndef exc_info() -> _OptExcInfo: ...\n\n# sys.exit() accepts an optional argument of anything printable\ndef exit(__status: object = ...) -> NoReturn: ...\ndef getdefaultencoding() -> str: ...\n\nif sys.platform != "win32":\n def getdlopenflags() -> int: ...\n\ndef getfilesystemencoding() -> str: ...\ndef getfilesystemencodeerrors() -> str: ...\ndef getrefcount(__object: Any) -> int: ...\ndef getrecursionlimit() -> int: ...\n@overload\ndef getsizeof(obj: object) -> int: ...\n@overload\ndef getsizeof(obj: object, default: int) -> int: ...\ndef getswitchinterval() -> float: ...\ndef _getframe(__depth: int = ...) -> FrameType: ...\n\n_ProfileFunc = Callable[[FrameType, str, Any], Any]\n\ndef getprofile() -> Optional[_ProfileFunc]: ...\ndef setprofile(profilefunc: Optional[_ProfileFunc]) -> None: ...\n\n_TraceFunc = Callable[[FrameType, str, Any], Optional[Callable[[FrameType, str, Any], Any]]]\n\ndef gettrace() -> Optional[_TraceFunc]: ...\ndef settrace(tracefunc: Optional[_TraceFunc]) -> None: ...\n\nclass _WinVersion(Tuple[int, int, int, int, str, int, int, int, int, Tuple[int, int, int]]):\n major: int\n minor: int\n build: int\n platform: int\n service_pack: str\n service_pack_minor: int\n service_pack_major: int\n suite_mast: int\n product_type: int\n platform_version: Tuple[int, int, int]\n\nif sys.platform == "win32":\n def getwindowsversion() -> _WinVersion: ...\n\ndef intern(__string: str) -> str: ...\ndef is_finalizing() -> bool: ...\n\nif sys.version_info >= (3, 7):\n __breakpointhook__: Any # contains the original value of breakpointhook\n def breakpointhook(*args: Any, **kwargs: Any) -> Any: ...\n\nif sys.platform != "win32":\n def setdlopenflags(__flags: int) -> None: ...\n\ndef setrecursionlimit(__limit: int) -> None: ...\ndef setswitchinterval(__interval: float) -> None: ...\ndef gettotalrefcount() -> int: ... # Debug builds only\n\nif sys.version_info < (3, 9):\n def getcheckinterval() -> int: ... # deprecated\n def setcheckinterval(__n: int) -> None: ... # deprecated\n\nif sys.version_info >= (3, 8):\n # not exported by sys\n class UnraisableHookArgs:\n exc_type: Type[BaseException]\n exc_value: Optional[BaseException]\n exc_traceback: Optional[TracebackType]\n err_msg: Optional[str]\n object: Optional[_object]\n unraisablehook: Callable[[UnraisableHookArgs], Any]\n def addaudithook(hook: Callable[[str, Tuple[Any, ...]], Any]) -> None: ...\n def audit(__event: str, *args: Any) -> None: ...\n\n_AsyncgenHook = Optional[Callable[[AsyncGenerator[Any, Any]], None]]\n\nclass _asyncgen_hooks(Tuple[_AsyncgenHook, _AsyncgenHook]):\n firstiter: _AsyncgenHook\n finalizer: _AsyncgenHook\n\ndef get_asyncgen_hooks() -> _asyncgen_hooks: ...\ndef set_asyncgen_hooks(firstiter: _AsyncgenHook = ..., finalizer: _AsyncgenHook = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\sys.pyi | sys.pyi | Other | 6,337 | 0.95 | 0.246809 | 0.029851 | vue-tools | 436 | 2024-06-01T16:39:30.257283 | GPL-3.0 | false | b7bb9835d88ea8f0cb52b3c3df4de4ca |
import os\nimport sys\nfrom types import TracebackType\nfrom typing import IO, Any, AnyStr, Generic, Iterable, Iterator, List, Optional, Tuple, Type, TypeVar, Union, overload\nfrom typing_extensions import Literal\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n# global variables\nTMP_MAX: int\ntempdir: Optional[str]\ntemplate: str\n\n_S = TypeVar("_S")\n_T = TypeVar("_T") # for pytype, define typevar in same file as alias\n_DirT = Union[_T, os.PathLike[_T]]\n\nif sys.version_info >= (3, 8):\n @overload\n def NamedTemporaryFile(\n mode: Literal["r", "w", "a", "x", "r+", "w+", "a+", "x+", "rt", "wt", "at", "xt", "r+t", "w+t", "a+t", "x+t"],\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n delete: bool = ...,\n *,\n errors: Optional[str] = ...,\n ) -> IO[str]: ...\n @overload\n def NamedTemporaryFile(\n mode: Literal["rb", "wb", "ab", "xb", "r+b", "w+b", "a+b", "x+b"] = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n delete: bool = ...,\n *,\n errors: Optional[str] = ...,\n ) -> IO[bytes]: ...\n @overload\n def NamedTemporaryFile(\n mode: str = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n delete: bool = ...,\n *,\n errors: Optional[str] = ...,\n ) -> IO[Any]: ...\n\nelse:\n @overload\n def NamedTemporaryFile(\n mode: Literal["r", "w", "a", "x", "r+", "w+", "a+", "x+", "rt", "wt", "at", "xt", "r+t", "w+t", "a+t", "x+t"],\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n delete: bool = ...,\n ) -> IO[str]: ...\n @overload\n def NamedTemporaryFile(\n mode: Literal["rb", "wb", "ab", "xb", "r+b", "w+b", "a+b", "x+b"] = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n delete: bool = ...,\n ) -> IO[bytes]: ...\n @overload\n def NamedTemporaryFile(\n mode: str = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n delete: bool = ...,\n ) -> IO[Any]: ...\n\nif sys.platform == "win32":\n TemporaryFile = NamedTemporaryFile\nelse:\n if sys.version_info >= (3, 8):\n @overload\n def TemporaryFile(\n mode: Literal["r", "w", "a", "x", "r+", "w+", "a+", "x+", "rt", "wt", "at", "xt", "r+t", "w+t", "a+t", "x+t"],\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n *,\n errors: Optional[str] = ...,\n ) -> IO[str]: ...\n @overload\n def TemporaryFile(\n mode: Literal["rb", "wb", "ab", "xb", "r+b", "w+b", "a+b", "x+b"] = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n *,\n errors: Optional[str] = ...,\n ) -> IO[bytes]: ...\n @overload\n def TemporaryFile(\n mode: str = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n *,\n errors: Optional[str] = ...,\n ) -> IO[Any]: ...\n else:\n @overload\n def TemporaryFile(\n mode: Literal["r", "w", "a", "x", "r+", "w+", "a+", "x+", "rt", "wt", "at", "xt", "r+t", "w+t", "a+t", "x+t"],\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n ) -> IO[str]: ...\n @overload\n def TemporaryFile(\n mode: Literal["rb", "wb", "ab", "xb", "r+b", "w+b", "a+b", "x+b"] = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n ) -> IO[bytes]: ...\n @overload\n def TemporaryFile(\n mode: str = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[AnyStr] = ...,\n prefix: Optional[AnyStr] = ...,\n dir: Optional[_DirT[AnyStr]] = ...,\n ) -> IO[Any]: ...\n\n# It does not actually derive from IO[AnyStr], but it does implement the\n# protocol.\nclass SpooledTemporaryFile(IO[AnyStr]):\n # bytes needs to go first, as default mode is to open as bytes\n if sys.version_info >= (3, 8):\n @overload\n def __init__(\n self: SpooledTemporaryFile[bytes],\n max_size: int = ...,\n mode: Literal["rb", "wb", "ab", "xb", "r+b", "w+b", "a+b", "x+b"] = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[str] = ...,\n prefix: Optional[str] = ...,\n dir: Optional[str] = ...,\n *,\n errors: Optional[str] = ...,\n ) -> None: ...\n @overload\n def __init__(\n self: SpooledTemporaryFile[str],\n max_size: int = ...,\n mode: Literal["r", "w", "a", "x", "r+", "w+", "a+", "x+", "rt", "wt", "at", "xt", "r+t", "w+t", "a+t", "x+t"] = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[str] = ...,\n prefix: Optional[str] = ...,\n dir: Optional[str] = ...,\n *,\n errors: Optional[str] = ...,\n ) -> None: ...\n @overload\n def __init__(\n self,\n max_size: int = ...,\n mode: str = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[str] = ...,\n prefix: Optional[str] = ...,\n dir: Optional[str] = ...,\n *,\n errors: Optional[str] = ...,\n ) -> None: ...\n @property\n def errors(self) -> Optional[str]: ...\n else:\n @overload\n def __init__(\n self: SpooledTemporaryFile[bytes],\n max_size: int = ...,\n mode: Literal["rb", "wb", "ab", "xb", "r+b", "w+b", "a+b", "x+b"] = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[str] = ...,\n prefix: Optional[str] = ...,\n dir: Optional[str] = ...,\n ) -> None: ...\n @overload\n def __init__(\n self: SpooledTemporaryFile[str],\n max_size: int = ...,\n mode: Literal["r", "w", "a", "x", "r+", "w+", "a+", "x+", "rt", "wt", "at", "xt", "r+t", "w+t", "a+t", "x+t"] = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[str] = ...,\n prefix: Optional[str] = ...,\n dir: Optional[str] = ...,\n ) -> None: ...\n @overload\n def __init__(\n self,\n max_size: int = ...,\n mode: str = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n newline: Optional[str] = ...,\n suffix: Optional[str] = ...,\n prefix: Optional[str] = ...,\n dir: Optional[str] = ...,\n ) -> None: ...\n def rollover(self) -> None: ...\n def __enter__(self: _S) -> _S: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n # These methods are copied from the abstract methods of IO, because\n # SpooledTemporaryFile implements IO.\n # See also https://github.com/python/typeshed/pull/2452#issuecomment-420657918.\n def close(self) -> None: ...\n def fileno(self) -> int: ...\n def flush(self) -> None: ...\n def isatty(self) -> bool: ...\n def read(self, n: int = ...) -> AnyStr: ...\n def readline(self, limit: int = ...) -> AnyStr: ...\n def readlines(self, hint: int = ...) -> List[AnyStr]: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def tell(self) -> int: ...\n def truncate(self, size: Optional[int] = ...) -> int: ...\n def write(self, s: AnyStr) -> int: ...\n def writelines(self, iterable: Iterable[AnyStr]) -> None: ...\n def __iter__(self) -> Iterator[AnyStr]: ...\n # Other than the following methods, which do not exist on SpooledTemporaryFile\n def readable(self) -> bool: ...\n def seekable(self) -> bool: ...\n def writable(self) -> bool: ...\n def __next__(self) -> AnyStr: ...\n\nclass TemporaryDirectory(Generic[AnyStr]):\n name: str\n def __init__(\n self, suffix: Optional[AnyStr] = ..., prefix: Optional[AnyStr] = ..., dir: Optional[_DirT[AnyStr]] = ...\n ) -> None: ...\n def cleanup(self) -> None: ...\n def __enter__(self) -> AnyStr: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\ndef mkstemp(\n suffix: Optional[AnyStr] = ..., prefix: Optional[AnyStr] = ..., dir: Optional[_DirT[AnyStr]] = ..., text: bool = ...\n) -> Tuple[int, AnyStr]: ...\n@overload\ndef mkdtemp() -> str: ...\n@overload\ndef mkdtemp(suffix: Optional[AnyStr] = ..., prefix: Optional[AnyStr] = ..., dir: Optional[_DirT[AnyStr]] = ...) -> AnyStr: ...\ndef mktemp(suffix: Optional[AnyStr] = ..., prefix: Optional[AnyStr] = ..., dir: Optional[_DirT[AnyStr]] = ...) -> AnyStr: ...\ndef gettempdirb() -> bytes: ...\ndef gettempprefixb() -> bytes: ...\ndef gettempdir() -> str: ...\ndef gettempprefix() -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\tempfile.pyi | tempfile.pyi | Other | 11,371 | 0.95 | 0.200658 | 0.057627 | python-kit | 738 | 2024-05-02T02:26:32.460939 | GPL-3.0 | false | e6b89b6ff371188b36b63e670e824eaf |
from typing import Callable, Dict, List, Optional, Pattern\n\nclass TextWrapper:\n width: int = ...\n initial_indent: str = ...\n subsequent_indent: str = ...\n expand_tabs: bool = ...\n replace_whitespace: bool = ...\n fix_sentence_endings: bool = ...\n drop_whitespace: bool = ...\n break_long_words: bool = ...\n break_on_hyphens: bool = ...\n tabsize: int = ...\n max_lines: Optional[int] = ...\n placeholder: str = ...\n\n # Attributes not present in documentation\n sentence_end_re: Pattern[str] = ...\n wordsep_re: Pattern[str] = ...\n wordsep_simple_re: Pattern[str] = ...\n whitespace_trans: str = ...\n unicode_whitespace_trans: Dict[int, int] = ...\n uspace: int = ...\n x: str = ... # leaked loop variable\n def __init__(\n self,\n width: int = ...,\n initial_indent: str = ...,\n subsequent_indent: str = ...,\n expand_tabs: bool = ...,\n replace_whitespace: bool = ...,\n fix_sentence_endings: bool = ...,\n break_long_words: bool = ...,\n drop_whitespace: bool = ...,\n break_on_hyphens: bool = ...,\n tabsize: int = ...,\n *,\n max_lines: Optional[int] = ...,\n placeholder: str = ...,\n ) -> None: ...\n # Private methods *are* part of the documented API for subclasses.\n def _munge_whitespace(self, text: str) -> str: ...\n def _split(self, text: str) -> List[str]: ...\n def _fix_sentence_endings(self, chunks: List[str]) -> None: ...\n def _handle_long_word(self, reversed_chunks: List[str], cur_line: List[str], cur_len: int, width: int) -> None: ...\n def _wrap_chunks(self, chunks: List[str]) -> List[str]: ...\n def _split_chunks(self, text: str) -> List[str]: ...\n def wrap(self, text: str) -> List[str]: ...\n def fill(self, text: str) -> str: ...\n\ndef wrap(\n text: str,\n width: int = ...,\n *,\n initial_indent: str = ...,\n subsequent_indent: str = ...,\n expand_tabs: bool = ...,\n tabsize: int = ...,\n replace_whitespace: bool = ...,\n fix_sentence_endings: bool = ...,\n break_long_words: bool = ...,\n break_on_hyphens: bool = ...,\n drop_whitespace: bool = ...,\n max_lines: int = ...,\n placeholder: str = ...,\n) -> List[str]: ...\ndef fill(\n text: str,\n width: int = ...,\n *,\n initial_indent: str = ...,\n subsequent_indent: str = ...,\n expand_tabs: bool = ...,\n tabsize: int = ...,\n replace_whitespace: bool = ...,\n fix_sentence_endings: bool = ...,\n break_long_words: bool = ...,\n break_on_hyphens: bool = ...,\n drop_whitespace: bool = ...,\n max_lines: int = ...,\n placeholder: str = ...,\n) -> str: ...\ndef shorten(\n text: str,\n width: int,\n *,\n initial_indent: str = ...,\n subsequent_indent: str = ...,\n expand_tabs: bool = ...,\n tabsize: int = ...,\n replace_whitespace: bool = ...,\n fix_sentence_endings: bool = ...,\n break_long_words: bool = ...,\n break_on_hyphens: bool = ...,\n drop_whitespace: bool = ...,\n # Omit `max_lines: int = None`, it is forced to 1 here.\n placeholder: str = ...,\n) -> str: ...\ndef dedent(text: str) -> str: ...\ndef indent(text: str, prefix: str, predicate: Optional[Callable[[str], bool]] = ...) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\textwrap.pyi | textwrap.pyi | Other | 3,234 | 0.95 | 0.16 | 0.072165 | python-kit | 463 | 2024-02-09T13:44:13.927888 | BSD-3-Clause | false | 94e3675891b2ee6c5a6646ce11bb1870 |
import sys\nfrom builtins import open as _builtin_open\nfrom os import PathLike\nfrom token import * # noqa: F403\nfrom typing import (\n Any,\n Callable,\n Dict,\n Generator,\n Iterable,\n List,\n NamedTuple,\n Optional,\n Pattern,\n Sequence,\n Set,\n TextIO,\n Tuple,\n Union,\n)\n\nif sys.version_info < (3, 7):\n COMMENT: int\n NL: int\n ENCODING: int\n\ncookie_re: Pattern[str]\nblank_re: Pattern[bytes]\n\n_Position = Tuple[int, int]\n\nclass _TokenInfo(NamedTuple):\n type: int\n string: str\n start: _Position\n end: _Position\n line: str\n\nclass TokenInfo(_TokenInfo):\n @property\n def exact_type(self) -> int: ...\n\n# Backwards compatible tokens can be sequences of a shorter length too\n_Token = Union[TokenInfo, Sequence[Union[int, str, _Position]]]\n\nclass TokenError(Exception): ...\nclass StopTokenizing(Exception): ... # undocumented\n\nclass Untokenizer:\n tokens: List[str]\n prev_row: int\n prev_col: int\n encoding: Optional[str]\n def __init__(self) -> None: ...\n def add_whitespace(self, start: _Position) -> None: ...\n def untokenize(self, iterable: Iterable[_Token]) -> str: ...\n def compat(self, token: Sequence[Union[int, str]], iterable: Iterable[_Token]) -> None: ...\n\n# the docstring says "returns bytes" but is incorrect --\n# if the ENCODING token is missing, it skips the encode\ndef untokenize(iterable: Iterable[_Token]) -> Any: ...\ndef detect_encoding(readline: Callable[[], bytes]) -> Tuple[str, Sequence[bytes]]: ...\ndef tokenize(readline: Callable[[], bytes]) -> Generator[TokenInfo, None, None]: ...\ndef generate_tokens(readline: Callable[[], str]) -> Generator[TokenInfo, None, None]: ... # undocumented\ndef open(filename: Union[str, bytes, int, PathLike[Any]]) -> TextIO: ...\ndef group(*choices: str) -> str: ... # undocumented\ndef any(*choices: str) -> str: ... # undocumented\ndef maybe(*choices: str) -> str: ... # undocumented\n\nWhitespace: str # undocumented\nComment: str # undocumented\nIgnore: str # undocumented\nName: str # undocumented\n\nHexnumber: str # undocumented\nBinnumber: str # undocumented\nOctnumber: str # undocumented\nDecnumber: str # undocumented\nIntnumber: str # undocumented\nExponent: str # undocumented\nPointfloat: str # undocumented\nExpfloat: str # undocumented\nFloatnumber: str # undocumented\nImagnumber: str # undocumented\nNumber: str # undocumented\n\ndef _all_string_prefixes() -> Set[str]: ... # undocumented\n\nStringPrefix: str # undocumented\n\nSingle: str # undocumented\nDouble: str # undocumented\nSingle3: str # undocumented\nDouble3: str # undocumented\nTriple: str # undocumented\nString: str # undocumented\n\nif sys.version_info < (3, 7):\n Operator: str # undocumented\n Bracket: str # undocumented\n\nSpecial: str # undocumented\nFunny: str # undocumented\n\nPlainToken: str # undocumented\nToken: str # undocumented\n\nContStr: str # undocumented\nPseudoExtras: str # undocumented\nPseudoToken: str # undocumented\n\nendpats: Dict[str, str] # undocumented\nsingle_quoted: Set[str] # undocumented\ntriple_quoted: Set[str] # undocumented\n\ntabsize: int # undocumented\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\tokenize.pyi | tokenize.pyi | Other | 3,110 | 0.95 | 0.189655 | 0.03125 | node-utils | 711 | 2025-04-12T14:25:53.012033 | Apache-2.0 | false | 26fe65b83ac9957e99853d2bf422220e |
import sys\nfrom typing import List, Optional, Sequence, Tuple, Union, overload\n\nfrom _tracemalloc import *\n\ndef get_object_traceback(obj: object) -> Optional[Traceback]: ...\ndef take_snapshot() -> Snapshot: ...\n\nclass DomainFilter:\n inclusive: bool\n domain: int\n def __init__(self, inclusive: bool, domain: int) -> None: ...\n\nclass Filter:\n domain: Optional[int]\n inclusive: bool\n lineno: Optional[int]\n filename_pattern: str\n all_frames: bool\n def __init__(\n self,\n inclusive: bool,\n filename_pattern: str,\n lineno: Optional[int] = ...,\n all_frames: bool = ...,\n domain: Optional[int] = ...,\n ) -> None: ...\n\nclass Statistic:\n count: int\n size: int\n traceback: Traceback\n def __init__(self, traceback: Traceback, size: int, count: int) -> None: ...\n\nclass StatisticDiff:\n count: int\n count_diff: int\n size: int\n size_diff: int\n traceback: Traceback\n def __init__(self, traceback: Traceback, size: int, size_diff: int, count: int, count_diff: int) -> None: ...\n\n_FrameTupleT = Tuple[str, int]\n\nclass Frame:\n filename: str\n lineno: int\n def __init__(self, frame: _FrameTupleT) -> None: ...\n\nif sys.version_info >= (3, 9):\n _TraceTupleT = Union[Tuple[int, int, Sequence[_FrameTupleT], Optional[int]], Tuple[int, int, Sequence[_FrameTupleT]]]\nelse:\n _TraceTupleT = Tuple[int, int, Sequence[_FrameTupleT]]\n\nclass Trace:\n domain: int\n size: int\n traceback: Traceback\n def __init__(self, trace: _TraceTupleT) -> None: ...\n\nclass Traceback(Sequence[Frame]):\n if sys.version_info >= (3, 9):\n total_nframe: Optional[int]\n def __init__(self, frames: Sequence[_FrameTupleT], total_nframe: Optional[int] = ...) -> None: ...\n else:\n def __init__(self, frames: Sequence[_FrameTupleT]) -> None: ...\n if sys.version_info >= (3, 7):\n def format(self, limit: Optional[int] = ..., most_recent_first: bool = ...) -> List[str]: ...\n else:\n def format(self, limit: Optional[int] = ...) -> List[str]: ...\n @overload\n def __getitem__(self, i: int) -> Frame: ...\n @overload\n def __getitem__(self, s: slice) -> Sequence[Frame]: ...\n def __len__(self) -> int: ...\n\nclass Snapshot:\n def __init__(self, traces: Sequence[_TraceTupleT], traceback_limit: int) -> None: ...\n def compare_to(self, old_snapshot: Snapshot, key_type: str, cumulative: bool = ...) -> List[StatisticDiff]: ...\n def dump(self, filename: str) -> None: ...\n def filter_traces(self, filters: Sequence[Union[DomainFilter, Filter]]) -> Snapshot: ...\n @staticmethod\n def load(filename: str) -> Snapshot: ...\n def statistics(self, key_type: str, cumulative: bool = ...) -> List[Statistic]: ...\n traceback_limit: int\n traces: Sequence[Trace]\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\tracemalloc.pyi | tracemalloc.pyi | Other | 2,795 | 0.85 | 0.372093 | 0 | python-kit | 112 | 2025-02-28T09:26:01.185259 | Apache-2.0 | false | bef58069eb5c8d80bfcf1e7be19c1370 |
import sys\nfrom typing import (\n Any,\n Awaitable,\n Callable,\n Dict,\n Generic,\n Iterable,\n Iterator,\n Mapping,\n Optional,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\nfrom typing_extensions import Literal, final\n\n# ModuleType is exported from this module, but for circular import\n# reasons exists in its own stub file (with ModuleSpec and Loader).\nfrom _importlib_modulespec import ModuleType as ModuleType # Exported\n\n# Note, all classes "defined" here require special handling.\n\n_T = TypeVar("_T")\n_T_co = TypeVar("_T_co", covariant=True)\n_T_contra = TypeVar("_T_contra", contravariant=True)\n_KT = TypeVar("_KT")\n_VT = TypeVar("_VT")\n\nclass _Cell:\n cell_contents: Any\n\nclass FunctionType:\n __closure__: Optional[Tuple[_Cell, ...]]\n __code__: CodeType\n __defaults__: Optional[Tuple[Any, ...]]\n __dict__: Dict[str, Any]\n __globals__: Dict[str, Any]\n __name__: str\n __qualname__: str\n __annotations__: Dict[str, Any]\n __kwdefaults__: Dict[str, Any]\n def __init__(\n self,\n code: CodeType,\n globals: Dict[str, Any],\n name: Optional[str] = ...,\n argdefs: Optional[Tuple[object, ...]] = ...,\n closure: Optional[Tuple[_Cell, ...]] = ...,\n ) -> None: ...\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n def __get__(self, obj: Optional[object], type: Optional[type]) -> MethodType: ...\n\nLambdaType = FunctionType\n\nclass CodeType:\n """Create a code object. Not for the faint of heart."""\n\n co_argcount: int\n if sys.version_info >= (3, 8):\n co_posonlyargcount: int\n co_kwonlyargcount: int\n co_nlocals: int\n co_stacksize: int\n co_flags: int\n co_code: bytes\n co_consts: Tuple[Any, ...]\n co_names: Tuple[str, ...]\n co_varnames: Tuple[str, ...]\n co_filename: str\n co_name: str\n co_firstlineno: int\n co_lnotab: bytes\n co_freevars: Tuple[str, ...]\n co_cellvars: Tuple[str, ...]\n if sys.version_info >= (3, 8):\n def __init__(\n self,\n argcount: int,\n posonlyargcount: int,\n kwonlyargcount: int,\n nlocals: int,\n stacksize: int,\n flags: int,\n codestring: bytes,\n constants: Tuple[Any, ...],\n names: Tuple[str, ...],\n varnames: Tuple[str, ...],\n filename: str,\n name: str,\n firstlineno: int,\n lnotab: bytes,\n freevars: Tuple[str, ...] = ...,\n cellvars: Tuple[str, ...] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n argcount: int,\n kwonlyargcount: int,\n nlocals: int,\n stacksize: int,\n flags: int,\n codestring: bytes,\n constants: Tuple[Any, ...],\n names: Tuple[str, ...],\n varnames: Tuple[str, ...],\n filename: str,\n name: str,\n firstlineno: int,\n lnotab: bytes,\n freevars: Tuple[str, ...] = ...,\n cellvars: Tuple[str, ...] = ...,\n ) -> None: ...\n if sys.version_info >= (3, 8):\n def replace(\n self,\n *,\n co_argcount: int = ...,\n co_posonlyargcount: int = ...,\n co_kwonlyargcount: int = ...,\n co_nlocals: int = ...,\n co_stacksize: int = ...,\n co_flags: int = ...,\n co_firstlineno: int = ...,\n co_code: bytes = ...,\n co_consts: Tuple[Any, ...] = ...,\n co_names: Tuple[str, ...] = ...,\n co_varnames: Tuple[str, ...] = ...,\n co_freevars: Tuple[str, ...] = ...,\n co_cellvars: Tuple[str, ...] = ...,\n co_filename: str = ...,\n co_name: str = ...,\n co_lnotab: bytes = ...,\n ) -> CodeType: ...\n\nclass MappingProxyType(Mapping[_KT, _VT], Generic[_KT, _VT]):\n def __init__(self, mapping: Mapping[_KT, _VT]) -> None: ...\n def __getitem__(self, k: _KT) -> _VT: ...\n def __iter__(self) -> Iterator[_KT]: ...\n def __len__(self) -> int: ...\n def copy(self) -> Dict[_KT, _VT]: ...\n\nclass SimpleNamespace:\n def __init__(self, **kwargs: Any) -> None: ...\n def __getattribute__(self, name: str) -> Any: ...\n def __setattr__(self, name: str, value: Any) -> None: ...\n def __delattr__(self, name: str) -> None: ...\n\nclass GeneratorType:\n gi_code: CodeType\n gi_frame: FrameType\n gi_running: bool\n gi_yieldfrom: Optional[GeneratorType]\n def __iter__(self) -> GeneratorType: ...\n def __next__(self) -> Any: ...\n def close(self) -> None: ...\n def send(self, __arg: Any) -> Any: ...\n @overload\n def throw(\n self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...\n ) -> Any: ...\n @overload\n def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Any: ...\n\nclass AsyncGeneratorType(Generic[_T_co, _T_contra]):\n ag_await: Optional[Awaitable[Any]]\n ag_frame: FrameType\n ag_running: bool\n ag_code: CodeType\n def __aiter__(self) -> Awaitable[AsyncGeneratorType[_T_co, _T_contra]]: ...\n def __anext__(self) -> Awaitable[_T_co]: ...\n def asend(self, __val: _T_contra) -> Awaitable[_T_co]: ...\n @overload\n def athrow(\n self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...\n ) -> Awaitable[_T_co]: ...\n @overload\n def athrow(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Awaitable[_T_co]: ...\n def aclose(self) -> Awaitable[None]: ...\n\nclass CoroutineType:\n cr_await: Optional[Any]\n cr_code: CodeType\n cr_frame: FrameType\n cr_running: bool\n def close(self) -> None: ...\n def send(self, __arg: Any) -> Any: ...\n @overload\n def throw(\n self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...\n ) -> Any: ...\n @overload\n def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Any: ...\n\nclass _StaticFunctionType:\n """Fictional type to correct the type of MethodType.__func__.\n\n FunctionType is a descriptor, so mypy follows the descriptor protocol and\n converts MethodType.__func__ back to MethodType (the return type of\n FunctionType.__get__). But this is actually a special case; MethodType is\n implemented in C and its attribute access doesn't go through\n __getattribute__.\n\n By wrapping FunctionType in _StaticFunctionType, we get the right result;\n similar to wrapping a function in staticmethod() at runtime to prevent it\n being bound as a method.\n """\n\n def __get__(self, obj: Optional[object], type: Optional[type]) -> FunctionType: ...\n\nclass MethodType:\n __func__: _StaticFunctionType\n __self__: object\n __name__: str\n __qualname__: str\n def __init__(self, func: Callable[..., Any], obj: object) -> None: ...\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n\nclass BuiltinFunctionType:\n __self__: Union[object, ModuleType]\n __name__: str\n __qualname__: str\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n\nBuiltinMethodType = BuiltinFunctionType\n\nif sys.version_info >= (3, 7):\n class WrapperDescriptorType:\n __name__: str\n __qualname__: str\n __objclass__: type\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n def __get__(self, obj: Any, type: type = ...) -> Any: ...\n class MethodWrapperType:\n __self__: object\n __name__: str\n __qualname__: str\n __objclass__: type\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n def __eq__(self, other: Any) -> bool: ...\n def __ne__(self, other: Any) -> bool: ...\n class MethodDescriptorType:\n __name__: str\n __qualname__: str\n __objclass__: type\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n def __get__(self, obj: Any, type: type = ...) -> Any: ...\n class ClassMethodDescriptorType:\n __name__: str\n __qualname__: str\n __objclass__: type\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n def __get__(self, obj: Any, type: type = ...) -> Any: ...\n\nclass TracebackType:\n if sys.version_info >= (3, 7):\n def __init__(self, tb_next: Optional[TracebackType], tb_frame: FrameType, tb_lasti: int, tb_lineno: int) -> None: ...\n tb_next: Optional[TracebackType]\n else:\n @property\n def tb_next(self) -> Optional[TracebackType]: ...\n # the rest are read-only even in 3.7\n @property\n def tb_frame(self) -> FrameType: ...\n @property\n def tb_lasti(self) -> int: ...\n @property\n def tb_lineno(self) -> int: ...\n\nclass FrameType:\n f_back: Optional[FrameType]\n f_builtins: Dict[str, Any]\n f_code: CodeType\n f_globals: Dict[str, Any]\n f_lasti: int\n f_lineno: int\n f_locals: Dict[str, Any]\n f_trace: Optional[Callable[[FrameType, str, Any], Any]]\n if sys.version_info >= (3, 7):\n f_trace_lines: bool\n f_trace_opcodes: bool\n def clear(self) -> None: ...\n\nclass GetSetDescriptorType:\n __name__: str\n __objclass__: type\n def __get__(self, obj: Any, type: type = ...) -> Any: ...\n def __set__(self, obj: Any) -> None: ...\n def __delete__(self, obj: Any) -> None: ...\n\nclass MemberDescriptorType:\n __name__: str\n __objclass__: type\n def __get__(self, obj: Any, type: type = ...) -> Any: ...\n def __set__(self, obj: Any) -> None: ...\n def __delete__(self, obj: Any) -> None: ...\n\nif sys.version_info >= (3, 7):\n def new_class(\n name: str, bases: Iterable[object] = ..., kwds: Dict[str, Any] = ..., exec_body: Callable[[Dict[str, Any]], None] = ...\n ) -> type: ...\n def resolve_bases(bases: Iterable[object]) -> Tuple[Any, ...]: ...\n\nelse:\n def new_class(\n name: str, bases: Tuple[type, ...] = ..., kwds: Dict[str, Any] = ..., exec_body: Callable[[Dict[str, Any]], None] = ...\n ) -> type: ...\n\ndef prepare_class(\n name: str, bases: Tuple[type, ...] = ..., kwds: Dict[str, Any] = ...\n) -> Tuple[type, Dict[str, Any], Dict[str, Any]]: ...\n\n# Actually a different type, but `property` is special and we want that too.\nDynamicClassAttribute = property\n\ndef coroutine(f: Callable[..., Any]) -> CoroutineType: ...\n\nif sys.version_info >= (3, 9):\n class GenericAlias:\n __origin__: type\n __args__: Tuple[Any, ...]\n __parameters__: Tuple[Any, ...]\n def __init__(self, origin: type, args: Any) -> None: ...\n def __getattr__(self, name: str) -> Any: ... # incomplete\n\nif sys.version_info >= (3, 10):\n @final\n class NoneType:\n def __bool__(self) -> Literal[False]: ...\n EllipsisType = ellipsis # noqa F811 from builtins\n NotImplementedType = _NotImplementedType # noqa F811 from builtins\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\types.pyi | types.pyi | Other | 11,027 | 0.95 | 0.290419 | 0.019868 | react-lib | 649 | 2024-06-14T14:52:48.695063 | BSD-3-Clause | false | 7b7bbe7d3fa7418e5e8c57658afa0a11 |
import collections # Needed by aliases like DefaultDict, see mypy issue 2986\nimport sys\nfrom abc import ABCMeta, abstractmethod\nfrom types import BuiltinFunctionType, CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType\n\nif sys.version_info >= (3, 7):\n from types import MethodDescriptorType, MethodWrapperType, WrapperDescriptorType\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n# Definitions of special type checking related constructs. Their definitions\n# are not used, so their value does not matter.\n\noverload = object()\nAny = object()\n\nclass TypeVar:\n __name__: str\n __bound__: Optional[Type[Any]]\n __constraints__: Tuple[Type[Any], ...]\n __covariant__: bool\n __contravariant__: bool\n def __init__(\n self,\n name: str,\n *constraints: Type[Any],\n bound: Union[None, Type[Any], str] = ...,\n covariant: bool = ...,\n contravariant: bool = ...,\n ) -> None: ...\n\n_promote = object()\n\nclass _SpecialForm:\n def __getitem__(self, typeargs: Any) -> object: ...\n\nUnion: _SpecialForm = ...\nOptional: _SpecialForm = ...\nTuple: _SpecialForm = ...\nGeneric: _SpecialForm = ...\n# Protocol is only present in 3.8 and later, but mypy needs it unconditionally\nProtocol: _SpecialForm = ...\nCallable: _SpecialForm = ...\nType: _SpecialForm = ...\nClassVar: _SpecialForm = ...\nif sys.version_info >= (3, 8):\n Final: _SpecialForm = ...\n _F = TypeVar("_F", bound=Callable[..., Any])\n def final(f: _F) -> _F: ...\n Literal: _SpecialForm = ...\n # TypedDict is a (non-subscriptable) special form.\n TypedDict: object\n\nif sys.version_info < (3, 7):\n class GenericMeta(type): ...\n\nif sys.version_info >= (3, 10):\n class ParamSpec:\n __name__: str\n def __init__(self, name: str) -> None: ...\n Concatenate: _SpecialForm = ...\n TypeAlias: _SpecialForm = ...\n\n# Return type that indicates a function does not return.\n# This type is equivalent to the None type, but the no-op Union is necessary to\n# distinguish the None type from the None value.\nNoReturn = Union[None]\n\n# These type variables are used by the container types.\n_T = TypeVar("_T")\n_S = TypeVar("_S")\n_KT = TypeVar("_KT") # Key type.\n_VT = TypeVar("_VT") # Value type.\n_T_co = TypeVar("_T_co", covariant=True) # Any type covariant containers.\n_V_co = TypeVar("_V_co", covariant=True) # Any type covariant containers.\n_KT_co = TypeVar("_KT_co", covariant=True) # Key type covariant containers.\n_VT_co = TypeVar("_VT_co", covariant=True) # Value type covariant containers.\n_T_contra = TypeVar("_T_contra", contravariant=True) # Ditto contravariant.\n_TC = TypeVar("_TC", bound=Type[object])\n_C = TypeVar("_C", bound=Callable[..., Any])\n\nno_type_check = object()\n\ndef no_type_check_decorator(decorator: _C) -> _C: ...\n\n# Type aliases and type constructors\n\nclass _Alias:\n # Class for defining generic aliases for library types.\n def __getitem__(self, typeargs: Any) -> Any: ...\n\nList = _Alias()\nDict = _Alias()\nDefaultDict = _Alias()\nSet = _Alias()\nFrozenSet = _Alias()\nCounter = _Alias()\nDeque = _Alias()\nChainMap = _Alias()\n\nif sys.version_info >= (3, 7):\n OrderedDict = _Alias()\n\nif sys.version_info >= (3, 9):\n Annotated: _SpecialForm = ...\n\n# Predefined type variables.\nAnyStr = TypeVar("AnyStr", str, bytes)\n\n# Abstract base classes.\n\ndef runtime_checkable(cls: _TC) -> _TC: ...\n@runtime_checkable\nclass SupportsInt(Protocol, metaclass=ABCMeta):\n @abstractmethod\n def __int__(self) -> int: ...\n\n@runtime_checkable\nclass SupportsFloat(Protocol, metaclass=ABCMeta):\n @abstractmethod\n def __float__(self) -> float: ...\n\n@runtime_checkable\nclass SupportsComplex(Protocol, metaclass=ABCMeta):\n @abstractmethod\n def __complex__(self) -> complex: ...\n\n@runtime_checkable\nclass SupportsBytes(Protocol, metaclass=ABCMeta):\n @abstractmethod\n def __bytes__(self) -> bytes: ...\n\nif sys.version_info >= (3, 8):\n @runtime_checkable\n class SupportsIndex(Protocol, metaclass=ABCMeta):\n @abstractmethod\n def __index__(self) -> int: ...\n\n@runtime_checkable\nclass SupportsAbs(Protocol[_T_co]):\n @abstractmethod\n def __abs__(self) -> _T_co: ...\n\n@runtime_checkable\nclass SupportsRound(Protocol[_T_co]):\n @overload\n @abstractmethod\n def __round__(self) -> int: ...\n @overload\n @abstractmethod\n def __round__(self, ndigits: int) -> _T_co: ...\n\n@runtime_checkable\nclass Sized(Protocol, metaclass=ABCMeta):\n @abstractmethod\n def __len__(self) -> int: ...\n\n@runtime_checkable\nclass Hashable(Protocol, metaclass=ABCMeta):\n # TODO: This is special, in that a subclass of a hashable class may not be hashable\n # (for example, list vs. object). It's not obvious how to represent this. This class\n # is currently mostly useless for static checking.\n @abstractmethod\n def __hash__(self) -> int: ...\n\n@runtime_checkable\nclass Iterable(Protocol[_T_co]):\n @abstractmethod\n def __iter__(self) -> Iterator[_T_co]: ...\n\n@runtime_checkable\nclass Iterator(Iterable[_T_co], Protocol[_T_co]):\n @abstractmethod\n def __next__(self) -> _T_co: ...\n def __iter__(self) -> Iterator[_T_co]: ...\n\n@runtime_checkable\nclass Reversible(Iterable[_T_co], Protocol[_T_co]):\n @abstractmethod\n def __reversed__(self) -> Iterator[_T_co]: ...\n\nclass Generator(Iterator[_T_co], Generic[_T_co, _T_contra, _V_co]):\n def __next__(self) -> _T_co: ...\n @abstractmethod\n def send(self, __value: _T_contra) -> _T_co: ...\n @overload\n @abstractmethod\n def throw(\n self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...\n ) -> _T_co: ...\n @overload\n @abstractmethod\n def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ...\n def close(self) -> None: ...\n def __iter__(self) -> Generator[_T_co, _T_contra, _V_co]: ...\n @property\n def gi_code(self) -> CodeType: ...\n @property\n def gi_frame(self) -> FrameType: ...\n @property\n def gi_running(self) -> bool: ...\n @property\n def gi_yieldfrom(self) -> Optional[Generator[Any, Any, Any]]: ...\n\n@runtime_checkable\nclass Awaitable(Protocol[_T_co]):\n @abstractmethod\n def __await__(self) -> Generator[Any, None, _T_co]: ...\n\nclass Coroutine(Awaitable[_V_co], Generic[_T_co, _T_contra, _V_co]):\n __name__: str\n __qualname__: str\n @property\n def cr_await(self) -> Optional[Any]: ...\n @property\n def cr_code(self) -> CodeType: ...\n @property\n def cr_frame(self) -> FrameType: ...\n @property\n def cr_running(self) -> bool: ...\n @abstractmethod\n def send(self, __value: _T_contra) -> _T_co: ...\n @overload\n @abstractmethod\n def throw(\n self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...\n ) -> _T_co: ...\n @overload\n @abstractmethod\n def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ...\n @abstractmethod\n def close(self) -> None: ...\n\n# NOTE: This type does not exist in typing.py or PEP 484.\n# The parameters correspond to Generator, but the 4th is the original type.\nclass AwaitableGenerator(\n Awaitable[_V_co], Generator[_T_co, _T_contra, _V_co], Generic[_T_co, _T_contra, _V_co, _S], metaclass=ABCMeta\n): ...\n\n@runtime_checkable\nclass AsyncIterable(Protocol[_T_co]):\n @abstractmethod\n def __aiter__(self) -> AsyncIterator[_T_co]: ...\n\n@runtime_checkable\nclass AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]):\n @abstractmethod\n def __anext__(self) -> Awaitable[_T_co]: ...\n def __aiter__(self) -> AsyncIterator[_T_co]: ...\n\nclass AsyncGenerator(AsyncIterator[_T_co], Generic[_T_co, _T_contra]):\n @abstractmethod\n def __anext__(self) -> Awaitable[_T_co]: ...\n @abstractmethod\n def asend(self, __value: _T_contra) -> Awaitable[_T_co]: ...\n @overload\n @abstractmethod\n def athrow(\n self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...\n ) -> Awaitable[_T_co]: ...\n @overload\n @abstractmethod\n def athrow(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Awaitable[_T_co]: ...\n @abstractmethod\n def aclose(self) -> Awaitable[None]: ...\n @abstractmethod\n def __aiter__(self) -> AsyncGenerator[_T_co, _T_contra]: ...\n @property\n def ag_await(self) -> Any: ...\n @property\n def ag_code(self) -> CodeType: ...\n @property\n def ag_frame(self) -> FrameType: ...\n @property\n def ag_running(self) -> bool: ...\n\n@runtime_checkable\nclass Container(Protocol[_T_co]):\n @abstractmethod\n def __contains__(self, __x: object) -> bool: ...\n\n@runtime_checkable\nclass Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]):\n # Implement Sized (but don't have it as a base class).\n @abstractmethod\n def __len__(self) -> int: ...\n\n_Collection = Collection[_T_co]\n\nclass Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]):\n @overload\n @abstractmethod\n def __getitem__(self, i: int) -> _T_co: ...\n @overload\n @abstractmethod\n def __getitem__(self, s: slice) -> Sequence[_T_co]: ...\n # Mixin methods\n def index(self, value: Any, start: int = ..., stop: int = ...) -> int: ...\n def count(self, value: Any) -> int: ...\n def __contains__(self, x: object) -> bool: ...\n def __iter__(self) -> Iterator[_T_co]: ...\n def __reversed__(self) -> Iterator[_T_co]: ...\n\nclass MutableSequence(Sequence[_T], Generic[_T]):\n @abstractmethod\n def insert(self, index: int, value: _T) -> None: ...\n @overload\n @abstractmethod\n def __getitem__(self, i: int) -> _T: ...\n @overload\n @abstractmethod\n def __getitem__(self, s: slice) -> MutableSequence[_T]: ...\n @overload\n @abstractmethod\n def __setitem__(self, i: int, o: _T) -> None: ...\n @overload\n @abstractmethod\n def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...\n @overload\n @abstractmethod\n def __delitem__(self, i: int) -> None: ...\n @overload\n @abstractmethod\n def __delitem__(self, i: slice) -> None: ...\n # Mixin methods\n def append(self, value: _T) -> None: ...\n def clear(self) -> None: ...\n def extend(self, values: Iterable[_T]) -> None: ...\n def reverse(self) -> None: ...\n def pop(self, index: int = ...) -> _T: ...\n def remove(self, value: _T) -> None: ...\n def __iadd__(self, x: Iterable[_T]) -> MutableSequence[_T]: ...\n\nclass AbstractSet(_Collection[_T_co], Generic[_T_co]):\n @abstractmethod\n def __contains__(self, x: object) -> bool: ...\n # Mixin methods\n def __le__(self, s: AbstractSet[Any]) -> bool: ...\n def __lt__(self, s: AbstractSet[Any]) -> bool: ...\n def __gt__(self, s: AbstractSet[Any]) -> bool: ...\n def __ge__(self, s: AbstractSet[Any]) -> bool: ...\n def __and__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ...\n def __or__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ...\n def __sub__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ...\n def __xor__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ...\n def isdisjoint(self, other: Iterable[Any]) -> bool: ...\n\nclass MutableSet(AbstractSet[_T], Generic[_T]):\n @abstractmethod\n def add(self, value: _T) -> None: ...\n @abstractmethod\n def discard(self, value: _T) -> None: ...\n # Mixin methods\n def clear(self) -> None: ...\n def pop(self) -> _T: ...\n def remove(self, value: _T) -> None: ...\n def __ior__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ...\n def __iand__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ...\n def __ixor__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ...\n def __isub__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ...\n\nclass MappingView(Sized):\n def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented\n def __len__(self) -> int: ...\n\nclass ItemsView(MappingView, AbstractSet[Tuple[_KT_co, _VT_co]], Generic[_KT_co, _VT_co]):\n def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented\n def __and__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ...\n def __rand__(self, o: Iterable[_T]) -> Set[_T]: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ...\n if sys.version_info >= (3, 8):\n def __reversed__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ...\n def __or__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ...\n def __ror__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ...\n def __sub__(self, o: Iterable[Any]) -> Set[Tuple[_KT_co, _VT_co]]: ...\n def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ...\n def __xor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ...\n def __rxor__(self, o: Iterable[_T]) -> Set[Union[Tuple[_KT_co, _VT_co], _T]]: ...\n\nclass KeysView(MappingView, AbstractSet[_KT_co], Generic[_KT_co]):\n def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented\n def __and__(self, o: Iterable[Any]) -> Set[_KT_co]: ...\n def __rand__(self, o: Iterable[_T]) -> Set[_T]: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[_KT_co]: ...\n if sys.version_info >= (3, 8):\n def __reversed__(self) -> Iterator[_KT_co]: ...\n def __or__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ...\n def __ror__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ...\n def __sub__(self, o: Iterable[Any]) -> Set[_KT_co]: ...\n def __rsub__(self, o: Iterable[_T]) -> Set[_T]: ...\n def __xor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ...\n def __rxor__(self, o: Iterable[_T]) -> Set[Union[_KT_co, _T]]: ...\n\nclass ValuesView(MappingView, Iterable[_VT_co], Generic[_VT_co]):\n def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[_VT_co]: ...\n if sys.version_info >= (3, 8):\n def __reversed__(self) -> Iterator[_VT_co]: ...\n\n@runtime_checkable\nclass ContextManager(Protocol[_T_co]):\n def __enter__(self) -> _T_co: ...\n def __exit__(\n self,\n __exc_type: Optional[Type[BaseException]],\n __exc_value: Optional[BaseException],\n __traceback: Optional[TracebackType],\n ) -> Optional[bool]: ...\n\n@runtime_checkable\nclass AsyncContextManager(Protocol[_T_co]):\n def __aenter__(self) -> Awaitable[_T_co]: ...\n def __aexit__(\n self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], traceback: Optional[TracebackType]\n ) -> Awaitable[Optional[bool]]: ...\n\nclass Mapping(_Collection[_KT], Generic[_KT, _VT_co]):\n # TODO: We wish the key type could also be covariant, but that doesn't work,\n # see discussion in https: //github.com/python/typing/pull/273.\n @abstractmethod\n def __getitem__(self, k: _KT) -> _VT_co: ...\n # Mixin methods\n @overload\n def get(self, key: _KT) -> Optional[_VT_co]: ...\n @overload\n def get(self, key: _KT, default: Union[_VT_co, _T]) -> Union[_VT_co, _T]: ...\n def items(self) -> AbstractSet[Tuple[_KT, _VT_co]]: ...\n def keys(self) -> AbstractSet[_KT]: ...\n def values(self) -> ValuesView[_VT_co]: ...\n def __contains__(self, o: object) -> bool: ...\n\nclass MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]):\n @abstractmethod\n def __setitem__(self, k: _KT, v: _VT) -> None: ...\n @abstractmethod\n def __delitem__(self, v: _KT) -> None: ...\n def clear(self) -> None: ...\n @overload\n def pop(self, key: _KT) -> _VT: ...\n @overload\n def pop(self, key: _KT, default: Union[_VT, _T] = ...) -> Union[_VT, _T]: ...\n def popitem(self) -> Tuple[_KT, _VT]: ...\n def setdefault(self, key: _KT, default: _VT = ...) -> _VT: ...\n # 'update' used to take a Union, but using overloading is better.\n # The second overloaded type here is a bit too general, because\n # Mapping[Tuple[_KT, _VT], W] is a subclass of Iterable[Tuple[_KT, _VT]],\n # but will always have the behavior of the first overloaded type\n # at runtime, leading to keys of a mix of types _KT and Tuple[_KT, _VT].\n # We don't currently have any way of forcing all Mappings to use\n # the first overload, but by using overloading rather than a Union,\n # mypy will commit to using the first overload when the argument is\n # known to be a Mapping with unknown type parameters, which is closer\n # to the behavior we want. See mypy issue #1430.\n @overload\n def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...\n @overload\n def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...\n @overload\n def update(self, **kwargs: _VT) -> None: ...\n\nText = str\n\nTYPE_CHECKING = True\n\nclass IO(Iterator[AnyStr], Generic[AnyStr]):\n # TODO use abstract properties\n @property\n def mode(self) -> str: ...\n @property\n def name(self) -> str: ...\n @abstractmethod\n def close(self) -> None: ...\n @property\n def closed(self) -> bool: ...\n @abstractmethod\n def fileno(self) -> int: ...\n @abstractmethod\n def flush(self) -> None: ...\n @abstractmethod\n def isatty(self) -> bool: ...\n @abstractmethod\n def read(self, n: int = ...) -> AnyStr: ...\n @abstractmethod\n def readable(self) -> bool: ...\n @abstractmethod\n def readline(self, limit: int = ...) -> AnyStr: ...\n @abstractmethod\n def readlines(self, hint: int = ...) -> list[AnyStr]: ...\n @abstractmethod\n def seek(self, offset: int, whence: int = ...) -> int: ...\n @abstractmethod\n def seekable(self) -> bool: ...\n @abstractmethod\n def tell(self) -> int: ...\n @abstractmethod\n def truncate(self, size: Optional[int] = ...) -> int: ...\n @abstractmethod\n def writable(self) -> bool: ...\n @abstractmethod\n def write(self, s: AnyStr) -> int: ...\n @abstractmethod\n def writelines(self, lines: Iterable[AnyStr]) -> None: ...\n @abstractmethod\n def __next__(self) -> AnyStr: ...\n @abstractmethod\n def __iter__(self) -> Iterator[AnyStr]: ...\n @abstractmethod\n def __enter__(self) -> IO[AnyStr]: ...\n @abstractmethod\n def __exit__(\n self, t: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]\n ) -> Optional[bool]: ...\n\nclass BinaryIO(IO[bytes]):\n @abstractmethod\n def __enter__(self) -> BinaryIO: ...\n\nclass TextIO(IO[str]):\n # TODO use abstractproperty\n @property\n def buffer(self) -> BinaryIO: ...\n @property\n def encoding(self) -> str: ...\n @property\n def errors(self) -> Optional[str]: ...\n @property\n def line_buffering(self) -> int: ... # int on PyPy, bool on CPython\n @property\n def newlines(self) -> Any: ... # None, str or tuple\n @abstractmethod\n def __enter__(self) -> TextIO: ...\n\nclass ByteString(Sequence[int], metaclass=ABCMeta): ...\n\nclass Match(Generic[AnyStr]):\n pos: int\n endpos: int\n lastindex: Optional[int]\n lastgroup: Optional[AnyStr]\n string: AnyStr\n\n # The regular expression object whose match() or search() method produced\n # this match instance.\n re: Pattern[AnyStr]\n def expand(self, template: AnyStr) -> AnyStr: ...\n # TODO: The return for a group may be None, except if __group is 0 or not given.\n @overload\n def group(self, __group: Union[str, int] = ...) -> AnyStr: ...\n @overload\n def group(self, __group1: Union[str, int], __group2: Union[str, int], *groups: Union[str, int]) -> Tuple[AnyStr, ...]: ...\n def groups(self, default: AnyStr = ...) -> Sequence[AnyStr]: ...\n def groupdict(self, default: AnyStr = ...) -> dict[str, AnyStr]: ...\n def start(self, __group: Union[int, str] = ...) -> int: ...\n def end(self, __group: Union[int, str] = ...) -> int: ...\n def span(self, __group: Union[int, str] = ...) -> Tuple[int, int]: ...\n @property\n def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented\n def __getitem__(self, g: Union[int, str]) -> AnyStr: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass Pattern(Generic[AnyStr]):\n flags: int\n groupindex: Mapping[str, int]\n groups: int\n pattern: AnyStr\n def search(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ...\n def match(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ...\n # New in Python 3.4\n def fullmatch(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Optional[Match[AnyStr]]: ...\n def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ...\n def findall(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> list[Any]: ...\n def finditer(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Iterator[Match[AnyStr]]: ...\n @overload\n def sub(self, repl: AnyStr, string: AnyStr, count: int = ...) -> AnyStr: ...\n @overload\n def sub(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> AnyStr: ...\n @overload\n def subn(self, repl: AnyStr, string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ...\n @overload\n def subn(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\n# Functions\n\nif sys.version_info >= (3, 7):\n _get_type_hints_obj_allowed_types = Union[\n object,\n Callable[..., Any],\n FunctionType,\n BuiltinFunctionType,\n MethodType,\n ModuleType,\n WrapperDescriptorType,\n MethodWrapperType,\n MethodDescriptorType,\n ]\nelse:\n _get_type_hints_obj_allowed_types = Union[\n object,\n Callable[..., Any],\n FunctionType,\n BuiltinFunctionType,\n MethodType,\n ModuleType,\n ]\n\nif sys.version_info >= (3, 9):\n def get_type_hints(\n obj: _get_type_hints_obj_allowed_types,\n globalns: Optional[Dict[str, Any]] = ...,\n localns: Optional[Dict[str, Any]] = ...,\n include_extras: bool = ...,\n ) -> Dict[str, Any]: ...\n\nelse:\n def get_type_hints(\n obj: _get_type_hints_obj_allowed_types,\n globalns: Optional[Dict[str, Any]] = ...,\n localns: Optional[Dict[str, Any]] = ...,\n ) -> Dict[str, Any]: ...\n\nif sys.version_info >= (3, 8):\n def get_origin(tp: Any) -> Optional[Any]: ...\n def get_args(tp: Any) -> Tuple[Any, ...]: ...\n\n@overload\ndef cast(typ: Type[_T], val: Any) -> _T: ...\n@overload\ndef cast(typ: str, val: Any) -> Any: ...\n@overload\ndef cast(typ: object, val: Any) -> Any: ...\n\n# Type constructors\n\n# NamedTuple is special-cased in the type checker\nclass NamedTuple(Tuple[Any, ...]):\n _field_types: collections.OrderedDict[str, Type[Any]]\n _field_defaults: Dict[str, Any] = ...\n _fields: Tuple[str, ...]\n _source: str\n def __init__(self, typename: str, fields: Iterable[Tuple[str, Any]] = ..., **kwargs: Any) -> None: ...\n @classmethod\n def _make(cls: Type[_T], iterable: Iterable[Any]) -> _T: ...\n if sys.version_info >= (3, 8):\n def _asdict(self) -> Dict[str, Any]: ...\n else:\n def _asdict(self) -> collections.OrderedDict[str, Any]: ...\n def _replace(self: _T, **kwargs: Any) -> _T: ...\n\n# Internal mypy fallback type for all typed dicts (does not exist at runtime)\nclass _TypedDict(Mapping[str, object], metaclass=ABCMeta):\n def copy(self: _T) -> _T: ...\n # Using NoReturn so that only calls using mypy plugin hook that specialize the signature\n # can go through.\n def setdefault(self, k: NoReturn, default: object) -> object: ...\n # Mypy plugin hook for 'pop' expects that 'default' has a type variable type.\n def pop(self, k: NoReturn, default: _T = ...) -> object: ...\n def update(self: _T, __m: _T) -> None: ...\n def __delitem__(self, k: NoReturn) -> None: ...\n def items(self) -> ItemsView[str, object]: ...\n def keys(self) -> KeysView[str]: ...\n def values(self) -> ValuesView[object]: ...\n\ndef NewType(name: str, tp: Type[_T]) -> Type[_T]: ...\n\n# This itself is only available during type checking\ndef type_check_only(func_or_cls: _C) -> _C: ...\n\nif sys.version_info >= (3, 7):\n from types import CodeType\n class ForwardRef:\n __forward_arg__: str\n __forward_code__: CodeType\n __forward_evaluated__: bool\n __forward_value__: Optional[Any]\n __forward_is_argument__: bool\n def __init__(self, arg: str, is_argument: bool = ...) -> None: ...\n def _evaluate(self, globalns: Optional[Dict[str, Any]], localns: Optional[Dict[str, Any]]) -> Optional[Any]: ...\n def __eq__(self, other: Any) -> bool: ...\n def __hash__(self) -> int: ...\n def __repr__(self) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\typing.pyi | typing.pyi | Other | 25,040 | 0.95 | 0.438137 | 0.081833 | awesome-app | 878 | 2024-01-07T20:03:41.435853 | GPL-3.0 | false | 658c140b2fbc4dd88fbef6062d6d0562 |
import sys\nfrom types import TracebackType\nfrom typing import Any, Optional, Tuple, Type, Union\n\n_KeyType = Union[HKEYType, int]\n\ndef CloseKey(__hkey: _KeyType) -> None: ...\ndef ConnectRegistry(__computer_name: Optional[str], __key: _KeyType) -> HKEYType: ...\ndef CreateKey(__key: _KeyType, __sub_key: Optional[str]) -> HKEYType: ...\ndef CreateKeyEx(key: _KeyType, sub_key: Optional[str], reserved: int = ..., access: int = ...) -> HKEYType: ...\ndef DeleteKey(__key: _KeyType, __sub_key: str) -> None: ...\ndef DeleteKeyEx(key: _KeyType, sub_key: str, access: int = ..., reserved: int = ...) -> None: ...\ndef DeleteValue(__key: _KeyType, __value: str) -> None: ...\ndef EnumKey(__key: _KeyType, __index: int) -> str: ...\ndef EnumValue(__key: _KeyType, __index: int) -> Tuple[str, Any, int]: ...\ndef ExpandEnvironmentStrings(__str: str) -> str: ...\ndef FlushKey(__key: _KeyType) -> None: ...\ndef LoadKey(__key: _KeyType, __sub_key: str, __file_name: str) -> None: ...\ndef OpenKey(key: _KeyType, sub_key: str, reserved: int = ..., access: int = ...) -> HKEYType: ...\ndef OpenKeyEx(key: _KeyType, sub_key: str, reserved: int = ..., access: int = ...) -> HKEYType: ...\ndef QueryInfoKey(__key: _KeyType) -> Tuple[int, int, int]: ...\ndef QueryValue(__key: _KeyType, __sub_key: Optional[str]) -> str: ...\ndef QueryValueEx(__key: _KeyType, __name: str) -> Tuple[Any, int]: ...\ndef SaveKey(__key: _KeyType, __file_name: str) -> None: ...\ndef SetValue(__key: _KeyType, __sub_key: str, __type: int, __value: str) -> None: ...\ndef SetValueEx(\n __key: _KeyType, __value_name: Optional[str], __reserved: Any, __type: int, __value: Union[str, int]\n) -> None: ... # reserved is ignored\ndef DisableReflectionKey(__key: _KeyType) -> None: ...\ndef EnableReflectionKey(__key: _KeyType) -> None: ...\ndef QueryReflectionKey(__key: _KeyType) -> bool: ...\n\nHKEY_CLASSES_ROOT: int\nHKEY_CURRENT_USER: int\nHKEY_LOCAL_MACHINE: int\nHKEY_USERS: int\nHKEY_PERFORMANCE_DATA: int\nHKEY_CURRENT_CONFIG: int\nHKEY_DYN_DATA: int\n\nKEY_ALL_ACCESS: int\nKEY_WRITE: int\nKEY_READ: int\nKEY_EXECUTE: int\nKEY_QUERY_VALUE: int\nKEY_SET_VALUE: int\nKEY_CREATE_SUB_KEY: int\nKEY_ENUMERATE_SUB_KEYS: int\nKEY_NOTIFY: int\nKEY_CREATE_LINK: int\n\nKEY_WOW64_64KEY: int\nKEY_WOW64_32KEY: int\n\nREG_BINARY: int\nREG_DWORD: int\nREG_DWORD_LITTLE_ENDIAN: int\nREG_DWORD_BIG_ENDIAN: int\nREG_EXPAND_SZ: int\nREG_LINK: int\nREG_MULTI_SZ: int\nREG_NONE: int\nif sys.version_info >= (3, 6):\n REG_QWORD: int\n REG_QWORD_LITTLE_ENDIAN: int\nREG_RESOURCE_LIST: int\nREG_FULL_RESOURCE_DESCRIPTOR: int\nREG_RESOURCE_REQUIREMENTS_LIST: int\nREG_SZ: int\n\nREG_CREATED_NEW_KEY: int # undocumented\nREG_LEGAL_CHANGE_FILTER: int # undocumented\nREG_LEGAL_OPTION: int # undocumented\nREG_NOTIFY_CHANGE_ATTRIBUTES: int # undocumented\nREG_NOTIFY_CHANGE_LAST_SET: int # undocumented\nREG_NOTIFY_CHANGE_NAME: int # undocumented\nREG_NOTIFY_CHANGE_SECURITY: int # undocumented\nREG_NO_LAZY_FLUSH: int # undocumented\nREG_OPENED_EXISTING_KEY: int # undocumented\nREG_OPTION_BACKUP_RESTORE: int # undocumented\nREG_OPTION_CREATE_LINK: int # undocumented\nREG_OPTION_NON_VOLATILE: int # undocumented\nREG_OPTION_OPEN_LINK: int # undocumented\nREG_OPTION_RESERVED: int # undocumented\nREG_OPTION_VOLATILE: int # undocumented\nREG_REFRESH_HIVE: int # undocumented\nREG_WHOLE_HIVE_VOLATILE: int # undocumented\n\nerror = OSError\n\n# Though this class has a __name__ of PyHKEY, it's exposed as HKEYType for some reason\nclass HKEYType:\n def __bool__(self) -> bool: ...\n def __int__(self) -> int: ...\n def __enter__(self) -> HKEYType: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n def Close(self) -> None: ...\n def Detach(self) -> int: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\winreg.pyi | winreg.pyi | Other | 3,779 | 0.95 | 0.33 | 0.010989 | react-lib | 722 | 2025-02-15T06:28:27.036546 | GPL-3.0 | false | 3ee6e27f6dbef56f922d0f52a3187f55 |
from typing import Any\n\nclass Null: ...\nclass Str: ...\n\nclass Xxo:\n def demo(self) -> None: ...\n\nclass error: ...\n\ndef foo(__i: int, __j: int) -> Any: ...\ndef new() -> Xxo: ...\ndef roj(__b: Any) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\xxlimited.pyi | xxlimited.pyi | Other | 211 | 0.85 | 0.615385 | 0 | python-kit | 893 | 2024-12-04T01:03:45.967496 | GPL-3.0 | false | 1aa63bf6dbe3297c1fb221d819921c3b |
import sys\nfrom pathlib import Path\nfrom typing import BinaryIO, Callable, Optional, Union\n\n_Path = Union[str, Path, BinaryIO]\n\nclass ZipAppError(ValueError): ...\n\nif sys.version_info >= (3, 7):\n def create_archive(\n source: _Path,\n target: Optional[_Path] = ...,\n interpreter: Optional[str] = ...,\n main: Optional[str] = ...,\n filter: Optional[Callable[[Path], bool]] = ...,\n compressed: bool = ...,\n ) -> None: ...\n\nelse:\n def create_archive(\n source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...\n ) -> None: ...\n\ndef get_interpreter(archive: _Path) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\zipapp.pyi | zipapp.pyi | Other | 678 | 0.85 | 0.208333 | 0 | awesome-app | 504 | 2024-04-23T18:58:28.127084 | BSD-3-Clause | false | f94de2f6eb5e640ed2cd84cb6daeec93 |
import sys\nimport typing\nfrom typing import Any, ClassVar, Optional\n\nPyCF_ONLY_AST: int\nif sys.version_info >= (3, 8):\n PyCF_TYPE_COMMENTS: int\n PyCF_ALLOW_TOP_LEVEL_AWAIT: int\n\n_identifier = str\n\nclass AST:\n _attributes: ClassVar[typing.Tuple[str, ...]]\n _fields: ClassVar[typing.Tuple[str, ...]]\n def __init__(self, *args: Any, **kwargs: Any) -> None: ...\n # TODO: Not all nodes have all of the following attributes\n lineno: int\n col_offset: int\n if sys.version_info >= (3, 8):\n end_lineno: Optional[int]\n end_col_offset: Optional[int]\n type_comment: Optional[str]\n\nclass mod(AST): ...\n\nif sys.version_info >= (3, 8):\n class type_ignore(AST): ...\n class TypeIgnore(type_ignore): ...\n class FunctionType(mod):\n argtypes: typing.List[expr]\n returns: expr\n\nclass Module(mod):\n body: typing.List[stmt]\n if sys.version_info >= (3, 8):\n type_ignores: typing.List[TypeIgnore]\n\nclass Interactive(mod):\n body: typing.List[stmt]\n\nclass Expression(mod):\n body: expr\n\nclass stmt(AST): ...\n\nclass FunctionDef(stmt):\n name: _identifier\n args: arguments\n body: typing.List[stmt]\n decorator_list: typing.List[expr]\n returns: Optional[expr]\n\nclass AsyncFunctionDef(stmt):\n name: _identifier\n args: arguments\n body: typing.List[stmt]\n decorator_list: typing.List[expr]\n returns: Optional[expr]\n\nclass ClassDef(stmt):\n name: _identifier\n bases: typing.List[expr]\n keywords: typing.List[keyword]\n body: typing.List[stmt]\n decorator_list: typing.List[expr]\n\nclass Return(stmt):\n value: Optional[expr]\n\nclass Delete(stmt):\n targets: typing.List[expr]\n\nclass Assign(stmt):\n targets: typing.List[expr]\n value: expr\n\nclass AugAssign(stmt):\n target: expr\n op: operator\n value: expr\n\nclass AnnAssign(stmt):\n target: expr\n annotation: expr\n value: Optional[expr]\n simple: int\n\nclass For(stmt):\n target: expr\n iter: expr\n body: typing.List[stmt]\n orelse: typing.List[stmt]\n\nclass AsyncFor(stmt):\n target: expr\n iter: expr\n body: typing.List[stmt]\n orelse: typing.List[stmt]\n\nclass While(stmt):\n test: expr\n body: typing.List[stmt]\n orelse: typing.List[stmt]\n\nclass If(stmt):\n test: expr\n body: typing.List[stmt]\n orelse: typing.List[stmt]\n\nclass With(stmt):\n items: typing.List[withitem]\n body: typing.List[stmt]\n\nclass AsyncWith(stmt):\n items: typing.List[withitem]\n body: typing.List[stmt]\n\nclass Raise(stmt):\n exc: Optional[expr]\n cause: Optional[expr]\n\nclass Try(stmt):\n body: typing.List[stmt]\n handlers: typing.List[ExceptHandler]\n orelse: typing.List[stmt]\n finalbody: typing.List[stmt]\n\nclass Assert(stmt):\n test: expr\n msg: Optional[expr]\n\nclass Import(stmt):\n names: typing.List[alias]\n\nclass ImportFrom(stmt):\n module: Optional[_identifier]\n names: typing.List[alias]\n level: int\n\nclass Global(stmt):\n names: typing.List[_identifier]\n\nclass Nonlocal(stmt):\n names: typing.List[_identifier]\n\nclass Expr(stmt):\n value: expr\n\nclass Pass(stmt): ...\nclass Break(stmt): ...\nclass Continue(stmt): ...\nclass expr(AST): ...\n\nclass BoolOp(expr):\n op: boolop\n values: typing.List[expr]\n\nclass BinOp(expr):\n left: expr\n op: operator\n right: expr\n\nclass UnaryOp(expr):\n op: unaryop\n operand: expr\n\nclass Lambda(expr):\n args: arguments\n body: expr\n\nclass IfExp(expr):\n test: expr\n body: expr\n orelse: expr\n\nclass Dict(expr):\n keys: typing.List[Optional[expr]]\n values: typing.List[expr]\n\nclass Set(expr):\n elts: typing.List[expr]\n\nclass ListComp(expr):\n elt: expr\n generators: typing.List[comprehension]\n\nclass SetComp(expr):\n elt: expr\n generators: typing.List[comprehension]\n\nclass DictComp(expr):\n key: expr\n value: expr\n generators: typing.List[comprehension]\n\nclass GeneratorExp(expr):\n elt: expr\n generators: typing.List[comprehension]\n\nclass Await(expr):\n value: expr\n\nclass Yield(expr):\n value: Optional[expr]\n\nclass YieldFrom(expr):\n value: expr\n\nclass Compare(expr):\n left: expr\n ops: typing.List[cmpop]\n comparators: typing.List[expr]\n\nclass Call(expr):\n func: expr\n args: typing.List[expr]\n keywords: typing.List[keyword]\n\nclass FormattedValue(expr):\n value: expr\n conversion: Optional[int]\n format_spec: Optional[expr]\n\nclass JoinedStr(expr):\n values: typing.List[expr]\n\nif sys.version_info < (3, 8):\n class Num(expr): # Deprecated in 3.8; use Constant\n n: complex\n class Str(expr): # Deprecated in 3.8; use Constant\n s: str\n class Bytes(expr): # Deprecated in 3.8; use Constant\n s: bytes\n class NameConstant(expr): # Deprecated in 3.8; use Constant\n value: Any\n class Ellipsis(expr): ... # Deprecated in 3.8; use Constant\n\nclass Constant(expr):\n value: Any # None, str, bytes, bool, int, float, complex, Ellipsis\n kind: Optional[str]\n # Aliases for value, for backwards compatibility\n s: Any\n n: complex\n\nif sys.version_info >= (3, 8):\n class NamedExpr(expr):\n target: expr\n value: expr\n\nclass Attribute(expr):\n value: expr\n attr: _identifier\n ctx: expr_context\n\nif sys.version_info >= (3, 9):\n _SliceT = expr\nelse:\n class slice(AST): ...\n _SliceT = slice\n\nclass Slice(_SliceT):\n lower: Optional[expr]\n upper: Optional[expr]\n step: Optional[expr]\n\nif sys.version_info < (3, 9):\n class ExtSlice(slice):\n dims: typing.List[slice]\n class Index(slice):\n value: expr\n\nclass Subscript(expr):\n value: expr\n slice: _SliceT\n ctx: expr_context\n\nclass Starred(expr):\n value: expr\n ctx: expr_context\n\nclass Name(expr):\n id: _identifier\n ctx: expr_context\n\nclass List(expr):\n elts: typing.List[expr]\n ctx: expr_context\n\nclass Tuple(expr):\n elts: typing.List[expr]\n ctx: expr_context\n\nclass expr_context(AST): ...\n\nif sys.version_info < (3, 9):\n class AugLoad(expr_context): ...\n class AugStore(expr_context): ...\n class Param(expr_context): ...\n class Suite(mod):\n body: typing.List[stmt]\n\nclass Del(expr_context): ...\nclass Load(expr_context): ...\nclass Store(expr_context): ...\nclass boolop(AST): ...\nclass And(boolop): ...\nclass Or(boolop): ...\nclass operator(AST): ...\nclass Add(operator): ...\nclass BitAnd(operator): ...\nclass BitOr(operator): ...\nclass BitXor(operator): ...\nclass Div(operator): ...\nclass FloorDiv(operator): ...\nclass LShift(operator): ...\nclass Mod(operator): ...\nclass Mult(operator): ...\nclass MatMult(operator): ...\nclass Pow(operator): ...\nclass RShift(operator): ...\nclass Sub(operator): ...\nclass unaryop(AST): ...\nclass Invert(unaryop): ...\nclass Not(unaryop): ...\nclass UAdd(unaryop): ...\nclass USub(unaryop): ...\nclass cmpop(AST): ...\nclass Eq(cmpop): ...\nclass Gt(cmpop): ...\nclass GtE(cmpop): ...\nclass In(cmpop): ...\nclass Is(cmpop): ...\nclass IsNot(cmpop): ...\nclass Lt(cmpop): ...\nclass LtE(cmpop): ...\nclass NotEq(cmpop): ...\nclass NotIn(cmpop): ...\n\nclass comprehension(AST):\n target: expr\n iter: expr\n ifs: typing.List[expr]\n is_async: int\n\nclass excepthandler(AST): ...\n\nclass ExceptHandler(excepthandler):\n type: Optional[expr]\n name: Optional[_identifier]\n body: typing.List[stmt]\n\nclass arguments(AST):\n if sys.version_info >= (3, 8):\n posonlyargs: typing.List[arg]\n args: typing.List[arg]\n vararg: Optional[arg]\n kwonlyargs: typing.List[arg]\n kw_defaults: typing.List[Optional[expr]]\n kwarg: Optional[arg]\n defaults: typing.List[expr]\n\nclass arg(AST):\n arg: _identifier\n annotation: Optional[expr]\n\nclass keyword(AST):\n arg: Optional[_identifier]\n value: expr\n\nclass alias(AST):\n name: _identifier\n asname: Optional[_identifier]\n\nclass withitem(AST):\n context_expr: expr\n optional_vars: Optional[expr]\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_ast.pyi | _ast.pyi | Other | 7,851 | 0.95 | 0.351064 | 0.006601 | python-kit | 487 | 2025-02-15T12:04:03.804238 | MIT | false | 965fa4cff7ac61e41ccee98b933de6e8 |
def getpreferredencoding(do_setlocale: bool = ...) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_bootlocale.pyi | _bootlocale.pyi | Other | 63 | 0.65 | 1 | 0 | react-lib | 106 | 2023-10-29T22:12:08.639493 | BSD-3-Clause | false | 2e49873b2546c9f99bdac18a662c4833 |
from typing import Dict, Tuple\n\nIMPORT_MAPPING: Dict[str, str]\nNAME_MAPPING: Dict[Tuple[str, str], Tuple[str, str]]\nPYTHON2_EXCEPTIONS: Tuple[str, ...]\nMULTIPROCESSING_EXCEPTIONS: Tuple[str, ...]\nREVERSE_IMPORT_MAPPING: Dict[str, str]\nREVERSE_NAME_MAPPING: Dict[Tuple[str, str], Tuple[str, str]]\nPYTHON3_OSERROR_EXCEPTIONS: Tuple[str, ...]\nPYTHON3_IMPORTERROR_EXCEPTIONS: Tuple[str, ...]\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_compat_pickle.pyi | _compat_pickle.pyi | Other | 388 | 0.85 | 0 | 0 | node-utils | 154 | 2023-08-15T18:03:14.796893 | Apache-2.0 | false | f17772c76d97dea1a04edcb42023cfa3 |
from _typeshed import WriteableBuffer\nfrom io import BufferedIOBase, RawIOBase\nfrom typing import Any, Callable, Tuple, Type, Union\n\nBUFFER_SIZE: Any\n\nclass BaseStream(BufferedIOBase): ...\n\nclass DecompressReader(RawIOBase):\n def __init__(\n self,\n fp: RawIOBase,\n decomp_factory: Callable[..., object],\n trailing_error: Union[Type[Exception], Tuple[Type[Exception], ...]] = ...,\n **decomp_args: Any,\n ) -> None: ...\n def readable(self) -> bool: ...\n def close(self) -> None: ...\n def seekable(self) -> bool: ...\n def readinto(self, b: WriteableBuffer) -> int: ...\n def read(self, size: int = ...) -> bytes: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def tell(self) -> int: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_compression.pyi | _compression.pyi | Other | 761 | 0.85 | 0.434783 | 0.05 | awesome-app | 927 | 2023-12-24T21:01:24.568228 | Apache-2.0 | false | a043dbc425dae7736507637686684159 |
from decimal import *\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_decimal.pyi | _decimal.pyi | Other | 22 | 0.65 | 0 | 0 | react-lib | 252 | 2024-01-12T19:08:05.968093 | Apache-2.0 | false | 7ee242794a1cb0aed075b20d3d11a8b1 |
from typing import Any, Callable, Dict, NoReturn, Optional, Tuple\n\nTIMEOUT_MAX: int\nerror = RuntimeError\n\ndef start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: Dict[str, Any] = ...) -> None: ...\ndef exit() -> NoReturn: ...\ndef get_ident() -> int: ...\ndef allocate_lock() -> LockType: ...\ndef stack_size(size: Optional[int] = ...) -> int: ...\n\nclass LockType(object):\n locked_status: bool\n def __init__(self) -> None: ...\n def acquire(self, waitflag: Optional[bool] = ..., timeout: int = ...) -> bool: ...\n def __enter__(self, waitflag: Optional[bool] = ..., timeout: int = ...) -> bool: ...\n def __exit__(self, typ: Any, val: Any, tb: Any) -> None: ...\n def release(self) -> bool: ...\n def locked(self) -> bool: ...\n\ndef interrupt_main() -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_dummy_thread.pyi | _dummy_thread.pyi | Other | 800 | 0.85 | 0.666667 | 0 | awesome-app | 884 | 2024-08-05T14:53:34.642771 | Apache-2.0 | false | fc17baa4b992ade730abe0cd99e7f4b7 |
import types\nfrom importlib.machinery import ModuleSpec\nfrom typing import Any, List\n\ndef create_builtin(__spec: ModuleSpec) -> types.ModuleType: ...\ndef create_dynamic(__spec: ModuleSpec, __file: Any = ...) -> None: ...\ndef acquire_lock() -> None: ...\ndef exec_builtin(__mod: types.ModuleType) -> int: ...\ndef exec_dynamic(__mod: types.ModuleType) -> int: ...\ndef extension_suffixes() -> List[str]: ...\ndef get_frozen_object(__name: str) -> types.CodeType: ...\ndef init_frozen(__name: str) -> types.ModuleType: ...\ndef is_builtin(__name: str) -> int: ...\ndef is_frozen(__name: str) -> bool: ...\ndef is_frozen_package(__name: str) -> bool: ...\ndef lock_held() -> bool: ...\ndef release_lock() -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_imp.pyi | _imp.pyi | Other | 705 | 0.85 | 0.764706 | 0 | python-kit | 952 | 2025-01-28T20:32:10.623065 | BSD-3-Clause | false | a84613816cb21042356391313376c502 |
# ModuleSpec, ModuleType, Loader are part of a dependency cycle.\n# They are officially defined/exported in other places:\n#\n# - ModuleType in types\n# - Loader in importlib.abc\n# - ModuleSpec in importlib.machinery (3.4 and later only)\n#\n# _Loader is the PEP-451-defined interface for a loader type/object.\n\nfrom abc import ABCMeta\nfrom typing import Any, Dict, List, Optional, Protocol\n\nclass _Loader(Protocol):\n def load_module(self, fullname: str) -> ModuleType: ...\n\nclass ModuleSpec:\n def __init__(\n self,\n name: str,\n loader: Optional[Loader],\n *,\n origin: Optional[str] = ...,\n loader_state: Any = ...,\n is_package: Optional[bool] = ...,\n ) -> None: ...\n name: str\n loader: Optional[_Loader]\n origin: Optional[str]\n submodule_search_locations: Optional[List[str]]\n loader_state: Any\n cached: Optional[str]\n parent: Optional[str]\n has_location: bool\n\nclass ModuleType:\n __name__: str\n __file__: str\n __dict__: Dict[str, Any]\n __loader__: Optional[_Loader]\n __package__: Optional[str]\n __spec__: Optional[ModuleSpec]\n def __init__(self, name: str, doc: Optional[str] = ...) -> None: ...\n\nclass Loader(metaclass=ABCMeta):\n def load_module(self, fullname: str) -> ModuleType: ...\n def module_repr(self, module: ModuleType) -> str: ...\n def create_module(self, spec: ModuleSpec) -> Optional[ModuleType]: ...\n # Not defined on the actual class for backwards-compatibility reasons,\n # but expected in new code.\n def exec_module(self, module: ModuleType) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_importlib_modulespec.pyi | _importlib_modulespec.pyi | Other | 1,586 | 0.95 | 0.28 | 0.244444 | react-lib | 761 | 2024-01-10T00:41:37.424244 | MIT | false | c998035b2906019358aeb71c9f2aba96 |
from typing import Any, Callable, Dict, Optional, Tuple\n\nclass make_encoder:\n sort_keys: Any\n skipkeys: Any\n key_separator: Any\n indent: Any\n markers: Any\n default: Any\n encoder: Any\n item_separator: Any\n def __init__(\n self,\n markers: Optional[Dict[int, Any]],\n default: Callable[[Any], Any],\n encoder: Callable[[str], str],\n indent: Optional[int],\n key_separator: str,\n item_separator: str,\n sort_keys: bool,\n skipkeys: bool,\n allow_nan: bool,\n ) -> None: ...\n def __call__(self, obj: object, _current_indent_level: int) -> Any: ...\n\nclass make_scanner:\n object_hook: Any\n object_pairs_hook: Any\n parse_int: Any\n parse_constant: Any\n parse_float: Any\n strict: bool\n # TODO: 'context' needs the attrs above (ducktype), but not __call__.\n def __init__(self, context: make_scanner) -> None: ...\n def __call__(self, string: str, index: int) -> Tuple[Any, int]: ...\n\ndef encode_basestring_ascii(s: str) -> str: ...\ndef scanstring(string: str, end: int, strict: bool = ...) -> Tuple[str, int]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_json.pyi | _json.pyi | Other | 1,124 | 0.95 | 0.210526 | 0.028571 | python-kit | 206 | 2024-04-10T20:09:44.291378 | Apache-2.0 | false | a2696599f7982531616e6d33892c44c2 |
from typing import Tuple\n\nclass ParserBase:\n def __init__(self) -> None: ...\n def error(self, message: str) -> None: ...\n def reset(self) -> None: ...\n def getpos(self) -> Tuple[int, int]: ...\n def unknown_decl(self, data: str) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_markupbase.pyi | _markupbase.pyi | Other | 256 | 0.85 | 0.75 | 0 | python-kit | 596 | 2023-08-17T23:13:25.001173 | Apache-2.0 | false | f04a7280edf27f12780e9c57ef5dda5d |
# In reality the import is the other way around, but this way we can keep the operator stub in 2and3\nfrom operator import (\n abs as abs,\n add as add,\n and_ as and_,\n attrgetter as attrgetter,\n concat as concat,\n contains as contains,\n countOf as countOf,\n delitem as delitem,\n eq as eq,\n floordiv as floordiv,\n ge as ge,\n getitem as getitem,\n gt as gt,\n iadd as iadd,\n iand as iand,\n iconcat as iconcat,\n ifloordiv as ifloordiv,\n ilshift as ilshift,\n imatmul as imatmul,\n imod as imod,\n imul as imul,\n index as index,\n indexOf as indexOf,\n inv as inv,\n invert as invert,\n ior as ior,\n ipow as ipow,\n irshift as irshift,\n is_ as is_,\n is_not as is_not,\n isub as isub,\n itemgetter as itemgetter,\n itruediv as itruediv,\n ixor as ixor,\n le as le,\n length_hint as length_hint,\n lshift as lshift,\n lt as lt,\n matmul as matmul,\n methodcaller as methodcaller,\n mod as mod,\n mul as mul,\n ne as ne,\n neg as neg,\n not_ as not_,\n or_ as or_,\n pos as pos,\n pow as pow,\n rshift as rshift,\n setitem as setitem,\n sub as sub,\n truediv as truediv,\n truth as truth,\n xor as xor,\n)\nfrom typing import AnyStr\n\ndef _compare_digest(__a: AnyStr, __b: AnyStr) -> bool: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_operator.pyi | _operator.pyi | Other | 1,310 | 0.95 | 0.016667 | 0.016949 | vue-tools | 898 | 2023-11-27T23:21:05.030853 | Apache-2.0 | false | 393764e81f818c31b8312ef920ef720a |
from typing import Dict, Iterable, List, Optional, Sequence, Tuple, TypeVar, Union\n\n_T = TypeVar("_T")\n_K = TypeVar("_K")\n_V = TypeVar("_V")\n\n__all__: List[str]\n\n_UNIVERSAL_CONFIG_VARS: Tuple[str, ...] # undocumented\n_COMPILER_CONFIG_VARS: Tuple[str, ...] # undocumented\n_INITPRE: str # undocumented\n\ndef _find_executable(executable: str, path: Optional[str] = ...) -> Optional[str]: ... # undocumented\ndef _read_output(commandstring: str) -> Optional[str]: ... # undocumented\ndef _find_build_tool(toolname: str) -> str: ... # undocumented\n\n_SYSTEM_VERSION: Optional[str] # undocumented\n\ndef _get_system_version() -> str: ... # undocumented\ndef _remove_original_values(_config_vars: Dict[str, str]) -> None: ... # undocumented\ndef _save_modified_value(_config_vars: Dict[str, str], cv: str, newvalue: str) -> None: ... # undocumented\ndef _supports_universal_builds() -> bool: ... # undocumented\ndef _find_appropriate_compiler(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented\ndef _remove_universal_flags(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented\ndef _remove_unsupported_archs(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented\ndef _override_all_archs(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented\ndef _check_for_unavailable_sdk(_config_vars: Dict[str, str]) -> Dict[str, str]: ... # undocumented\ndef compiler_fixup(compiler_so: Iterable[str], cc_args: Sequence[str]) -> List[str]: ...\ndef customize_config_vars(_config_vars: Dict[str, str]) -> Dict[str, str]: ...\ndef customize_compiler(_config_vars: Dict[str, str]) -> Dict[str, str]: ...\ndef get_platform_osx(\n _config_vars: Dict[str, str], osname: _T, release: _K, machine: _V\n) -> Tuple[Union[str, _T], Union[str, _K], Union[str, _V]]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_osx_support.pyi | _osx_support.pyi | Other | 1,796 | 0.95 | 0.484848 | 0 | python-kit | 762 | 2024-04-25T11:40:34.215082 | MIT | false | a25220e4c14c8d194ee60d6bba7a81bd |
# NOTE: These are incomplete!\n\nfrom typing import Callable, Sequence, Tuple\n\ndef cloexec_pipe() -> Tuple[int, int]: ...\ndef fork_exec(\n args: Sequence[str],\n executable_list: Sequence[bytes],\n close_fds: bool,\n fds_to_keep: Sequence[int],\n cwd: str,\n env_list: Sequence[bytes],\n p2cread: int,\n p2cwrite: int,\n c2pred: int,\n c2pwrite: int,\n errread: int,\n errwrite: int,\n errpipe_read: int,\n errpipe_write: int,\n restore_signals: int,\n start_new_session: int,\n preexec_fn: Callable[[], None],\n) -> int: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_posixsubprocess.pyi | _posixsubprocess.pyi | Other | 557 | 0.95 | 0.083333 | 0.045455 | node-utils | 663 | 2025-05-11T12:13:15.720944 | MIT | false | 932ada6430d329fb57564703c87e12a5 |
# This is a slight lie, the implementations aren't exactly identical\n# However, in all likelihood, the differences are inconsequential\nfrom decimal import *\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_pydecimal.pyi | _pydecimal.pyi | Other | 157 | 0.95 | 0 | 0.666667 | python-kit | 379 | 2023-07-14T17:22:00.369204 | Apache-2.0 | false | 74ebdca5a4e9c3124731b1501864b79f |
from typing import ClassVar, Iterable, NoReturn, Optional\nfrom typing_extensions import Literal\n\nclass Quitter:\n name: str\n eof: str\n def __init__(self, name: str, eof: str) -> None: ...\n def __call__(self, code: Optional[int] = ...) -> NoReturn: ...\n\nclass _Printer:\n MAXLINES: ClassVar[Literal[23]]\n def __init__(self, name: str, data: str, files: Iterable[str] = ..., dirs: Iterable[str] = ...) -> None: ...\n def __call__(self) -> None: ...\n\nclass _Helper:\n def __call__(self, request: object) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_sitebuiltins.pyi | _sitebuiltins.pyi | Other | 534 | 0.85 | 0.5 | 0 | react-lib | 145 | 2025-04-28T10:24:59.111827 | MIT | false | eb5a3f71a6069c8990c83cf3c2761c92 |
SF_APPEND: int\nSF_ARCHIVED: int\nSF_IMMUTABLE: int\nSF_NOUNLINK: int\nSF_SNAPSHOT: int\nST_ATIME: int\nST_CTIME: int\nST_DEV: int\nST_GID: int\nST_INO: int\nST_MODE: int\nST_MTIME: int\nST_NLINK: int\nST_SIZE: int\nST_UID: int\nS_ENFMT: int\nS_IEXEC: int\nS_IFBLK: int\nS_IFCHR: int\nS_IFDIR: int\nS_IFDOOR: int\nS_IFIFO: int\nS_IFLNK: int\nS_IFPORT: int\nS_IFREG: int\nS_IFSOCK: int\nS_IFWHT: int\nS_IREAD: int\nS_IRGRP: int\nS_IROTH: int\nS_IRUSR: int\nS_IRWXG: int\nS_IRWXO: int\nS_IRWXU: int\nS_ISGID: int\nS_ISUID: int\nS_ISVTX: int\nS_IWGRP: int\nS_IWOTH: int\nS_IWRITE: int\nS_IWUSR: int\nS_IXGRP: int\nS_IXOTH: int\nS_IXUSR: int\nUF_APPEND: int\nUF_COMPRESSED: int\nUF_HIDDEN: int\nUF_IMMUTABLE: int\nUF_NODUMP: int\nUF_NOUNLINK: int\nUF_OPAQUE: int\n\ndef S_IMODE(mode: int) -> int: ...\ndef S_IFMT(mode: int) -> int: ...\ndef S_ISBLK(mode: int) -> bool: ...\ndef S_ISCHR(mode: int) -> bool: ...\ndef S_ISDIR(mode: int) -> bool: ...\ndef S_ISDOOR(mode: int) -> bool: ...\ndef S_ISFIFO(mode: int) -> bool: ...\ndef S_ISLNK(mode: int) -> bool: ...\ndef S_ISPORT(mode: int) -> bool: ...\ndef S_ISREG(mode: int) -> bool: ...\ndef S_ISSOCK(mode: int) -> bool: ...\ndef S_ISWHT(mode: int) -> bool: ...\ndef filemode(mode: int) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_stat.pyi | _stat.pyi | Other | 1,179 | 0.85 | 0.2 | 0 | python-kit | 360 | 2023-11-03T06:49:14.688840 | BSD-3-Clause | false | 930b39e1c9d727c7a1ee0b8447c55e8b |
import sys\nfrom threading import Thread\nfrom types import TracebackType\nfrom typing import Any, Callable, Dict, NoReturn, Optional, Tuple, Type\n\nerror = RuntimeError\n\ndef _count() -> int: ...\n\n_dangling: Any\n\nclass LockType:\n def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...\n def release(self) -> None: ...\n def locked(self) -> bool: ...\n def __enter__(self) -> bool: ...\n def __exit__(\n self, type: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]\n ) -> None: ...\n\ndef start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: Dict[str, Any] = ...) -> int: ...\ndef interrupt_main() -> None: ...\ndef exit() -> NoReturn: ...\ndef allocate_lock() -> LockType: ...\ndef get_ident() -> int: ...\ndef stack_size(size: int = ...) -> int: ...\n\nTIMEOUT_MAX: float\n\nif sys.version_info >= (3, 8):\n def get_native_id() -> int: ... # only available on some platforms\n class _ExceptHookArgs(Tuple[Type[BaseException], Optional[BaseException], Optional[TracebackType], Optional[Thread]]):\n @property\n def exc_type(self) -> Type[BaseException]: ...\n @property\n def exc_value(self) -> Optional[BaseException]: ...\n @property\n def exc_traceback(self) -> Optional[TracebackType]: ...\n @property\n def thread(self) -> Optional[Thread]: ...\n _excepthook: Callable[[_ExceptHookArgs], Any]\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_thread.pyi | _thread.pyi | Other | 1,451 | 0.95 | 0.512195 | 0 | awesome-app | 94 | 2025-04-05T03:14:32.137948 | Apache-2.0 | false | 9cb863f87d4a08c210eca21121e61bde |
from typing import Any, Dict, Tuple\nfrom weakref import ReferenceType\n\nlocaldict = Dict[Any, Any]\n\nclass _localimpl:\n key: str\n dicts: Dict[int, Tuple[ReferenceType[Any], localdict]]\n def __init__(self) -> None: ...\n def get_dict(self) -> localdict: ...\n def create_dict(self) -> localdict: ...\n\nclass local:\n def __getattribute__(self, name: str) -> Any: ...\n def __setattr__(self, name: str, value: Any) -> None: ...\n def __delattr__(self, name: str) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_threading_local.pyi | _threading_local.pyi | Other | 490 | 0.85 | 0.5 | 0 | awesome-app | 463 | 2025-06-11T13:03:25.876881 | BSD-3-Clause | false | a466ff9aef3dd0a5a21bbf7760bec02a |
from typing import Any, Tuple, Union\n\n# _tkinter is meant to be only used internally by tkinter, but some tkinter\n# functions e.g. return _tkinter.Tcl_Obj objects. Tcl_Obj represents a Tcl\n# object that hasn't been converted to a string.\n#\n# There are not many ways to get Tcl_Objs from tkinter, and I'm not sure if the\n# only existing ways are supposed to return Tcl_Objs as opposed to returning\n# strings. Here's one of these things that return Tcl_Objs:\n#\n# >>> import tkinter\n# >>> text = tkinter.Text()\n# >>> text.tag_add('foo', '1.0', 'end')\n# >>> text.tag_ranges('foo')\n# (<textindex object: '1.0'>, <textindex object: '2.0'>)\nclass Tcl_Obj:\n string: str # str(tclobj) returns this\n typename: str\n\nclass TclError(Exception): ...\n\n# This class allows running Tcl code. Tkinter uses it internally a lot, and\n# it's often handy to drop a piece of Tcl code into a tkinter program. Example:\n#\n# >>> import tkinter, _tkinter\n# >>> tkapp = tkinter.Tk().tk\n# >>> isinstance(tkapp, _tkinter.TkappType)\n# True\n# >>> tkapp.call('set', 'foo', (1,2,3))\n# (1, 2, 3)\n# >>> tkapp.eval('return $foo')\n# '1 2 3'\n# >>>\n#\n# call args can be pretty much anything. Also, call(some_tuple) is same as call(*some_tuple).\n#\n# eval always returns str because _tkinter_tkapp_eval_impl in _tkinter.c calls\n# Tkapp_UnicodeResult, and it returns a string when it succeeds.\nclass TkappType:\n # Please keep in sync with tkinter.Tk\n def call(self, __command: Union[str, Tuple[Any, ...]], *args: Any) -> Any: ...\n def eval(self, __script: str) -> str: ...\n adderrorinfo: Any\n createcommand: Any\n createfilehandler: Any\n createtimerhandler: Any\n deletecommand: Any\n deletefilehandler: Any\n dooneevent: Any\n evalfile: Any\n exprboolean: Any\n exprdouble: Any\n exprlong: Any\n exprstring: Any\n getboolean: Any\n getdouble: Any\n getint: Any\n getvar: Any\n globalgetvar: Any\n globalsetvar: Any\n globalunsetvar: Any\n interpaddr: Any\n loadtk: Any\n mainloop: Any\n quit: Any\n record: Any\n setvar: Any\n split: Any\n splitlist: Any\n unsetvar: Any\n wantobjects: Any\n willdispatch: Any\n\nALL_EVENTS: int\nFILE_EVENTS: int\nIDLE_EVENTS: int\nTIMER_EVENTS: int\nWINDOW_EVENTS: int\n\nDONT_WAIT: int\nEXCEPTION: int\nREADABLE: int\nWRITABLE: int\n\nTCL_VERSION: str\nTK_VERSION: str\n\n# TODO: figure out what these are (with e.g. help()) and get rid of Any\nTkttType: Any\n_flatten: Any\ncreate: Any\ngetbusywaitinterval: Any\nsetbusywaitinterval: Any\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_tkinter.pyi | _tkinter.pyi | Other | 2,531 | 0.95 | 0.075269 | 0.372093 | python-kit | 962 | 2024-10-18T04:49:20.188336 | GPL-3.0 | false | e4dcc4df899a4c9f77d0cdec5db760b8 |
import sys\nfrom tracemalloc import _FrameTupleT, _TraceTupleT\nfrom typing import Optional, Sequence, Tuple\n\ndef _get_object_traceback(__obj: object) -> Optional[Sequence[_FrameTupleT]]: ...\ndef _get_traces() -> Sequence[_TraceTupleT]: ...\ndef clear_traces() -> None: ...\ndef get_traceback_limit() -> int: ...\ndef get_traced_memory() -> Tuple[int, int]: ...\ndef get_tracemalloc_memory() -> int: ...\ndef is_tracing() -> bool: ...\n\nif sys.version_info >= (3, 9):\n def reset_peak() -> None: ...\n\ndef start(__nframe: int = ...) -> None: ...\ndef stop() -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_tracemalloc.pyi | _tracemalloc.pyi | Other | 563 | 0.85 | 0.647059 | 0 | node-utils | 83 | 2024-12-27T17:03:23.812336 | Apache-2.0 | false | 6cecaf5025e5372c2e8a3c5594dca226 |
import sys\nfrom typing import Any, Dict, NoReturn, Optional, Sequence, Tuple, Union, overload\nfrom typing_extensions import Literal\n\nCREATE_NEW_CONSOLE: int\nCREATE_NEW_PROCESS_GROUP: int\nDUPLICATE_CLOSE_SOURCE: int\nDUPLICATE_SAME_ACCESS: int\nERROR_ALREADY_EXISTS: int\nERROR_BROKEN_PIPE: int\nERROR_IO_PENDING: int\nERROR_MORE_DATA: int\nERROR_NETNAME_DELETED: int\nERROR_NO_DATA: int\nERROR_NO_SYSTEM_RESOURCES: int\nERROR_OPERATION_ABORTED: int\nERROR_PIPE_BUSY: int\nERROR_PIPE_CONNECTED: int\nERROR_SEM_TIMEOUT: int\nFILE_FLAG_FIRST_PIPE_INSTANCE: int\nFILE_FLAG_OVERLAPPED: int\nFILE_GENERIC_READ: int\nFILE_GENERIC_WRITE: int\nGENERIC_READ: int\nGENERIC_WRITE: int\nINFINITE: int\nNMPWAIT_WAIT_FOREVER: int\nNULL: int\nOPEN_EXISTING: int\nPIPE_ACCESS_DUPLEX: int\nPIPE_ACCESS_INBOUND: int\nPIPE_READMODE_MESSAGE: int\nPIPE_TYPE_MESSAGE: int\nPIPE_UNLIMITED_INSTANCES: int\nPIPE_WAIT: int\nPROCESS_ALL_ACCESS: int\nPROCESS_DUP_HANDLE: int\nSTARTF_USESHOWWINDOW: int\nSTARTF_USESTDHANDLES: int\nSTD_ERROR_HANDLE: int\nSTD_INPUT_HANDLE: int\nSTD_OUTPUT_HANDLE: int\nSTILL_ACTIVE: int\nSW_HIDE: int\nWAIT_ABANDONED_0: int\nWAIT_OBJECT_0: int\nWAIT_TIMEOUT: int\n\ndef CloseHandle(__handle: int) -> None: ...\n@overload\ndef ConnectNamedPipe(handle: int, overlapped: Literal[True]) -> Overlapped: ...\n@overload\ndef ConnectNamedPipe(handle: int, overlapped: Literal[False] = ...) -> None: ...\n@overload\ndef ConnectNamedPipe(handle: int, overlapped: bool) -> Optional[Overlapped]: ...\ndef CreateFile(\n __file_name: str,\n __desired_access: int,\n __share_mode: int,\n __security_attributes: int,\n __creation_disposition: int,\n __flags_and_attributes: int,\n __template_file: int,\n) -> int: ...\ndef CreateJunction(__src_path: str, __dst_path: str) -> None: ...\ndef CreateNamedPipe(\n __name: str,\n __open_mode: int,\n __pipe_mode: int,\n __max_instances: int,\n __out_buffer_size: int,\n __in_buffer_size: int,\n __default_timeout: int,\n __security_attributes: int,\n) -> int: ...\ndef CreatePipe(__pipe_attrs: Any, __size: int) -> Tuple[int, int]: ...\ndef CreateProcess(\n __application_name: Optional[str],\n __command_line: Optional[str],\n __proc_attrs: Any,\n __thread_attrs: Any,\n __inherit_handles: bool,\n __creation_flags: int,\n __env_mapping: Dict[str, str],\n __current_directory: Optional[str],\n __startup_info: Any,\n) -> Tuple[int, int, int, int]: ...\ndef DuplicateHandle(\n __source_process_handle: int,\n __source_handle: int,\n __target_process_handle: int,\n __desired_access: int,\n __inherit_handle: bool,\n __options: int = ...,\n) -> int: ...\ndef ExitProcess(__ExitCode: int) -> NoReturn: ...\n\nif sys.version_info >= (3, 7):\n def GetACP() -> int: ...\n def GetFileType(handle: int) -> int: ...\n\ndef GetCurrentProcess() -> int: ...\ndef GetExitCodeProcess(__process: int) -> int: ...\ndef GetLastError() -> int: ...\ndef GetModuleFileName(__module_handle: int) -> str: ...\ndef GetStdHandle(__std_handle: int) -> int: ...\ndef GetVersion() -> int: ...\ndef OpenProcess(__desired_access: int, __inherit_handle: bool, __process_id: int) -> int: ...\ndef PeekNamedPipe(__handle: int, __size: int = ...) -> Union[Tuple[int, int], Tuple[bytes, int, int]]: ...\n@overload\ndef ReadFile(handle: int, size: int, overlapped: Literal[True]) -> Tuple[Overlapped, int]: ...\n@overload\ndef ReadFile(handle: int, size: int, overlapped: Literal[False] = ...) -> Tuple[bytes, int]: ...\n@overload\ndef ReadFile(handle: int, size: int, overlapped: Union[int, bool]) -> Tuple[Any, int]: ...\ndef SetNamedPipeHandleState(\n __named_pipe: int, __mode: Optional[int], __max_collection_count: Optional[int], __collect_data_timeout: Optional[int]\n) -> None: ...\ndef TerminateProcess(__handle: int, __exit_code: int) -> None: ...\ndef WaitForMultipleObjects(__handle_seq: Sequence[int], __wait_flag: bool, __milliseconds: int = ...) -> int: ...\ndef WaitForSingleObject(__handle: int, __milliseconds: int) -> int: ...\ndef WaitNamedPipe(__name: str, __timeout: int) -> None: ...\n@overload\ndef WriteFile(handle: int, buffer: bytes, overlapped: Literal[True]) -> Tuple[Overlapped, int]: ...\n@overload\ndef WriteFile(handle: int, buffer: bytes, overlapped: Literal[False] = ...) -> Tuple[int, int]: ...\n@overload\ndef WriteFile(handle: int, buffer: bytes, overlapped: Union[int, bool]) -> Tuple[Any, int]: ...\n\nclass Overlapped:\n event: int = ...\n def GetOverlappedResult(self, __wait: bool) -> Tuple[int, int]: ...\n def cancel(self) -> None: ...\n def getbuffer(self) -> Optional[bytes]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\_winapi.pyi | _winapi.pyi | Other | 4,507 | 0.85 | 0.276119 | 0 | react-lib | 381 | 2024-06-12T10:07:44.234173 | BSD-3-Clause | false | 5d81e448b957530d7a194fb114bfb136 |
import ssl\nimport sys\nfrom _typeshed import FileDescriptorLike\nfrom abc import ABCMeta\nfrom asyncio.events import AbstractEventLoop, AbstractServer, Handle, TimerHandle\nfrom asyncio.futures import Future\nfrom asyncio.protocols import BaseProtocol\nfrom asyncio.tasks import Task\nfrom asyncio.transports import BaseTransport\nfrom socket import AddressFamily, SocketKind, _Address, _RetAddress, socket\nfrom typing import IO, Any, Awaitable, Callable, Dict, Generator, List, Optional, Sequence, Tuple, TypeVar, Union, overload\nfrom typing_extensions import Literal\n\nif sys.version_info >= (3, 7):\n from contextvars import Context\n\n_T = TypeVar("_T")\n_Context = Dict[str, Any]\n_ExceptionHandler = Callable[[AbstractEventLoop, _Context], Any]\n_ProtocolFactory = Callable[[], BaseProtocol]\n_SSLContext = Union[bool, None, ssl.SSLContext]\n_TransProtPair = Tuple[BaseTransport, BaseProtocol]\n\nclass Server(AbstractServer): ...\n\nclass BaseEventLoop(AbstractEventLoop, metaclass=ABCMeta):\n def run_forever(self) -> None: ...\n # Can't use a union, see mypy issue # 1873.\n @overload\n def run_until_complete(self, future: Generator[Any, None, _T]) -> _T: ...\n @overload\n def run_until_complete(self, future: Awaitable[_T]) -> _T: ...\n def stop(self) -> None: ...\n def is_running(self) -> bool: ...\n def is_closed(self) -> bool: ...\n def close(self) -> None: ...\n async def shutdown_asyncgens(self) -> None: ...\n # Methods scheduling callbacks. All these return Handles.\n if sys.version_info >= (3, 7):\n def call_soon(self, callback: Callable[..., Any], *args: Any, context: Optional[Context] = ...) -> Handle: ...\n def call_later(\n self, delay: float, callback: Callable[..., Any], *args: Any, context: Optional[Context] = ...\n ) -> TimerHandle: ...\n def call_at(\n self, when: float, callback: Callable[..., Any], *args: Any, context: Optional[Context] = ...\n ) -> TimerHandle: ...\n else:\n def call_soon(self, callback: Callable[..., Any], *args: Any) -> Handle: ...\n def call_later(self, delay: float, callback: Callable[..., Any], *args: Any) -> TimerHandle: ...\n def call_at(self, when: float, callback: Callable[..., Any], *args: Any) -> TimerHandle: ...\n def time(self) -> float: ...\n # Future methods\n def create_future(self) -> Future[Any]: ...\n # Tasks methods\n if sys.version_info >= (3, 8):\n def create_task(self, coro: Union[Awaitable[_T], Generator[Any, None, _T]], *, name: Optional[str] = ...) -> Task[_T]: ...\n else:\n def create_task(self, coro: Union[Awaitable[_T], Generator[Any, None, _T]]) -> Task[_T]: ...\n def set_task_factory(\n self, factory: Optional[Callable[[AbstractEventLoop, Generator[Any, None, _T]], Future[_T]]]\n ) -> None: ...\n def get_task_factory(self) -> Optional[Callable[[AbstractEventLoop, Generator[Any, None, _T]], Future[_T]]]: ...\n # Methods for interacting with threads\n if sys.version_info >= (3, 7):\n def call_soon_threadsafe(self, callback: Callable[..., Any], *args: Any, context: Optional[Context] = ...) -> Handle: ...\n else:\n def call_soon_threadsafe(self, callback: Callable[..., Any], *args: Any) -> Handle: ...\n def run_in_executor(self, executor: Any, func: Callable[..., _T], *args: Any) -> Future[_T]: ...\n def set_default_executor(self, executor: Any) -> None: ...\n # Network I/O methods returning Futures.\n async def getaddrinfo(\n self,\n host: Optional[str],\n port: Union[str, int, None],\n *,\n family: int = ...,\n type: int = ...,\n proto: int = ...,\n flags: int = ...,\n ) -> List[Tuple[AddressFamily, SocketKind, int, str, Union[Tuple[str, int], Tuple[str, int, int, int]]]]: ...\n async def getnameinfo(\n self, sockaddr: Union[Tuple[str, int], Tuple[str, int, int, int]], flags: int = ...\n ) -> Tuple[str, str]: ...\n if sys.version_info >= (3, 8):\n @overload\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: str = ...,\n port: int = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: None = ...,\n local_addr: Optional[Tuple[str, int]] = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n happy_eyeballs_delay: Optional[float] = ...,\n interleave: Optional[int] = ...,\n ) -> _TransProtPair: ...\n @overload\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: None = ...,\n port: None = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: socket,\n local_addr: None = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n happy_eyeballs_delay: Optional[float] = ...,\n interleave: Optional[int] = ...,\n ) -> _TransProtPair: ...\n elif sys.version_info >= (3, 7):\n @overload\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: str = ...,\n port: int = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: None = ...,\n local_addr: Optional[Tuple[str, int]] = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n ) -> _TransProtPair: ...\n @overload\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: None = ...,\n port: None = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: socket,\n local_addr: None = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n ) -> _TransProtPair: ...\n else:\n @overload\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: str = ...,\n port: int = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: None = ...,\n local_addr: Optional[Tuple[str, int]] = ...,\n server_hostname: Optional[str] = ...,\n ) -> _TransProtPair: ...\n @overload\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: None = ...,\n port: None = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: socket,\n local_addr: None = ...,\n server_hostname: Optional[str] = ...,\n ) -> _TransProtPair: ...\n if sys.version_info >= (3, 7):\n async def sock_sendfile(\n self, sock: socket, file: IO[bytes], offset: int = ..., count: Optional[int] = ..., *, fallback: bool = ...\n ) -> int: ...\n @overload\n async def create_server(\n self,\n protocol_factory: _ProtocolFactory,\n host: Optional[Union[str, Sequence[str]]] = ...,\n port: int = ...,\n *,\n family: int = ...,\n flags: int = ...,\n sock: None = ...,\n backlog: int = ...,\n ssl: _SSLContext = ...,\n reuse_address: Optional[bool] = ...,\n reuse_port: Optional[bool] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n start_serving: bool = ...,\n ) -> Server: ...\n @overload\n async def create_server(\n self,\n protocol_factory: _ProtocolFactory,\n host: None = ...,\n port: None = ...,\n *,\n family: int = ...,\n flags: int = ...,\n sock: socket = ...,\n backlog: int = ...,\n ssl: _SSLContext = ...,\n reuse_address: Optional[bool] = ...,\n reuse_port: Optional[bool] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n start_serving: bool = ...,\n ) -> Server: ...\n async def connect_accepted_socket(\n self,\n protocol_factory: _ProtocolFactory,\n sock: socket,\n *,\n ssl: _SSLContext = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n ) -> _TransProtPair: ...\n async def sendfile(\n self,\n transport: BaseTransport,\n file: IO[bytes],\n offset: int = ...,\n count: Optional[int] = ...,\n *,\n fallback: bool = ...,\n ) -> int: ...\n async def start_tls(\n self,\n transport: BaseTransport,\n protocol: BaseProtocol,\n sslcontext: ssl.SSLContext,\n *,\n server_side: bool = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n ) -> BaseTransport: ...\n else:\n @overload\n async def create_server(\n self,\n protocol_factory: _ProtocolFactory,\n host: Optional[Union[str, Sequence[str]]] = ...,\n port: int = ...,\n *,\n family: int = ...,\n flags: int = ...,\n sock: None = ...,\n backlog: int = ...,\n ssl: _SSLContext = ...,\n reuse_address: Optional[bool] = ...,\n reuse_port: Optional[bool] = ...,\n ) -> Server: ...\n @overload\n async def create_server(\n self,\n protocol_factory: _ProtocolFactory,\n host: None = ...,\n port: None = ...,\n *,\n family: int = ...,\n flags: int = ...,\n sock: socket,\n backlog: int = ...,\n ssl: _SSLContext = ...,\n reuse_address: Optional[bool] = ...,\n reuse_port: Optional[bool] = ...,\n ) -> Server: ...\n async def connect_accepted_socket(\n self, protocol_factory: _ProtocolFactory, sock: socket, *, ssl: _SSLContext = ...\n ) -> _TransProtPair: ...\n async def create_datagram_endpoint(\n self,\n protocol_factory: _ProtocolFactory,\n local_addr: Optional[Tuple[str, int]] = ...,\n remote_addr: Optional[Tuple[str, int]] = ...,\n *,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n reuse_address: Optional[bool] = ...,\n reuse_port: Optional[bool] = ...,\n allow_broadcast: Optional[bool] = ...,\n sock: Optional[socket] = ...,\n ) -> _TransProtPair: ...\n # Pipes and subprocesses.\n async def connect_read_pipe(self, protocol_factory: _ProtocolFactory, pipe: Any) -> _TransProtPair: ...\n async def connect_write_pipe(self, protocol_factory: _ProtocolFactory, pipe: Any) -> _TransProtPair: ...\n async def subprocess_shell(\n self,\n protocol_factory: _ProtocolFactory,\n cmd: Union[bytes, str],\n *,\n stdin: Any = ...,\n stdout: Any = ...,\n stderr: Any = ...,\n universal_newlines: Literal[False] = ...,\n shell: Literal[True] = ...,\n bufsize: Literal[0] = ...,\n encoding: None = ...,\n errors: None = ...,\n text: Literal[False, None] = ...,\n **kwargs: Any,\n ) -> _TransProtPair: ...\n async def subprocess_exec(\n self,\n protocol_factory: _ProtocolFactory,\n *args: Any,\n stdin: Any = ...,\n stdout: Any = ...,\n stderr: Any = ...,\n **kwargs: Any,\n ) -> _TransProtPair: ...\n def add_reader(self, fd: FileDescriptorLike, callback: Callable[..., Any], *args: Any) -> None: ...\n def remove_reader(self, fd: FileDescriptorLike) -> None: ...\n def add_writer(self, fd: FileDescriptorLike, callback: Callable[..., Any], *args: Any) -> None: ...\n def remove_writer(self, fd: FileDescriptorLike) -> None: ...\n # Completion based I/O methods returning Futures prior to 3.7\n if sys.version_info >= (3, 7):\n async def sock_recv(self, sock: socket, nbytes: int) -> bytes: ...\n async def sock_recv_into(self, sock: socket, buf: bytearray) -> int: ...\n async def sock_sendall(self, sock: socket, data: bytes) -> None: ...\n async def sock_connect(self, sock: socket, address: _Address) -> None: ...\n async def sock_accept(self, sock: socket) -> Tuple[socket, _RetAddress]: ...\n else:\n def sock_recv(self, sock: socket, nbytes: int) -> Future[bytes]: ...\n def sock_sendall(self, sock: socket, data: bytes) -> Future[None]: ...\n def sock_connect(self, sock: socket, address: _Address) -> Future[None]: ...\n def sock_accept(self, sock: socket) -> Future[Tuple[socket, _RetAddress]]: ...\n # Signal handling.\n def add_signal_handler(self, sig: int, callback: Callable[..., Any], *args: Any) -> None: ...\n def remove_signal_handler(self, sig: int) -> None: ...\n # Error handlers.\n def set_exception_handler(self, handler: Optional[_ExceptionHandler]) -> None: ...\n def get_exception_handler(self) -> Optional[_ExceptionHandler]: ...\n def default_exception_handler(self, context: _Context) -> None: ...\n def call_exception_handler(self, context: _Context) -> None: ...\n # Debug flag management.\n def get_debug(self) -> bool: ...\n def set_debug(self, enabled: bool) -> None: ...\n if sys.version_info >= (3, 9):\n async def shutdown_default_executor(self) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\base_events.pyi | base_events.pyi | Other | 14,112 | 0.95 | 0.223164 | 0.085714 | python-kit | 416 | 2025-02-13T22:11:17.150985 | Apache-2.0 | false | d3e174711a88aac3e797f3d80c063f3f |
import sys\nfrom typing import Any, Callable, List, Sequence, Tuple\nfrom typing_extensions import Literal\n\nif sys.version_info >= (3, 7):\n from contextvars import Context\n\nfrom . import futures\n\n_PENDING: Literal["PENDING"] # undocumented\n_CANCELLED: Literal["CANCELLED"] # undocumented\n_FINISHED: Literal["FINISHED"] # undocumented\n\ndef isfuture(obj: object) -> bool: ...\n\nif sys.version_info >= (3, 7):\n def _format_callbacks(cb: Sequence[Tuple[Callable[[futures.Future[Any]], None], Context]]) -> str: ... # undocumented\n\nelse:\n def _format_callbacks(cb: Sequence[Callable[[futures.Future[Any]], None]]) -> str: ... # undocumented\n\ndef _future_repr_info(future: futures.Future[Any]) -> List[str]: ... # undocumented\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\base_futures.pyi | base_futures.pyi | Other | 733 | 0.95 | 0.272727 | 0 | react-lib | 802 | 2023-12-20T08:03:27.315888 | Apache-2.0 | false | 62dd4d57dd1cf3c5731d62da0d2afc48 |
import subprocess\nfrom typing import IO, Any, Callable, Deque, Dict, List, Optional, Sequence, Tuple, Union\n\nfrom . import events, futures, protocols, transports\n\n_File = Optional[Union[int, IO[Any]]]\n\nclass BaseSubprocessTransport(transports.SubprocessTransport):\n\n _closed: bool # undocumented\n _protocol: protocols.SubprocessProtocol # undocumented\n _loop: events.AbstractEventLoop # undocumented\n _proc: Optional[subprocess.Popen[Any]] # undocumented\n _pid: Optional[int] # undocumented\n _returncode: Optional[int] # undocumented\n _exit_waiters: List[futures.Future[Any]] # undocumented\n _pending_calls: Deque[Tuple[Callable[..., Any], Tuple[Any, ...]]] # undocumented\n _pipes: Dict[int, _File] # undocumented\n _finished: bool # undocumented\n def __init__(\n self,\n loop: events.AbstractEventLoop,\n protocol: protocols.SubprocessProtocol,\n args: Union[str, bytes, Sequence[Union[str, bytes]]],\n shell: bool,\n stdin: _File,\n stdout: _File,\n stderr: _File,\n bufsize: int,\n waiter: Optional[futures.Future[Any]] = ...,\n extra: Optional[Any] = ...,\n **kwargs: Any,\n ) -> None: ...\n def _start(\n self,\n args: Union[str, bytes, Sequence[Union[str, bytes]]],\n shell: bool,\n stdin: _File,\n stdout: _File,\n stderr: _File,\n bufsize: int,\n **kwargs: Any,\n ) -> None: ... # undocumented\n def set_protocol(self, protocol: protocols.BaseProtocol) -> None: ...\n def get_protocol(self) -> protocols.BaseProtocol: ...\n def is_closing(self) -> bool: ...\n def close(self) -> None: ...\n def get_pid(self) -> Optional[int]: ... # type: ignore\n def get_returncode(self) -> Optional[int]: ...\n def get_pipe_transport(self, fd: int) -> _File: ... # type: ignore\n def _check_proc(self) -> None: ... # undocumented\n def send_signal(self, signal: int) -> None: ... # type: ignore\n def terminate(self) -> None: ...\n def kill(self) -> None: ...\n async def _connect_pipes(self, waiter: Optional[futures.Future[Any]]) -> None: ... # undocumented\n def _call(self, cb: Callable[..., Any], *data: Any) -> None: ... # undocumented\n def _pipe_connection_lost(self, fd: int, exc: Optional[BaseException]) -> None: ... # undocumented\n def _pipe_data_received(self, fd: int, data: bytes) -> None: ... # undocumented\n def _process_exited(self, returncode: int) -> None: ... # undocumented\n async def _wait(self) -> int: ... # undocumented\n def _try_finish(self) -> None: ... # undocumented\n def _call_connection_lost(self, exc: Optional[BaseException]) -> None: ... # undocumented\n\nclass WriteSubprocessPipeProto(protocols.BaseProtocol): # undocumented\n def __init__(self, proc: BaseSubprocessTransport, fd: int) -> None: ...\n def connection_made(self, transport: transports.BaseTransport) -> None: ...\n def connection_lost(self, exc: Optional[BaseException]) -> None: ...\n def pause_writing(self) -> None: ...\n def resume_writing(self) -> None: ...\n\nclass ReadSubprocessPipeProto(WriteSubprocessPipeProto, protocols.Protocol): # undocumented\n def data_received(self, data: bytes) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\base_subprocess.pyi | base_subprocess.pyi | Other | 3,239 | 0.95 | 0.416667 | 0.030303 | node-utils | 177 | 2024-02-01T19:05:04.759472 | MIT | false | 15cfec37b0ceb4cb89826e31275fbc8e |
from _typeshed import AnyPath\nfrom types import FrameType\nfrom typing import Any, List, Optional\n\nfrom . import tasks\n\ndef _task_repr_info(task: tasks.Task[Any]) -> List[str]: ... # undocumented\ndef _task_get_stack(task: tasks.Task[Any], limit: Optional[int]) -> List[FrameType]: ... # undocumented\ndef _task_print_stack(task: tasks.Task[Any], limit: Optional[int], file: AnyPath) -> None: ... # undocumented\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\base_tasks.pyi | base_tasks.pyi | Other | 412 | 0.95 | 0.333333 | 0 | node-utils | 632 | 2024-03-18T10:27:44.728822 | MIT | false | 947998f5e79861cb5093d32b4818ea0b |
import sys\nfrom typing import List\n\nif sys.version_info < (3, 7):\n PY34: bool\n PY35: bool\n PY352: bool\n def flatten_list_bytes(list_of_data: List[bytes]) -> bytes: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\compat.pyi | compat.pyi | Other | 180 | 0.85 | 0.25 | 0 | python-kit | 526 | 2025-02-13T00:55:19.254070 | GPL-3.0 | false | 71311269c1a8592308f156ba5dcbdc4b |
import enum\nimport sys\n\nLOG_THRESHOLD_FOR_CONNLOST_WRITES: int\nACCEPT_RETRY_DELAY: int\nDEBUG_STACK_DEPTH: int\nif sys.version_info >= (3, 7):\n SSL_HANDSHAKE_TIMEOUT: float\n SENDFILE_FALLBACK_READBUFFER_SIZE: int\n\nclass _SendfileMode(enum.Enum):\n UNSUPPORTED: int = ...\n TRY_NATIVE: int = ...\n FALLBACK: int = ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\constants.pyi | constants.pyi | Other | 327 | 0.85 | 0.142857 | 0 | python-kit | 952 | 2024-06-12T15:03:58.187446 | GPL-3.0 | false | c22bd57f1e530e17bf98f7e6aaa20cbf |
from typing import Any, Callable, TypeVar\n\n_F = TypeVar("_F", bound=Callable[..., Any])\n\ndef coroutine(func: _F) -> _F: ...\ndef iscoroutinefunction(func: Callable[..., Any]) -> bool: ...\ndef iscoroutine(obj: Any) -> bool: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\coroutines.pyi | coroutines.pyi | Other | 226 | 0.85 | 0.428571 | 0 | awesome-app | 193 | 2023-07-29T16:05:49.531757 | GPL-3.0 | false | a658ac39ba8fed22cc65738ceb3122f3 |
import ssl\nimport sys\nfrom _typeshed import FileDescriptorLike\nfrom abc import ABCMeta, abstractmethod\nfrom asyncio.futures import Future\nfrom asyncio.protocols import BaseProtocol\nfrom asyncio.tasks import Task\nfrom asyncio.transports import BaseTransport\nfrom asyncio.unix_events import AbstractChildWatcher\nfrom socket import AddressFamily, SocketKind, _Address, _RetAddress, socket\nfrom typing import IO, Any, Awaitable, Callable, Dict, Generator, List, Optional, Sequence, Tuple, TypeVar, Union, overload\n\nif sys.version_info >= (3, 7):\n from contextvars import Context\n\n_T = TypeVar("_T")\n_Context = Dict[str, Any]\n_ExceptionHandler = Callable[[AbstractEventLoop, _Context], Any]\n_ProtocolFactory = Callable[[], BaseProtocol]\n_SSLContext = Union[bool, None, ssl.SSLContext]\n_TransProtPair = Tuple[BaseTransport, BaseProtocol]\n\nclass Handle:\n _cancelled = False\n _args: Sequence[Any]\n if sys.version_info >= (3, 7):\n def __init__(\n self, callback: Callable[..., Any], args: Sequence[Any], loop: AbstractEventLoop, context: Optional[Context] = ...\n ) -> None: ...\n else:\n def __init__(self, callback: Callable[..., Any], args: Sequence[Any], loop: AbstractEventLoop) -> None: ...\n def __repr__(self) -> str: ...\n def cancel(self) -> None: ...\n def _run(self) -> None: ...\n if sys.version_info >= (3, 7):\n def cancelled(self) -> bool: ...\n\nclass TimerHandle(Handle):\n if sys.version_info >= (3, 7):\n def __init__(\n self,\n when: float,\n callback: Callable[..., Any],\n args: Sequence[Any],\n loop: AbstractEventLoop,\n context: Optional[Context] = ...,\n ) -> None: ...\n else:\n def __init__(self, when: float, callback: Callable[..., Any], args: Sequence[Any], loop: AbstractEventLoop) -> None: ...\n def __hash__(self) -> int: ...\n if sys.version_info >= (3, 7):\n def when(self) -> float: ...\n\nclass AbstractServer:\n sockets: Optional[List[socket]]\n def close(self) -> None: ...\n if sys.version_info >= (3, 7):\n async def __aenter__(self: _T) -> _T: ...\n async def __aexit__(self, *exc: Any) -> None: ...\n def get_loop(self) -> AbstractEventLoop: ...\n def is_serving(self) -> bool: ...\n async def start_serving(self) -> None: ...\n async def serve_forever(self) -> None: ...\n async def wait_closed(self) -> None: ...\n\nclass AbstractEventLoop(metaclass=ABCMeta):\n slow_callback_duration: float = ...\n @abstractmethod\n def run_forever(self) -> None: ...\n # Can't use a union, see mypy issue # 1873.\n @overload\n @abstractmethod\n def run_until_complete(self, future: Generator[Any, None, _T]) -> _T: ...\n @overload\n @abstractmethod\n def run_until_complete(self, future: Awaitable[_T]) -> _T: ...\n @abstractmethod\n def stop(self) -> None: ...\n @abstractmethod\n def is_running(self) -> bool: ...\n @abstractmethod\n def is_closed(self) -> bool: ...\n @abstractmethod\n def close(self) -> None: ...\n if sys.version_info >= (3, 6):\n @abstractmethod\n async def shutdown_asyncgens(self) -> None: ...\n # Methods scheduling callbacks. All these return Handles.\n @abstractmethod\n def call_soon(self, callback: Callable[..., Any], *args: Any) -> Handle: ...\n @abstractmethod\n def call_later(self, delay: float, callback: Callable[..., Any], *args: Any) -> TimerHandle: ...\n @abstractmethod\n def call_at(self, when: float, callback: Callable[..., Any], *args: Any) -> TimerHandle: ...\n @abstractmethod\n def time(self) -> float: ...\n # Future methods\n @abstractmethod\n def create_future(self) -> Future[Any]: ...\n # Tasks methods\n if sys.version_info >= (3, 8):\n @abstractmethod\n def create_task(self, coro: Union[Awaitable[_T], Generator[Any, None, _T]], *, name: Optional[str] = ...) -> Task[_T]: ...\n else:\n @abstractmethod\n def create_task(self, coro: Union[Awaitable[_T], Generator[Any, None, _T]]) -> Task[_T]: ...\n @abstractmethod\n def set_task_factory(\n self, factory: Optional[Callable[[AbstractEventLoop, Generator[Any, None, _T]], Future[_T]]]\n ) -> None: ...\n @abstractmethod\n def get_task_factory(self) -> Optional[Callable[[AbstractEventLoop, Generator[Any, None, _T]], Future[_T]]]: ...\n # Methods for interacting with threads\n @abstractmethod\n def call_soon_threadsafe(self, callback: Callable[..., Any], *args: Any) -> Handle: ...\n @abstractmethod\n def run_in_executor(self, executor: Any, func: Callable[..., _T], *args: Any) -> Awaitable[_T]: ...\n @abstractmethod\n def set_default_executor(self, executor: Any) -> None: ...\n # Network I/O methods returning Futures.\n @abstractmethod\n async def getaddrinfo(\n self,\n host: Optional[str],\n port: Union[str, int, None],\n *,\n family: int = ...,\n type: int = ...,\n proto: int = ...,\n flags: int = ...,\n ) -> List[Tuple[AddressFamily, SocketKind, int, str, Union[Tuple[str, int], Tuple[str, int, int, int]]]]: ...\n @abstractmethod\n async def getnameinfo(\n self, sockaddr: Union[Tuple[str, int], Tuple[str, int, int, int]], flags: int = ...\n ) -> Tuple[str, str]: ...\n if sys.version_info >= (3, 8):\n @overload\n @abstractmethod\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: str = ...,\n port: int = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: None = ...,\n local_addr: Optional[Tuple[str, int]] = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n happy_eyeballs_delay: Optional[float] = ...,\n interleave: Optional[int] = ...,\n ) -> _TransProtPair: ...\n @overload\n @abstractmethod\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: None = ...,\n port: None = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: socket,\n local_addr: None = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n happy_eyeballs_delay: Optional[float] = ...,\n interleave: Optional[int] = ...,\n ) -> _TransProtPair: ...\n elif sys.version_info >= (3, 7):\n @overload\n @abstractmethod\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: str = ...,\n port: int = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: None = ...,\n local_addr: Optional[Tuple[str, int]] = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n ) -> _TransProtPair: ...\n @overload\n @abstractmethod\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: None = ...,\n port: None = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: socket,\n local_addr: None = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n ) -> _TransProtPair: ...\n else:\n @overload\n @abstractmethod\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: str = ...,\n port: int = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: None = ...,\n local_addr: Optional[Tuple[str, int]] = ...,\n server_hostname: Optional[str] = ...,\n ) -> _TransProtPair: ...\n @overload\n @abstractmethod\n async def create_connection(\n self,\n protocol_factory: _ProtocolFactory,\n host: None = ...,\n port: None = ...,\n *,\n ssl: _SSLContext = ...,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n sock: socket,\n local_addr: None = ...,\n server_hostname: Optional[str] = ...,\n ) -> _TransProtPair: ...\n if sys.version_info >= (3, 7):\n @abstractmethod\n async def sock_sendfile(\n self, sock: socket, file: IO[bytes], offset: int = ..., count: Optional[int] = ..., *, fallback: bool = ...\n ) -> int: ...\n @overload\n @abstractmethod\n async def create_server(\n self,\n protocol_factory: _ProtocolFactory,\n host: Optional[Union[str, Sequence[str]]] = ...,\n port: int = ...,\n *,\n family: int = ...,\n flags: int = ...,\n sock: None = ...,\n backlog: int = ...,\n ssl: _SSLContext = ...,\n reuse_address: Optional[bool] = ...,\n reuse_port: Optional[bool] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n start_serving: bool = ...,\n ) -> AbstractServer: ...\n @overload\n @abstractmethod\n async def create_server(\n self,\n protocol_factory: _ProtocolFactory,\n host: None = ...,\n port: None = ...,\n *,\n family: int = ...,\n flags: int = ...,\n sock: socket = ...,\n backlog: int = ...,\n ssl: _SSLContext = ...,\n reuse_address: Optional[bool] = ...,\n reuse_port: Optional[bool] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n start_serving: bool = ...,\n ) -> AbstractServer: ...\n async def create_unix_connection(\n self,\n protocol_factory: _ProtocolFactory,\n path: Optional[str] = ...,\n *,\n ssl: _SSLContext = ...,\n sock: Optional[socket] = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n ) -> _TransProtPair: ...\n async def create_unix_server(\n self,\n protocol_factory: _ProtocolFactory,\n path: Optional[str] = ...,\n *,\n sock: Optional[socket] = ...,\n backlog: int = ...,\n ssl: _SSLContext = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n start_serving: bool = ...,\n ) -> AbstractServer: ...\n @abstractmethod\n async def sendfile(\n self,\n transport: BaseTransport,\n file: IO[bytes],\n offset: int = ...,\n count: Optional[int] = ...,\n *,\n fallback: bool = ...,\n ) -> int: ...\n @abstractmethod\n async def start_tls(\n self,\n transport: BaseTransport,\n protocol: BaseProtocol,\n sslcontext: ssl.SSLContext,\n *,\n server_side: bool = ...,\n server_hostname: Optional[str] = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n ) -> BaseTransport: ...\n else:\n @overload\n @abstractmethod\n async def create_server(\n self,\n protocol_factory: _ProtocolFactory,\n host: Optional[Union[str, Sequence[str]]] = ...,\n port: int = ...,\n *,\n family: int = ...,\n flags: int = ...,\n sock: None = ...,\n backlog: int = ...,\n ssl: _SSLContext = ...,\n reuse_address: Optional[bool] = ...,\n reuse_port: Optional[bool] = ...,\n ) -> AbstractServer: ...\n @overload\n @abstractmethod\n async def create_server(\n self,\n protocol_factory: _ProtocolFactory,\n host: None = ...,\n port: None = ...,\n *,\n family: int = ...,\n flags: int = ...,\n sock: socket,\n backlog: int = ...,\n ssl: _SSLContext = ...,\n reuse_address: Optional[bool] = ...,\n reuse_port: Optional[bool] = ...,\n ) -> AbstractServer: ...\n async def create_unix_connection(\n self,\n protocol_factory: _ProtocolFactory,\n path: str,\n *,\n ssl: _SSLContext = ...,\n sock: Optional[socket] = ...,\n server_hostname: Optional[str] = ...,\n ) -> _TransProtPair: ...\n async def create_unix_server(\n self,\n protocol_factory: _ProtocolFactory,\n path: str,\n *,\n sock: Optional[socket] = ...,\n backlog: int = ...,\n ssl: _SSLContext = ...,\n ) -> AbstractServer: ...\n @abstractmethod\n async def create_datagram_endpoint(\n self,\n protocol_factory: _ProtocolFactory,\n local_addr: Optional[Tuple[str, int]] = ...,\n remote_addr: Optional[Tuple[str, int]] = ...,\n *,\n family: int = ...,\n proto: int = ...,\n flags: int = ...,\n reuse_address: Optional[bool] = ...,\n reuse_port: Optional[bool] = ...,\n allow_broadcast: Optional[bool] = ...,\n sock: Optional[socket] = ...,\n ) -> _TransProtPair: ...\n # Pipes and subprocesses.\n @abstractmethod\n async def connect_read_pipe(self, protocol_factory: _ProtocolFactory, pipe: Any) -> _TransProtPair: ...\n @abstractmethod\n async def connect_write_pipe(self, protocol_factory: _ProtocolFactory, pipe: Any) -> _TransProtPair: ...\n @abstractmethod\n async def subprocess_shell(\n self,\n protocol_factory: _ProtocolFactory,\n cmd: Union[bytes, str],\n *,\n stdin: Any = ...,\n stdout: Any = ...,\n stderr: Any = ...,\n **kwargs: Any,\n ) -> _TransProtPair: ...\n @abstractmethod\n async def subprocess_exec(\n self,\n protocol_factory: _ProtocolFactory,\n *args: Any,\n stdin: Any = ...,\n stdout: Any = ...,\n stderr: Any = ...,\n **kwargs: Any,\n ) -> _TransProtPair: ...\n @abstractmethod\n def add_reader(self, fd: FileDescriptorLike, callback: Callable[..., Any], *args: Any) -> None: ...\n @abstractmethod\n def remove_reader(self, fd: FileDescriptorLike) -> None: ...\n @abstractmethod\n def add_writer(self, fd: FileDescriptorLike, callback: Callable[..., Any], *args: Any) -> None: ...\n @abstractmethod\n def remove_writer(self, fd: FileDescriptorLike) -> None: ...\n # Completion based I/O methods returning Futures prior to 3.7\n if sys.version_info >= (3, 7):\n @abstractmethod\n async def sock_recv(self, sock: socket, nbytes: int) -> bytes: ...\n @abstractmethod\n async def sock_recv_into(self, sock: socket, buf: bytearray) -> int: ...\n @abstractmethod\n async def sock_sendall(self, sock: socket, data: bytes) -> None: ...\n @abstractmethod\n async def sock_connect(self, sock: socket, address: _Address) -> None: ...\n @abstractmethod\n async def sock_accept(self, sock: socket) -> Tuple[socket, _RetAddress]: ...\n else:\n @abstractmethod\n def sock_recv(self, sock: socket, nbytes: int) -> Future[bytes]: ...\n @abstractmethod\n def sock_sendall(self, sock: socket, data: bytes) -> Future[None]: ...\n @abstractmethod\n def sock_connect(self, sock: socket, address: _Address) -> Future[None]: ...\n @abstractmethod\n def sock_accept(self, sock: socket) -> Future[Tuple[socket, _RetAddress]]: ...\n # Signal handling.\n @abstractmethod\n def add_signal_handler(self, sig: int, callback: Callable[..., Any], *args: Any) -> None: ...\n @abstractmethod\n def remove_signal_handler(self, sig: int) -> None: ...\n # Error handlers.\n @abstractmethod\n def set_exception_handler(self, handler: Optional[_ExceptionHandler]) -> None: ...\n @abstractmethod\n def get_exception_handler(self) -> Optional[_ExceptionHandler]: ...\n @abstractmethod\n def default_exception_handler(self, context: _Context) -> None: ...\n @abstractmethod\n def call_exception_handler(self, context: _Context) -> None: ...\n # Debug flag management.\n @abstractmethod\n def get_debug(self) -> bool: ...\n @abstractmethod\n def set_debug(self, enabled: bool) -> None: ...\n if sys.version_info >= (3, 9):\n @abstractmethod\n async def shutdown_default_executor(self) -> None: ...\n\nclass AbstractEventLoopPolicy(metaclass=ABCMeta):\n @abstractmethod\n def get_event_loop(self) -> AbstractEventLoop: ...\n @abstractmethod\n def set_event_loop(self, loop: Optional[AbstractEventLoop]) -> None: ...\n @abstractmethod\n def new_event_loop(self) -> AbstractEventLoop: ...\n # Child processes handling (Unix only).\n @abstractmethod\n def get_child_watcher(self) -> AbstractChildWatcher: ...\n @abstractmethod\n def set_child_watcher(self, watcher: AbstractChildWatcher) -> None: ...\n\nclass BaseDefaultEventLoopPolicy(AbstractEventLoopPolicy, metaclass=ABCMeta):\n def __init__(self) -> None: ...\n def get_event_loop(self) -> AbstractEventLoop: ...\n def set_event_loop(self, loop: Optional[AbstractEventLoop]) -> None: ...\n def new_event_loop(self) -> AbstractEventLoop: ...\n\ndef get_event_loop_policy() -> AbstractEventLoopPolicy: ...\ndef set_event_loop_policy(policy: Optional[AbstractEventLoopPolicy]) -> None: ...\ndef get_event_loop() -> AbstractEventLoop: ...\ndef set_event_loop(loop: Optional[AbstractEventLoop]) -> None: ...\ndef new_event_loop() -> AbstractEventLoop: ...\ndef get_child_watcher() -> AbstractChildWatcher: ...\ndef set_child_watcher(watcher: AbstractChildWatcher) -> None: ...\ndef _set_running_loop(__loop: Optional[AbstractEventLoop]) -> None: ...\ndef _get_running_loop() -> AbstractEventLoop: ...\n\nif sys.version_info >= (3, 7):\n def get_running_loop() -> AbstractEventLoop: ...\n if sys.version_info < (3, 8):\n class SendfileNotAvailableError(RuntimeError): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\events.pyi | events.pyi | Other | 18,648 | 0.95 | 0.249004 | 0.069106 | node-utils | 595 | 2024-10-25T17:32:47.477675 | GPL-3.0 | false | 4572fd284d055866bd09c515fcc7be71 |
import sys\nfrom typing import Optional\n\nif sys.version_info >= (3, 8):\n class CancelledError(BaseException): ...\n class TimeoutError(Exception): ...\n class InvalidStateError(Exception): ...\n class SendfileNotAvailableError(RuntimeError): ...\n class IncompleteReadError(EOFError):\n expected: Optional[int]\n partial: bytes\n def __init__(self, partial: bytes, expected: Optional[int]) -> None: ...\n class LimitOverrunError(Exception):\n consumed: int\n def __init__(self, message: str, consumed: int) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\exceptions.pyi | exceptions.pyi | Other | 562 | 0.85 | 0.6 | 0 | awesome-app | 336 | 2024-12-04T15:00:28.098379 | Apache-2.0 | false | 29c3beb7ac616ed75f73386a63ec5022 |
import functools\nimport sys\nimport traceback\nfrom types import FrameType, FunctionType\nfrom typing import Any, Dict, Iterable, Optional, Tuple, Union, overload\n\nclass _HasWrapper:\n __wrapper__: Union[_HasWrapper, FunctionType]\n\n_FuncType = Union[FunctionType, _HasWrapper, functools.partial, functools.partialmethod]\n\nif sys.version_info >= (3, 7):\n @overload\n def _get_function_source(func: _FuncType) -> Tuple[str, int]: ...\n @overload\n def _get_function_source(func: object) -> Optional[Tuple[str, int]]: ...\n def _format_callback_source(func: object, args: Iterable[Any]) -> str: ...\n def _format_args_and_kwargs(args: Iterable[Any], kwargs: Dict[str, Any]) -> str: ...\n def _format_callback(func: object, args: Iterable[Any], kwargs: Dict[str, Any], suffix: str = ...) -> str: ...\n def extract_stack(f: Optional[FrameType] = ..., limit: Optional[int] = ...) -> traceback.StackSummary: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\format_helpers.pyi | format_helpers.pyi | Other | 921 | 0.85 | 0.4 | 0 | react-lib | 236 | 2024-01-14T08:37:13.097673 | Apache-2.0 | false | f05246f28eef791850b60f3f7b324dca |
import sys\nfrom concurrent.futures._base import Error, Future as _ConcurrentFuture\nfrom typing import Any, Awaitable, Callable, Generator, Iterable, List, Optional, Tuple, TypeVar, Union\n\nfrom .events import AbstractEventLoop\n\nif sys.version_info < (3, 8):\n from concurrent.futures import CancelledError as CancelledError, TimeoutError as TimeoutError\n class InvalidStateError(Error): ...\n\nif sys.version_info >= (3, 7):\n from contextvars import Context\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_T = TypeVar("_T")\n_S = TypeVar("_S")\n\nif sys.version_info < (3, 7):\n class _TracebackLogger:\n exc: BaseException\n tb: List[str]\n def __init__(self, exc: Any, loop: AbstractEventLoop) -> None: ...\n def activate(self) -> None: ...\n def clear(self) -> None: ...\n def __del__(self) -> None: ...\n\ndef isfuture(obj: object) -> bool: ...\n\nclass Future(Awaitable[_T], Iterable[_T]):\n _state: str\n _exception: BaseException\n _blocking = False\n _log_traceback = False\n def __init__(self, *, loop: Optional[AbstractEventLoop] = ...) -> None: ...\n def __repr__(self) -> str: ...\n def __del__(self) -> None: ...\n if sys.version_info >= (3, 7):\n def get_loop(self) -> AbstractEventLoop: ...\n def _callbacks(self: _S) -> List[Tuple[Callable[[_S], Any], Context]]: ...\n def add_done_callback(self: _S, __fn: Callable[[_S], Any], *, context: Optional[Context] = ...) -> None: ...\n else:\n @property\n def _callbacks(self: _S) -> List[Callable[[_S], Any]]: ...\n def add_done_callback(self: _S, __fn: Callable[[_S], Any]) -> None: ...\n if sys.version_info >= (3, 9):\n def cancel(self, msg: Optional[str] = ...) -> bool: ...\n else:\n def cancel(self) -> bool: ...\n def cancelled(self) -> bool: ...\n def done(self) -> bool: ...\n def result(self) -> _T: ...\n def exception(self) -> Optional[BaseException]: ...\n def remove_done_callback(self: _S, __fn: Callable[[_S], Any]) -> int: ...\n def set_result(self, __result: _T) -> None: ...\n def set_exception(self, __exception: Union[type, BaseException]) -> None: ...\n def __iter__(self) -> Generator[Any, None, _T]: ...\n def __await__(self) -> Generator[Any, None, _T]: ...\n @property\n def _loop(self) -> AbstractEventLoop: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\ndef wrap_future(future: Union[_ConcurrentFuture[_T], Future[_T]], *, loop: Optional[AbstractEventLoop] = ...) -> Future[_T]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\futures.pyi | futures.pyi | Other | 2,581 | 0.85 | 0.569231 | 0 | react-lib | 153 | 2024-01-20T00:13:47.334243 | BSD-3-Clause | false | 8e11bb3ba2ad08fba4d701ce1e1e5231 |
import sys\nfrom types import TracebackType\nfrom typing import Any, Awaitable, Callable, Deque, Generator, Optional, Type, TypeVar, Union\n\nfrom .events import AbstractEventLoop\nfrom .futures import Future\n\n_T = TypeVar("_T")\n\nif sys.version_info >= (3, 9):\n class _ContextManagerMixin:\n def __init__(self, lock: Union[Lock, Semaphore]) -> None: ...\n def __aenter__(self) -> Awaitable[None]: ...\n def __aexit__(\n self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException], tb: Optional[TracebackType]\n ) -> Awaitable[None]: ...\n\nelse:\n class _ContextManager:\n def __init__(self, lock: Union[Lock, Semaphore]) -> None: ...\n def __enter__(self) -> object: ...\n def __exit__(self, *args: Any) -> None: ...\n class _ContextManagerMixin:\n def __init__(self, lock: Union[Lock, Semaphore]) -> None: ...\n # Apparently this exists to *prohibit* use as a context manager.\n def __enter__(self) -> object: ...\n def __exit__(self, *args: Any) -> None: ...\n def __iter__(self) -> Generator[Any, None, _ContextManager]: ...\n def __await__(self) -> Generator[Any, None, _ContextManager]: ...\n def __aenter__(self) -> Awaitable[None]: ...\n def __aexit__(\n self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException], tb: Optional[TracebackType]\n ) -> Awaitable[None]: ...\n\nclass Lock(_ContextManagerMixin):\n def __init__(self, *, loop: Optional[AbstractEventLoop] = ...) -> None: ...\n def locked(self) -> bool: ...\n async def acquire(self) -> bool: ...\n def release(self) -> None: ...\n\nclass Event:\n def __init__(self, *, loop: Optional[AbstractEventLoop] = ...) -> None: ...\n def is_set(self) -> bool: ...\n def set(self) -> None: ...\n def clear(self) -> None: ...\n async def wait(self) -> bool: ...\n\nclass Condition(_ContextManagerMixin):\n def __init__(self, lock: Optional[Lock] = ..., *, loop: Optional[AbstractEventLoop] = ...) -> None: ...\n def locked(self) -> bool: ...\n async def acquire(self) -> bool: ...\n def release(self) -> None: ...\n async def wait(self) -> bool: ...\n async def wait_for(self, predicate: Callable[[], _T]) -> _T: ...\n def notify(self, n: int = ...) -> None: ...\n def notify_all(self) -> None: ...\n\nclass Semaphore(_ContextManagerMixin):\n _value: int\n _waiters: Deque[Future[Any]]\n def __init__(self, value: int = ..., *, loop: Optional[AbstractEventLoop] = ...) -> None: ...\n def locked(self) -> bool: ...\n async def acquire(self) -> bool: ...\n def release(self) -> None: ...\n def _wake_up_next(self) -> None: ...\n\nclass BoundedSemaphore(Semaphore):\n def __init__(self, value: int = ..., *, loop: Optional[AbstractEventLoop] = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\locks.pyi | locks.pyi | Other | 2,806 | 0.95 | 0.661765 | 0.016949 | awesome-app | 242 | 2025-03-25T22:32:59.752479 | MIT | false | c492d830de2d69a40bd7b4eb2a76a42d |
import logging\n\nlogger: logging.Logger\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\log.pyi | log.pyi | Other | 39 | 0.65 | 0 | 0 | react-lib | 457 | 2024-06-21T11:01:18.004836 | Apache-2.0 | false | 62cf40fa774d05a9e4d7b228ba84f354 |
from socket import socket\nfrom typing import Any, Mapping, Optional\nfrom typing_extensions import Literal\n\nfrom . import base_events, constants, events, futures, streams, transports\n\nclass _ProactorBasePipeTransport(transports._FlowControlMixin, transports.BaseTransport):\n def __init__(\n self,\n loop: events.AbstractEventLoop,\n sock: socket,\n protocol: streams.StreamReaderProtocol,\n waiter: Optional[futures.Future[Any]] = ...,\n extra: Optional[Mapping[Any, Any]] = ...,\n server: Optional[events.AbstractServer] = ...,\n ) -> None: ...\n def __repr__(self) -> str: ...\n def __del__(self) -> None: ...\n def get_write_buffer_size(self) -> int: ...\n\nclass _ProactorReadPipeTransport(_ProactorBasePipeTransport, transports.ReadTransport):\n def __init__(\n self,\n loop: events.AbstractEventLoop,\n sock: socket,\n protocol: streams.StreamReaderProtocol,\n waiter: Optional[futures.Future[Any]] = ...,\n extra: Optional[Mapping[Any, Any]] = ...,\n server: Optional[events.AbstractServer] = ...,\n ) -> None: ...\n\nclass _ProactorBaseWritePipeTransport(_ProactorBasePipeTransport, transports.WriteTransport):\n def __init__(\n self,\n loop: events.AbstractEventLoop,\n sock: socket,\n protocol: streams.StreamReaderProtocol,\n waiter: Optional[futures.Future[Any]] = ...,\n extra: Optional[Mapping[Any, Any]] = ...,\n server: Optional[events.AbstractServer] = ...,\n ) -> None: ...\n\nclass _ProactorWritePipeTransport(_ProactorBaseWritePipeTransport):\n def __init__(\n self,\n loop: events.AbstractEventLoop,\n sock: socket,\n protocol: streams.StreamReaderProtocol,\n waiter: Optional[futures.Future[Any]] = ...,\n extra: Optional[Mapping[Any, Any]] = ...,\n server: Optional[events.AbstractServer] = ...,\n ) -> None: ...\n\nclass _ProactorDuplexPipeTransport(_ProactorReadPipeTransport, _ProactorBaseWritePipeTransport, transports.Transport): ...\n\nclass _ProactorSocketTransport(_ProactorReadPipeTransport, _ProactorBaseWritePipeTransport, transports.Transport):\n\n _sendfile_compatible: constants._SendfileMode = ...\n def __init__(\n self,\n loop: events.AbstractEventLoop,\n sock: socket,\n protocol: streams.StreamReaderProtocol,\n waiter: Optional[futures.Future[Any]] = ...,\n extra: Optional[Mapping[Any, Any]] = ...,\n server: Optional[events.AbstractServer] = ...,\n ) -> None: ...\n def _set_extra(self, sock: socket) -> None: ...\n def can_write_eof(self) -> Literal[True]: ...\n def write_eof(self) -> None: ...\n\nclass BaseProactorEventLoop(base_events.BaseEventLoop):\n def __init__(self, proactor: Any) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\proactor_events.pyi | proactor_events.pyi | Other | 2,783 | 0.85 | 0.260274 | 0 | awesome-app | 856 | 2025-01-11T05:02:30.769985 | BSD-3-Clause | false | 5d8473e82e09fcfd1b17687e688c049e |
import sys\nfrom asyncio import transports\nfrom typing import Optional, Tuple\n\nclass BaseProtocol:\n def connection_made(self, transport: transports.BaseTransport) -> None: ...\n def connection_lost(self, exc: Optional[Exception]) -> None: ...\n def pause_writing(self) -> None: ...\n def resume_writing(self) -> None: ...\n\nclass Protocol(BaseProtocol):\n def data_received(self, data: bytes) -> None: ...\n def eof_received(self) -> Optional[bool]: ...\n\nif sys.version_info >= (3, 7):\n class BufferedProtocol(BaseProtocol):\n def get_buffer(self, sizehint: int) -> bytearray: ...\n def buffer_updated(self, nbytes: int) -> None: ...\n\nclass DatagramProtocol(BaseProtocol):\n def datagram_received(self, data: bytes, addr: Tuple[str, int]) -> None: ...\n def error_received(self, exc: Exception) -> None: ...\n\nclass SubprocessProtocol(BaseProtocol):\n def pipe_data_received(self, fd: int, data: bytes) -> None: ...\n def pipe_connection_lost(self, fd: int, exc: Optional[Exception]) -> None: ...\n def process_exited(self) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\protocols.pyi | protocols.pyi | Other | 1,072 | 0.85 | 0.703704 | 0 | awesome-app | 670 | 2025-02-18T05:01:42.511738 | Apache-2.0 | false | 280ad3a9ce7e98db53c4c4279b47cab7 |
import sys\nfrom asyncio.events import AbstractEventLoop\nfrom typing import Any, Generic, Optional, TypeVar\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\nclass QueueEmpty(Exception): ...\nclass QueueFull(Exception): ...\n\n_T = TypeVar("_T")\n\nclass Queue(Generic[_T]):\n def __init__(self, maxsize: int = ..., *, loop: Optional[AbstractEventLoop] = ...) -> None: ...\n def _init(self, maxsize: int) -> None: ...\n def _get(self) -> _T: ...\n def _put(self, item: _T) -> None: ...\n def __repr__(self) -> str: ...\n def __str__(self) -> str: ...\n def _format(self) -> str: ...\n def qsize(self) -> int: ...\n @property\n def maxsize(self) -> int: ...\n def empty(self) -> bool: ...\n def full(self) -> bool: ...\n async def put(self, item: _T) -> None: ...\n def put_nowait(self, item: _T) -> None: ...\n async def get(self) -> _T: ...\n def get_nowait(self) -> _T: ...\n async def join(self) -> None: ...\n def task_done(self) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, type: Any) -> GenericAlias: ...\n\nclass PriorityQueue(Queue[_T]): ...\nclass LifoQueue(Queue[_T]): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\queues.pyi | queues.pyi | Other | 1,166 | 0.85 | 0.694444 | 0 | python-kit | 46 | 2024-03-10T11:27:20.380475 | Apache-2.0 | false | f9ab449c2a9e8765ac5cd5d6305d296f |
import sys\n\nif sys.version_info >= (3, 7):\n from typing import Awaitable, Optional, TypeVar\n\n _T = TypeVar("_T")\n if sys.version_info >= (3, 8):\n def run(main: Awaitable[_T], *, debug: Optional[bool] = ...) -> _T: ...\n else:\n def run(main: Awaitable[_T], *, debug: bool = ...) -> _T: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\runners.pyi | runners.pyi | Other | 314 | 0.85 | 0.4 | 0 | node-utils | 174 | 2024-01-28T19:39:40.880595 | Apache-2.0 | false | d8575a2028649ca7cdcfe66d6cceeeb1 |
import selectors\nfrom typing import Optional\n\nfrom . import base_events\n\nclass BaseSelectorEventLoop(base_events.BaseEventLoop):\n def __init__(self, selector: Optional[selectors.BaseSelector] = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\selector_events.pyi | selector_events.pyi | Other | 215 | 0.85 | 0.285714 | 0 | vue-tools | 778 | 2024-08-19T07:36:46.348638 | BSD-3-Clause | false | 400382e44d4c8f69ec19ea9f91f7fd87 |
import ssl\nimport sys\nfrom typing import Any, Callable, ClassVar, Deque, Dict, List, Optional, Tuple\nfrom typing_extensions import Literal\n\nfrom . import constants, events, futures, protocols, transports\n\ndef _create_transport_context(server_side: bool, server_hostname: Optional[str]) -> ssl.SSLContext: ...\n\n_UNWRAPPED: Literal["UNWRAPPED"]\n_DO_HANDSHAKE: Literal["DO_HANDSHAKE"]\n_WRAPPED: Literal["WRAPPED"]\n_SHUTDOWN: Literal["SHUTDOWN"]\n\nclass _SSLPipe:\n\n max_size: ClassVar[int]\n\n _context: ssl.SSLContext\n _server_side: bool\n _server_hostname: Optional[str]\n _state: str\n _incoming: ssl.MemoryBIO\n _outgoing: ssl.MemoryBIO\n _sslobj: Optional[ssl.SSLObject]\n _need_ssldata: bool\n _handshake_cb: Optional[Callable[[Optional[BaseException]], None]]\n _shutdown_cb: Optional[Callable[[], None]]\n def __init__(self, context: ssl.SSLContext, server_side: bool, server_hostname: Optional[str] = ...) -> None: ...\n @property\n def context(self) -> ssl.SSLContext: ...\n @property\n def ssl_object(self) -> Optional[ssl.SSLObject]: ...\n @property\n def need_ssldata(self) -> bool: ...\n @property\n def wrapped(self) -> bool: ...\n def do_handshake(self, callback: Optional[Callable[[Optional[BaseException]], None]] = ...) -> List[bytes]: ...\n def shutdown(self, callback: Optional[Callable[[], None]] = ...) -> List[bytes]: ...\n def feed_eof(self) -> None: ...\n def feed_ssldata(self, data: bytes, only_handshake: bool = ...) -> Tuple[List[bytes], List[bytes]]: ...\n def feed_appdata(self, data: bytes, offset: int = ...) -> Tuple[List[bytes], int]: ...\n\nclass _SSLProtocolTransport(transports._FlowControlMixin, transports.Transport):\n\n _sendfile_compatible: ClassVar[constants._SendfileMode]\n\n _loop: events.AbstractEventLoop\n _ssl_protocol: SSLProtocol\n _closed: bool\n def __init__(self, loop: events.AbstractEventLoop, ssl_protocol: SSLProtocol) -> None: ...\n def get_extra_info(self, name: str, default: Optional[Any] = ...) -> Dict[str, Any]: ...\n def set_protocol(self, protocol: protocols.BaseProtocol) -> None: ...\n def get_protocol(self) -> protocols.BaseProtocol: ...\n def is_closing(self) -> bool: ...\n def close(self) -> None: ...\n if sys.version_info >= (3, 7):\n def is_reading(self) -> bool: ...\n def pause_reading(self) -> None: ...\n def resume_reading(self) -> None: ...\n def set_write_buffer_limits(self, high: Optional[int] = ..., low: Optional[int] = ...) -> None: ...\n def get_write_buffer_size(self) -> int: ...\n if sys.version_info >= (3, 7):\n @property\n def _protocol_paused(self) -> bool: ...\n def write(self, data: bytes) -> None: ...\n def can_write_eof(self) -> Literal[False]: ...\n def abort(self) -> None: ...\n\nclass SSLProtocol(protocols.Protocol):\n\n _server_side: bool\n _server_hostname: Optional[str]\n _sslcontext: ssl.SSLContext\n _extra: Dict[str, Any]\n _write_backlog: Deque[Tuple[bytes, int]]\n _write_buffer_size: int\n _waiter: futures.Future[Any]\n _loop: events.AbstractEventLoop\n _app_transport: _SSLProtocolTransport\n _sslpipe: Optional[_SSLPipe]\n _session_established: bool\n _in_handshake: bool\n _in_shutdown: bool\n _transport: Optional[transports.BaseTransport]\n _call_connection_made: bool\n _ssl_handshake_timeout: Optional[int]\n _app_protocol: protocols.BaseProtocol\n _app_protocol_is_buffer: bool\n\n if sys.version_info >= (3, 7):\n def __init__(\n self,\n loop: events.AbstractEventLoop,\n app_protocol: protocols.BaseProtocol,\n sslcontext: ssl.SSLContext,\n waiter: futures.Future[Any],\n server_side: bool = ...,\n server_hostname: Optional[str] = ...,\n call_connection_made: bool = ...,\n ssl_handshake_timeout: Optional[int] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n loop: events.AbstractEventLoop,\n app_protocol: protocols.BaseProtocol,\n sslcontext: ssl.SSLContext,\n waiter: futures.Future,\n server_side: bool = ...,\n server_hostname: Optional[str] = ...,\n call_connection_made: bool = ...,\n ) -> None: ...\n if sys.version_info >= (3, 7):\n def _set_app_protocol(self, app_protocol: protocols.BaseProtocol) -> None: ...\n def _wakeup_waiter(self, exc: Optional[BaseException] = ...) -> None: ...\n def connection_made(self, transport: transports.BaseTransport) -> None: ...\n def connection_lost(self, exc: Optional[BaseException]) -> None: ...\n def pause_writing(self) -> None: ...\n def resume_writing(self) -> None: ...\n def data_received(self, data: bytes) -> None: ...\n def eof_received(self) -> None: ...\n def _get_extra_info(self, name: str, default: Optional[Any] = ...) -> Any: ...\n def _start_shutdown(self) -> None: ...\n def _write_appdata(self, data: bytes) -> None: ...\n def _start_handshake(self) -> None: ...\n if sys.version_info >= (3, 7):\n def _check_handshake_timeout(self) -> None: ...\n def _on_handshake_complete(self, handshake_exc: Optional[BaseException]) -> None: ...\n def _process_write_backlog(self) -> None: ...\n def _fatal_error(self, exc: BaseException, message: str = ...) -> None: ...\n def _finalize(self) -> None: ...\n def _abort(self) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\sslproto.pyi | sslproto.pyi | Other | 5,415 | 0.85 | 0.406015 | 0 | node-utils | 217 | 2024-06-22T19:16:18.879031 | GPL-3.0 | false | df017f72061f0628e4aa4f2b055b1dae |
import sys\nfrom typing import Any, Awaitable, Callable, Iterable, List, Optional, Tuple\n\nfrom . import events\n\nif sys.version_info >= (3, 8):\n async def staggered_race(\n coro_fns: Iterable[Callable[[], Awaitable[Any]]],\n delay: Optional[float],\n *,\n loop: Optional[events.AbstractEventLoop] = ...,\n ) -> Tuple[Any, Optional[int], List[Optional[Exception]]]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\staggered.pyi | staggered.pyi | Other | 396 | 0.85 | 0.166667 | 0.1 | react-lib | 445 | 2023-09-21T11:04:05.177688 | GPL-3.0 | false | 60a0202cf78b8bb7d13cd8db138c2f80 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.