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 typing import Any, AsyncIterator, Awaitable, Callable, Iterable, Optional, Tuple, Union\n\nfrom . import events, protocols, transports\n\n_ClientConnectedCallback = Callable[[StreamReader, StreamWriter], Optional[Awaitable[None]]]\n\nif sys.version_info < (3, 8):\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\nasync def open_connection(\n host: Optional[str] = ...,\n port: Optional[Union[int, str]] = ...,\n *,\n loop: Optional[events.AbstractEventLoop] = ...,\n limit: int = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n **kwds: Any,\n) -> Tuple[StreamReader, StreamWriter]: ...\nasync def start_server(\n client_connected_cb: _ClientConnectedCallback,\n host: Optional[str] = ...,\n port: Optional[Union[int, str]] = ...,\n *,\n loop: Optional[events.AbstractEventLoop] = ...,\n limit: int = ...,\n ssl_handshake_timeout: Optional[float] = ...,\n **kwds: Any,\n) -> events.AbstractServer: ...\n\nif sys.platform != "win32":\n if sys.version_info >= (3, 7):\n from os import PathLike\n\n _PathType = Union[str, PathLike[str]]\n else:\n _PathType = str\n async def open_unix_connection(\n path: Optional[_PathType] = ..., *, loop: Optional[events.AbstractEventLoop] = ..., limit: int = ..., **kwds: Any\n ) -> Tuple[StreamReader, StreamWriter]: ...\n async def start_unix_server(\n client_connected_cb: _ClientConnectedCallback,\n path: Optional[_PathType] = ...,\n *,\n loop: Optional[events.AbstractEventLoop] = ...,\n limit: int = ...,\n **kwds: Any,\n ) -> events.AbstractServer: ...\n\nclass FlowControlMixin(protocols.Protocol): ...\n\nclass StreamReaderProtocol(FlowControlMixin, protocols.Protocol):\n def __init__(\n self,\n stream_reader: StreamReader,\n client_connected_cb: Optional[_ClientConnectedCallback] = ...,\n loop: Optional[events.AbstractEventLoop] = ...,\n ) -> None: ...\n def connection_made(self, transport: transports.BaseTransport) -> None: ...\n def connection_lost(self, exc: Optional[Exception]) -> None: ...\n def data_received(self, data: bytes) -> None: ...\n def eof_received(self) -> bool: ...\n\nclass StreamWriter:\n def __init__(\n self,\n transport: transports.BaseTransport,\n protocol: protocols.BaseProtocol,\n reader: Optional[StreamReader],\n loop: events.AbstractEventLoop,\n ) -> None: ...\n @property\n def transport(self) -> transports.BaseTransport: ...\n def write(self, data: bytes) -> None: ...\n def writelines(self, data: Iterable[bytes]) -> None: ...\n def write_eof(self) -> None: ...\n def can_write_eof(self) -> bool: ...\n def close(self) -> None: ...\n if sys.version_info >= (3, 7):\n def is_closing(self) -> bool: ...\n async def wait_closed(self) -> None: ...\n def get_extra_info(self, name: str, default: Any = ...) -> Any: ...\n async def drain(self) -> None: ...\n\nclass StreamReader:\n def __init__(self, limit: int = ..., loop: Optional[events.AbstractEventLoop] = ...) -> None: ...\n def exception(self) -> Exception: ...\n def set_exception(self, exc: Exception) -> None: ...\n def set_transport(self, transport: transports.BaseTransport) -> None: ...\n def feed_eof(self) -> None: ...\n def at_eof(self) -> bool: ...\n def feed_data(self, data: bytes) -> None: ...\n async def readline(self) -> bytes: ...\n async def readuntil(self, separator: bytes = ...) -> bytes: ...\n async def read(self, n: int = ...) -> bytes: ...\n async def readexactly(self, n: int) -> bytes: ...\n def __aiter__(self) -> AsyncIterator[bytes]: ...\n async def __anext__(self) -> bytes: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\streams.pyi | streams.pyi | Other | 3,941 | 0.85 | 0.432692 | 0.06383 | react-lib | 979 | 2024-09-08T15:03:34.792118 | BSD-3-Clause | false | 7f486ce3c78831992050002552be2f2c |
import sys\nfrom asyncio import events, protocols, streams, transports\nfrom typing import IO, Any, Optional, Tuple, Union\n\nif sys.version_info >= (3, 8):\n from os import PathLike\n\n _ExecArg = Union[str, bytes, PathLike[str], PathLike[bytes]]\nelse:\n _ExecArg = Union[str, bytes] # Union used instead of AnyStr due to mypy issue #1236\n\nPIPE: int\nSTDOUT: int\nDEVNULL: int\n\nclass SubprocessStreamProtocol(streams.FlowControlMixin, protocols.SubprocessProtocol):\n stdin: Optional[streams.StreamWriter]\n stdout: Optional[streams.StreamReader]\n stderr: Optional[streams.StreamReader]\n def __init__(self, limit: int, loop: events.AbstractEventLoop) -> None: ...\n def connection_made(self, transport: transports.BaseTransport) -> None: ...\n def pipe_data_received(self, fd: int, data: Union[bytes, str]) -> None: ...\n def pipe_connection_lost(self, fd: int, exc: Optional[Exception]) -> None: ...\n def process_exited(self) -> None: ...\n\nclass Process:\n stdin: Optional[streams.StreamWriter]\n stdout: Optional[streams.StreamReader]\n stderr: Optional[streams.StreamReader]\n pid: int\n def __init__(\n self, transport: transports.BaseTransport, protocol: protocols.BaseProtocol, loop: events.AbstractEventLoop\n ) -> None: ...\n @property\n def returncode(self) -> Optional[int]: ...\n async def wait(self) -> int: ...\n def send_signal(self, signal: int) -> None: ...\n def terminate(self) -> None: ...\n def kill(self) -> None: ...\n async def communicate(self, input: Optional[bytes] = ...) -> Tuple[bytes, bytes]: ...\n\nasync def create_subprocess_shell(\n cmd: Union[str, bytes], # Union used instead of AnyStr due to mypy issue #1236\n stdin: Union[int, IO[Any], None] = ...,\n stdout: Union[int, IO[Any], None] = ...,\n stderr: Union[int, IO[Any], None] = ...,\n loop: Optional[events.AbstractEventLoop] = ...,\n limit: int = ...,\n **kwds: Any,\n) -> Process: ...\nasync def create_subprocess_exec(\n program: _ExecArg,\n *args: _ExecArg,\n stdin: Union[int, IO[Any], None] = ...,\n stdout: Union[int, IO[Any], None] = ...,\n stderr: Union[int, IO[Any], None] = ...,\n loop: Optional[events.AbstractEventLoop] = ...,\n limit: int = ...,\n **kwds: Any,\n) -> Process: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\subprocess.pyi | subprocess.pyi | Other | 2,265 | 0.95 | 0.283333 | 0.055556 | node-utils | 540 | 2023-08-09T11:33:52.039470 | GPL-3.0 | false | 940d160d17ed321c4ed36610d8fbdf6f |
import concurrent.futures\nimport sys\nfrom types import FrameType\nfrom typing import (\n Any,\n Awaitable,\n Generator,\n Generic,\n Iterable,\n Iterator,\n List,\n Optional,\n Set,\n TextIO,\n Tuple,\n TypeVar,\n Union,\n overload,\n)\nfrom typing_extensions import Literal\n\nfrom .events import AbstractEventLoop\nfrom .futures import Future\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_T = TypeVar("_T")\n_T1 = TypeVar("_T1")\n_T2 = TypeVar("_T2")\n_T3 = TypeVar("_T3")\n_T4 = TypeVar("_T4")\n_T5 = TypeVar("_T5")\n_FutureT = Union[Future[_T], Generator[Any, None, _T], Awaitable[_T]]\n\nFIRST_EXCEPTION: str\nFIRST_COMPLETED: str\nALL_COMPLETED: str\n\ndef as_completed(\n fs: Iterable[_FutureT[_T]], *, loop: Optional[AbstractEventLoop] = ..., timeout: Optional[float] = ...\n) -> Iterator[Future[_T]]: ...\ndef ensure_future(coro_or_future: _FutureT[_T], *, loop: Optional[AbstractEventLoop] = ...) -> Future[_T]: ...\n\n# Prior to Python 3.7 'async' was an alias for 'ensure_future'.\n# It became a keyword in 3.7.\n\n# `gather()` actually returns a list with length equal to the number\n# of tasks passed; however, Tuple is used similar to the annotation for\n# zip() because typing does not support variadic type variables. See\n# typing PR #1550 for discussion.\n@overload\ndef gather(\n coro_or_future1: _FutureT[_T1], *, loop: Optional[AbstractEventLoop] = ..., return_exceptions: Literal[False] = ...\n) -> Future[Tuple[_T1]]: ...\n@overload\ndef gather(\n coro_or_future1: _FutureT[_T1],\n coro_or_future2: _FutureT[_T2],\n *,\n loop: Optional[AbstractEventLoop] = ...,\n return_exceptions: Literal[False] = ...,\n) -> Future[Tuple[_T1, _T2]]: ...\n@overload\ndef gather(\n coro_or_future1: _FutureT[_T1],\n coro_or_future2: _FutureT[_T2],\n coro_or_future3: _FutureT[_T3],\n *,\n loop: Optional[AbstractEventLoop] = ...,\n return_exceptions: Literal[False] = ...,\n) -> Future[Tuple[_T1, _T2, _T3]]: ...\n@overload\ndef gather(\n coro_or_future1: _FutureT[_T1],\n coro_or_future2: _FutureT[_T2],\n coro_or_future3: _FutureT[_T3],\n coro_or_future4: _FutureT[_T4],\n *,\n loop: Optional[AbstractEventLoop] = ...,\n return_exceptions: Literal[False] = ...,\n) -> Future[Tuple[_T1, _T2, _T3, _T4]]: ...\n@overload\ndef gather(\n coro_or_future1: _FutureT[_T1],\n coro_or_future2: _FutureT[_T2],\n coro_or_future3: _FutureT[_T3],\n coro_or_future4: _FutureT[_T4],\n coro_or_future5: _FutureT[_T5],\n *,\n loop: Optional[AbstractEventLoop] = ...,\n return_exceptions: Literal[False] = ...,\n) -> Future[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...\n@overload\ndef gather(\n coro_or_future1: _FutureT[Any],\n coro_or_future2: _FutureT[Any],\n coro_or_future3: _FutureT[Any],\n coro_or_future4: _FutureT[Any],\n coro_or_future5: _FutureT[Any],\n coro_or_future6: _FutureT[Any],\n *coros_or_futures: _FutureT[Any],\n loop: Optional[AbstractEventLoop] = ...,\n return_exceptions: bool = ...,\n) -> Future[List[Any]]: ...\n@overload\ndef gather(\n coro_or_future1: _FutureT[_T1], *, loop: Optional[AbstractEventLoop] = ..., return_exceptions: bool = ...\n) -> Future[Tuple[Union[_T1, BaseException]]]: ...\n@overload\ndef gather(\n coro_or_future1: _FutureT[_T1],\n coro_or_future2: _FutureT[_T2],\n *,\n loop: Optional[AbstractEventLoop] = ...,\n return_exceptions: bool = ...,\n) -> Future[Tuple[Union[_T1, BaseException], Union[_T2, BaseException]]]: ...\n@overload\ndef gather(\n coro_or_future1: _FutureT[_T1],\n coro_or_future2: _FutureT[_T2],\n coro_or_future3: _FutureT[_T3],\n *,\n loop: Optional[AbstractEventLoop] = ...,\n return_exceptions: bool = ...,\n) -> Future[Tuple[Union[_T1, BaseException], Union[_T2, BaseException], Union[_T3, BaseException]]]: ...\n@overload\ndef gather(\n coro_or_future1: _FutureT[_T1],\n coro_or_future2: _FutureT[_T2],\n coro_or_future3: _FutureT[_T3],\n coro_or_future4: _FutureT[_T4],\n *,\n loop: Optional[AbstractEventLoop] = ...,\n return_exceptions: bool = ...,\n) -> Future[\n Tuple[Union[_T1, BaseException], Union[_T2, BaseException], Union[_T3, BaseException], Union[_T4, BaseException]]\n]: ...\n@overload\ndef gather(\n coro_or_future1: _FutureT[_T1],\n coro_or_future2: _FutureT[_T2],\n coro_or_future3: _FutureT[_T3],\n coro_or_future4: _FutureT[_T4],\n coro_or_future5: _FutureT[_T5],\n *,\n loop: Optional[AbstractEventLoop] = ...,\n return_exceptions: bool = ...,\n) -> Future[\n Tuple[\n Union[_T1, BaseException],\n Union[_T2, BaseException],\n Union[_T3, BaseException],\n Union[_T4, BaseException],\n Union[_T5, BaseException],\n ]\n]: ...\ndef run_coroutine_threadsafe(coro: _FutureT[_T], loop: AbstractEventLoop) -> concurrent.futures.Future[_T]: ...\ndef shield(arg: _FutureT[_T], *, loop: Optional[AbstractEventLoop] = ...) -> Future[_T]: ...\ndef sleep(delay: float, result: _T = ..., *, loop: Optional[AbstractEventLoop] = ...) -> Future[_T]: ...\ndef wait(\n fs: Iterable[_FutureT[_T]], *, loop: Optional[AbstractEventLoop] = ..., timeout: Optional[float] = ..., return_when: str = ...\n) -> Future[Tuple[Set[Future[_T]], Set[Future[_T]]]]: ...\ndef wait_for(fut: _FutureT[_T], timeout: Optional[float], *, loop: Optional[AbstractEventLoop] = ...) -> Future[_T]: ...\n\nclass Task(Future[_T], Generic[_T]):\n if sys.version_info >= (3, 8):\n def __init__(\n self,\n coro: Union[Generator[Any, None, _T], Awaitable[_T]],\n *,\n loop: AbstractEventLoop = ...,\n name: Optional[str] = ...,\n ) -> None: ...\n else:\n def __init__(self, coro: Union[Generator[Any, None, _T], Awaitable[_T]], *, loop: AbstractEventLoop = ...) -> None: ...\n def __repr__(self) -> str: ...\n if sys.version_info >= (3, 8):\n def get_coro(self) -> Any: ...\n def get_name(self) -> str: ...\n def set_name(self, __value: object) -> None: ...\n def get_stack(self, *, limit: int = ...) -> List[FrameType]: ...\n def print_stack(self, *, limit: int = ..., file: TextIO = ...) -> None: ...\n if sys.version_info >= (3, 9):\n def cancel(self, msg: Optional[str] = ...) -> bool: ...\n else:\n def cancel(self) -> bool: ...\n if sys.version_info < (3, 9):\n @classmethod\n def current_task(cls, loop: Optional[AbstractEventLoop] = ...) -> Optional[Task[Any]]: ...\n @classmethod\n def all_tasks(cls, loop: Optional[AbstractEventLoop] = ...) -> Set[Task[Any]]: ...\n if sys.version_info < (3, 7):\n def _wakeup(self, fut: Future[Any]) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nif sys.version_info >= (3, 7):\n def all_tasks(loop: Optional[AbstractEventLoop] = ...) -> Set[Task[Any]]: ...\n if sys.version_info >= (3, 8):\n def create_task(coro: Union[Generator[Any, None, _T], Awaitable[_T]], *, name: Optional[str] = ...) -> Task[_T]: ...\n else:\n def create_task(coro: Union[Generator[Any, None, _T], Awaitable[_T]]) -> Task[_T]: ...\n def current_task(loop: Optional[AbstractEventLoop] = ...) -> Optional[Task[Any]]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\tasks.pyi | tasks.pyi | Other | 7,153 | 0.95 | 0.240196 | 0.082051 | react-lib | 218 | 2025-06-01T18:15:32.589751 | MIT | false | f9d695d58cf891947986d096637042ae |
import sys\nfrom typing import Any, Callable, TypeVar\n\n_T = TypeVar("_T")\n\nif sys.version_info >= (3, 9):\n async def to_thread(__func: Callable[..., _T], *args: Any, **kwargs: Any) -> _T: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\threads.pyi | threads.pyi | Other | 194 | 0.85 | 0.285714 | 0 | python-kit | 50 | 2024-04-06T14:22:44.445190 | GPL-3.0 | false | be006a307d8580082f0ba3f923977944 |
import sys\nfrom asyncio.events import AbstractEventLoop\nfrom asyncio.protocols import BaseProtocol\nfrom socket import _Address\nfrom typing import Any, List, Mapping, Optional, Tuple\n\nclass BaseTransport:\n def __init__(self, extra: Optional[Mapping[Any, Any]] = ...) -> None: ...\n def get_extra_info(self, name: Any, default: Any = ...) -> Any: ...\n def is_closing(self) -> bool: ...\n def close(self) -> None: ...\n def set_protocol(self, protocol: BaseProtocol) -> None: ...\n def get_protocol(self) -> BaseProtocol: ...\n\nclass ReadTransport(BaseTransport):\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\nclass WriteTransport(BaseTransport):\n def set_write_buffer_limits(self, high: Optional[int] = ..., low: Optional[int] = ...) -> None: ...\n def get_write_buffer_size(self) -> int: ...\n def write(self, data: Any) -> None: ...\n def writelines(self, list_of_data: List[Any]) -> None: ...\n def write_eof(self) -> None: ...\n def can_write_eof(self) -> bool: ...\n def abort(self) -> None: ...\n\nclass Transport(ReadTransport, WriteTransport): ...\n\nclass DatagramTransport(BaseTransport):\n def sendto(self, data: Any, addr: Optional[_Address] = ...) -> None: ...\n def abort(self) -> None: ...\n\nclass SubprocessTransport(BaseTransport):\n def get_pid(self) -> int: ...\n def get_returncode(self) -> Optional[int]: ...\n def get_pipe_transport(self, fd: int) -> Optional[BaseTransport]: ...\n def send_signal(self, signal: int) -> int: ...\n def terminate(self) -> None: ...\n def kill(self) -> None: ...\n\nclass _FlowControlMixin(Transport):\n def __init__(self, extra: Optional[Mapping[Any, Any]] = ..., loop: Optional[AbstractEventLoop] = ...) -> None: ...\n def get_write_buffer_limits(self) -> Tuple[int, int]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\transports.pyi | transports.pyi | Other | 1,886 | 0.85 | 0.73913 | 0 | react-lib | 295 | 2024-09-03T23:45:47.754792 | GPL-3.0 | false | cc35453615cca39be8932c2c6da2c2ca |
import socket\nimport sys\nfrom types import TracebackType\nfrom typing import Any, BinaryIO, Iterable, List, NoReturn, Optional, Tuple, Type, Union, overload\n\nif sys.version_info >= (3, 8):\n # These are based in socket, maybe move them out into _typeshed.pyi or such\n _Address = Union[tuple, str]\n _RetAddress = Any\n _WriteBuffer = Union[bytearray, memoryview]\n _CMSG = Tuple[int, int, bytes]\n class TransportSocket:\n def __init__(self, sock: socket.socket) -> None: ...\n def _na(self, what: str) -> None: ...\n @property\n def family(self) -> int: ...\n @property\n def type(self) -> int: ...\n @property\n def proto(self) -> int: ...\n def __getstate__(self) -> NoReturn: ...\n def fileno(self) -> int: ...\n def dup(self) -> socket.socket: ...\n def get_inheritable(self) -> bool: ...\n def shutdown(self, how: int) -> None: ...\n @overload\n def getsockopt(self, level: int, optname: int) -> int: ...\n @overload\n def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ...\n @overload\n def setsockopt(self, level: int, optname: int, value: Union[int, bytes]) -> None: ...\n @overload\n def setsockopt(self, level: int, optname: int, value: None, optlen: int) -> None: ...\n def getpeername(self) -> _RetAddress: ...\n def getsockname(self) -> _RetAddress: ...\n def getsockbyname(self) -> NoReturn: ... # This method doesn't exist on socket, yet is passed through?\n def accept(self) -> Tuple[socket.socket, _RetAddress]: ...\n def connect(self, address: Union[_Address, bytes]) -> None: ...\n def connect_ex(self, address: Union[_Address, bytes]) -> int: ...\n def bind(self, address: Union[_Address, bytes]) -> None: ...\n if sys.platform == "win32":\n def ioctl(self, control: int, option: Union[int, Tuple[int, int, int], bool]) -> None: ...\n else:\n def ioctl(self, control: int, option: Union[int, Tuple[int, int, int], bool]) -> NoReturn: ...\n def listen(self, __backlog: int = ...) -> None: ...\n def makefile(self) -> BinaryIO: ...\n def sendfile(self, file: BinaryIO, offset: int = ..., count: Optional[int] = ...) -> int: ...\n def close(self) -> None: ...\n def detach(self) -> int: ...\n if sys.platform == "linux":\n def sendmsg_afalg(\n self, msg: Iterable[bytes] = ..., *, op: int, iv: Any = ..., assoclen: int = ..., flags: int = ...\n ) -> int: ...\n else:\n def sendmsg_afalg(\n self, msg: Iterable[bytes] = ..., *, op: int, iv: Any = ..., assoclen: int = ..., flags: int = ...\n ) -> NoReturn: ...\n def sendmsg(\n self, __buffers: Iterable[bytes], __ancdata: Iterable[_CMSG] = ..., __flags: int = ..., __address: _Address = ...\n ) -> int: ...\n @overload\n def sendto(self, data: bytes, address: _Address) -> int: ...\n @overload\n def sendto(self, data: bytes, flags: int, address: _Address) -> int: ...\n def send(self, data: bytes, flags: int = ...) -> int: ...\n def sendall(self, data: bytes, flags: int = ...) -> None: ...\n def set_inheritable(self, inheritable: bool) -> None: ...\n if sys.platform == "win32":\n def share(self, process_id: int) -> bytes: ...\n else:\n def share(self, process_id: int) -> NoReturn: ...\n def recv_into(self, buffer: _WriteBuffer, nbytes: int = ..., flags: int = ...) -> int: ...\n def recvfrom_into(self, buffer: _WriteBuffer, nbytes: int = ..., flags: int = ...) -> Tuple[int, _RetAddress]: ...\n def recvmsg_into(\n self, __buffers: Iterable[_WriteBuffer], __ancbufsize: int = ..., __flags: int = ...\n ) -> Tuple[int, List[_CMSG], int, Any]: ...\n def recvmsg(self, __bufsize: int, __ancbufsize: int = ..., __flags: int = ...) -> Tuple[bytes, List[_CMSG], int, Any]: ...\n def recvfrom(self, bufsize: int, flags: int = ...) -> Tuple[bytes, _RetAddress]: ...\n def recv(self, bufsize: int, flags: int = ...) -> bytes: ...\n def settimeout(self, value: Optional[float]) -> None: ...\n def gettimeout(self) -> Optional[float]: ...\n def setblocking(self, flag: bool) -> None: ...\n def __enter__(self) -> socket.socket: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\trsock.pyi | trsock.pyi | Other | 4,582 | 0.95 | 0.627907 | 0.011765 | react-lib | 186 | 2023-07-12T21:01:31.029182 | Apache-2.0 | false | e7e19d5c03dcb8ed0016d98665db3714 |
import sys\nimport types\nfrom typing import Any, Callable, Optional, Type, TypeVar\n\nfrom .events import AbstractEventLoop, BaseDefaultEventLoopPolicy\nfrom .selector_events import BaseSelectorEventLoop\n\n_T1 = TypeVar("_T1", bound=AbstractChildWatcher)\n_T2 = TypeVar("_T2", bound=SafeChildWatcher)\n_T3 = TypeVar("_T3", bound=FastChildWatcher)\n\nclass AbstractChildWatcher:\n def add_child_handler(self, pid: int, callback: Callable[..., Any], *args: Any) -> None: ...\n def remove_child_handler(self, pid: int) -> bool: ...\n def attach_loop(self, loop: Optional[AbstractEventLoop]) -> None: ...\n def close(self) -> None: ...\n def __enter__(self: _T1) -> _T1: ...\n def __exit__(\n self, typ: Optional[Type[BaseException]], exc: Optional[BaseException], tb: Optional[types.TracebackType]\n ) -> None: ...\n if sys.version_info >= (3, 8):\n def is_active(self) -> bool: ...\n\nclass BaseChildWatcher(AbstractChildWatcher):\n def __init__(self) -> None: ...\n\nclass SafeChildWatcher(BaseChildWatcher):\n def __enter__(self: _T2) -> _T2: ...\n\nclass FastChildWatcher(BaseChildWatcher):\n def __enter__(self: _T3) -> _T3: ...\n\nclass _UnixSelectorEventLoop(BaseSelectorEventLoop): ...\n\nclass _UnixDefaultEventLoopPolicy(BaseDefaultEventLoopPolicy):\n def get_child_watcher(self) -> AbstractChildWatcher: ...\n def set_child_watcher(self, watcher: Optional[AbstractChildWatcher]) -> None: ...\n\nSelectorEventLoop = _UnixSelectorEventLoop\n\nDefaultEventLoopPolicy = _UnixDefaultEventLoopPolicy\n\nif sys.version_info >= (3, 8):\n\n from typing import Protocol\n\n _T4 = TypeVar("_T4", bound=MultiLoopChildWatcher)\n _T5 = TypeVar("_T5", bound=ThreadedChildWatcher)\n class _Warn(Protocol):\n def __call__(\n self, message: str, category: Optional[Type[Warning]] = ..., stacklevel: int = ..., source: Optional[Any] = ...\n ) -> None: ...\n class MultiLoopChildWatcher(AbstractChildWatcher):\n def __enter__(self: _T4) -> _T4: ...\n class ThreadedChildWatcher(AbstractChildWatcher):\n def __enter__(self: _T5) -> _T5: ...\n def __del__(self, _warn: _Warn = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\unix_events.pyi | unix_events.pyi | Other | 2,144 | 0.85 | 0.473684 | 0 | vue-tools | 258 | 2024-01-19T02:57:10.706584 | GPL-3.0 | false | 23685496ee9966ce2e0e2048fcdea9f5 |
import socket\nimport sys\nfrom typing import IO, Any, Callable, ClassVar, List, NoReturn, Optional, Tuple, Type\n\nfrom . import events, futures, proactor_events, selector_events, streams, windows_utils\n\n__all__ = [\n "SelectorEventLoop",\n "ProactorEventLoop",\n "IocpProactor",\n "DefaultEventLoopPolicy",\n "WindowsSelectorEventLoopPolicy",\n "WindowsProactorEventLoopPolicy",\n]\n\nNULL: int\nINFINITE: int\nERROR_CONNECTION_REFUSED: int\nERROR_CONNECTION_ABORTED: int\nCONNECT_PIPE_INIT_DELAY: float\nCONNECT_PIPE_MAX_DELAY: float\n\nclass PipeServer:\n def __init__(self, address: str) -> None: ...\n def __del__(self) -> None: ...\n def closed(self) -> bool: ...\n def close(self) -> None: ...\n\nclass _WindowsSelectorEventLoop(selector_events.BaseSelectorEventLoop): ...\n\nclass ProactorEventLoop(proactor_events.BaseProactorEventLoop):\n def __init__(self, proactor: Optional[IocpProactor] = ...) -> None: ...\n async def create_pipe_connection(\n self, protocol_factory: Callable[[], streams.StreamReaderProtocol], address: str\n ) -> Tuple[proactor_events._ProactorDuplexPipeTransport, streams.StreamReaderProtocol]: ...\n async def start_serving_pipe(\n self, protocol_factory: Callable[[], streams.StreamReaderProtocol], address: str\n ) -> List[PipeServer]: ...\n\nclass IocpProactor:\n def __init__(self, concurrency: int = ...) -> None: ...\n def __repr__(self) -> str: ...\n def __del__(self) -> None: ...\n def set_loop(self, loop: events.AbstractEventLoop) -> None: ...\n def select(self, timeout: Optional[int] = ...) -> List[futures.Future[Any]]: ...\n def recv(self, conn: socket.socket, nbytes: int, flags: int = ...) -> futures.Future[bytes]: ...\n if sys.version_info >= (3, 7):\n def recv_into(self, conn: socket.socket, buf: socket._WriteBuffer, flags: int = ...) -> futures.Future[Any]: ...\n def send(self, conn: socket.socket, buf: socket._WriteBuffer, flags: int = ...) -> futures.Future[Any]: ...\n def accept(self, listener: socket.socket) -> futures.Future[Any]: ...\n def connect(self, conn: socket.socket, address: bytes) -> futures.Future[Any]: ...\n if sys.version_info >= (3, 7):\n def sendfile(self, sock: socket.socket, file: IO[bytes], offset: int, count: int) -> futures.Future[Any]: ...\n def accept_pipe(self, pipe: socket.socket) -> futures.Future[Any]: ...\n async def connect_pipe(self, address: bytes) -> windows_utils.PipeHandle: ...\n def wait_for_handle(self, handle: windows_utils.PipeHandle, timeout: Optional[int] = ...) -> bool: ...\n def close(self) -> None: ...\n\nSelectorEventLoop = _WindowsSelectorEventLoop\n\nif sys.version_info >= (3, 7):\n class WindowsSelectorEventLoopPolicy(events.BaseDefaultEventLoopPolicy):\n _loop_factory: ClassVar[Type[SelectorEventLoop]]\n def get_child_watcher(self) -> NoReturn: ...\n def set_child_watcher(self, watcher: Any) -> NoReturn: ...\n class WindowsProactorEventLoopPolicy(events.BaseDefaultEventLoopPolicy):\n _loop_factory: ClassVar[Type[ProactorEventLoop]]\n def get_child_watcher(self) -> NoReturn: ...\n def set_child_watcher(self, watcher: Any) -> NoReturn: ...\n DefaultEventLoopPolicy = WindowsSelectorEventLoopPolicy\nelse:\n class _WindowsDefaultEventLoopPolicy(events.BaseDefaultEventLoopPolicy):\n _loop_factory: ClassVar[Type[SelectorEventLoop]]\n def get_child_watcher(self) -> NoReturn: ...\n def set_child_watcher(self, watcher: Any) -> NoReturn: ...\n DefaultEventLoopPolicy = _WindowsDefaultEventLoopPolicy\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\windows_events.pyi | windows_events.pyi | Other | 3,554 | 0.85 | 0.5 | 0 | python-kit | 422 | 2024-11-26T18:07:12.014368 | MIT | false | 4b816f2937eef48b41636cce04c01981 |
import sys\nfrom types import TracebackType\nfrom typing import Callable, Optional, Protocol, Tuple, Type\n\nclass _WarnFunction(Protocol):\n def __call__(self, message: str, category: Type[Warning] = ..., stacklevel: int = ..., source: PipeHandle = ...) -> None: ...\n\nBUFSIZE: int\nPIPE: int\nSTDOUT: int\n\ndef pipe(*, duplex: bool = ..., overlapped: Tuple[bool, bool] = ..., bufsize: int = ...) -> Tuple[int, int]: ...\n\nclass PipeHandle:\n def __init__(self, handle: int) -> None: ...\n def __repr__(self) -> str: ...\n if sys.version_info >= (3, 8):\n def __del__(self, _warn: _WarnFunction = ...) -> None: ...\n else:\n def __del__(self) -> None: ...\n def __enter__(self) -> PipeHandle: ...\n def __exit__(self, t: Optional[type], v: Optional[BaseException], tb: Optional[TracebackType]) -> None: ...\n @property\n def handle(self) -> int: ...\n def fileno(self) -> int: ...\n def close(self, *, CloseHandle: Callable[[int], None] = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\windows_utils.pyi | windows_utils.pyi | Other | 983 | 0.85 | 0.538462 | 0 | node-utils | 358 | 2024-10-08T22:54:46.017124 | BSD-3-Clause | false | ccfedaea828dbfe370b1deb7e6dff64c |
import sys\nfrom typing import Type\n\nfrom .base_events import BaseEventLoop as BaseEventLoop\nfrom .coroutines import coroutine as coroutine, iscoroutine as iscoroutine, iscoroutinefunction as iscoroutinefunction\nfrom .events import (\n AbstractEventLoop as AbstractEventLoop,\n AbstractEventLoopPolicy as AbstractEventLoopPolicy,\n AbstractServer as AbstractServer,\n Handle as Handle,\n TimerHandle as TimerHandle,\n _get_running_loop as _get_running_loop,\n _set_running_loop as _set_running_loop,\n get_child_watcher as get_child_watcher,\n get_event_loop as get_event_loop,\n get_event_loop_policy as get_event_loop_policy,\n new_event_loop as new_event_loop,\n set_child_watcher as set_child_watcher,\n set_event_loop as set_event_loop,\n set_event_loop_policy as set_event_loop_policy,\n)\nfrom .futures import Future as Future, isfuture as isfuture, wrap_future as wrap_future\nfrom .locks import (\n BoundedSemaphore as BoundedSemaphore,\n Condition as Condition,\n Event as Event,\n Lock as Lock,\n Semaphore as Semaphore,\n)\nfrom .protocols import (\n BaseProtocol as BaseProtocol,\n DatagramProtocol as DatagramProtocol,\n Protocol as Protocol,\n SubprocessProtocol as SubprocessProtocol,\n)\nfrom .queues import (\n LifoQueue as LifoQueue,\n PriorityQueue as PriorityQueue,\n Queue as Queue,\n QueueEmpty as QueueEmpty,\n QueueFull as QueueFull,\n)\nfrom .streams import (\n StreamReader as StreamReader,\n StreamReaderProtocol as StreamReaderProtocol,\n StreamWriter as StreamWriter,\n open_connection as open_connection,\n start_server as start_server,\n)\nfrom .subprocess import create_subprocess_exec as create_subprocess_exec, create_subprocess_shell as create_subprocess_shell\nfrom .tasks import (\n ALL_COMPLETED as ALL_COMPLETED,\n FIRST_COMPLETED as FIRST_COMPLETED,\n FIRST_EXCEPTION as FIRST_EXCEPTION,\n Task as Task,\n as_completed as as_completed,\n ensure_future as ensure_future,\n gather as gather,\n run_coroutine_threadsafe as run_coroutine_threadsafe,\n shield as shield,\n sleep as sleep,\n wait as wait,\n wait_for as wait_for,\n)\nfrom .transports import (\n BaseTransport as BaseTransport,\n DatagramTransport as DatagramTransport,\n ReadTransport as ReadTransport,\n SubprocessTransport as SubprocessTransport,\n Transport as Transport,\n WriteTransport as WriteTransport,\n)\n\nif sys.version_info >= (3, 7):\n from .events import get_running_loop as get_running_loop\nif sys.version_info >= (3, 8):\n from .exceptions import (\n CancelledError as CancelledError,\n IncompleteReadError as IncompleteReadError,\n InvalidStateError as InvalidStateError,\n LimitOverrunError as LimitOverrunError,\n SendfileNotAvailableError as SendfileNotAvailableError,\n TimeoutError as TimeoutError,\n )\nelse:\n if sys.version_info >= (3, 7):\n from .events import SendfileNotAvailableError as SendfileNotAvailableError\n from .futures import CancelledError as CancelledError, InvalidStateError as InvalidStateError, TimeoutError as TimeoutError\n from .streams import IncompleteReadError as IncompleteReadError, LimitOverrunError as LimitOverrunError\n\nif sys.version_info >= (3, 7):\n from .protocols import BufferedProtocol as BufferedProtocol\n\nif sys.version_info >= (3, 7):\n from .runners import run as run\n\nif sys.version_info >= (3, 7):\n from .tasks import all_tasks as all_tasks, create_task as create_task, current_task as current_task\nif sys.version_info >= (3, 9):\n from .threads import to_thread as to_thread\n\nDefaultEventLoopPolicy: Type[AbstractEventLoopPolicy]\nif sys.platform == "win32":\n from .windows_events import *\n\nif sys.platform != "win32":\n from .streams import open_unix_connection as open_unix_connection, start_unix_server as start_unix_server\n from .unix_events import (\n AbstractChildWatcher as AbstractChildWatcher,\n FastChildWatcher as FastChildWatcher,\n SafeChildWatcher as SafeChildWatcher,\n SelectorEventLoop as SelectorEventLoop,\n )\n\n if sys.version_info >= (3, 8):\n from .unix_events import MultiLoopChildWatcher as MultiLoopChildWatcher, ThreadedChildWatcher as ThreadedChildWatcher\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\asyncio\__init__.pyi | __init__.pyi | Other | 4,242 | 0.85 | 0.086207 | 0 | react-lib | 161 | 2025-04-08T20:31:38.494087 | GPL-3.0 | false | 24539d27c4561419144678fa5a3b3f72 |
from . import (\n AsyncGenerator as AsyncGenerator,\n AsyncIterable as AsyncIterable,\n AsyncIterator as AsyncIterator,\n Awaitable as Awaitable,\n ByteString as ByteString,\n Callable as Callable,\n Collection as Collection,\n Container as Container,\n Coroutine as Coroutine,\n Generator as Generator,\n Hashable as Hashable,\n ItemsView as ItemsView,\n Iterable as Iterable,\n Iterator as Iterator,\n KeysView as KeysView,\n Mapping as Mapping,\n MappingView as MappingView,\n MutableMapping as MutableMapping,\n MutableSequence as MutableSequence,\n MutableSet as MutableSet,\n Reversible as Reversible,\n Sequence as Sequence,\n Set as Set,\n Sized as Sized,\n ValuesView as ValuesView,\n)\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\collections\abc.pyi | abc.pyi | Other | 744 | 0.85 | 0 | 0 | python-kit | 64 | 2024-10-31T13:57:39.671891 | GPL-3.0 | false | 26b58fff704b22285ae69baf65527ac9 |
import sys\nimport typing\nfrom typing import (\n AbstractSet,\n Any,\n AsyncGenerator as AsyncGenerator,\n AsyncIterable as AsyncIterable,\n AsyncIterator as AsyncIterator,\n Awaitable as Awaitable,\n ByteString as ByteString,\n Callable as Callable,\n Collection as Collection,\n Container as Container,\n Coroutine as Coroutine,\n Dict,\n Generator as Generator,\n Generic,\n Hashable as Hashable,\n ItemsView as ItemsView,\n Iterable as Iterable,\n Iterator as Iterator,\n KeysView as KeysView,\n List,\n Mapping as Mapping,\n MappingView as MappingView,\n MutableMapping as MutableMapping,\n MutableSequence as MutableSequence,\n MutableSet as MutableSet,\n Optional,\n Reversible as Reversible,\n Sequence as Sequence,\n Sized as Sized,\n Tuple,\n Type,\n TypeVar,\n Union,\n ValuesView as ValuesView,\n overload,\n)\n\nSet = AbstractSet\n\n_S = TypeVar("_S")\n_T = TypeVar("_T")\n_KT = TypeVar("_KT")\n_VT = TypeVar("_VT")\n\n# namedtuple is special-cased in the type checker; the initializer is ignored.\nif sys.version_info >= (3, 7):\n def namedtuple(\n typename: str,\n field_names: Union[str, Iterable[str]],\n *,\n rename: bool = ...,\n module: Optional[str] = ...,\n defaults: Optional[Iterable[Any]] = ...,\n ) -> Type[Tuple[Any, ...]]: ...\n\nelse:\n def namedtuple(\n typename: str,\n field_names: Union[str, Iterable[str]],\n *,\n verbose: bool = ...,\n rename: bool = ...,\n module: Optional[str] = ...,\n ) -> Type[Tuple[Any, ...]]: ...\n\nclass UserDict(MutableMapping[_KT, _VT]):\n data: Dict[_KT, _VT]\n def __init__(self, __dict: Optional[Mapping[_KT, _VT]] = ..., **kwargs: _VT) -> None: ...\n def __len__(self) -> int: ...\n def __getitem__(self, key: _KT) -> _VT: ...\n def __setitem__(self, key: _KT, item: _VT) -> None: ...\n def __delitem__(self, key: _KT) -> None: ...\n def __iter__(self) -> Iterator[_KT]: ...\n def __contains__(self, key: object) -> bool: ...\n def copy(self: _S) -> _S: ...\n @classmethod\n def fromkeys(cls: Type[_S], iterable: Iterable[_KT], value: Optional[_VT] = ...) -> _S: ...\n\nclass UserList(MutableSequence[_T]):\n data: List[_T]\n def __init__(self, initlist: Optional[Iterable[_T]] = ...) -> None: ...\n def __lt__(self, other: object) -> bool: ...\n def __le__(self, other: object) -> bool: ...\n def __gt__(self, other: object) -> bool: ...\n def __ge__(self, other: object) -> bool: ...\n def __contains__(self, item: object) -> bool: ...\n def __len__(self) -> int: ...\n @overload\n def __getitem__(self, i: int) -> _T: ...\n @overload\n def __getitem__(self, i: slice) -> MutableSequence[_T]: ...\n @overload\n def __setitem__(self, i: int, o: _T) -> None: ...\n @overload\n def __setitem__(self, i: slice, o: Iterable[_T]) -> None: ...\n def __delitem__(self, i: Union[int, slice]) -> None: ...\n def __add__(self: _S, other: Iterable[_T]) -> _S: ...\n def __iadd__(self: _S, other: Iterable[_T]) -> _S: ...\n def __mul__(self: _S, n: int) -> _S: ...\n def __imul__(self: _S, n: int) -> _S: ...\n def append(self, item: _T) -> None: ...\n def insert(self, i: int, item: _T) -> None: ...\n def pop(self, i: int = ...) -> _T: ...\n def remove(self, item: _T) -> None: ...\n def clear(self) -> None: ...\n def copy(self: _S) -> _S: ...\n def count(self, item: _T) -> int: ...\n def index(self, item: _T, *args: Any) -> int: ...\n def reverse(self) -> None: ...\n def sort(self, *args: Any, **kwds: Any) -> None: ...\n def extend(self, other: Iterable[_T]) -> None: ...\n\n_UserStringT = TypeVar("_UserStringT", bound=UserString)\n\nclass UserString(Sequence[str]):\n data: str\n def __init__(self, seq: object) -> None: ...\n def __int__(self) -> int: ...\n def __float__(self) -> float: ...\n def __complex__(self) -> complex: ...\n def __getnewargs__(self) -> Tuple[str]: ...\n def __lt__(self, string: Union[str, UserString]) -> bool: ...\n def __le__(self, string: Union[str, UserString]) -> bool: ...\n def __gt__(self, string: Union[str, UserString]) -> bool: ...\n def __ge__(self, string: Union[str, UserString]) -> bool: ...\n def __contains__(self, char: object) -> bool: ...\n def __len__(self) -> int: ...\n # It should return a str to implement Sequence correctly, but it doesn't.\n def __getitem__(self: _UserStringT, i: Union[int, slice]) -> _UserStringT: ... # type: ignore\n def __add__(self: _UserStringT, other: object) -> _UserStringT: ...\n def __mul__(self: _UserStringT, n: int) -> _UserStringT: ...\n def __mod__(self: _UserStringT, args: Any) -> _UserStringT: ...\n def capitalize(self: _UserStringT) -> _UserStringT: ...\n def casefold(self: _UserStringT) -> _UserStringT: ...\n def center(self: _UserStringT, width: int, *args: Any) -> _UserStringT: ...\n def count(self, sub: Union[str, UserString], start: int = ..., end: int = ...) -> int: ...\n if sys.version_info >= (3, 8):\n def encode(self: _UserStringT, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> bytes: ...\n else:\n def encode(self: _UserStringT, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> _UserStringT: ...\n def endswith(self, suffix: Union[str, Tuple[str, ...]], start: int = ..., end: int = ...) -> bool: ...\n def expandtabs(self: _UserStringT, tabsize: int = ...) -> _UserStringT: ...\n def find(self, sub: Union[str, UserString], start: int = ..., end: int = ...) -> int: ...\n def format(self, *args: Any, **kwds: Any) -> str: ...\n def format_map(self, mapping: Mapping[str, Any]) -> str: ...\n def index(self, sub: str, start: int = ..., end: int = ...) -> int: ...\n def isalpha(self) -> bool: ...\n def isalnum(self) -> bool: ...\n def isdecimal(self) -> bool: ...\n def isdigit(self) -> bool: ...\n def isidentifier(self) -> bool: ...\n def islower(self) -> bool: ...\n def isnumeric(self) -> bool: ...\n def isprintable(self) -> bool: ...\n def isspace(self) -> bool: ...\n def istitle(self) -> bool: ...\n def isupper(self) -> bool: ...\n def join(self, seq: Iterable[str]) -> str: ...\n def ljust(self: _UserStringT, width: int, *args: Any) -> _UserStringT: ...\n def lower(self: _UserStringT) -> _UserStringT: ...\n def lstrip(self: _UserStringT, chars: Optional[str] = ...) -> _UserStringT: ...\n @staticmethod\n @overload\n def maketrans(x: Union[Dict[int, _T], Dict[str, _T], Dict[Union[str, int], _T]]) -> Dict[int, _T]: ...\n @staticmethod\n @overload\n def maketrans(x: str, y: str, z: str = ...) -> Dict[int, Union[int, None]]: ...\n def partition(self, sep: str) -> Tuple[str, str, str]: ...\n if sys.version_info >= (3, 9):\n def removeprefix(self: _UserStringT, __prefix: Union[str, UserString]) -> _UserStringT: ...\n def removesuffix(self: _UserStringT, __suffix: Union[str, UserString]) -> _UserStringT: ...\n def replace(\n self: _UserStringT, old: Union[str, UserString], new: Union[str, UserString], maxsplit: int = ...\n ) -> _UserStringT: ...\n def rfind(self, sub: Union[str, UserString], start: int = ..., end: int = ...) -> int: ...\n def rindex(self, sub: Union[str, UserString], start: int = ..., end: int = ...) -> int: ...\n def rjust(self: _UserStringT, width: int, *args: Any) -> _UserStringT: ...\n def rpartition(self, sep: str) -> Tuple[str, str, str]: ...\n def rstrip(self: _UserStringT, chars: Optional[str] = ...) -> _UserStringT: ...\n def split(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...\n def rsplit(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...\n def splitlines(self, keepends: bool = ...) -> List[str]: ...\n def startswith(self, prefix: Union[str, Tuple[str, ...]], start: int = ..., end: int = ...) -> bool: ...\n def strip(self: _UserStringT, chars: Optional[str] = ...) -> _UserStringT: ...\n def swapcase(self: _UserStringT) -> _UserStringT: ...\n def title(self: _UserStringT) -> _UserStringT: ...\n def translate(self: _UserStringT, *args: Any) -> _UserStringT: ...\n def upper(self: _UserStringT) -> _UserStringT: ...\n def zfill(self: _UserStringT, width: int) -> _UserStringT: ...\n\nclass deque(MutableSequence[_T], Generic[_T]):\n @property\n def maxlen(self) -> Optional[int]: ...\n def __init__(self, iterable: Iterable[_T] = ..., maxlen: Optional[int] = ...) -> None: ...\n def append(self, x: _T) -> None: ...\n def appendleft(self, x: _T) -> None: ...\n def clear(self) -> None: ...\n def copy(self) -> deque[_T]: ...\n def count(self, x: _T) -> int: ...\n def extend(self, iterable: Iterable[_T]) -> None: ...\n def extendleft(self, iterable: Iterable[_T]) -> None: ...\n def insert(self, i: int, x: _T) -> None: ...\n def index(self, x: _T, start: int = ..., stop: int = ...) -> int: ...\n def pop(self) -> _T: ... # type: ignore\n def popleft(self) -> _T: ...\n def remove(self, value: _T) -> None: ...\n def reverse(self) -> None: ...\n def rotate(self, n: int = ...) -> None: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[_T]: ...\n def __str__(self) -> str: ...\n def __hash__(self) -> int: ...\n # These methods of deque don't really take slices, but we need to\n # define them as taking a slice to satisfy MutableSequence.\n @overload\n def __getitem__(self, index: int) -> _T: ...\n @overload\n def __getitem__(self, s: slice) -> MutableSequence[_T]: ...\n @overload\n def __setitem__(self, i: int, x: _T) -> None: ...\n @overload\n def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...\n @overload\n def __delitem__(self, i: int) -> None: ...\n @overload\n def __delitem__(self, s: slice) -> None: ...\n def __contains__(self, o: object) -> bool: ...\n def __reversed__(self) -> Iterator[_T]: ...\n def __iadd__(self: _S, iterable: Iterable[_T]) -> _S: ...\n def __add__(self, other: deque[_T]) -> deque[_T]: ...\n def __mul__(self, other: int) -> deque[_T]: ...\n def __imul__(self, other: int) -> None: ...\n\nclass Counter(Dict[_T, int], Generic[_T]):\n @overload\n def __init__(self, __iterable: None = ..., **kwargs: int) -> None: ...\n @overload\n def __init__(self, __mapping: Mapping[_T, int]) -> None: ...\n @overload\n def __init__(self, __iterable: Iterable[_T]) -> None: ...\n def copy(self: _S) -> _S: ...\n def elements(self) -> Iterator[_T]: ...\n def most_common(self, n: Optional[int] = ...) -> List[Tuple[_T, int]]: ...\n @overload\n def subtract(self, __iterable: None = ...) -> None: ...\n @overload\n def subtract(self, __mapping: Mapping[_T, int]) -> None: ...\n @overload\n def subtract(self, __iterable: Iterable[_T]) -> None: ...\n # The Iterable[Tuple[...]] argument type is not actually desirable\n # (the tuples will be added as keys, breaking type safety) but\n # it's included so that the signature is compatible with\n # Dict.update. Not sure if we should use '# type: ignore' instead\n # and omit the type from the union.\n @overload\n def update(self, __m: Mapping[_T, int], **kwargs: int) -> None: ...\n @overload\n def update(self, __m: Union[Iterable[_T], Iterable[Tuple[_T, int]]], **kwargs: int) -> None: ...\n @overload\n def update(self, __m: None = ..., **kwargs: int) -> None: ...\n def __add__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __sub__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __and__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __or__(self, other: Counter[_T]) -> Counter[_T]: ... # type: ignore\n def __pos__(self) -> Counter[_T]: ...\n def __neg__(self) -> Counter[_T]: ...\n def __iadd__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __isub__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __iand__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __ior__(self, other: Counter[_T]) -> Counter[_T]: ... # type: ignore\n\nclass _OrderedDictKeysView(KeysView[_KT], Reversible[_KT]):\n def __reversed__(self) -> Iterator[_KT]: ...\n\nclass _OrderedDictItemsView(ItemsView[_KT, _VT], Reversible[Tuple[_KT, _VT]]):\n def __reversed__(self) -> Iterator[Tuple[_KT, _VT]]: ...\n\nclass _OrderedDictValuesView(ValuesView[_VT], Reversible[_VT]):\n def __reversed__(self) -> Iterator[_VT]: ...\n\nclass OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]):\n def popitem(self, last: bool = ...) -> Tuple[_KT, _VT]: ...\n def move_to_end(self, key: _KT, last: bool = ...) -> None: ...\n def copy(self: _S) -> _S: ...\n def __reversed__(self) -> Iterator[_KT]: ...\n def keys(self) -> _OrderedDictKeysView[_KT]: ...\n def items(self) -> _OrderedDictItemsView[_KT, _VT]: ...\n def values(self) -> _OrderedDictValuesView[_VT]: ...\n\nclass defaultdict(Dict[_KT, _VT], Generic[_KT, _VT]):\n default_factory: Optional[Callable[[], _VT]]\n @overload\n def __init__(self, **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, default_factory: Optional[Callable[[], _VT]]) -> None: ...\n @overload\n def __init__(self, default_factory: Optional[Callable[[], _VT]], **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, default_factory: Optional[Callable[[], _VT]], map: Mapping[_KT, _VT]) -> None: ...\n @overload\n def __init__(self, default_factory: Optional[Callable[[], _VT]], map: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, default_factory: Optional[Callable[[], _VT]], iterable: Iterable[Tuple[_KT, _VT]]) -> None: ...\n @overload\n def __init__(\n self, default_factory: Optional[Callable[[], _VT]], iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT\n ) -> None: ...\n def __missing__(self, key: _KT) -> _VT: ...\n # TODO __reversed__\n def copy(self: _S) -> _S: ...\n\nclass ChainMap(MutableMapping[_KT, _VT], Generic[_KT, _VT]):\n def __init__(self, *maps: Mapping[_KT, _VT]) -> None: ...\n @property\n def maps(self) -> List[Mapping[_KT, _VT]]: ...\n def new_child(self, m: Mapping[_KT, _VT] = ...) -> typing.ChainMap[_KT, _VT]: ...\n @property\n def parents(self) -> typing.ChainMap[_KT, _VT]: ...\n def __setitem__(self, k: _KT, v: _VT) -> None: ...\n def __delitem__(self, v: _KT) -> None: ...\n def __getitem__(self, k: _KT) -> _VT: ...\n def __iter__(self) -> Iterator[_KT]: ...\n def __len__(self) -> int: ...\n def __missing__(self, key: _KT) -> _VT: ... # undocumented\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\collections\__init__.pyi | __init__.pyi | Other | 14,502 | 0.95 | 0.608563 | 0.038585 | awesome-app | 80 | 2024-10-16T00:17:44.190937 | MIT | false | cadffdaf5a74aeb37f5a01391b5b3c05 |
import sys\nfrom typing import Any, Callable, Optional, Tuple\n\nfrom ._base import Executor\n\nEXTRA_QUEUED_CALLS: Any\n\nif sys.version_info >= (3, 7):\n from ._base import BrokenExecutor\n class BrokenProcessPool(BrokenExecutor): ...\n\nelse:\n class BrokenProcessPool(RuntimeError): ...\n\nif sys.version_info >= (3, 7):\n from multiprocessing.context import BaseContext\n class ProcessPoolExecutor(Executor):\n def __init__(\n self,\n max_workers: Optional[int] = ...,\n mp_context: Optional[BaseContext] = ...,\n initializer: Optional[Callable[..., None]] = ...,\n initargs: Tuple[Any, ...] = ...,\n ) -> None: ...\n\nelse:\n class ProcessPoolExecutor(Executor):\n def __init__(self, max_workers: Optional[int] = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\concurrent\futures\process.pyi | process.pyi | Other | 804 | 0.85 | 0.285714 | 0 | node-utils | 898 | 2023-10-28T13:06:52.593218 | BSD-3-Clause | false | 21cf5ddd99862996948e74f74a9647aa |
import queue\nimport sys\nfrom typing import Any, Callable, Generic, Iterable, Mapping, Optional, Tuple, TypeVar\n\nfrom ._base import Executor, Future\n\nif sys.version_info >= (3, 7):\n from ._base import BrokenExecutor\n class BrokenThreadPool(BrokenExecutor): ...\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_S = TypeVar("_S")\n\nclass ThreadPoolExecutor(Executor):\n if sys.version_info >= (3, 7):\n _work_queue: queue.SimpleQueue\n else:\n _work_queue: queue.Queue\n if sys.version_info >= (3, 7):\n def __init__(\n self,\n max_workers: Optional[int] = ...,\n thread_name_prefix: str = ...,\n initializer: Optional[Callable[..., None]] = ...,\n initargs: Tuple[Any, ...] = ...,\n ) -> None: ...\n elif sys.version_info >= (3, 6):\n def __init__(self, max_workers: Optional[int] = ..., thread_name_prefix: str = ...) -> None: ...\n else:\n def __init__(self, max_workers: Optional[int] = ...) -> None: ...\n\nclass _WorkItem(Generic[_S]):\n future: Future[_S]\n fn: Callable[..., _S]\n args: Iterable[Any]\n kwargs: Mapping[str, Any]\n def __init__(self, future: Future[_S], fn: Callable[..., _S], args: Iterable[Any], kwargs: Mapping[str, Any]) -> None: ...\n def run(self) -> None: ...\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\concurrent\futures\thread.pyi | thread.pyi | Other | 1,421 | 0.85 | 0.333333 | 0 | vue-tools | 129 | 2024-03-10T03:28:14.335753 | MIT | false | f99554bc84871fc9884e6905f2b0c10f |
import sys\nimport threading\nfrom abc import abstractmethod\nfrom logging import Logger\nfrom typing import (\n Any,\n Callable,\n Container,\n Generic,\n Iterable,\n Iterator,\n List,\n Optional,\n Protocol,\n Sequence,\n Set,\n TypeVar,\n overload,\n)\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\nFIRST_COMPLETED: str\nFIRST_EXCEPTION: str\nALL_COMPLETED: str\nPENDING: str\nRUNNING: str\nCANCELLED: str\nCANCELLED_AND_NOTIFIED: str\nFINISHED: str\nLOGGER: Logger\n\nclass Error(Exception): ...\nclass CancelledError(Error): ...\nclass TimeoutError(Error): ...\n\nif sys.version_info >= (3, 8):\n class InvalidStateError(Error): ...\n\nif sys.version_info >= (3, 7):\n class BrokenExecutor(RuntimeError): ...\n\n_T = TypeVar("_T")\n\n_T_co = TypeVar("_T_co", covariant=True)\n\n# Copied over Collection implementation as it does not exist in Python 2 and <3.6.\n# Also to solve pytype issues with _Collection.\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\nclass Future(Generic[_T]):\n def __init__(self) -> None: ...\n def cancel(self) -> bool: ...\n def cancelled(self) -> bool: ...\n def running(self) -> bool: ...\n def done(self) -> bool: ...\n def add_done_callback(self, fn: Callable[[Future[_T]], Any]) -> None: ...\n def result(self, timeout: Optional[float] = ...) -> _T: ...\n def set_running_or_notify_cancel(self) -> bool: ...\n def set_result(self, result: _T) -> None: ...\n def exception(self, timeout: Optional[float] = ...) -> Optional[BaseException]: ...\n def set_exception(self, exception: Optional[BaseException]) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass Executor:\n if sys.version_info >= (3, 9):\n def submit(self, __fn: Callable[..., _T], *args: Any, **kwargs: Any) -> Future[_T]: ...\n else:\n def submit(self, fn: Callable[..., _T], *args: Any, **kwargs: Any) -> Future[_T]: ...\n def map(\n self, fn: Callable[..., _T], *iterables: Iterable[Any], timeout: Optional[float] = ..., chunksize: int = ...\n ) -> Iterator[_T]: ...\n if sys.version_info >= (3, 9):\n def shutdown(self, wait: bool = ..., *, cancel_futures: bool = ...) -> None: ...\n else:\n def shutdown(self, wait: bool = ...) -> None: ...\n def __enter__(self: _T) -> _T: ...\n def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> Optional[bool]: ...\n\ndef as_completed(fs: Iterable[Future[_T]], timeout: Optional[float] = ...) -> Iterator[Future[_T]]: ...\n\n# Ideally this would be a namedtuple, but mypy doesn't support generic tuple types. See #1976\nclass DoneAndNotDoneFutures(Sequence[_T]):\n done: Set[Future[_T]]\n not_done: Set[Future[_T]]\n def __new__(_cls, done: Set[Future[_T]], not_done: Set[Future[_T]]) -> DoneAndNotDoneFutures[_T]: ...\n def __len__(self) -> int: ...\n @overload\n def __getitem__(self, i: int) -> _T: ...\n @overload\n def __getitem__(self, s: slice) -> DoneAndNotDoneFutures[_T]: ...\n\ndef wait(fs: Iterable[Future[_T]], timeout: Optional[float] = ..., return_when: str = ...) -> DoneAndNotDoneFutures[_T]: ...\n\nclass _Waiter:\n event: threading.Event\n finished_futures: List[Future[Any]]\n def __init__(self) -> None: ...\n def add_result(self, future: Future[Any]) -> None: ...\n def add_exception(self, future: Future[Any]) -> None: ...\n def add_cancelled(self, future: Future[Any]) -> None: ...\n\nclass _AsCompletedWaiter(_Waiter):\n lock: threading.Lock\n def __init__(self) -> None: ...\n def add_result(self, future: Future[Any]) -> None: ...\n def add_exception(self, future: Future[Any]) -> None: ...\n def add_cancelled(self, future: Future[Any]) -> None: ...\n\nclass _FirstCompletedWaiter(_Waiter):\n def add_result(self, future: Future[Any]) -> None: ...\n def add_exception(self, future: Future[Any]) -> None: ...\n def add_cancelled(self, future: Future[Any]) -> None: ...\n\nclass _AllCompletedWaiter(_Waiter):\n num_pending_calls: int\n stop_on_exception: bool\n lock: threading.Lock\n def __init__(self, num_pending_calls: int, stop_on_exception: bool) -> None: ...\n def add_result(self, future: Future[Any]) -> None: ...\n def add_exception(self, future: Future[Any]) -> None: ...\n def add_cancelled(self, future: Future[Any]) -> None: ...\n\nclass _AcquireFutures:\n futures: Iterable[Future[Any]]\n def __init__(self, futures: Iterable[Future[Any]]) -> None: ...\n def __enter__(self) -> None: ...\n def __exit__(self, *args: Any) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\concurrent\futures\_base.pyi | _base.pyi | Other | 4,676 | 0.95 | 0.488722 | 0.034783 | python-kit | 189 | 2024-05-10T12:33:37.237775 | GPL-3.0 | false | 11b40403bf123ffd1bd406c7733919c3 |
import sys\n\nfrom ._base import (\n ALL_COMPLETED as ALL_COMPLETED,\n FIRST_COMPLETED as FIRST_COMPLETED,\n FIRST_EXCEPTION as FIRST_EXCEPTION,\n CancelledError as CancelledError,\n Executor as Executor,\n Future as Future,\n TimeoutError as TimeoutError,\n as_completed as as_completed,\n wait as wait,\n)\nfrom .process import ProcessPoolExecutor as ProcessPoolExecutor\nfrom .thread import ThreadPoolExecutor as ThreadPoolExecutor\n\nif sys.version_info >= (3, 8):\n from ._base import InvalidStateError as InvalidStateError\nif sys.version_info >= (3, 7):\n from ._base import BrokenExecutor as BrokenExecutor\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\concurrent\futures\__init__.pyi | __init__.pyi | Other | 629 | 0.85 | 0.1 | 0 | node-utils | 605 | 2024-11-03T09:47:51.242971 | Apache-2.0 | false | 46735ee33b4b35ad80eae6cc35aec413 |
from types import TracebackType\nfrom typing import Iterator, MutableMapping, Optional, Type, Union\n\n_KeyType = Union[str, bytes]\n_ValueType = Union[str, bytes]\n\nerror = OSError\n\nclass _Database(MutableMapping[_KeyType, bytes]):\n def __init__(self, filebasename: str, mode: str, flag: str = ...) -> None: ...\n def sync(self) -> None: ...\n def iterkeys(self) -> Iterator[bytes]: ... # undocumented\n def close(self) -> None: ...\n def __getitem__(self, key: _KeyType) -> bytes: ...\n def __setitem__(self, key: _KeyType, value: _ValueType) -> None: ...\n def __delitem__(self, key: _KeyType) -> None: ...\n def __iter__(self) -> Iterator[bytes]: ...\n def __len__(self) -> int: ...\n def __del__(self) -> None: ...\n def __enter__(self) -> _Database: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n\ndef open(file: str, flag: str = ..., mode: int = ...) -> _Database: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\dbm\dumb.pyi | dumb.pyi | Other | 1,010 | 0.95 | 0.56 | 0 | python-kit | 663 | 2025-03-02T09:49:38.163171 | BSD-3-Clause | false | 20a70a2bcec0303de84004b3936b82da |
from types import TracebackType\nfrom typing import List, Optional, Type, TypeVar, Union, overload\n\n_T = TypeVar("_T")\n_KeyType = Union[str, bytes]\n_ValueType = Union[str, bytes]\n\nclass error(OSError): ...\n\n# Actual typename gdbm, not exposed by the implementation\nclass _gdbm:\n def firstkey(self) -> Optional[bytes]: ...\n def nextkey(self, key: _KeyType) -> Optional[bytes]: ...\n def reorganize(self) -> None: ...\n def sync(self) -> None: ...\n def close(self) -> None: ...\n def __getitem__(self, item: _KeyType) -> bytes: ...\n def __setitem__(self, key: _KeyType, value: _ValueType) -> None: ...\n def __delitem__(self, key: _KeyType) -> None: ...\n def __len__(self) -> int: ...\n def __enter__(self) -> _gdbm: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n @overload\n def get(self, k: _KeyType) -> Optional[bytes]: ...\n @overload\n def get(self, k: _KeyType, default: Union[bytes, _T]) -> Union[bytes, _T]: ...\n def keys(self) -> List[bytes]: ...\n def setdefault(self, k: _KeyType, default: _ValueType = ...) -> bytes: ...\n # Don't exist at runtime\n __new__: None # type: ignore\n __init__: None # type: ignore\n\ndef open(__filename: str, __flags: str = ..., __mode: int = ...) -> _gdbm: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\dbm\gnu.pyi | gnu.pyi | Other | 1,363 | 0.95 | 0.514286 | 0.064516 | vue-tools | 610 | 2024-04-09T15:11:52.367580 | BSD-3-Clause | false | 5e3ea9b26368ca98ff1aac7534281020 |
from types import TracebackType\nfrom typing import List, Optional, Type, TypeVar, Union, overload\n\n_T = TypeVar("_T")\n_KeyType = Union[str, bytes]\n_ValueType = Union[str, bytes]\n\nclass error(OSError): ...\n\nlibrary: str = ...\n\n# Actual typename dbm, not exposed by the implementation\nclass _dbm:\n def close(self) -> None: ...\n def __getitem__(self, item: _KeyType) -> bytes: ...\n def __setitem__(self, key: _KeyType, value: _ValueType) -> None: ...\n def __delitem__(self, key: _KeyType) -> None: ...\n def __len__(self) -> int: ...\n def __del__(self) -> None: ...\n def __enter__(self) -> _dbm: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n @overload\n def get(self, k: _KeyType) -> Optional[bytes]: ...\n @overload\n def get(self, k: _KeyType, default: Union[bytes, _T]) -> Union[bytes, _T]: ...\n def keys(self) -> List[bytes]: ...\n def setdefault(self, k: _KeyType, default: _ValueType = ...) -> bytes: ...\n # Don't exist at runtime\n __new__: None # type: ignore\n __init__: None # type: ignore\n\ndef open(__filename: str, __flags: str = ..., __mode: int = ...) -> _dbm: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\dbm\ndbm.pyi | ndbm.pyi | Other | 1,236 | 0.95 | 0.441176 | 0.068966 | awesome-app | 930 | 2024-02-16T01:46:22.510078 | Apache-2.0 | false | cf9ead9849a05f17af7ca4125a8aaa5c |
from types import TracebackType\nfrom typing import Iterator, MutableMapping, Optional, Type, Union\nfrom typing_extensions import Literal\n\n_KeyType = Union[str, bytes]\n_ValueType = Union[str, bytes]\n\nclass _Database(MutableMapping[_KeyType, bytes]):\n def close(self) -> None: ...\n def __getitem__(self, key: _KeyType) -> bytes: ...\n def __setitem__(self, key: _KeyType, value: _ValueType) -> None: ...\n def __delitem__(self, key: _KeyType) -> None: ...\n def __iter__(self) -> Iterator[bytes]: ...\n def __len__(self) -> int: ...\n def __del__(self) -> None: ...\n def __enter__(self) -> _Database: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n\nclass error(Exception): ...\n\ndef whichdb(filename: str) -> str: ...\ndef open(file: str, flag: Literal["r", "w", "c", "n"] = ..., mode: int = ...) -> _Database: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\dbm\__init__.pyi | __init__.pyi | Other | 945 | 0.85 | 0.541667 | 0 | react-lib | 430 | 2024-07-07T06:35:21.328258 | BSD-3-Clause | false | 3cf7e28efddf00f100788488059f7f84 |
from typing import Optional\n\ndef make_archive(\n base_name: str,\n format: str,\n root_dir: Optional[str] = ...,\n base_dir: Optional[str] = ...,\n verbose: int = ...,\n dry_run: int = ...,\n) -> str: ...\ndef make_tarball(base_name: str, base_dir: str, compress: Optional[str] = ..., verbose: int = ..., dry_run: int = ...) -> str: ...\ndef make_zipfile(base_name: str, base_dir: str, verbose: int = ..., dry_run: int = ...) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\archive_util.pyi | archive_util.pyi | Other | 447 | 0.85 | 0.25 | 0 | python-kit | 991 | 2024-11-28T19:28:03.415592 | GPL-3.0 | false | 5e64278ca21ab8b45daed5a7445deebe |
from distutils.ccompiler import CCompiler\n\nclass BCPPCompiler(CCompiler): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\bcppcompiler.pyi | bcppcompiler.pyi | Other | 78 | 0.65 | 0.333333 | 0 | react-lib | 962 | 2024-05-30T04:43:26.642952 | Apache-2.0 | false | 2a60cff066cbc75d6c4c28772c48eb73 |
from typing import Any, Callable, List, Optional, Tuple, Union\n\n_Macro = Union[Tuple[str], Tuple[str, Optional[str]]]\n\ndef gen_lib_options(\n compiler: CCompiler, library_dirs: List[str], runtime_library_dirs: List[str], libraries: List[str]\n) -> List[str]: ...\ndef gen_preprocess_options(macros: List[_Macro], include_dirs: List[str]) -> List[str]: ...\ndef get_default_compiler(osname: Optional[str] = ..., platform: Optional[str] = ...) -> str: ...\ndef new_compiler(\n plat: Optional[str] = ..., compiler: Optional[str] = ..., verbose: int = ..., dry_run: int = ..., force: int = ...\n) -> CCompiler: ...\ndef show_compilers() -> None: ...\n\nclass CCompiler:\n dry_run: bool\n force: bool\n verbose: bool\n output_dir: Optional[str]\n macros: List[_Macro]\n include_dirs: List[str]\n libraries: List[str]\n library_dirs: List[str]\n runtime_library_dirs: List[str]\n objects: List[str]\n def __init__(self, verbose: int = ..., dry_run: int = ..., force: int = ...) -> None: ...\n def add_include_dir(self, dir: str) -> None: ...\n def set_include_dirs(self, dirs: List[str]) -> None: ...\n def add_library(self, libname: str) -> None: ...\n def set_libraries(self, libnames: List[str]) -> None: ...\n def add_library_dir(self, dir: str) -> None: ...\n def set_library_dirs(self, dirs: List[str]) -> None: ...\n def add_runtime_library_dir(self, dir: str) -> None: ...\n def set_runtime_library_dirs(self, dirs: List[str]) -> None: ...\n def define_macro(self, name: str, value: Optional[str] = ...) -> None: ...\n def undefine_macro(self, name: str) -> None: ...\n def add_link_object(self, object: str) -> None: ...\n def set_link_objects(self, objects: List[str]) -> None: ...\n def detect_language(self, sources: Union[str, List[str]]) -> Optional[str]: ...\n def find_library_file(self, dirs: List[str], lib: str, debug: bool = ...) -> Optional[str]: ...\n def has_function(\n self,\n funcname: str,\n includes: Optional[List[str]] = ...,\n include_dirs: Optional[List[str]] = ...,\n libraries: Optional[List[str]] = ...,\n library_dirs: Optional[List[str]] = ...,\n ) -> bool: ...\n def library_dir_option(self, dir: str) -> str: ...\n def library_option(self, lib: str) -> str: ...\n def runtime_library_dir_option(self, dir: str) -> str: ...\n def set_executables(self, **args: str) -> None: ...\n def compile(\n self,\n sources: List[str],\n output_dir: Optional[str] = ...,\n macros: Optional[_Macro] = ...,\n include_dirs: Optional[List[str]] = ...,\n debug: bool = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n depends: Optional[List[str]] = ...,\n ) -> List[str]: ...\n def create_static_lib(\n self,\n objects: List[str],\n output_libname: str,\n output_dir: Optional[str] = ...,\n debug: bool = ...,\n target_lang: Optional[str] = ...,\n ) -> None: ...\n def link(\n self,\n target_desc: str,\n objects: List[str],\n output_filename: str,\n output_dir: Optional[str] = ...,\n libraries: Optional[List[str]] = ...,\n library_dirs: Optional[List[str]] = ...,\n runtime_library_dirs: Optional[List[str]] = ...,\n export_symbols: Optional[List[str]] = ...,\n debug: bool = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n build_temp: Optional[str] = ...,\n target_lang: Optional[str] = ...,\n ) -> None: ...\n def link_executable(\n self,\n objects: List[str],\n output_progname: str,\n output_dir: Optional[str] = ...,\n libraries: Optional[List[str]] = ...,\n library_dirs: Optional[List[str]] = ...,\n runtime_library_dirs: Optional[List[str]] = ...,\n debug: bool = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n target_lang: Optional[str] = ...,\n ) -> None: ...\n def link_shared_lib(\n self,\n objects: List[str],\n output_libname: str,\n output_dir: Optional[str] = ...,\n libraries: Optional[List[str]] = ...,\n library_dirs: Optional[List[str]] = ...,\n runtime_library_dirs: Optional[List[str]] = ...,\n export_symbols: Optional[List[str]] = ...,\n debug: bool = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n build_temp: Optional[str] = ...,\n target_lang: Optional[str] = ...,\n ) -> None: ...\n def link_shared_object(\n self,\n objects: List[str],\n output_filename: str,\n output_dir: Optional[str] = ...,\n libraries: Optional[List[str]] = ...,\n library_dirs: Optional[List[str]] = ...,\n runtime_library_dirs: Optional[List[str]] = ...,\n export_symbols: Optional[List[str]] = ...,\n debug: bool = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n build_temp: Optional[str] = ...,\n target_lang: Optional[str] = ...,\n ) -> None: ...\n def preprocess(\n self,\n source: str,\n output_file: Optional[str] = ...,\n macros: Optional[List[_Macro]] = ...,\n include_dirs: Optional[List[str]] = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n ) -> None: ...\n def executable_filename(self, basename: str, strip_dir: int = ..., output_dir: str = ...) -> str: ...\n def library_filename(self, libname: str, lib_type: str = ..., strip_dir: int = ..., output_dir: str = ...) -> str: ...\n def object_filenames(self, source_filenames: List[str], strip_dir: int = ..., output_dir: str = ...) -> List[str]: ...\n def shared_object_filename(self, basename: str, strip_dir: int = ..., output_dir: str = ...) -> str: ...\n def execute(self, func: Callable[..., None], args: Tuple[Any, ...], msg: Optional[str] = ..., level: int = ...) -> None: ...\n def spawn(self, cmd: List[str]) -> None: ...\n def mkpath(self, name: str, mode: int = ...) -> None: ...\n def move_file(self, src: str, dst: str) -> str: ...\n def announce(self, msg: str, level: int = ...) -> None: ...\n def warn(self, msg: str) -> None: ...\n def debug_print(self, msg: str) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\ccompiler.pyi | ccompiler.pyi | Other | 6,449 | 0.85 | 0.293333 | 0 | react-lib | 298 | 2023-08-13T23:11:17.574668 | Apache-2.0 | false | 9824fd2ab84bb4503078da4e9c354a6a |
from abc import abstractmethod\nfrom distutils.dist import Distribution\nfrom typing import Any, Callable, Iterable, List, Optional, Tuple, Union\n\nclass Command:\n sub_commands: List[Tuple[str, Optional[Callable[[Command], bool]]]]\n def __init__(self, dist: Distribution) -> None: ...\n @abstractmethod\n def initialize_options(self) -> None: ...\n @abstractmethod\n def finalize_options(self) -> None: ...\n @abstractmethod\n def run(self) -> None: ...\n def announce(self, msg: str, level: int = ...) -> None: ...\n def debug_print(self, msg: str) -> None: ...\n def ensure_string(self, option: str, default: Optional[str] = ...) -> None: ...\n def ensure_string_list(self, option: Union[str, List[str]]) -> None: ...\n def ensure_filename(self, option: str) -> None: ...\n def ensure_dirname(self, option: str) -> None: ...\n def get_command_name(self) -> str: ...\n def set_undefined_options(self, src_cmd: str, *option_pairs: Tuple[str, str]) -> None: ...\n def get_finalized_command(self, command: str, create: int = ...) -> Command: ...\n def reinitialize_command(self, command: Union[Command, str], reinit_subcommands: int = ...) -> Command: ...\n def run_command(self, command: str) -> None: ...\n def get_sub_commands(self) -> List[str]: ...\n def warn(self, msg: str) -> None: ...\n def execute(self, func: Callable[..., Any], args: Iterable[Any], msg: Optional[str] = ..., level: int = ...) -> None: ...\n def mkpath(self, name: str, mode: int = ...) -> None: ...\n def copy_file(\n self,\n infile: str,\n outfile: str,\n preserve_mode: int = ...,\n preserve_times: int = ...,\n link: Optional[str] = ...,\n level: Any = ...,\n ) -> Tuple[str, bool]: ... # level is not used\n def copy_tree(\n self,\n infile: str,\n outfile: str,\n preserve_mode: int = ...,\n preserve_times: int = ...,\n preserve_symlinks: int = ...,\n level: Any = ...,\n ) -> List[str]: ... # level is not used\n def move_file(self, src: str, dst: str, level: Any = ...) -> str: ... # level is not used\n def spawn(self, cmd: Iterable[str], search_path: int = ..., level: Any = ...) -> None: ... # level is not used\n def make_archive(\n self,\n base_name: str,\n format: str,\n root_dir: Optional[str] = ...,\n base_dir: Optional[str] = ...,\n owner: Optional[str] = ...,\n group: Optional[str] = ...,\n ) -> str: ...\n def make_file(\n self,\n infiles: Union[str, List[str], Tuple[str]],\n outfile: str,\n func: Callable[..., Any],\n args: List[Any],\n exec_msg: Optional[str] = ...,\n skip_msg: Optional[str] = ...,\n level: Any = ...,\n ) -> None: ... # level is not used\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\cmd.pyi | cmd.pyi | Other | 2,803 | 0.95 | 0.38806 | 0 | vue-tools | 656 | 2025-05-24T07:05:25.228417 | Apache-2.0 | false | 0be80809ac537ded5d96c76b4c629bda |
from abc import abstractmethod\nfrom distutils.cmd import Command\nfrom typing import ClassVar, List, Optional, Tuple\n\nDEFAULT_PYPIRC: str\n\nclass PyPIRCCommand(Command):\n DEFAULT_REPOSITORY: ClassVar[str]\n DEFAULT_REALM: ClassVar[str]\n repository: None\n realm: None\n user_options: ClassVar[List[Tuple[str, Optional[str], str]]]\n boolean_options: ClassVar[List[str]]\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n @abstractmethod\n def run(self) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\config.pyi | config.pyi | Other | 523 | 0.85 | 0.235294 | 0 | awesome-app | 224 | 2024-05-15T13:11:35.868501 | Apache-2.0 | false | 508ad042ac8ee5319ddedf363c001b20 |
from distutils.cmd import Command as Command\nfrom distutils.dist import Distribution as Distribution\nfrom distutils.extension import Extension as Extension\nfrom typing import Any, List, Mapping, Optional, Tuple, Type, Union\n\ndef setup(\n *,\n name: str = ...,\n version: str = ...,\n description: str = ...,\n long_description: str = ...,\n author: str = ...,\n author_email: str = ...,\n maintainer: str = ...,\n maintainer_email: str = ...,\n url: str = ...,\n download_url: str = ...,\n packages: List[str] = ...,\n py_modules: List[str] = ...,\n scripts: List[str] = ...,\n ext_modules: List[Extension] = ...,\n classifiers: List[str] = ...,\n distclass: Type[Distribution] = ...,\n script_name: str = ...,\n script_args: List[str] = ...,\n options: Mapping[str, Any] = ...,\n license: str = ...,\n keywords: Union[List[str], str] = ...,\n platforms: Union[List[str], str] = ...,\n cmdclass: Mapping[str, Type[Command]] = ...,\n data_files: List[Tuple[str, List[str]]] = ...,\n package_dir: Mapping[str, str] = ...,\n obsoletes: List[str] = ...,\n provides: List[str] = ...,\n requires: List[str] = ...,\n command_packages: List[str] = ...,\n command_options: Mapping[str, Mapping[str, Tuple[Any, Any]]] = ...,\n package_data: Mapping[str, List[str]] = ...,\n include_package_data: bool = ...,\n libraries: List[str] = ...,\n headers: List[str] = ...,\n ext_package: str = ...,\n include_dirs: List[str] = ...,\n password: str = ...,\n fullname: str = ...,\n **attrs: Any,\n) -> None: ...\ndef run_setup(script_name: str, script_args: Optional[List[str]] = ..., stop_after: str = ...) -> Distribution: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\core.pyi | core.pyi | Other | 1,688 | 0.85 | 0.041667 | 0.042553 | awesome-app | 10 | 2023-07-22T17:26:48.205067 | Apache-2.0 | false | 5ebf2a0fd94f96e724b4975128a75e8d |
from distutils.unixccompiler import UnixCCompiler\n\nclass CygwinCCompiler(UnixCCompiler): ...\nclass Mingw32CCompiler(CygwinCCompiler): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\cygwinccompiler.pyi | cygwinccompiler.pyi | Other | 138 | 0.85 | 0.5 | 0 | react-lib | 583 | 2025-02-16T01:56:40.365180 | GPL-3.0 | false | 91a1a907420cee7cc73f9bb2e3444568 |
DEBUG: bool\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\debug.pyi | debug.pyi | Other | 12 | 0.5 | 0 | 0 | react-lib | 518 | 2023-08-20T04:16:57.769978 | Apache-2.0 | false | bef743d2755e113e8611711f6e4a8957 |
from typing import List, Tuple\n\ndef newer(source: str, target: str) -> bool: ...\ndef newer_pairwise(sources: List[str], targets: List[str]) -> List[Tuple[str, str]]: ...\ndef newer_group(sources: List[str], target: str, missing: str = ...) -> bool: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\dep_util.pyi | dep_util.pyi | Other | 252 | 0.85 | 0.6 | 0 | react-lib | 118 | 2023-07-15T09:16:41.790355 | BSD-3-Clause | false | cec5dcf775edfa6ad62e6c89c85592d1 |
from typing import List\n\ndef mkpath(name: str, mode: int = ..., verbose: int = ..., dry_run: int = ...) -> List[str]: ...\ndef create_tree(base_dir: str, files: List[str], mode: int = ..., verbose: int = ..., dry_run: int = ...) -> None: ...\ndef copy_tree(\n src: str,\n dst: str,\n preserve_mode: int = ...,\n preserve_times: int = ...,\n preserve_symlinks: int = ...,\n update: int = ...,\n verbose: int = ...,\n dry_run: int = ...,\n) -> List[str]: ...\ndef remove_tree(directory: str, verbose: int = ..., dry_run: int = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\dir_util.pyi | dir_util.pyi | Other | 555 | 0.85 | 0.266667 | 0 | python-kit | 255 | 2025-05-13T14:35:30.011218 | MIT | false | 263006a82147f248c9d80f64968b12d9 |
from _typeshed import AnyPath, SupportsWrite\nfrom distutils.cmd import Command\nfrom typing import IO, Any, Dict, Iterable, List, Mapping, Optional, Tuple, Type, Union\n\nclass DistributionMetadata:\n def __init__(self, path: Optional[Union[int, AnyPath]] = ...) -> None: ...\n name: Optional[str]\n version: Optional[str]\n author: Optional[str]\n author_email: Optional[str]\n maintainer: Optional[str]\n maintainer_email: Optional[str]\n url: Optional[str]\n license: Optional[str]\n description: Optional[str]\n long_description: Optional[str]\n keywords: Optional[Union[str, List[str]]]\n platforms: Optional[Union[str, List[str]]]\n classifiers: Optional[Union[str, List[str]]]\n download_url: Optional[str]\n provides: Optional[List[str]]\n requires: Optional[List[str]]\n obsoletes: Optional[List[str]]\n def read_pkg_file(self, file: IO[str]) -> None: ...\n def write_pkg_info(self, base_dir: str) -> None: ...\n def write_pkg_file(self, file: SupportsWrite[str]) -> None: ...\n def get_name(self) -> str: ...\n def get_version(self) -> str: ...\n def get_fullname(self) -> str: ...\n def get_author(self) -> str: ...\n def get_author_email(self) -> str: ...\n def get_maintainer(self) -> str: ...\n def get_maintainer_email(self) -> str: ...\n def get_contact(self) -> str: ...\n def get_contact_email(self) -> str: ...\n def get_url(self) -> str: ...\n def get_license(self) -> str: ...\n def get_licence(self) -> str: ...\n def get_description(self) -> str: ...\n def get_long_description(self) -> str: ...\n def get_keywords(self) -> Union[str, List[str]]: ...\n def get_platforms(self) -> Union[str, List[str]]: ...\n def get_classifiers(self) -> Union[str, List[str]]: ...\n def get_download_url(self) -> str: ...\n def get_requires(self) -> List[str]: ...\n def set_requires(self, value: Iterable[str]) -> None: ...\n def get_provides(self) -> List[str]: ...\n def set_provides(self, value: Iterable[str]) -> None: ...\n def get_obsoletes(self) -> List[str]: ...\n def set_obsoletes(self, value: Iterable[str]) -> None: ...\n\nclass Distribution:\n cmdclass: Dict[str, Type[Command]]\n metadata: DistributionMetadata\n def __init__(self, attrs: Optional[Mapping[str, Any]] = ...) -> None: ...\n def get_option_dict(self, command: str) -> Dict[str, Tuple[str, str]]: ...\n def parse_config_files(self, filenames: Optional[Iterable[str]] = ...) -> None: ...\n def get_command_obj(self, command: str, create: bool = ...) -> Optional[Command]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\dist.pyi | dist.pyi | Other | 2,557 | 0.85 | 0.586207 | 0 | react-lib | 247 | 2023-10-24T07:02:04.090556 | BSD-3-Clause | false | 699611fa39d3fe7cb71aebdaf053961f |
class DistutilsError(Exception): ...\nclass DistutilsModuleError(DistutilsError): ...\nclass DistutilsClassError(DistutilsError): ...\nclass DistutilsGetoptError(DistutilsError): ...\nclass DistutilsArgError(DistutilsError): ...\nclass DistutilsFileError(DistutilsError): ...\nclass DistutilsOptionError(DistutilsError): ...\nclass DistutilsSetupError(DistutilsError): ...\nclass DistutilsPlatformError(DistutilsError): ...\nclass DistutilsExecError(DistutilsError): ...\nclass DistutilsInternalError(DistutilsError): ...\nclass DistutilsTemplateError(DistutilsError): ...\nclass DistutilsByteCompileError(DistutilsError): ...\nclass CCompilerError(Exception): ...\nclass PreprocessError(CCompilerError): ...\nclass CompileError(CCompilerError): ...\nclass LibError(CCompilerError): ...\nclass LinkError(CCompilerError): ...\nclass UnknownFileError(CCompilerError): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\errors.pyi | errors.pyi | Other | 852 | 0.85 | 1 | 0 | react-lib | 620 | 2024-12-30T13:58:33.749881 | MIT | false | 6154dd026e95cba1e698bb40b50bc850 |
from typing import List, Optional, Tuple\n\nclass Extension:\n def __init__(\n self,\n name: str,\n sources: List[str],\n include_dirs: List[str] = ...,\n define_macros: List[Tuple[str, Optional[str]]] = ...,\n undef_macros: List[str] = ...,\n library_dirs: List[str] = ...,\n libraries: List[str] = ...,\n runtime_library_dirs: List[str] = ...,\n extra_objects: List[str] = ...,\n extra_compile_args: List[str] = ...,\n extra_link_args: List[str] = ...,\n export_symbols: List[str] = ...,\n swig_opts: Optional[str] = ..., # undocumented\n depends: List[str] = ...,\n language: str = ...,\n optional: bool = ...,\n ) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\extension.pyi | extension.pyi | Other | 736 | 0.95 | 0.090909 | 0 | awesome-app | 3 | 2024-03-14T18:02:08.072219 | MIT | false | 15a726a8cea572383740da1072663467 |
from typing import Any, List, Mapping, Optional, Tuple, Union, overload\n\n_Option = Tuple[str, Optional[str], str]\n_GR = Tuple[List[str], OptionDummy]\n\ndef fancy_getopt(\n options: List[_Option], negative_opt: Mapping[_Option, _Option], object: Any, args: Optional[List[str]]\n) -> Union[List[str], _GR]: ...\ndef wrap_text(text: str, width: int) -> List[str]: ...\n\nclass FancyGetopt:\n def __init__(self, option_table: Optional[List[_Option]] = ...) -> None: ...\n # TODO kinda wrong, `getopt(object=object())` is invalid\n @overload\n def getopt(self, args: Optional[List[str]] = ...) -> _GR: ...\n @overload\n def getopt(self, args: Optional[List[str]], object: Any) -> List[str]: ...\n def get_option_order(self) -> List[Tuple[str, str]]: ...\n def generate_help(self, header: Optional[str] = ...) -> List[str]: ...\n\nclass OptionDummy: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\fancy_getopt.pyi | fancy_getopt.pyi | Other | 859 | 0.95 | 0.428571 | 0.058824 | react-lib | 379 | 2024-12-29T12:33:48.062443 | MIT | false | 0feac67fe905821bf6efbb51f4e65130 |
class FileList: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\filelist.pyi | filelist.pyi | Other | 20 | 0.65 | 1 | 0 | react-lib | 467 | 2024-10-17T12:18:37.394479 | MIT | false | 7e231e1d0ec92241b7b535063264e52f |
from typing import Optional, Sequence, Tuple\n\ndef copy_file(\n src: str,\n dst: str,\n preserve_mode: bool = ...,\n preserve_times: bool = ...,\n update: bool = ...,\n link: Optional[str] = ...,\n verbose: bool = ...,\n dry_run: bool = ...,\n) -> Tuple[str, str]: ...\ndef move_file(src: str, dst: str, verbose: bool = ..., dry_run: bool = ...) -> str: ...\ndef write_file(filename: str, contents: Sequence[str]) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\file_util.pyi | file_util.pyi | Other | 439 | 0.85 | 0.214286 | 0 | node-utils | 75 | 2024-09-30T16:47:09.575692 | Apache-2.0 | false | e8e94788d3442d535c6bfb54e6c067cb |
from typing import Any\n\nDEBUG: int\nINFO: int\nWARN: int\nERROR: int\nFATAL: int\n\nclass Log:\n def __init__(self, threshold: int = ...) -> None: ...\n def log(self, level: int, msg: str, *args: Any) -> None: ...\n def debug(self, msg: str, *args: Any) -> None: ...\n def info(self, msg: str, *args: Any) -> None: ...\n def warn(self, msg: str, *args: Any) -> None: ...\n def error(self, msg: str, *args: Any) -> None: ...\n def fatal(self, msg: str, *args: Any) -> None: ...\n\ndef log(level: int, msg: str, *args: Any) -> None: ...\ndef debug(msg: str, *args: Any) -> None: ...\ndef info(msg: str, *args: Any) -> None: ...\ndef warn(msg: str, *args: Any) -> None: ...\ndef error(msg: str, *args: Any) -> None: ...\ndef fatal(msg: str, *args: Any) -> None: ...\ndef set_threshold(level: int) -> int: ...\ndef set_verbosity(v: int) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\log.pyi | log.pyi | Other | 845 | 0.85 | 0.64 | 0 | vue-tools | 957 | 2025-03-20T05:14:56.500146 | MIT | false | ccf380c4a913e0fdbf0671280e2b927c |
from distutils.ccompiler import CCompiler\n\nclass MSVCCompiler(CCompiler): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\msvccompiler.pyi | msvccompiler.pyi | Other | 78 | 0.65 | 0.333333 | 0 | node-utils | 598 | 2024-07-03T21:03:23.155714 | MIT | false | 580235ee88a5ebdfc9e67864d2a7c5bc |
from typing import List, Optional\n\ndef spawn(cmd: List[str], search_path: bool = ..., verbose: bool = ..., dry_run: bool = ...) -> None: ...\ndef find_executable(executable: str, path: Optional[str] = ...) -> Optional[str]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\spawn.pyi | spawn.pyi | Other | 227 | 0.85 | 0.5 | 0 | vue-tools | 337 | 2024-04-23T13:41:56.678626 | MIT | false | cbb2893490d76fa4430905f7a966dbd1 |
from distutils.ccompiler import CCompiler\nfrom typing import Mapping, Optional, Union\n\nPREFIX: str\nEXEC_PREFIX: str\n\ndef get_config_var(name: str) -> Union[int, str, None]: ...\ndef get_config_vars(*args: str) -> Mapping[str, Union[int, str]]: ...\ndef get_config_h_filename() -> str: ...\ndef get_makefile_filename() -> str: ...\ndef get_python_inc(plat_specific: bool = ..., prefix: Optional[str] = ...) -> str: ...\ndef get_python_lib(plat_specific: bool = ..., standard_lib: bool = ..., prefix: Optional[str] = ...) -> str: ...\ndef customize_compiler(compiler: CCompiler) -> None: ...\ndef set_python_build() -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\sysconfig.pyi | sysconfig.pyi | Other | 620 | 0.85 | 0.571429 | 0 | react-lib | 677 | 2023-12-17T14:17:57.267057 | BSD-3-Clause | false | 6432d17b3d24267613cce0b0c703ccd4 |
from typing import IO, List, Optional, Tuple, Union\n\nclass TextFile:\n def __init__(\n self,\n filename: Optional[str] = ...,\n file: Optional[IO[str]] = ...,\n *,\n strip_comments: bool = ...,\n lstrip_ws: bool = ...,\n rstrip_ws: bool = ...,\n skip_blanks: bool = ...,\n join_lines: bool = ...,\n collapse_join: bool = ...,\n ) -> None: ...\n def open(self, filename: str) -> None: ...\n def close(self) -> None: ...\n def warn(self, msg: str, line: Union[List[int], Tuple[int, int], int] = ...) -> None: ...\n def readline(self) -> Optional[str]: ...\n def readlines(self) -> List[str]: ...\n def unreadline(self, line: str) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\text_file.pyi | text_file.pyi | Other | 716 | 0.85 | 0.380952 | 0.05 | vue-tools | 117 | 2024-08-20T16:37:24.738454 | MIT | false | 603cdd1839e391a9f4d7675a810ed38d |
from distutils.ccompiler import CCompiler\n\nclass UnixCCompiler(CCompiler): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\unixccompiler.pyi | unixccompiler.pyi | Other | 79 | 0.65 | 0.333333 | 0 | awesome-app | 528 | 2024-07-14T02:09:29.953230 | MIT | false | 8f017fb674af90b3ef426ca13571ca07 |
from typing import Any, Callable, List, Mapping, Optional, Tuple\n\ndef get_platform() -> str: ...\ndef convert_path(pathname: str) -> str: ...\ndef change_root(new_root: str, pathname: str) -> str: ...\ndef check_environ() -> None: ...\ndef subst_vars(s: str, local_vars: Mapping[str, str]) -> None: ...\ndef split_quoted(s: str) -> List[str]: ...\ndef execute(\n func: Callable[..., None], args: Tuple[Any, ...], msg: Optional[str] = ..., verbose: bool = ..., dry_run: bool = ...\n) -> None: ...\ndef strtobool(val: str) -> bool: ...\ndef byte_compile(\n py_files: List[str],\n optimize: int = ...,\n force: bool = ...,\n prefix: Optional[str] = ...,\n base_dir: Optional[str] = ...,\n verbose: bool = ...,\n dry_run: bool = ...,\n direct: Optional[bool] = ...,\n) -> None: ...\ndef rfc822_escape(header: str) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\util.pyi | util.pyi | Other | 829 | 0.85 | 0.434783 | 0 | vue-tools | 752 | 2023-09-11T11:53:17.425481 | MIT | false | dd8ad279f04ba11e9fe2f5252713084a |
from abc import abstractmethod\nfrom typing import Optional, Pattern, Tuple, TypeVar, Union\n\n_T = TypeVar("_T", bound=Version)\n\nclass Version:\n def __repr__(self) -> str: ...\n def __eq__(self, other: object) -> bool: ...\n def __lt__(self: _T, other: Union[_T, str]) -> bool: ...\n def __le__(self: _T, other: Union[_T, str]) -> bool: ...\n def __gt__(self: _T, other: Union[_T, str]) -> bool: ...\n def __ge__(self: _T, other: Union[_T, str]) -> bool: ...\n @abstractmethod\n def __init__(self, vstring: Optional[str] = ...) -> None: ...\n @abstractmethod\n def parse(self: _T, vstring: str) -> _T: ...\n @abstractmethod\n def __str__(self) -> str: ...\n @abstractmethod\n def _cmp(self: _T, other: Union[_T, str]) -> bool: ...\n\nclass StrictVersion(Version):\n version_re: Pattern[str]\n version: Tuple[int, int, int]\n prerelease: Optional[Tuple[str, int]]\n def __init__(self, vstring: Optional[str] = ...) -> None: ...\n def parse(self: _T, vstring: str) -> _T: ...\n def __str__(self) -> str: ...\n def _cmp(self: _T, other: Union[_T, str]) -> bool: ...\n\nclass LooseVersion(Version):\n component_re: Pattern[str]\n vstring: str\n version: Tuple[Union[str, int], ...]\n def __init__(self, vstring: Optional[str] = ...) -> None: ...\n def parse(self: _T, vstring: str) -> _T: ...\n def __str__(self) -> str: ...\n def _cmp(self: _T, other: Union[_T, str]) -> bool: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\version.pyi | version.pyi | Other | 1,429 | 0.85 | 0.552632 | 0 | react-lib | 657 | 2025-03-01T15:47:45.145815 | MIT | false | d3cc55b568d8ccd8026fb7565f0fe957 |
from distutils.cmd import Command\n\nclass bdist_msi(Command):\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n def run(self) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\command\bdist_msi.pyi | bdist_msi.pyi | Other | 182 | 0.85 | 0.666667 | 0 | python-kit | 752 | 2024-03-06T20:47:10.119668 | Apache-2.0 | false | 9e7983accd4965cad41f9465b79b8948 |
from distutils.cmd import Command\n\nclass build_py(Command):\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n def run(self) -> None: ...\n\nclass build_py_2to3(build_py): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\command\build_py.pyi | build_py.pyi | Other | 217 | 0.85 | 0.625 | 0 | node-utils | 792 | 2023-09-26T04:47:53.678247 | GPL-3.0 | false | f23d3b2e6a29e67e8e19e60166afe8f4 |
from distutils import log as log\nfrom distutils.ccompiler import CCompiler\nfrom distutils.core import Command as Command\nfrom distutils.errors import DistutilsExecError as DistutilsExecError\nfrom distutils.sysconfig import customize_compiler as customize_compiler\nfrom typing import Dict, List, Optional, Pattern, Sequence, Tuple, Union\n\nLANG_EXT: Dict[str, str]\n\nclass config(Command):\n description: str = ...\n # Tuple is full name, short name, description\n user_options: Sequence[Tuple[str, Optional[str], str]] = ...\n compiler: Optional[Union[str, CCompiler]] = ...\n cc: Optional[str] = ...\n include_dirs: Optional[Sequence[str]] = ...\n libraries: Optional[Sequence[str]] = ...\n library_dirs: Optional[Sequence[str]] = ...\n noisy: int = ...\n dump_source: int = ...\n temp_files: Sequence[str] = ...\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n def run(self) -> None: ...\n def try_cpp(\n self,\n body: Optional[str] = ...,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n lang: str = ...,\n ) -> bool: ...\n def search_cpp(\n self,\n pattern: Union[Pattern[str], str],\n body: Optional[str] = ...,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n lang: str = ...,\n ) -> bool: ...\n def try_compile(\n self, body: str, headers: Optional[Sequence[str]] = ..., include_dirs: Optional[Sequence[str]] = ..., lang: str = ...\n ) -> bool: ...\n def try_link(\n self,\n body: str,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n libraries: Optional[Sequence[str]] = ...,\n library_dirs: Optional[Sequence[str]] = ...,\n lang: str = ...,\n ) -> bool: ...\n def try_run(\n self,\n body: str,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n libraries: Optional[Sequence[str]] = ...,\n library_dirs: Optional[Sequence[str]] = ...,\n lang: str = ...,\n ) -> bool: ...\n def check_func(\n self,\n func: str,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n libraries: Optional[Sequence[str]] = ...,\n library_dirs: Optional[Sequence[str]] = ...,\n decl: int = ...,\n call: int = ...,\n ) -> bool: ...\n def check_lib(\n self,\n library: str,\n library_dirs: Optional[Sequence[str]] = ...,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n other_libraries: List[str] = ...,\n ) -> bool: ...\n def check_header(\n self,\n header: str,\n include_dirs: Optional[Sequence[str]] = ...,\n library_dirs: Optional[Sequence[str]] = ...,\n lang: str = ...,\n ) -> bool: ...\n\ndef dump_file(filename: str, head: Optional[str] = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\command\config.pyi | config.pyi | Other | 3,059 | 0.95 | 0.149425 | 0.011905 | awesome-app | 589 | 2023-07-12T05:58:09.199580 | GPL-3.0 | false | 756e02f310cfcee2bf530fc01e0f5ec1 |
from distutils.cmd import Command\nfrom typing import Optional, Tuple\n\nSCHEME_KEYS: Tuple[str, ...]\n\nclass install(Command):\n user: bool\n prefix: Optional[str]\n home: Optional[str]\n root: Optional[str]\n install_lib: Optional[str]\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n def run(self) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\command\install.pyi | install.pyi | Other | 365 | 0.85 | 0.285714 | 0 | awesome-app | 133 | 2025-04-04T02:26:22.271851 | BSD-3-Clause | false | ef228980f6a53b2bf29ee996ce7911bb |
from distutils.cmd import Command\nfrom typing import ClassVar, List, Optional, Tuple\n\nclass install_egg_info(Command):\n description: ClassVar[str]\n user_options: ClassVar[List[Tuple[str, Optional[str], str]]]\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n def run(self) -> None: ...\n def get_outputs(self) -> List[str]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\command\install_egg_info.pyi | install_egg_info.pyi | Other | 380 | 0.85 | 0.5 | 0 | node-utils | 459 | 2025-06-02T04:49:42.926119 | Apache-2.0 | false | b8e3a53331ced6a6f136d790963b6723 |
from distutils.config import PyPIRCCommand\nfrom typing import ClassVar, List\n\nclass upload(PyPIRCCommand):\n description: ClassVar[str]\n boolean_options: ClassVar[List[str]]\n def run(self) -> None: ...\n def upload_file(self, command, pyversion, filename) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\distutils\command\upload.pyi | upload.pyi | Other | 279 | 0.85 | 0.375 | 0 | react-lib | 642 | 2024-12-09T08:55:09.664945 | Apache-2.0 | false | 91495369b114d9d8a9a2d9bfeccbfdfc |
from typing import Any, Iterator, List, Optional\n\nQP: int # undocumented\nBASE64: int # undocumented\nSHORTEST: int # undocumented\n\nclass Charset:\n input_charset: str\n header_encoding: int\n body_encoding: int\n output_charset: Optional[str]\n input_codec: Optional[str]\n output_codec: Optional[str]\n def __init__(self, input_charset: str = ...) -> None: ...\n def get_body_encoding(self) -> str: ...\n def get_output_charset(self) -> Optional[str]: ...\n def header_encode(self, string: str) -> str: ...\n def header_encode_lines(self, string: str, maxlengths: Iterator[int]) -> List[str]: ...\n def body_encode(self, string: str) -> str: ...\n def __str__(self) -> str: ...\n def __eq__(self, other: Any) -> bool: ...\n def __ne__(self, other: Any) -> bool: ...\n\ndef add_charset(\n charset: str, header_enc: Optional[int] = ..., body_enc: Optional[int] = ..., output_charset: Optional[str] = ...\n) -> None: ...\ndef add_alias(alias: str, canonical: str) -> None: ...\ndef add_codec(charset: str, codecname: str) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\charset.pyi | charset.pyi | Other | 1,062 | 0.95 | 0.464286 | 0 | python-kit | 215 | 2024-07-13T22:34:13.115777 | MIT | false | f99226cff03db3aca80dc6d4029d64ec |
from email.message import Message\nfrom typing import Any, Callable\n\nclass ContentManager:\n def __init__(self) -> None: ...\n def get_content(self, msg: Message, *args: Any, **kw: Any) -> Any: ...\n def set_content(self, msg: Message, obj: Any, *args: Any, **kw: Any) -> Any: ...\n def add_get_handler(self, key: str, handler: Callable[..., Any]) -> None: ...\n def add_set_handler(self, typekey: type, handler: Callable[..., Any]) -> None: ...\n\nraw_data_manager: ContentManager\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\contentmanager.pyi | contentmanager.pyi | Other | 489 | 0.85 | 0.545455 | 0 | vue-tools | 878 | 2023-08-14T03:34:38.241214 | Apache-2.0 | false | a9817b302513b83c815da49fa130454d |
from email.message import Message\n\ndef encode_base64(msg: Message) -> None: ...\ndef encode_quopri(msg: Message) -> None: ...\ndef encode_7or8bit(msg: Message) -> None: ...\ndef encode_noop(msg: Message) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\encoders.pyi | encoders.pyi | Other | 214 | 0.85 | 0.666667 | 0 | python-kit | 922 | 2024-06-20T03:38:53.992768 | GPL-3.0 | false | aed2811ec8e8077976bd70e8b421b07b |
class MessageError(Exception): ...\nclass MessageParseError(MessageError): ...\nclass HeaderParseError(MessageParseError): ...\nclass BoundaryError(MessageParseError): ...\nclass MultipartConversionError(MessageError, TypeError): ...\nclass MessageDefect(ValueError): ...\nclass NoBoundaryInMultipartDefect(MessageDefect): ...\nclass StartBoundaryNotFoundDefect(MessageDefect): ...\nclass FirstHeaderLineIsContinuationDefect(MessageDefect): ...\nclass MisplacedEnvelopeHeaderDefect(MessageDefect): ...\nclass MultipartInvariantViolationDefect(MessageDefect): ...\nclass InvalidBase64PaddingDefect(MessageDefect): ...\nclass InvalidBase64CharactersDefect(MessageDefect): ...\nclass CloseBoundaryNotFoundDefect(MessageDefect): ...\nclass MissingHeaderBodySeparatorDefect(MessageDefect): ...\n\nMalformedHeaderDefect = MissingHeaderBodySeparatorDefect\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\errors.pyi | errors.pyi | Other | 833 | 0.85 | 0.882353 | 0 | node-utils | 891 | 2023-11-20T09:20:07.623594 | MIT | false | fb45842b7b6078feff2ea64b52eb2a83 |
from email.message import Message\nfrom email.policy import Policy\nfrom typing import Callable, Generic, TypeVar, overload\n\n_M = TypeVar("_M", bound=Message)\n\nclass FeedParser(Generic[_M]):\n @overload\n def __init__(self: FeedParser[Message], _factory: None = ..., *, policy: Policy = ...) -> None: ...\n @overload\n def __init__(self, _factory: Callable[[], _M], *, policy: Policy = ...) -> None: ...\n def feed(self, data: str) -> None: ...\n def close(self) -> _M: ...\n\nclass BytesFeedParser(Generic[_M]):\n @overload\n def __init__(self: BytesFeedParser[Message], _factory: None = ..., *, policy: Policy = ...) -> None: ...\n @overload\n def __init__(self, _factory: Callable[[], _M], *, policy: Policy = ...) -> None: ...\n def feed(self, data: bytes) -> None: ...\n def close(self) -> _M: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\feedparser.pyi | feedparser.pyi | Other | 823 | 0.85 | 0.47619 | 0 | vue-tools | 825 | 2023-08-17T19:45:02.364344 | BSD-3-Clause | false | 541bbeef7ff05c9a9f5fff9f8d5f1afa |
from email.message import Message\nfrom email.policy import Policy\nfrom typing import BinaryIO, Optional, TextIO\n\nclass Generator:\n def clone(self, fp: TextIO) -> Generator: ...\n def write(self, s: str) -> None: ...\n def __init__(self, outfp: TextIO, mangle_from_: bool = ..., maxheaderlen: int = ..., *, policy: Policy = ...) -> None: ...\n def flatten(self, msg: Message, unixfrom: bool = ..., linesep: Optional[str] = ...) -> None: ...\n\nclass BytesGenerator:\n def clone(self, fp: BinaryIO) -> BytesGenerator: ...\n def write(self, s: str) -> None: ...\n def __init__(self, outfp: BinaryIO, mangle_from_: bool = ..., maxheaderlen: int = ..., *, policy: Policy = ...) -> None: ...\n def flatten(self, msg: Message, unixfrom: bool = ..., linesep: Optional[str] = ...) -> None: ...\n\nclass DecodedGenerator(Generator):\n def __init__(self, outfp: TextIO, mangle_from_: bool = ..., maxheaderlen: int = ..., *, fmt: Optional[str] = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\generator.pyi | generator.pyi | Other | 967 | 0.85 | 0.666667 | 0 | python-kit | 367 | 2023-10-05T21:00:06.931431 | BSD-3-Clause | false | 0f157087e715eb99129dc9b5d2d73a97 |
from email.charset import Charset\nfrom typing import Any, List, Optional, Tuple, Union\n\nclass Header:\n def __init__(\n self,\n s: Union[bytes, str, None] = ...,\n charset: Union[Charset, str, None] = ...,\n maxlinelen: Optional[int] = ...,\n header_name: Optional[str] = ...,\n continuation_ws: str = ...,\n errors: str = ...,\n ) -> None: ...\n def append(self, s: Union[bytes, str], charset: Union[Charset, str, None] = ..., errors: str = ...) -> None: ...\n def encode(self, splitchars: str = ..., maxlinelen: Optional[int] = ..., linesep: str = ...) -> str: ...\n def __str__(self) -> str: ...\n def __eq__(self, other: Any) -> bool: ...\n def __ne__(self, other: Any) -> bool: ...\n\ndef decode_header(header: Union[Header, str]) -> List[Tuple[bytes, Optional[str]]]: ...\ndef make_header(\n decoded_seq: List[Tuple[bytes, Optional[str]]],\n maxlinelen: Optional[int] = ...,\n header_name: Optional[str] = ...,\n continuation_ws: str = ...,\n) -> Header: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\header.pyi | header.pyi | Other | 1,025 | 0.85 | 0.346154 | 0 | python-kit | 345 | 2023-07-24T23:17:40.895882 | GPL-3.0 | false | da9d394ad7897e657cfe9eb123f6ed13 |
from datetime import datetime as _datetime\nfrom email.errors import MessageDefect\nfrom email.policy import Policy\nfrom typing import Any, Dict, Mapping, Optional, Tuple, Union\n\nclass BaseHeader(str):\n @property\n def name(self) -> str: ...\n @property\n def defects(self) -> Tuple[MessageDefect, ...]: ...\n @property\n def max_count(self) -> Optional[int]: ...\n def __new__(cls, name: str, value: Any) -> BaseHeader: ...\n def init(self, *args: Any, **kw: Any) -> None: ...\n def fold(self, *, policy: Policy) -> str: ...\n\nclass UnstructuredHeader:\n @classmethod\n def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...\n\nclass UniqueUnstructuredHeader(UnstructuredHeader): ...\n\nclass DateHeader:\n datetime: _datetime\n @classmethod\n def parse(cls, string: Union[str, _datetime], kwds: Dict[str, Any]) -> None: ...\n\nclass UniqueDateHeader(DateHeader): ...\n\nclass AddressHeader:\n groups: Tuple[Group, ...]\n addresses: Tuple[Address, ...]\n @classmethod\n def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...\n\nclass UniqueAddressHeader(AddressHeader): ...\n\nclass SingleAddressHeader(AddressHeader):\n @property\n def address(self) -> Address: ...\n\nclass UniqueSingleAddressHeader(SingleAddressHeader): ...\n\nclass MIMEVersionHeader:\n version: Optional[str]\n major: Optional[int]\n minor: Optional[int]\n @classmethod\n def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...\n\nclass ParameterizedMIMEHeader:\n params: Mapping[str, Any]\n @classmethod\n def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...\n\nclass ContentTypeHeader(ParameterizedMIMEHeader):\n content_type: str\n maintype: str\n subtype: str\n\nclass ContentDispositionHeader(ParameterizedMIMEHeader):\n content_disposition: str\n\nclass ContentTransferEncodingHeader:\n cte: str\n @classmethod\n def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...\n\nclass HeaderRegistry:\n def __init__(self, base_class: BaseHeader = ..., default_class: BaseHeader = ..., use_default_map: bool = ...) -> None: ...\n def map_to_type(self, name: str, cls: BaseHeader) -> None: ...\n def __getitem__(self, name: str) -> BaseHeader: ...\n def __call__(self, name: str, value: Any) -> BaseHeader: ...\n\nclass Address:\n display_name: str\n username: str\n domain: str\n @property\n def addr_spec(self) -> str: ...\n def __init__(\n self, display_name: str = ..., username: Optional[str] = ..., domain: Optional[str] = ..., addr_spec: Optional[str] = ...\n ) -> None: ...\n def __str__(self) -> str: ...\n\nclass Group:\n display_name: Optional[str]\n addresses: Tuple[Address, ...]\n def __init__(self, display_name: Optional[str] = ..., addresses: Optional[Tuple[Address, ...]] = ...) -> None: ...\n def __str__(self) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\headerregistry.pyi | headerregistry.pyi | Other | 2,828 | 0.85 | 0.433333 | 0 | vue-tools | 695 | 2023-10-29T17:21:13.010741 | MIT | false | 910f70aa64c76160ebd0ecfdfdc1d6c4 |
from email.message import Message\nfrom typing import Iterator, Optional\n\ndef body_line_iterator(msg: Message, decode: bool = ...) -> Iterator[str]: ...\ndef typed_subpart_iterator(msg: Message, maintype: str = ..., subtype: Optional[str] = ...) -> Iterator[str]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\iterators.pyi | iterators.pyi | Other | 266 | 0.85 | 0.4 | 0 | react-lib | 343 | 2024-12-27T16:09:25.294918 | Apache-2.0 | false | e1d53fbcad822c276e6aebd138b80ec1 |
from email.charset import Charset\nfrom email.contentmanager import ContentManager\nfrom email.errors import MessageDefect\nfrom email.policy import Policy\nfrom typing import Any, Generator, Iterator, List, Optional, Sequence, Tuple, TypeVar, Union\n\n_T = TypeVar("_T")\n\n_PayloadType = Union[List[Message], str, bytes]\n_CharsetType = Union[Charset, str, None]\n_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]\n_ParamType = Union[str, Tuple[Optional[str], Optional[str], str]]\n_HeaderType = Any\n\nclass Message:\n preamble: Optional[str]\n epilogue: Optional[str]\n defects: List[MessageDefect]\n def __str__(self) -> str: ...\n def is_multipart(self) -> bool: ...\n def set_unixfrom(self, unixfrom: str) -> None: ...\n def get_unixfrom(self) -> Optional[str]: ...\n def attach(self, payload: Message) -> None: ...\n def get_payload(self, i: int = ..., decode: bool = ...) -> Any: ... # returns Optional[_PayloadType]\n def set_payload(self, payload: _PayloadType, charset: _CharsetType = ...) -> None: ...\n def set_charset(self, charset: _CharsetType) -> None: ...\n def get_charset(self) -> _CharsetType: ...\n def __len__(self) -> int: ...\n def __contains__(self, name: str) -> bool: ...\n def __getitem__(self, name: str) -> _HeaderType: ...\n def __setitem__(self, name: str, val: _HeaderType) -> None: ...\n def __delitem__(self, name: str) -> None: ...\n def keys(self) -> List[str]: ...\n def values(self) -> List[_HeaderType]: ...\n def items(self) -> List[Tuple[str, _HeaderType]]: ...\n def get(self, name: str, failobj: _T = ...) -> Union[_HeaderType, _T]: ...\n def get_all(self, name: str, failobj: _T = ...) -> Union[List[_HeaderType], _T]: ...\n def add_header(self, _name: str, _value: str, **_params: _ParamsType) -> None: ...\n def replace_header(self, _name: str, _value: _HeaderType) -> None: ...\n def get_content_type(self) -> str: ...\n def get_content_maintype(self) -> str: ...\n def get_content_subtype(self) -> str: ...\n def get_default_type(self) -> str: ...\n def set_default_type(self, ctype: str) -> None: ...\n def get_params(self, failobj: _T = ..., header: str = ..., unquote: bool = ...) -> Union[List[Tuple[str, str]], _T]: ...\n def get_param(self, param: str, failobj: _T = ..., header: str = ..., unquote: bool = ...) -> Union[_T, _ParamType]: ...\n def del_param(self, param: str, header: str = ..., requote: bool = ...) -> None: ...\n def set_type(self, type: str, header: str = ..., requote: bool = ...) -> None: ...\n def get_filename(self, failobj: _T = ...) -> Union[_T, str]: ...\n def get_boundary(self, failobj: _T = ...) -> Union[_T, str]: ...\n def set_boundary(self, boundary: str) -> None: ...\n def get_content_charset(self, failobj: _T = ...) -> Union[_T, str]: ...\n def get_charsets(self, failobj: _T = ...) -> Union[_T, List[str]]: ...\n def walk(self) -> Generator[Message, None, None]: ...\n def get_content_disposition(self) -> Optional[str]: ...\n def as_string(self, unixfrom: bool = ..., maxheaderlen: int = ..., policy: Optional[Policy] = ...) -> str: ...\n def as_bytes(self, unixfrom: bool = ..., policy: Optional[Policy] = ...) -> bytes: ...\n def __bytes__(self) -> bytes: ...\n def set_param(\n self,\n param: str,\n value: str,\n header: str = ...,\n requote: bool = ...,\n charset: str = ...,\n language: str = ...,\n replace: bool = ...,\n ) -> None: ...\n def __init__(self, policy: Policy = ...) -> None: ...\n\nclass MIMEPart(Message):\n def get_body(self, preferencelist: Sequence[str] = ...) -> Optional[Message]: ...\n def iter_attachments(self) -> Iterator[Message]: ...\n def iter_parts(self) -> Iterator[Message]: ...\n def get_content(self, *args: Any, content_manager: Optional[ContentManager] = ..., **kw: Any) -> Any: ...\n def set_content(self, *args: Any, content_manager: Optional[ContentManager] = ..., **kw: Any) -> None: ...\n def make_related(self, boundary: Optional[str] = ...) -> None: ...\n def make_alternative(self, boundary: Optional[str] = ...) -> None: ...\n def make_mixed(self, boundary: Optional[str] = ...) -> None: ...\n def add_related(self, *args: Any, content_manager: Optional[ContentManager] = ..., **kw: Any) -> None: ...\n def add_alternative(self, *args: Any, content_manager: Optional[ContentManager] = ..., **kw: Any) -> None: ...\n def add_attachment(self, *args: Any, content_manager: Optional[ContentManager] = ..., **kw: Any) -> None: ...\n def clear(self) -> None: ...\n def clear_content(self) -> None: ...\n def is_attachment(self) -> bool: ...\n\nclass EmailMessage(MIMEPart): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\message.pyi | message.pyi | Other | 4,681 | 0.95 | 0.678161 | 0 | awesome-app | 842 | 2025-03-01T00:15:21.733003 | BSD-3-Clause | false | 0862a22e77db23bf406e65c89dd7ea1c |
import email.feedparser\nfrom email.message import Message\nfrom email.policy import Policy\nfrom typing import BinaryIO, Callable, TextIO\n\nFeedParser = email.feedparser.FeedParser\nBytesFeedParser = email.feedparser.BytesFeedParser\n\nclass Parser:\n def __init__(self, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> None: ...\n def parse(self, fp: TextIO, headersonly: bool = ...) -> Message: ...\n def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...\n\nclass HeaderParser(Parser):\n def __init__(self, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> None: ...\n def parse(self, fp: TextIO, headersonly: bool = ...) -> Message: ...\n def parsestr(self, text: str, headersonly: bool = ...) -> Message: ...\n\nclass BytesHeaderParser(BytesParser):\n def __init__(self, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> None: ...\n def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...\n def parsebytes(self, text: bytes, headersonly: bool = ...) -> Message: ...\n\nclass BytesParser:\n def __init__(self, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> None: ...\n def parse(self, fp: BinaryIO, headersonly: bool = ...) -> Message: ...\n def parsebytes(self, text: bytes, headersonly: bool = ...) -> Message: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\parser.pyi | parser.pyi | Other | 1,328 | 0.85 | 0.592593 | 0 | awesome-app | 707 | 2025-06-08T22:13:32.496684 | Apache-2.0 | false | f49677dd136bb54b21e187baf01be952 |
from abc import abstractmethod\nfrom email.contentmanager import ContentManager\nfrom email.errors import MessageDefect\nfrom email.header import Header\nfrom email.message import Message\nfrom typing import Any, Callable, List, Optional, Tuple, Union\n\nclass Policy:\n max_line_length: Optional[int]\n linesep: str\n cte_type: str\n raise_on_defect: bool\n mange_from: bool\n def __init__(self, **kw: Any) -> None: ...\n def clone(self, **kw: Any) -> Policy: ...\n def handle_defect(self, obj: Message, defect: MessageDefect) -> None: ...\n def register_defect(self, obj: Message, defect: MessageDefect) -> None: ...\n def header_max_count(self, name: str) -> Optional[int]: ...\n @abstractmethod\n def header_source_parse(self, sourcelines: List[str]) -> Tuple[str, str]: ...\n @abstractmethod\n def header_store_parse(self, name: str, value: str) -> Tuple[str, str]: ...\n @abstractmethod\n def header_fetch_parse(self, name: str, value: str) -> str: ...\n @abstractmethod\n def fold(self, name: str, value: str) -> str: ...\n @abstractmethod\n def fold_binary(self, name: str, value: str) -> bytes: ...\n\nclass Compat32(Policy):\n def header_source_parse(self, sourcelines: List[str]) -> Tuple[str, str]: ...\n def header_store_parse(self, name: str, value: str) -> Tuple[str, str]: ...\n def header_fetch_parse(self, name: str, value: str) -> Union[str, Header]: ... # type: ignore\n def fold(self, name: str, value: str) -> str: ...\n def fold_binary(self, name: str, value: str) -> bytes: ...\n\ncompat32: Compat32\n\nclass EmailPolicy(Policy):\n utf8: bool\n refold_source: str\n header_factory: Callable[[str, str], str]\n content_manager: ContentManager\n def header_source_parse(self, sourcelines: List[str]) -> Tuple[str, str]: ...\n def header_store_parse(self, name: str, value: str) -> Tuple[str, str]: ...\n def header_fetch_parse(self, name: str, value: str) -> str: ...\n def fold(self, name: str, value: str) -> str: ...\n def fold_binary(self, name: str, value: str) -> bytes: ...\n\ndefault: EmailPolicy\nSMTP: EmailPolicy\nSMTPUTF8: EmailPolicy\nHTTP: EmailPolicy\nstrict: EmailPolicy\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\policy.pyi | policy.pyi | Other | 2,159 | 0.95 | 0.425926 | 0 | node-utils | 244 | 2024-02-24T05:15:36.931755 | Apache-2.0 | false | ba0f0a6d0847c5352a3614766b1a7653 |
import datetime\nimport sys\nfrom email.charset import Charset\nfrom typing import List, Optional, Tuple, Union, overload\n\n_ParamType = Union[str, Tuple[Optional[str], Optional[str], str]]\n_PDTZ = Tuple[int, int, int, int, int, int, int, int, int, Optional[int]]\n\ndef quote(str: str) -> str: ...\ndef unquote(str: str) -> str: ...\ndef parseaddr(address: Optional[str]) -> Tuple[str, str]: ...\ndef formataddr(pair: Tuple[Optional[str], str], charset: Union[str, Charset] = ...) -> str: ...\ndef getaddresses(fieldvalues: List[str]) -> List[Tuple[str, str]]: ...\n@overload\ndef parsedate(date: None) -> None: ...\n@overload\ndef parsedate(date: str) -> Optional[Tuple[int, int, int, int, int, int, int, int, int]]: ...\n@overload\ndef parsedate_tz(date: None) -> None: ...\n@overload\ndef parsedate_tz(date: str) -> Optional[_PDTZ]: ...\n\nif sys.version_info >= (3, 10):\n @overload\n def parsedate_to_datetime(date: None) -> None: ...\n @overload\n def parsedate_to_datetime(date: str) -> datetime.datetime: ...\n\nelse:\n def parsedate_to_datetime(date: str) -> datetime.datetime: ...\n\ndef mktime_tz(tuple: _PDTZ) -> int: ...\ndef formatdate(timeval: Optional[float] = ..., localtime: bool = ..., usegmt: bool = ...) -> str: ...\ndef format_datetime(dt: datetime.datetime, usegmt: bool = ...) -> str: ...\ndef localtime(dt: Optional[datetime.datetime] = ...) -> datetime.datetime: ...\ndef make_msgid(idstring: Optional[str] = ..., domain: Optional[str] = ...) -> str: ...\ndef decode_rfc2231(s: str) -> Tuple[Optional[str], Optional[str], str]: ...\ndef encode_rfc2231(s: str, charset: Optional[str] = ..., language: Optional[str] = ...) -> str: ...\ndef collapse_rfc2231_value(value: _ParamType, errors: str = ..., fallback_charset: str = ...) -> str: ...\ndef decode_params(params: List[Tuple[str, str]]) -> List[Tuple[str, _ParamType]]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\utils.pyi | utils.pyi | Other | 1,832 | 0.85 | 0.55 | 0 | node-utils | 133 | 2023-10-08T08:26:36.840178 | BSD-3-Clause | false | 8b1fa17c74b247b378eb46ec19c26a8a |
from email.message import Message\nfrom email.policy import Policy\nfrom typing import IO, Callable\n\ndef message_from_string(s: str, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...\ndef message_from_bytes(s: bytes, _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...\ndef message_from_file(fp: IO[str], _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...\ndef message_from_binary_file(fp: IO[bytes], _class: Callable[[], Message] = ..., *, policy: Policy = ...) -> Message: ...\n\n# Names in __all__ with no definition:\n# base64mime\n# charset\n# encoders\n# errors\n# feedparser\n# generator\n# header\n# iterators\n# message\n# mime\n# parser\n# quoprimime\n# utils\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\__init__.pyi | __init__.pyi | Other | 757 | 0.95 | 0.173913 | 0.666667 | react-lib | 1,000 | 2024-06-07T20:14:22.064002 | Apache-2.0 | false | d91f4b44ec835d5641776205ea62a82c |
from email.mime.nonmultipart import MIMENonMultipart\nfrom email.policy import Policy\nfrom typing import Callable, Optional, Tuple, Union\n\n_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]\n\nclass MIMEApplication(MIMENonMultipart):\n def __init__(\n self,\n _data: Union[str, bytes],\n _subtype: str = ...,\n _encoder: Callable[[MIMEApplication], None] = ...,\n *,\n policy: Optional[Policy] = ...,\n **_params: _ParamsType,\n ) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\mime\application.pyi | application.pyi | Other | 499 | 0.85 | 0.125 | 0.142857 | awesome-app | 855 | 2024-07-27T01:58:28.844219 | GPL-3.0 | false | 0fbaa7b7b3b19f93c9a447b89337f0aa |
from email.mime.nonmultipart import MIMENonMultipart\nfrom email.policy import Policy\nfrom typing import Callable, Optional, Tuple, Union\n\n_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]\n\nclass MIMEAudio(MIMENonMultipart):\n def __init__(\n self,\n _audiodata: Union[str, bytes],\n _subtype: Optional[str] = ...,\n _encoder: Callable[[MIMEAudio], None] = ...,\n *,\n policy: Optional[Policy] = ...,\n **_params: _ParamsType,\n ) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\mime\audio.pyi | audio.pyi | Other | 502 | 0.85 | 0.125 | 0.142857 | awesome-app | 285 | 2024-03-17T06:47:21.720493 | Apache-2.0 | false | a69baeda3cdfada88933ec67b36acb70 |
import email.message\nfrom email.policy import Policy\nfrom typing import Optional, Tuple, Union\n\n_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]\n\nclass MIMEBase(email.message.Message):\n def __init__(self, _maintype: str, _subtype: str, *, policy: Optional[Policy] = ..., **_params: _ParamsType) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\mime\base.pyi | base.pyi | Other | 325 | 0.85 | 0.25 | 0 | node-utils | 550 | 2024-09-08T12:40:44.445925 | Apache-2.0 | false | 550aa4771f9a655d8ec78802e533f606 |
from email.mime.nonmultipart import MIMENonMultipart\nfrom email.policy import Policy\nfrom typing import Callable, Optional, Tuple, Union\n\n_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]\n\nclass MIMEImage(MIMENonMultipart):\n def __init__(\n self,\n _imagedata: Union[str, bytes],\n _subtype: Optional[str] = ...,\n _encoder: Callable[[MIMEImage], None] = ...,\n *,\n policy: Optional[Policy] = ...,\n **_params: _ParamsType,\n ) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\mime\image.pyi | image.pyi | Other | 502 | 0.85 | 0.125 | 0.142857 | python-kit | 473 | 2025-01-09T11:54:29.136585 | Apache-2.0 | false | b16a226a6f0dcbec4529c573da692d43 |
from email.message import Message\nfrom email.mime.nonmultipart import MIMENonMultipart\nfrom email.policy import Policy\nfrom typing import Optional\n\nclass MIMEMessage(MIMENonMultipart):\n def __init__(self, _msg: Message, _subtype: str = ..., *, policy: Optional[Policy] = ...) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\mime\message.pyi | message.pyi | Other | 292 | 0.85 | 0.285714 | 0 | react-lib | 707 | 2025-01-07T09:40:39.060060 | MIT | false | addaf2a67e5d46b464fb03d6ef509dcd |
from email.message import Message\nfrom email.mime.base import MIMEBase\nfrom email.policy import Policy\nfrom typing import Optional, Sequence, Tuple, Union\n\n_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]\n\nclass MIMEMultipart(MIMEBase):\n def __init__(\n self,\n _subtype: str = ...,\n boundary: Optional[str] = ...,\n _subparts: Optional[Sequence[Message]] = ...,\n *,\n policy: Optional[Policy] = ...,\n **_params: _ParamsType,\n ) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\mime\multipart.pyi | multipart.pyi | Other | 507 | 0.85 | 0.117647 | 0.133333 | awesome-app | 390 | 2024-02-06T16:39:12.940627 | BSD-3-Clause | false | aedf22c782d423909882f477180c2930 |
from email.mime.base import MIMEBase\n\nclass MIMENonMultipart(MIMEBase): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\mime\nonmultipart.pyi | nonmultipart.pyi | Other | 76 | 0.65 | 0.333333 | 0 | awesome-app | 864 | 2023-09-08T22:10:49.292646 | MIT | false | b1ce77a6939dfef898483063c5c9ce35 |
from email.mime.nonmultipart import MIMENonMultipart\nfrom email.policy import Policy\nfrom typing import Optional\n\nclass MIMEText(MIMENonMultipart):\n def __init__(\n self, _text: str, _subtype: str = ..., _charset: Optional[str] = ..., *, policy: Optional[Policy] = ...\n ) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\email\mime\text.pyi | text.pyi | Other | 297 | 0.85 | 0.25 | 0 | vue-tools | 748 | 2023-07-24T06:42:28.458408 | MIT | false | 35add33a18b36fbeb2230acb8c9a5f0a |
import codecs\nfrom typing import Tuple\n\nclass IncrementalEncoder(codecs.IncrementalEncoder):\n def encode(self, input: str, final: bool = ...) -> bytes: ...\n\nclass IncrementalDecoder(codecs.BufferedIncrementalDecoder):\n def _buffer_decode(self, input: bytes, errors: str, final: bool) -> Tuple[str, int]: ...\n\nclass StreamWriter(codecs.StreamWriter): ...\nclass StreamReader(codecs.StreamReader): ...\n\ndef getregentry() -> codecs.CodecInfo: ...\ndef encode(input: str, errors: str = ...) -> bytes: ...\ndef decode(input: bytes, errors: str = ...) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\encodings\utf_8.pyi | utf_8.pyi | Other | 561 | 0.85 | 0.6 | 0 | awesome-app | 611 | 2024-05-03T07:35:37.736944 | MIT | false | a52bbb71f67fe9d1fd89ce0f8874b201 |
import codecs\nfrom typing import Any\n\ndef search_function(encoding: str) -> codecs.CodecInfo: ...\n\n# Explicitly mark this package as incomplete.\ndef __getattr__(name: str) -> Any: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\encodings\__init__.pyi | __init__.pyi | Other | 184 | 0.95 | 0.285714 | 0.2 | python-kit | 479 | 2024-01-10T19:18:09.124362 | BSD-3-Clause | false | 685d06f21a8a8fafb1d610a6f88b1970 |
from typing import Dict\n\nname2codepoint: Dict[str, int]\nhtml5: Dict[str, str]\ncodepoint2name: Dict[int, str]\nentitydefs: Dict[str, str]\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\html\entities.pyi | entities.pyi | Other | 136 | 0.85 | 0 | 0 | react-lib | 174 | 2024-03-14T19:02:33.728757 | Apache-2.0 | false | cee1db4481daa549918ed502ce549a8c |
from _markupbase import ParserBase\nfrom typing import List, Optional, Tuple\n\nclass HTMLParser(ParserBase):\n def __init__(self, *, convert_charrefs: bool = ...) -> None: ...\n def feed(self, feed: str) -> None: ...\n def close(self) -> None: ...\n def reset(self) -> None: ...\n def getpos(self) -> Tuple[int, int]: ...\n def get_starttag_text(self) -> Optional[str]: ...\n def handle_starttag(self, tag: str, attrs: List[Tuple[str, Optional[str]]]) -> None: ...\n def handle_endtag(self, tag: str) -> None: ...\n def handle_startendtag(self, tag: str, attrs: List[Tuple[str, Optional[str]]]) -> None: ...\n def handle_data(self, data: str) -> None: ...\n def handle_entityref(self, name: str) -> None: ...\n def handle_charref(self, name: str) -> None: ...\n def handle_comment(self, data: str) -> None: ...\n def handle_decl(self, decl: str) -> None: ...\n def handle_pi(self, data: str) -> None: ...\n def unknown_decl(self, data: str) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\html\parser.pyi | parser.pyi | Other | 984 | 0.85 | 0.85 | 0 | react-lib | 274 | 2025-06-22T08:03:47.473231 | GPL-3.0 | false | 1a6f15fc232b780e0faffe6efb5d639a |
from typing import AnyStr\n\ndef escape(s: AnyStr, quote: bool = ...) -> AnyStr: ...\ndef unescape(s: AnyStr) -> AnyStr: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\html\__init__.pyi | __init__.pyi | Other | 122 | 0.85 | 0.5 | 0 | react-lib | 510 | 2023-11-29T06:25:14.787241 | GPL-3.0 | false | cc7148f1833d5d45715bb7f9c073228e |
import email.message\nimport io\nimport ssl\nimport sys\nimport types\nfrom socket import socket\nfrom typing import (\n IO,\n Any,\n BinaryIO,\n Callable,\n Dict,\n Iterable,\n Iterator,\n List,\n Mapping,\n Optional,\n Protocol,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\n\n_DataType = Union[bytes, IO[Any], Iterable[bytes], str]\n_T = TypeVar("_T")\n\nHTTP_PORT: int\nHTTPS_PORT: int\n\nCONTINUE: int\nSWITCHING_PROTOCOLS: int\nPROCESSING: int\n\nOK: int\nCREATED: int\nACCEPTED: int\nNON_AUTHORITATIVE_INFORMATION: int\nNO_CONTENT: int\nRESET_CONTENT: int\nPARTIAL_CONTENT: int\nMULTI_STATUS: int\nIM_USED: int\n\nMULTIPLE_CHOICES: int\nMOVED_PERMANENTLY: int\nFOUND: int\nSEE_OTHER: int\nNOT_MODIFIED: int\nUSE_PROXY: int\nTEMPORARY_REDIRECT: int\n\nBAD_REQUEST: int\nUNAUTHORIZED: int\nPAYMENT_REQUIRED: int\nFORBIDDEN: int\nNOT_FOUND: int\nMETHOD_NOT_ALLOWED: int\nNOT_ACCEPTABLE: int\nPROXY_AUTHENTICATION_REQUIRED: int\nREQUEST_TIMEOUT: int\nCONFLICT: int\nGONE: int\nLENGTH_REQUIRED: int\nPRECONDITION_FAILED: int\nREQUEST_ENTITY_TOO_LARGE: int\nREQUEST_URI_TOO_LONG: int\nUNSUPPORTED_MEDIA_TYPE: int\nREQUESTED_RANGE_NOT_SATISFIABLE: int\nEXPECTATION_FAILED: int\nUNPROCESSABLE_ENTITY: int\nLOCKED: int\nFAILED_DEPENDENCY: int\nUPGRADE_REQUIRED: int\nPRECONDITION_REQUIRED: int\nTOO_MANY_REQUESTS: int\nREQUEST_HEADER_FIELDS_TOO_LARGE: int\n\nINTERNAL_SERVER_ERROR: int\nNOT_IMPLEMENTED: int\nBAD_GATEWAY: int\nSERVICE_UNAVAILABLE: int\nGATEWAY_TIMEOUT: int\nHTTP_VERSION_NOT_SUPPORTED: int\nINSUFFICIENT_STORAGE: int\nNOT_EXTENDED: int\nNETWORK_AUTHENTICATION_REQUIRED: int\n\nresponses: Dict[int, str]\n\nclass HTTPMessage(email.message.Message): ...\n\ndef parse_headers(fp: io.BufferedIOBase, _class: Callable[[], email.message.Message] = ...) -> HTTPMessage: ...\n\nclass HTTPResponse(io.BufferedIOBase, BinaryIO):\n msg: HTTPMessage\n headers: HTTPMessage\n version: int\n debuglevel: int\n closed: bool\n status: int\n reason: str\n def __init__(self, sock: socket, debuglevel: int = ..., method: Optional[str] = ..., url: Optional[str] = ...) -> None: ...\n def read(self, amt: Optional[int] = ...) -> bytes: ...\n @overload\n def getheader(self, name: str) -> Optional[str]: ...\n @overload\n def getheader(self, name: str, default: _T) -> Union[str, _T]: ...\n def getheaders(self) -> List[Tuple[str, str]]: ...\n def fileno(self) -> int: ...\n def isclosed(self) -> bool: ...\n def __iter__(self) -> Iterator[bytes]: ...\n def __enter__(self) -> HTTPResponse: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[types.TracebackType]\n ) -> Optional[bool]: ...\n def info(self) -> email.message.Message: ...\n def geturl(self) -> str: ...\n def getcode(self) -> int: ...\n def begin(self) -> None: ...\n\n# This is an API stub only for the class below, not a class itself.\n# urllib.request uses it for a parameter.\nclass _HTTPConnectionProtocol(Protocol):\n if sys.version_info >= (3, 7):\n def __call__(\n self,\n host: str,\n port: Optional[int] = ...,\n timeout: float = ...,\n source_address: Optional[Tuple[str, int]] = ...,\n blocksize: int = ...,\n ) -> HTTPConnection: ...\n else:\n def __call__(\n self, host: str, port: Optional[int] = ..., timeout: float = ..., source_address: Optional[Tuple[str, int]] = ...\n ) -> HTTPConnection: ...\n\nclass HTTPConnection:\n timeout: Optional[float]\n host: str\n port: int\n sock: Any\n if sys.version_info >= (3, 7):\n def __init__(\n self,\n host: str,\n port: Optional[int] = ...,\n timeout: Optional[float] = ...,\n source_address: Optional[Tuple[str, int]] = ...,\n blocksize: int = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n host: str,\n port: Optional[int] = ...,\n timeout: Optional[float] = ...,\n source_address: Optional[Tuple[str, int]] = ...,\n ) -> None: ...\n def request(\n self,\n method: str,\n url: str,\n body: Optional[_DataType] = ...,\n headers: Mapping[str, str] = ...,\n *,\n encode_chunked: bool = ...,\n ) -> None: ...\n def getresponse(self) -> HTTPResponse: ...\n def set_debuglevel(self, level: int) -> None: ...\n def set_tunnel(self, host: str, port: Optional[int] = ..., headers: Optional[Mapping[str, str]] = ...) -> None: ...\n def connect(self) -> None: ...\n def close(self) -> None: ...\n def putrequest(self, method: str, url: str, skip_host: bool = ..., skip_accept_encoding: bool = ...) -> None: ...\n def putheader(self, header: str, *argument: str) -> None: ...\n def endheaders(self, message_body: Optional[_DataType] = ..., *, encode_chunked: bool = ...) -> None: ...\n def send(self, data: _DataType) -> None: ...\n\nclass HTTPSConnection(HTTPConnection):\n def __init__(\n self,\n host: str,\n port: Optional[int] = ...,\n key_file: Optional[str] = ...,\n cert_file: Optional[str] = ...,\n timeout: Optional[float] = ...,\n source_address: Optional[Tuple[str, int]] = ...,\n *,\n context: Optional[ssl.SSLContext] = ...,\n check_hostname: Optional[bool] = ...,\n ) -> None: ...\n\nclass HTTPException(Exception): ...\n\nerror = HTTPException\n\nclass NotConnected(HTTPException): ...\nclass InvalidURL(HTTPException): ...\nclass UnknownProtocol(HTTPException): ...\nclass UnknownTransferEncoding(HTTPException): ...\nclass UnimplementedFileMode(HTTPException): ...\nclass IncompleteRead(HTTPException): ...\nclass ImproperConnectionState(HTTPException): ...\nclass CannotSendRequest(ImproperConnectionState): ...\nclass CannotSendHeader(ImproperConnectionState): ...\nclass ResponseNotReady(ImproperConnectionState): ...\nclass BadStatusLine(HTTPException): ...\nclass LineTooLong(HTTPException): ...\nclass RemoteDisconnected(ConnectionResetError, BadStatusLine): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\http\client.pyi | client.pyi | Other | 6,034 | 0.95 | 0.260664 | 0.020619 | node-utils | 416 | 2025-04-03T22:44:06.796109 | GPL-3.0 | false | bd344c4a0b70f1e96ac937dea6d04ac3 |
import sys\nfrom http.client import HTTPResponse\nfrom os import PathLike\nfrom typing import Dict, Iterable, Iterator, Optional, Sequence, Tuple, TypeVar, Union, overload\nfrom urllib.request import Request\n\n_T = TypeVar("_T")\n\nclass LoadError(OSError): ...\n\nclass CookieJar(Iterable[Cookie]):\n def __init__(self, policy: Optional[CookiePolicy] = ...) -> None: ...\n def add_cookie_header(self, request: Request) -> None: ...\n def extract_cookies(self, response: HTTPResponse, request: Request) -> None: ...\n def set_policy(self, policy: CookiePolicy) -> None: ...\n def make_cookies(self, response: HTTPResponse, request: Request) -> Sequence[Cookie]: ...\n def set_cookie(self, cookie: Cookie) -> None: ...\n def set_cookie_if_ok(self, cookie: Cookie, request: Request) -> None: ...\n def clear(self, domain: str = ..., path: str = ..., name: str = ...) -> None: ...\n def clear_session_cookies(self) -> None: ...\n def __iter__(self) -> Iterator[Cookie]: ...\n def __len__(self) -> int: ...\n\nclass FileCookieJar(CookieJar):\n filename: str\n delayload: bool\n if sys.version_info >= (3, 8):\n def __init__(\n self, filename: Union[str, PathLike[str]] = ..., delayload: bool = ..., policy: Optional[CookiePolicy] = ...\n ) -> None: ...\n else:\n def __init__(self, filename: str = ..., delayload: bool = ..., policy: Optional[CookiePolicy] = ...) -> None: ...\n def save(self, filename: Optional[str] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...) -> None: ...\n def load(self, filename: Optional[str] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...) -> None: ...\n def revert(self, filename: Optional[str] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...) -> None: ...\n\nclass MozillaCookieJar(FileCookieJar): ...\n\nclass LWPCookieJar(FileCookieJar):\n def as_lwp_str(self, ignore_discard: bool = ..., ignore_expires: bool = ...) -> str: ... # undocumented\n\nclass CookiePolicy:\n netscape: bool\n rfc2965: bool\n hide_cookie2: bool\n def set_ok(self, cookie: Cookie, request: Request) -> bool: ...\n def return_ok(self, cookie: Cookie, request: Request) -> bool: ...\n def domain_return_ok(self, domain: str, request: Request) -> bool: ...\n def path_return_ok(self, path: str, request: Request) -> bool: ...\n\nclass DefaultCookiePolicy(CookiePolicy):\n rfc2109_as_netscape: bool\n strict_domain: bool\n strict_rfc2965_unverifiable: bool\n strict_ns_unverifiable: bool\n strict_ns_domain: int\n strict_ns_set_initial_dollar: bool\n strict_ns_set_path: bool\n DomainStrictNoDots: int\n DomainStrictNonDomain: int\n DomainRFC2965Match: int\n DomainLiberal: int\n DomainStrict: int\n def __init__(\n self,\n blocked_domains: Optional[Sequence[str]] = ...,\n allowed_domains: Optional[Sequence[str]] = ...,\n netscape: bool = ...,\n rfc2965: bool = ...,\n rfc2109_as_netscape: Optional[bool] = ...,\n hide_cookie2: bool = ...,\n strict_domain: bool = ...,\n strict_rfc2965_unverifiable: bool = ...,\n strict_ns_unverifiable: bool = ...,\n strict_ns_domain: int = ...,\n strict_ns_set_initial_dollar: bool = ...,\n strict_ns_set_path: bool = ...,\n ) -> None: ...\n def blocked_domains(self) -> Tuple[str, ...]: ...\n def set_blocked_domains(self, blocked_domains: Sequence[str]) -> None: ...\n def is_blocked(self, domain: str) -> bool: ...\n def allowed_domains(self) -> Optional[Tuple[str, ...]]: ...\n def set_allowed_domains(self, allowed_domains: Optional[Sequence[str]]) -> None: ...\n def is_not_allowed(self, domain: str) -> bool: ...\n\nclass Cookie:\n version: Optional[int]\n name: str\n value: Optional[str]\n port: Optional[str]\n path: str\n path_specified: bool\n secure: bool\n expires: Optional[int]\n discard: bool\n comment: Optional[str]\n comment_url: Optional[str]\n rfc2109: bool\n port_specified: bool\n domain: str # undocumented\n domain_specified: bool\n domain_initial_dot: bool\n def __init__(\n self,\n version: Optional[int],\n name: str,\n value: Optional[str], # undocumented\n port: Optional[str],\n port_specified: bool,\n domain: str,\n domain_specified: bool,\n domain_initial_dot: bool,\n path: str,\n path_specified: bool,\n secure: bool,\n expires: Optional[int],\n discard: bool,\n comment: Optional[str],\n comment_url: Optional[str],\n rest: Dict[str, str],\n rfc2109: bool = ...,\n ) -> None: ...\n def has_nonstandard_attr(self, name: str) -> bool: ...\n @overload\n def get_nonstandard_attr(self, name: str) -> Optional[str]: ...\n @overload\n def get_nonstandard_attr(self, name: str, default: _T = ...) -> Union[str, _T]: ...\n def set_nonstandard_attr(self, name: str, value: str) -> None: ...\n def is_expired(self, now: int = ...) -> bool: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\http\cookiejar.pyi | cookiejar.pyi | Other | 4,991 | 0.95 | 0.333333 | 0 | python-kit | 473 | 2024-10-24T08:35:38.395425 | BSD-3-Clause | false | 5499521e3cf0649e4eb27eb13af4518f |
import sys\nfrom typing import Any, Dict, Generic, List, Mapping, Optional, TypeVar, Union\n\n_DataType = Union[str, Mapping[str, Union[str, Morsel[Any]]]]\n_T = TypeVar("_T")\n\nclass CookieError(Exception): ...\n\nclass Morsel(Dict[str, Any], Generic[_T]):\n value: str\n coded_value: _T\n key: str\n if sys.version_info >= (3, 7):\n def set(self, key: str, val: str, coded_val: _T) -> None: ...\n else:\n def set(self, key: str, val: str, coded_val: _T, LegalChars: str = ...) -> None: ...\n def isReservedKey(self, K: str) -> bool: ...\n def output(self, attrs: Optional[List[str]] = ..., header: str = ...) -> str: ...\n def js_output(self, attrs: Optional[List[str]] = ...) -> str: ...\n def OutputString(self, attrs: Optional[List[str]] = ...) -> str: ...\n\nclass BaseCookie(Dict[str, Morsel[_T]], Generic[_T]):\n def __init__(self, input: Optional[_DataType] = ...) -> None: ...\n def value_decode(self, val: str) -> _T: ...\n def value_encode(self, val: _T) -> str: ...\n def output(self, attrs: Optional[List[str]] = ..., header: str = ..., sep: str = ...) -> str: ...\n def js_output(self, attrs: Optional[List[str]] = ...) -> str: ...\n def load(self, rawdata: _DataType) -> None: ...\n def __setitem__(self, key: str, value: Union[str, Morsel[_T]]) -> None: ...\n\nclass SimpleCookie(BaseCookie[_T], Generic[_T]): ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\http\cookies.pyi | cookies.pyi | Other | 1,364 | 0.85 | 0.580645 | 0 | react-lib | 504 | 2024-03-20T20:44:07.122586 | Apache-2.0 | false | 86e506d82349b2312b257627e5db6d64 |
import email.message\nimport socketserver\nimport sys\nfrom typing import Any, Callable, ClassVar, Dict, List, Mapping, Optional, Sequence, Tuple, Union\n\nif sys.version_info >= (3, 7):\n from builtins import _PathLike\n\nclass HTTPServer(socketserver.TCPServer):\n server_name: str\n server_port: int\n def __init__(self, server_address: Tuple[str, int], RequestHandlerClass: Callable[..., BaseHTTPRequestHandler]) -> None: ...\n\nif sys.version_info >= (3, 7):\n class ThreadingHTTPServer(socketserver.ThreadingMixIn, HTTPServer):\n daemon_threads: bool # undocumented\n\nclass BaseHTTPRequestHandler(socketserver.StreamRequestHandler):\n client_address: Tuple[str, int]\n server: socketserver.BaseServer\n close_connection: bool\n requestline: str\n command: str\n path: str\n request_version: str\n headers: email.message.Message\n server_version: str\n sys_version: str\n error_message_format: str\n error_content_type: str\n protocol_version: str\n MessageClass: type\n responses: Mapping[int, Tuple[str, str]]\n weekdayname: ClassVar[Sequence[str]] = ... # Undocumented\n monthname: ClassVar[Sequence[Optional[str]]] = ... # Undocumented\n def __init__(self, request: bytes, client_address: Tuple[str, int], server: socketserver.BaseServer) -> None: ...\n def handle(self) -> None: ...\n def handle_one_request(self) -> None: ...\n def handle_expect_100(self) -> bool: ...\n def send_error(self, code: int, message: Optional[str] = ..., explain: Optional[str] = ...) -> None: ...\n def send_response(self, code: int, message: Optional[str] = ...) -> None: ...\n def send_header(self, keyword: str, value: str) -> None: ...\n def send_response_only(self, code: int, message: Optional[str] = ...) -> None: ...\n def end_headers(self) -> None: ...\n def flush_headers(self) -> None: ...\n def log_request(self, code: Union[int, str] = ..., size: Union[int, str] = ...) -> None: ...\n def log_error(self, format: str, *args: Any) -> None: ...\n def log_message(self, format: str, *args: Any) -> None: ...\n def version_string(self) -> str: ...\n def date_time_string(self, timestamp: Optional[int] = ...) -> str: ...\n def log_date_time_string(self) -> str: ...\n def address_string(self) -> str: ...\n def parse_request(self) -> bool: ... # Undocumented\n\nclass SimpleHTTPRequestHandler(BaseHTTPRequestHandler):\n extensions_map: Dict[str, str]\n if sys.version_info >= (3, 7):\n def __init__(\n self,\n request: bytes,\n client_address: Tuple[str, int],\n server: socketserver.BaseServer,\n directory: Optional[Union[str, _PathLike[str]]] = ...,\n ) -> None: ...\n else:\n def __init__(self, request: bytes, client_address: Tuple[str, int], server: socketserver.BaseServer) -> None: ...\n def do_GET(self) -> None: ...\n def do_HEAD(self) -> None: ...\n\nclass CGIHTTPRequestHandler(SimpleHTTPRequestHandler):\n cgi_directories: List[str]\n def do_POST(self) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\http\server.pyi | server.pyi | Other | 3,036 | 0.95 | 0.444444 | 0 | vue-tools | 583 | 2023-07-29T07:00:29.670020 | GPL-3.0 | false | beb7635fdc4be8ea782feb28ed61141a |
import sys\nfrom enum import IntEnum\nfrom typing_extensions import Literal\n\nclass HTTPStatus(IntEnum):\n @property\n def phrase(self) -> str: ...\n @property\n def description(self) -> str: ...\n CONTINUE: int\n SWITCHING_PROTOCOLS: int\n PROCESSING: int\n OK: int\n CREATED: int\n ACCEPTED: int\n NON_AUTHORITATIVE_INFORMATION: int\n NO_CONTENT: int\n RESET_CONTENT: int\n PARTIAL_CONTENT: int\n MULTI_STATUS: int\n ALREADY_REPORTED: int\n IM_USED: int\n MULTIPLE_CHOICES: int\n MOVED_PERMANENTLY: int\n FOUND: int\n SEE_OTHER: int\n NOT_MODIFIED: int\n USE_PROXY: int\n TEMPORARY_REDIRECT: int\n PERMANENT_REDIRECT: int\n BAD_REQUEST: int\n UNAUTHORIZED: int\n PAYMENT_REQUIRED: int\n FORBIDDEN: int\n NOT_FOUND: int\n METHOD_NOT_ALLOWED: int\n NOT_ACCEPTABLE: int\n PROXY_AUTHENTICATION_REQUIRED: int\n REQUEST_TIMEOUT: int\n CONFLICT: int\n GONE: int\n LENGTH_REQUIRED: int\n PRECONDITION_FAILED: int\n REQUEST_ENTITY_TOO_LARGE: int\n REQUEST_URI_TOO_LONG: int\n UNSUPPORTED_MEDIA_TYPE: int\n REQUESTED_RANGE_NOT_SATISFIABLE: int\n EXPECTATION_FAILED: int\n UNPROCESSABLE_ENTITY: int\n LOCKED: int\n FAILED_DEPENDENCY: int\n UPGRADE_REQUIRED: int\n PRECONDITION_REQUIRED: int\n TOO_MANY_REQUESTS: int\n REQUEST_HEADER_FIELDS_TOO_LARGE: int\n INTERNAL_SERVER_ERROR: int\n NOT_IMPLEMENTED: int\n BAD_GATEWAY: int\n SERVICE_UNAVAILABLE: int\n GATEWAY_TIMEOUT: int\n HTTP_VERSION_NOT_SUPPORTED: int\n VARIANT_ALSO_NEGOTIATES: int\n INSUFFICIENT_STORAGE: int\n LOOP_DETECTED: int\n NOT_EXTENDED: int\n NETWORK_AUTHENTICATION_REQUIRED: int\n if sys.version_info >= (3, 7):\n MISDIRECTED_REQUEST: int\n if sys.version_info >= (3, 8):\n UNAVAILABLE_FOR_LEGAL_REASONS: int\n if sys.version_info >= (3, 9):\n EARLY_HINTS: Literal[103]\n IM_A_TEAPOT: Literal[418]\n TOO_EARLY: Literal[425]\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\http\__init__.pyi | __init__.pyi | Other | 1,940 | 0.85 | 0.081081 | 0 | node-utils | 606 | 2023-12-14T02:59:24.497256 | GPL-3.0 | false | d3246da2ded3565416f4c536a831004b |
import os\nimport sys\nimport types\nfrom abc import ABCMeta, abstractmethod\nfrom typing import IO, Any, Iterator, Mapping, Optional, Sequence, Tuple, Union\nfrom typing_extensions import Literal\n\n# Loader is exported from this module, but for circular import reasons\n# exists in its own stub file (with ModuleSpec and ModuleType).\nfrom _importlib_modulespec import Loader as Loader, ModuleSpec # Exported\n\n_Path = Union[bytes, str]\n\nclass Finder(metaclass=ABCMeta): ...\n\nclass ResourceLoader(Loader):\n @abstractmethod\n def get_data(self, path: _Path) -> bytes: ...\n\nclass InspectLoader(Loader):\n def is_package(self, fullname: str) -> bool: ...\n def get_code(self, fullname: str) -> Optional[types.CodeType]: ...\n def load_module(self, fullname: str) -> types.ModuleType: ...\n @abstractmethod\n def get_source(self, fullname: str) -> Optional[str]: ...\n def exec_module(self, module: types.ModuleType) -> None: ...\n @staticmethod\n def source_to_code(data: Union[bytes, str], path: str = ...) -> types.CodeType: ...\n\nclass ExecutionLoader(InspectLoader):\n @abstractmethod\n def get_filename(self, fullname: str) -> _Path: ...\n def get_code(self, fullname: str) -> Optional[types.CodeType]: ...\n\nclass SourceLoader(ResourceLoader, ExecutionLoader, metaclass=ABCMeta):\n def path_mtime(self, path: _Path) -> float: ...\n def set_data(self, path: _Path, data: bytes) -> None: ...\n def get_source(self, fullname: str) -> Optional[str]: ...\n def path_stats(self, path: _Path) -> Mapping[str, Any]: ...\n\nclass MetaPathFinder(Finder):\n def find_module(self, fullname: str, path: Optional[Sequence[_Path]]) -> Optional[Loader]: ...\n def invalidate_caches(self) -> None: ...\n # Not defined on the actual class, but expected to exist.\n def find_spec(\n self, fullname: str, path: Optional[Sequence[_Path]], target: Optional[types.ModuleType] = ...\n ) -> Optional[ModuleSpec]: ...\n\nclass PathEntryFinder(Finder):\n def find_module(self, fullname: str) -> Optional[Loader]: ...\n def find_loader(self, fullname: str) -> Tuple[Optional[Loader], Sequence[_Path]]: ...\n def invalidate_caches(self) -> None: ...\n # Not defined on the actual class, but expected to exist.\n def find_spec(self, fullname: str, target: Optional[types.ModuleType] = ...) -> Optional[ModuleSpec]: ...\n\nclass FileLoader(ResourceLoader, ExecutionLoader, metaclass=ABCMeta):\n name: str\n path: _Path\n def __init__(self, fullname: str, path: _Path) -> None: ...\n def get_data(self, path: _Path) -> bytes: ...\n def get_filename(self, fullname: str) -> _Path: ...\n\nif sys.version_info >= (3, 7):\n _PathLike = Union[bytes, str, os.PathLike[Any]]\n class ResourceReader(metaclass=ABCMeta):\n @abstractmethod\n def open_resource(self, resource: _PathLike) -> IO[bytes]: ...\n @abstractmethod\n def resource_path(self, resource: _PathLike) -> str: ...\n @abstractmethod\n def is_resource(self, name: str) -> bool: ...\n @abstractmethod\n def contents(self) -> Iterator[str]: ...\n\nif sys.version_info >= (3, 9):\n from typing import Protocol, runtime_checkable\n @runtime_checkable\n class Traversable(Protocol):\n @abstractmethod\n def iterdir(self) -> Iterator[Traversable]: ...\n @abstractmethod\n def read_bytes(self) -> bytes: ...\n @abstractmethod\n def read_text(self, encoding: Optional[str] = ...) -> str: ...\n @abstractmethod\n def is_dir(self) -> bool: ...\n @abstractmethod\n def is_file(self) -> bool: ...\n @abstractmethod\n def joinpath(self, child: Traversable) -> Traversable: ...\n @abstractmethod\n def __truediv__(self, child: Traversable) -> Traversable: ...\n @abstractmethod\n def open(self, mode: Literal["r", "rb"] = ..., *args: Any, **kwargs: Any) -> IO: ...\n @property\n @abstractmethod\n def name(self) -> str: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\importlib\abc.pyi | abc.pyi | Other | 3,960 | 0.95 | 0.525773 | 0.047059 | react-lib | 364 | 2024-11-16T19:43:59.412891 | MIT | false | e3442baccd14663e110efbf909875ef2 |
import importlib.abc\nimport types\nfrom typing import Callable, List, Optional, Sequence, Tuple, Union\n\n# ModuleSpec is exported from this module, but for circular import\n# reasons exists in its own stub file (with Loader and ModuleType).\nfrom _importlib_modulespec import Loader, ModuleSpec as ModuleSpec # Exported\n\nclass BuiltinImporter(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader):\n # MetaPathFinder\n @classmethod\n def find_module(cls, fullname: str, path: Optional[Sequence[importlib.abc._Path]]) -> Optional[importlib.abc.Loader]: ...\n @classmethod\n def find_spec(\n cls, fullname: str, path: Optional[Sequence[importlib.abc._Path]], target: Optional[types.ModuleType] = ...\n ) -> Optional[ModuleSpec]: ...\n # InspectLoader\n @classmethod\n def is_package(cls, fullname: str) -> bool: ...\n @classmethod\n def load_module(cls, fullname: str) -> types.ModuleType: ...\n @classmethod\n def get_code(cls, fullname: str) -> None: ...\n @classmethod\n def get_source(cls, fullname: str) -> None: ...\n # Loader\n @staticmethod\n def module_repr(module: types.ModuleType) -> str: ...\n @classmethod\n def create_module(cls, spec: ModuleSpec) -> Optional[types.ModuleType]: ...\n @classmethod\n def exec_module(cls, module: types.ModuleType) -> None: ...\n\nclass FrozenImporter(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader):\n # MetaPathFinder\n @classmethod\n def find_module(cls, fullname: str, path: Optional[Sequence[importlib.abc._Path]]) -> Optional[importlib.abc.Loader]: ...\n @classmethod\n def find_spec(\n cls, fullname: str, path: Optional[Sequence[importlib.abc._Path]], target: Optional[types.ModuleType] = ...\n ) -> Optional[ModuleSpec]: ...\n # InspectLoader\n @classmethod\n def is_package(cls, fullname: str) -> bool: ...\n @classmethod\n def load_module(cls, fullname: str) -> types.ModuleType: ...\n @classmethod\n def get_code(cls, fullname: str) -> None: ...\n @classmethod\n def get_source(cls, fullname: str) -> None: ...\n # Loader\n @staticmethod\n def module_repr(module: types.ModuleType) -> str: ...\n @classmethod\n def create_module(cls, spec: ModuleSpec) -> Optional[types.ModuleType]: ...\n @staticmethod\n def exec_module(module: types.ModuleType) -> None: ...\n\nclass WindowsRegistryFinder(importlib.abc.MetaPathFinder):\n @classmethod\n def find_module(cls, fullname: str, path: Optional[Sequence[importlib.abc._Path]]) -> Optional[importlib.abc.Loader]: ...\n @classmethod\n def find_spec(\n cls, fullname: str, path: Optional[Sequence[importlib.abc._Path]], target: Optional[types.ModuleType] = ...\n ) -> Optional[ModuleSpec]: ...\n\nclass PathFinder:\n @classmethod\n def invalidate_caches(cls) -> None: ...\n @classmethod\n def find_spec(\n cls, fullname: str, path: Optional[Sequence[Union[bytes, str]]] = ..., target: Optional[types.ModuleType] = ...\n ) -> Optional[ModuleSpec]: ...\n @classmethod\n def find_module(cls, fullname: str, path: Optional[Sequence[Union[bytes, str]]] = ...) -> Optional[Loader]: ...\n\nSOURCE_SUFFIXES: List[str]\nDEBUG_BYTECODE_SUFFIXES: List[str]\nOPTIMIZED_BYTECODE_SUFFIXES: List[str]\nBYTECODE_SUFFIXES: List[str]\nEXTENSION_SUFFIXES: List[str]\n\ndef all_suffixes() -> List[str]: ...\n\nclass FileFinder(importlib.abc.PathEntryFinder):\n path: str\n def __init__(self, path: str, *loader_details: Tuple[importlib.abc.Loader, List[str]]) -> None: ...\n @classmethod\n def path_hook(\n cls, *loader_details: Tuple[importlib.abc.Loader, List[str]]\n ) -> Callable[[str], importlib.abc.PathEntryFinder]: ...\n\nclass SourceFileLoader(importlib.abc.FileLoader, importlib.abc.SourceLoader): ...\nclass SourcelessFileLoader(importlib.abc.FileLoader, importlib.abc.SourceLoader): ...\n\nclass ExtensionFileLoader(importlib.abc.ExecutionLoader):\n def get_filename(self, fullname: str) -> importlib.abc._Path: ...\n def get_source(self, fullname: str) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\importlib\machinery.pyi | machinery.pyi | Other | 4,006 | 0.95 | 0.377551 | 0.090909 | vue-tools | 58 | 2024-11-09T05:55:41.874420 | BSD-3-Clause | false | f3b998466d69c95ec0581426a84a0040 |
import abc\nimport os\nimport pathlib\nimport sys\nfrom email.message import Message\nfrom importlib.abc import MetaPathFinder\nfrom pathlib import Path\nfrom typing import Any, Dict, Iterable, List, NamedTuple, Optional, Tuple, Union, overload\n\nif sys.version_info >= (3, 8):\n class PackageNotFoundError(ModuleNotFoundError): ...\n class EntryPointBase(NamedTuple):\n name: str\n value: str\n group: str\n class EntryPoint(EntryPointBase):\n def load(self) -> Any: ... # Callable[[], Any] or an importable module\n @property\n def extras(self) -> List[str]: ...\n class PackagePath(pathlib.PurePosixPath):\n def read_text(self, encoding: str = ...) -> str: ...\n def read_binary(self) -> bytes: ...\n def locate(self) -> os.PathLike[str]: ...\n # The following attributes are not defined on PackagePath, but are dynamically added by Distribution.files:\n hash: Optional[FileHash]\n size: Optional[int]\n dist: Distribution\n class FileHash:\n mode: str\n value: str\n def __init__(self, spec: str) -> None: ...\n class Distribution:\n @abc.abstractmethod\n def read_text(self, filename: str) -> Optional[str]: ...\n @abc.abstractmethod\n def locate_file(self, path: Union[os.PathLike[str], str]) -> os.PathLike[str]: ...\n @classmethod\n def from_name(cls, name: str) -> Distribution: ...\n @overload\n @classmethod\n def discover(cls, *, context: DistributionFinder.Context) -> Iterable[Distribution]: ...\n @overload\n @classmethod\n def discover(\n cls, *, context: None = ..., name: Optional[str] = ..., path: List[str] = ..., **kwargs: Any\n ) -> Iterable[Distribution]: ...\n @staticmethod\n def at(path: Union[str, os.PathLike[str]]) -> PathDistribution: ...\n @property\n def metadata(self) -> Message: ...\n @property\n def version(self) -> str: ...\n @property\n def entry_points(self) -> List[EntryPoint]: ...\n @property\n def files(self) -> Optional[List[PackagePath]]: ...\n @property\n def requires(self) -> Optional[List[str]]: ...\n class DistributionFinder(MetaPathFinder):\n class Context:\n name: Optional[str]\n def __init__(self, *, name: Optional[str] = ..., path: List[str] = ..., **kwargs: Any) -> None: ...\n @property\n def path(self) -> List[str]: ...\n @property\n def pattern(self) -> str: ...\n @abc.abstractmethod\n def find_distributions(self, context: Context = ...) -> Iterable[Distribution]: ...\n class MetadataPathFinder(DistributionFinder):\n @classmethod\n def find_distributions(cls, context: DistributionFinder.Context = ...) -> Iterable[PathDistribution]: ...\n class PathDistribution(Distribution):\n def __init__(self, path: Path) -> None: ...\n def read_text(self, filename: Union[str, os.PathLike[str]]) -> str: ...\n def locate_file(self, path: Union[str, os.PathLike[str]]) -> os.PathLike[str]: ...\n def distribution(distribution_name: str) -> Distribution: ...\n @overload\n def distributions(*, context: DistributionFinder.Context) -> Iterable[Distribution]: ...\n @overload\n def distributions(\n *, context: None = ..., name: Optional[str] = ..., path: List[str] = ..., **kwargs: Any\n ) -> Iterable[Distribution]: ...\n def metadata(distribution_name: str) -> Message: ...\n def version(distribution_name: str) -> str: ...\n def entry_points() -> Dict[str, Tuple[EntryPoint, ...]]: ...\n def files(distribution_name: str) -> Optional[List[PackagePath]]: ...\n def requires(distribution_name: str) -> Optional[List[str]]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\importlib\metadata.pyi | metadata.pyi | Other | 3,786 | 0.95 | 0.505747 | 0.023256 | node-utils | 154 | 2025-01-13T06:57:32.777280 | BSD-3-Clause | false | 755669ccb36cf1d6d2e12de54b2e9565 |
import sys\n\n# This is a >=3.7 module, so we conditionally include its source.\nif sys.version_info >= (3, 7):\n import os\n from pathlib import Path\n from types import ModuleType\n from typing import BinaryIO, ContextManager, Iterator, TextIO, Union\n\n Package = Union[str, ModuleType]\n Resource = Union[str, os.PathLike]\n def open_binary(package: Package, resource: Resource) -> BinaryIO: ...\n def open_text(package: Package, resource: Resource, encoding: str = ..., errors: str = ...) -> TextIO: ...\n def read_binary(package: Package, resource: Resource) -> bytes: ...\n def read_text(package: Package, resource: Resource, encoding: str = ..., errors: str = ...) -> str: ...\n def path(package: Package, resource: Resource) -> ContextManager[Path]: ...\n def is_resource(package: Package, name: str) -> bool: ...\n def contents(package: Package) -> Iterator[str]: ...\n\nif sys.version_info >= (3, 9):\n from importlib.abc import Traversable\n def files(package: Package) -> Traversable: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\importlib\resources.pyi | resources.pyi | Other | 1,026 | 0.95 | 0.454545 | 0.052632 | node-utils | 911 | 2024-03-02T03:38:32.025435 | Apache-2.0 | false | 2e57327716d6add7aeeae4afc900a0b3 |
import importlib.abc\nimport importlib.machinery\nimport os\nimport types\nfrom typing import Any, Callable, List, Optional, Union\n\ndef module_for_loader(fxn: Callable[..., types.ModuleType]) -> Callable[..., types.ModuleType]: ...\ndef set_loader(fxn: Callable[..., types.ModuleType]) -> Callable[..., types.ModuleType]: ...\ndef set_package(fxn: Callable[..., types.ModuleType]) -> Callable[..., types.ModuleType]: ...\ndef resolve_name(name: str, package: str) -> str: ...\n\nMAGIC_NUMBER: bytes\n\ndef cache_from_source(path: str, debug_override: Optional[bool] = ..., *, optimization: Optional[Any] = ...) -> str: ...\ndef source_from_cache(path: str) -> str: ...\ndef decode_source(source_bytes: bytes) -> str: ...\ndef find_spec(name: str, package: Optional[str] = ...) -> Optional[importlib.machinery.ModuleSpec]: ...\ndef spec_from_loader(\n name: str,\n loader: Optional[importlib.abc.Loader],\n *,\n origin: Optional[str] = ...,\n loader_state: Optional[Any] = ...,\n is_package: Optional[bool] = ...,\n) -> importlib.machinery.ModuleSpec: ...\ndef spec_from_file_location(\n name: str,\n location: Union[str, bytes, os.PathLike[str], os.PathLike[bytes]],\n *,\n loader: Optional[importlib.abc.Loader] = ...,\n submodule_search_locations: Optional[List[str]] = ...,\n) -> importlib.machinery.ModuleSpec: ...\ndef module_from_spec(spec: importlib.machinery.ModuleSpec) -> types.ModuleType: ...\n\nclass LazyLoader(importlib.abc.Loader):\n def __init__(self, loader: importlib.abc.Loader) -> None: ...\n @classmethod\n def factory(cls, loader: importlib.abc.Loader) -> Callable[..., LazyLoader]: ...\n def create_module(self, spec: importlib.machinery.ModuleSpec) -> Optional[types.ModuleType]: ...\n def exec_module(self, module: types.ModuleType) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\importlib\util.pyi | util.pyi | Other | 1,782 | 0.85 | 0.4 | 0.055556 | awesome-app | 913 | 2024-03-29T00:36:24.528110 | BSD-3-Clause | false | 1b26f46a06b39f9547849aa9aec7a9de |
import types\nfrom importlib.abc import Loader\nfrom typing import Any, Mapping, Optional, Sequence\n\ndef __import__(\n name: str,\n globals: Optional[Mapping[str, Any]] = ...,\n locals: Optional[Mapping[str, Any]] = ...,\n fromlist: Sequence[str] = ...,\n level: int = ...,\n) -> types.ModuleType: ...\ndef import_module(name: str, package: Optional[str] = ...) -> types.ModuleType: ...\ndef find_loader(name: str, path: Optional[str] = ...) -> Optional[Loader]: ...\ndef invalidate_caches() -> None: ...\ndef reload(module: types.ModuleType) -> types.ModuleType: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\importlib\__init__.pyi | __init__.pyi | Other | 571 | 0.85 | 0.333333 | 0 | react-lib | 26 | 2023-10-20T01:05:23.802582 | Apache-2.0 | false | 13f5966ba60f1c4546fb79308c263c7a |
from typing import Any, Callable, Dict, List, Optional, Tuple\n\nclass JSONDecodeError(ValueError):\n msg: str\n doc: str\n pos: int\n lineno: int\n colno: int\n def __init__(self, msg: str, doc: str, pos: int) -> None: ...\n\nclass JSONDecoder:\n object_hook: Callable[[Dict[str, Any]], Any]\n parse_float: Callable[[str], Any]\n parse_int: Callable[[str], Any]\n parse_constant: Callable[[str], Any] = ...\n strict: bool\n object_pairs_hook: Callable[[List[Tuple[str, Any]]], Any]\n def __init__(\n self,\n *,\n object_hook: Optional[Callable[[Dict[str, Any]], Any]] = ...,\n parse_float: Optional[Callable[[str], Any]] = ...,\n parse_int: Optional[Callable[[str], Any]] = ...,\n parse_constant: Optional[Callable[[str], Any]] = ...,\n strict: bool = ...,\n object_pairs_hook: Optional[Callable[[List[Tuple[str, Any]]], Any]] = ...,\n ) -> None: ...\n def decode(self, s: str, _w: Callable[..., Any] = ...) -> Any: ... # _w is undocumented\n def raw_decode(self, s: str, idx: int = ...) -> Tuple[Any, int]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\json\decoder.pyi | decoder.pyi | Other | 1,090 | 0.95 | 0.206897 | 0.037037 | react-lib | 246 | 2024-11-10T17:50:56.666905 | MIT | false | 3c6d3a5e4ad19122e7386e916217b946 |
from typing import Any, Callable, Iterator, Optional, Tuple\n\nclass JSONEncoder:\n item_separator: str\n key_separator: str\n\n skipkeys: bool\n ensure_ascii: bool\n check_circular: bool\n allow_nan: bool\n sort_keys: bool\n indent: int\n def __init__(\n self,\n *,\n skipkeys: bool = ...,\n ensure_ascii: bool = ...,\n check_circular: bool = ...,\n allow_nan: bool = ...,\n sort_keys: bool = ...,\n indent: Optional[int] = ...,\n separators: Optional[Tuple[str, str]] = ...,\n default: Optional[Callable[..., Any]] = ...,\n ) -> None: ...\n def default(self, o: Any) -> Any: ...\n def encode(self, o: Any) -> str: ...\n def iterencode(self, o: Any, _one_shot: bool = ...) -> Iterator[str]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\json\encoder.pyi | encoder.pyi | Other | 779 | 0.85 | 0.185185 | 0.04 | node-utils | 983 | 2025-03-28T16:43:39.063025 | MIT | false | d4c5972c6fd5e8bb1e0ef379b4d4b103 |
def main() -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\json\tool.pyi | tool.pyi | Other | 24 | 0.65 | 1 | 0 | node-utils | 3 | 2024-03-24T10:01:20.653908 | GPL-3.0 | false | 163a29351e4447c95e0d3fb1be5ca0dc |
from _typeshed import SupportsRead\nfrom typing import IO, Any, Callable, Dict, List, Optional, Tuple, Type, Union\n\nfrom .decoder import JSONDecodeError as JSONDecodeError, JSONDecoder as JSONDecoder\nfrom .encoder import JSONEncoder as JSONEncoder\n\ndef dumps(\n obj: Any,\n *,\n skipkeys: bool = ...,\n ensure_ascii: bool = ...,\n check_circular: bool = ...,\n allow_nan: bool = ...,\n cls: Optional[Type[JSONEncoder]] = ...,\n indent: Union[None, int, str] = ...,\n separators: Optional[Tuple[str, str]] = ...,\n default: Optional[Callable[[Any], Any]] = ...,\n sort_keys: bool = ...,\n **kwds: Any,\n) -> str: ...\ndef dump(\n obj: Any,\n fp: IO[str],\n *,\n skipkeys: bool = ...,\n ensure_ascii: bool = ...,\n check_circular: bool = ...,\n allow_nan: bool = ...,\n cls: Optional[Type[JSONEncoder]] = ...,\n indent: Union[None, int, str] = ...,\n separators: Optional[Tuple[str, str]] = ...,\n default: Optional[Callable[[Any], Any]] = ...,\n sort_keys: bool = ...,\n **kwds: Any,\n) -> None: ...\ndef loads(\n s: Union[str, bytes],\n *,\n cls: Optional[Type[JSONDecoder]] = ...,\n object_hook: Optional[Callable[[Dict[Any, Any]], Any]] = ...,\n parse_float: Optional[Callable[[str], Any]] = ...,\n parse_int: Optional[Callable[[str], Any]] = ...,\n parse_constant: Optional[Callable[[str], Any]] = ...,\n object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ...,\n **kwds: Any,\n) -> Any: ...\ndef load(\n fp: SupportsRead[Union[str, bytes]],\n *,\n cls: Optional[Type[JSONDecoder]] = ...,\n object_hook: Optional[Callable[[Dict[Any, Any]], Any]] = ...,\n parse_float: Optional[Callable[[str], Any]] = ...,\n parse_int: Optional[Callable[[str], Any]] = ...,\n parse_constant: Optional[Callable[[str], Any]] = ...,\n object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ...,\n **kwds: Any,\n) -> Any: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\json\__init__.pyi | __init__.pyi | Other | 1,919 | 0.85 | 0.070175 | 0.145455 | python-kit | 939 | 2023-10-03T18:00:57.954633 | GPL-3.0 | false | 691292900a22f3c5ec4e797d969a01b2 |
import socket\nimport sys\nimport types\nfrom typing import Any, Iterable, List, Optional, Tuple, Type, Union\n\nif sys.version_info >= (3, 8):\n from typing import SupportsIndex\n\n# https://docs.python.org/3/library/multiprocessing.html#address-formats\n_Address = Union[str, Tuple[str, int]]\n\nclass _ConnectionBase:\n if sys.version_info >= (3, 8):\n def __init__(self, handle: SupportsIndex, readable: bool = ..., writable: bool = ...) -> None: ...\n else:\n def __init__(self, handle: int, readable: bool = ..., writable: bool = ...) -> None: ...\n @property\n def closed(self) -> bool: ... # undocumented\n @property\n def readable(self) -> bool: ... # undocumented\n @property\n def writable(self) -> bool: ... # undocumented\n def fileno(self) -> int: ...\n def close(self) -> None: ...\n def send_bytes(self, buf: bytes, offset: int = ..., size: Optional[int] = ...) -> None: ...\n def send(self, obj: Any) -> None: ...\n def recv_bytes(self, maxlength: Optional[int] = ...) -> bytes: ...\n def recv_bytes_into(self, buf: Any, offset: int = ...) -> int: ...\n def recv(self) -> Any: ...\n def poll(self, timeout: Optional[float] = ...) -> bool: ...\n def __enter__(self) -> _ConnectionBase: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], exc_tb: Optional[types.TracebackType]\n ) -> None: ...\n\nclass Connection(_ConnectionBase): ...\n\nif sys.platform == "win32":\n class PipeConnection(_ConnectionBase): ...\n\nclass Listener:\n def __init__(\n self, address: Optional[_Address] = ..., family: Optional[str] = ..., backlog: int = ..., authkey: Optional[bytes] = ...\n ) -> None: ...\n def accept(self) -> Connection: ...\n def close(self) -> None: ...\n @property\n def address(self) -> _Address: ...\n @property\n def last_accepted(self) -> Optional[_Address]: ...\n def __enter__(self) -> Listener: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], exc_tb: Optional[types.TracebackType]\n ) -> None: ...\n\ndef deliver_challenge(connection: Connection, authkey: bytes) -> None: ...\ndef answer_challenge(connection: Connection, authkey: bytes) -> None: ...\ndef wait(\n object_list: Iterable[Union[Connection, socket.socket, int]], timeout: Optional[float] = ...\n) -> List[Union[Connection, socket.socket, int]]: ...\ndef Client(address: _Address, family: Optional[str] = ..., authkey: Optional[bytes] = ...) -> Connection: ...\ndef Pipe(duplex: bool = ...) -> Tuple[Connection, Connection]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\multiprocessing\connection.pyi | connection.pyi | Other | 2,602 | 0.95 | 0.548387 | 0.018182 | vue-tools | 682 | 2024-05-04T05:54:07.017517 | BSD-3-Clause | false | 94591b4f44a6e21c9f96e6ab468fad0d |
import multiprocessing\nimport sys\nfrom logging import Logger\nfrom multiprocessing import queues, sharedctypes, synchronize\nfrom multiprocessing.process import BaseProcess\nfrom typing import Any, Callable, Iterable, List, Optional, Sequence, Type, Union, overload\nfrom typing_extensions import Literal\n\n_LockLike = Union[synchronize.Lock, synchronize.RLock]\n\nclass ProcessError(Exception): ...\nclass BufferTooShort(ProcessError): ...\nclass TimeoutError(ProcessError): ...\nclass AuthenticationError(ProcessError): ...\n\nclass BaseContext(object):\n Process: Type[BaseProcess]\n ProcessError: Type[Exception]\n BufferTooShort: Type[Exception]\n TimeoutError: Type[Exception]\n AuthenticationError: Type[Exception]\n\n # N.B. The methods below are applied at runtime to generate\n # multiprocessing.*, so the signatures should be identical (modulo self).\n @staticmethod\n def current_process() -> BaseProcess: ...\n if sys.version_info >= (3, 8):\n @staticmethod\n def parent_process() -> Optional[BaseProcess]: ...\n @staticmethod\n def active_children() -> List[BaseProcess]: ...\n def cpu_count(self) -> int: ...\n # TODO: change return to SyncManager once a stub exists in multiprocessing.managers\n def Manager(self) -> Any: ...\n # TODO: change return to Pipe once a stub exists in multiprocessing.connection\n def Pipe(self, duplex: bool = ...) -> Any: ...\n def Barrier(\n self, parties: int, action: Optional[Callable[..., Any]] = ..., timeout: Optional[float] = ...\n ) -> synchronize.Barrier: ...\n def BoundedSemaphore(self, value: int = ...) -> synchronize.BoundedSemaphore: ...\n def Condition(self, lock: Optional[_LockLike] = ...) -> synchronize.Condition: ...\n def Event(self) -> synchronize.Event: ...\n def Lock(self) -> synchronize.Lock: ...\n def RLock(self) -> synchronize.RLock: ...\n def Semaphore(self, value: int = ...) -> synchronize.Semaphore: ...\n def Queue(self, maxsize: int = ...) -> queues.Queue[Any]: ...\n def JoinableQueue(self, maxsize: int = ...) -> queues.JoinableQueue[Any]: ...\n def SimpleQueue(self) -> queues.SimpleQueue[Any]: ...\n def Pool(\n self,\n processes: Optional[int] = ...,\n initializer: Optional[Callable[..., Any]] = ...,\n initargs: Iterable[Any] = ...,\n maxtasksperchild: Optional[int] = ...,\n ) -> multiprocessing.pool.Pool: ...\n # TODO: typecode_or_type param is a ctype with a base class of _SimpleCData or array.typecode Need to figure out\n # how to handle the ctype\n # TODO: change return to RawValue once a stub exists in multiprocessing.sharedctypes\n def RawValue(self, typecode_or_type: Any, *args: Any) -> Any: ...\n # TODO: typecode_or_type param is a ctype with a base class of _SimpleCData or array.typecode Need to figure out\n # how to handle the ctype\n # TODO: change return to RawArray once a stub exists in multiprocessing.sharedctypes\n def RawArray(self, typecode_or_type: Any, size_or_initializer: Union[int, Sequence[Any]]) -> Any: ...\n # TODO: typecode_or_type param is a ctype with a base class of _SimpleCData or array.typecode Need to figure out\n # how to handle the ctype\n def Value(self, typecode_or_type: Any, *args: Any, lock: bool = ...) -> sharedctypes._Value: ...\n # TODO: typecode_or_type param is a ctype with a base class of _SimpleCData or array.typecode Need to figure out\n # how to handle the ctype\n def Array(\n self, typecode_or_type: Any, size_or_initializer: Union[int, Sequence[Any]], *, lock: bool = ...\n ) -> sharedctypes._Array: ...\n def freeze_support(self) -> None: ...\n def get_logger(self) -> Logger: ...\n def log_to_stderr(self, level: Optional[str] = ...) -> Logger: ...\n def allow_connection_pickling(self) -> None: ...\n def set_executable(self, executable: str) -> None: ...\n def set_forkserver_preload(self, module_names: List[str]) -> None: ...\n if sys.platform != "win32":\n @overload\n def get_context(self, method: None = ...) -> DefaultContext: ...\n @overload\n def get_context(self, method: Literal["spawn"]) -> SpawnContext: ...\n @overload\n def get_context(self, method: Literal["fork"]) -> ForkContext: ...\n @overload\n def get_context(self, method: Literal["forkserver"]) -> ForkServerContext: ...\n @overload\n def get_context(self, method: str) -> BaseContext: ...\n else:\n @overload\n def get_context(self, method: None = ...) -> DefaultContext: ...\n @overload\n def get_context(self, method: Literal["spawn"]) -> SpawnContext: ...\n @overload\n def get_context(self, method: str) -> BaseContext: ...\n def get_start_method(self, allow_none: bool = ...) -> str: ...\n def set_start_method(self, method: Optional[str], force: bool = ...) -> None: ...\n @property\n def reducer(self) -> str: ...\n @reducer.setter\n def reducer(self, reduction: str) -> None: ...\n def _check_available(self) -> None: ...\n\nclass Process(BaseProcess):\n _start_method: Optional[str]\n @staticmethod\n def _Popen(process_obj: BaseProcess) -> DefaultContext: ...\n\nclass DefaultContext(BaseContext):\n Process: Type[multiprocessing.Process]\n def __init__(self, context: BaseContext) -> None: ...\n def set_start_method(self, method: Optional[str], force: bool = ...) -> None: ...\n def get_start_method(self, allow_none: bool = ...) -> str: ...\n def get_all_start_methods(self) -> List[str]: ...\n\nif sys.platform != "win32":\n class ForkProcess(BaseProcess):\n _start_method: str\n @staticmethod\n def _Popen(process_obj: BaseProcess) -> Any: ...\n class SpawnProcess(BaseProcess):\n _start_method: str\n @staticmethod\n def _Popen(process_obj: BaseProcess) -> SpawnProcess: ...\n class ForkServerProcess(BaseProcess):\n _start_method: str\n @staticmethod\n def _Popen(process_obj: BaseProcess) -> Any: ...\n class ForkContext(BaseContext):\n _name: str\n Process: Type[ForkProcess]\n class SpawnContext(BaseContext):\n _name: str\n Process: Type[SpawnProcess]\n class ForkServerContext(BaseContext):\n _name: str\n Process: Type[ForkServerProcess]\n\nelse:\n class SpawnProcess(BaseProcess):\n _start_method: str\n @staticmethod\n def _Popen(process_obj: BaseProcess) -> Any: ...\n class SpawnContext(BaseContext):\n _name: str\n Process: Type[SpawnProcess]\n\ndef _force_start_method(method: str) -> None: ...\ndef get_spawning_popen() -> Optional[Any]: ...\ndef set_spawning_popen(popen: Any) -> None: ...\ndef assert_spawning(obj: Any) -> None: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\multiprocessing\context.pyi | context.pyi | Other | 6,698 | 0.95 | 0.496689 | 0.098592 | react-lib | 473 | 2025-01-25T18:26:41.252547 | BSD-3-Clause | false | a421827842ffadf5accfb6e52a9630fb |
# NOTE: These are incomplete!\n\nimport queue\nimport sys\nimport threading\nfrom typing import (\n Any,\n AnyStr,\n Callable,\n ContextManager,\n Dict,\n Generic,\n Iterable,\n List,\n Mapping,\n Optional,\n Sequence,\n Tuple,\n TypeVar,\n Union,\n)\n\nfrom .context import BaseContext\n\nif sys.version_info >= (3, 8):\n from .shared_memory import _SLT, ShareableList, SharedMemory\n\n _SharedMemory = SharedMemory\n _ShareableList = ShareableList\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_T = TypeVar("_T")\n_KT = TypeVar("_KT")\n_VT = TypeVar("_VT")\n\nclass Namespace:\n def __init__(self, **kwds: Any) -> None: ...\n def __getattr__(self, __name: str) -> Any: ...\n def __setattr__(self, __name: str, __value: Any) -> None: ...\n\n_Namespace = Namespace\n\nclass Token(object):\n typeid: Optional[Union[str, bytes]]\n address: Tuple[Union[str, bytes], int]\n id: Optional[Union[str, bytes, int]]\n def __init__(\n self, typeid: Optional[Union[bytes, str]], address: Tuple[Union[str, bytes], int], id: Optional[Union[str, bytes, int]]\n ) -> None: ...\n def __repr__(self) -> str: ...\n def __getstate__(\n self,\n ) -> Tuple[Optional[Union[str, bytes]], Tuple[Union[str, bytes], int], Optional[Union[str, bytes, int]]]: ...\n def __setstate__(\n self, state: Tuple[Optional[Union[str, bytes]], Tuple[Union[str, bytes], int], Optional[Union[str, bytes, int]]]\n ) -> None: ...\n\nclass BaseProxy(object):\n _address_to_local: Dict[Any, Any]\n _mutex: Any\n def __init__(\n self,\n token: Any,\n serializer: str,\n manager: Any = ...,\n authkey: Optional[AnyStr] = ...,\n exposed: Any = ...,\n incref: bool = ...,\n manager_owned: bool = ...,\n ) -> None: ...\n def __deepcopy__(self, memo: Optional[Any]) -> Any: ...\n def _callmethod(self, methodname: str, args: Tuple[Any, ...] = ..., kwds: Dict[Any, Any] = ...) -> None: ...\n def _getvalue(self) -> Any: ...\n def __reduce__(self) -> Tuple[Any, Tuple[Any, Any, str, Dict[Any, Any]]]: ...\n\nclass ValueProxy(BaseProxy, Generic[_T]):\n def get(self) -> _T: ...\n def set(self, value: _T) -> None: ...\n value: _T\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\n# Returned by BaseManager.get_server()\nclass Server:\n address: Any\n def serve_forever(self) -> None: ...\n\nclass BaseManager(ContextManager[BaseManager]):\n def __init__(\n self,\n address: Optional[Any] = ...,\n authkey: Optional[bytes] = ...,\n serializer: str = ...,\n ctx: Optional[BaseContext] = ...,\n ) -> None: ...\n def get_server(self) -> Server: ...\n def connect(self) -> None: ...\n def start(self, initializer: Optional[Callable[..., Any]] = ..., initargs: Iterable[Any] = ...) -> None: ...\n def shutdown(self) -> None: ... # only available after start() was called\n def join(self, timeout: Optional[float] = ...) -> None: ... # undocumented\n @property\n def address(self) -> Any: ...\n @classmethod\n def register(\n cls,\n typeid: str,\n callable: Optional[Callable[..., Any]] = ...,\n proxytype: Any = ...,\n exposed: Optional[Sequence[str]] = ...,\n method_to_typeid: Optional[Mapping[str, str]] = ...,\n create_method: bool = ...,\n ) -> None: ...\n\nclass SyncManager(BaseManager, ContextManager[SyncManager]):\n def BoundedSemaphore(self, value: Any = ...) -> threading.BoundedSemaphore: ...\n def Condition(self, lock: Any = ...) -> threading.Condition: ...\n def Event(self) -> threading.Event: ...\n def Lock(self) -> threading.Lock: ...\n def Namespace(self) -> _Namespace: ...\n def Queue(self, maxsize: int = ...) -> queue.Queue[Any]: ...\n def RLock(self) -> threading.RLock: ...\n def Semaphore(self, value: Any = ...) -> threading.Semaphore: ...\n def Array(self, typecode: Any, sequence: Sequence[_T]) -> Sequence[_T]: ...\n def Value(self, typecode: Any, value: _T) -> ValueProxy[_T]: ...\n def dict(self, sequence: Mapping[_KT, _VT] = ...) -> Dict[_KT, _VT]: ...\n def list(self, sequence: Sequence[_T] = ...) -> List[_T]: ...\n\nclass RemoteError(Exception): ...\n\nif sys.version_info >= (3, 8):\n class SharedMemoryServer(Server): ...\n class SharedMemoryManager(BaseManager):\n def get_server(self) -> SharedMemoryServer: ...\n def SharedMemory(self, size: int) -> _SharedMemory: ...\n def ShareableList(self, sequence: Optional[Iterable[_SLT]]) -> _ShareableList[_SLT]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\multiprocessing\managers.pyi | managers.pyi | Other | 4,584 | 0.95 | 0.386861 | 0.016529 | python-kit | 82 | 2024-07-14T20:18:36.839127 | Apache-2.0 | false | 045f3130c50946ebd88571cbe25df1a8 |
import sys\nfrom typing import Any, Callable, ContextManager, Generic, Iterable, Iterator, List, Mapping, Optional, TypeVar\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_PT = TypeVar("_PT", bound=Pool)\n_S = TypeVar("_S")\n_T = TypeVar("_T")\n\nclass ApplyResult(Generic[_T]):\n def get(self, timeout: Optional[float] = ...) -> _T: ...\n def wait(self, timeout: Optional[float] = ...) -> None: ...\n def ready(self) -> bool: ...\n def successful(self) -> bool: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\n# alias created during issue #17805\nAsyncResult = ApplyResult\n\nclass MapResult(ApplyResult[List[_T]]): ...\n\nclass IMapIterator(Iterator[_T]):\n def __iter__(self: _S) -> _S: ...\n def next(self, timeout: Optional[float] = ...) -> _T: ...\n def __next__(self, timeout: Optional[float] = ...) -> _T: ...\n\nclass IMapUnorderedIterator(IMapIterator[_T]): ...\n\nclass Pool(ContextManager[Pool]):\n def __init__(\n self,\n processes: Optional[int] = ...,\n initializer: Optional[Callable[..., None]] = ...,\n initargs: Iterable[Any] = ...,\n maxtasksperchild: Optional[int] = ...,\n context: Optional[Any] = ...,\n ) -> None: ...\n def apply(self, func: Callable[..., _T], args: Iterable[Any] = ..., kwds: Mapping[str, Any] = ...) -> _T: ...\n def apply_async(\n self,\n func: Callable[..., _T],\n args: Iterable[Any] = ...,\n kwds: Mapping[str, Any] = ...,\n callback: Optional[Callable[[_T], None]] = ...,\n error_callback: Optional[Callable[[BaseException], None]] = ...,\n ) -> AsyncResult[_T]: ...\n def map(self, func: Callable[[_S], _T], iterable: Iterable[_S], chunksize: Optional[int] = ...) -> List[_T]: ...\n def map_async(\n self,\n func: Callable[[_S], _T],\n iterable: Iterable[_S],\n chunksize: Optional[int] = ...,\n callback: Optional[Callable[[_T], None]] = ...,\n error_callback: Optional[Callable[[BaseException], None]] = ...,\n ) -> MapResult[_T]: ...\n def imap(self, func: Callable[[_S], _T], iterable: Iterable[_S], chunksize: Optional[int] = ...) -> IMapIterator[_T]: ...\n def imap_unordered(\n self, func: Callable[[_S], _T], iterable: Iterable[_S], chunksize: Optional[int] = ...\n ) -> IMapIterator[_T]: ...\n def starmap(self, func: Callable[..., _T], iterable: Iterable[Iterable[Any]], chunksize: Optional[int] = ...) -> List[_T]: ...\n def starmap_async(\n self,\n func: Callable[..., _T],\n iterable: Iterable[Iterable[Any]],\n chunksize: Optional[int] = ...,\n callback: Optional[Callable[[_T], None]] = ...,\n error_callback: Optional[Callable[[BaseException], None]] = ...,\n ) -> AsyncResult[List[_T]]: ...\n def close(self) -> None: ...\n def terminate(self) -> None: ...\n def join(self) -> None: ...\n def __enter__(self: _PT) -> _PT: ...\n\nclass ThreadPool(Pool, ContextManager[ThreadPool]):\n def __init__(\n self, processes: Optional[int] = ..., initializer: Optional[Callable[..., Any]] = ..., initargs: Iterable[Any] = ...\n ) -> None: ...\n\n# undocumented\nRUN: int\nCLOSE: int\nTERMINATE: int\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\multiprocessing\pool.pyi | pool.pyi | Other | 3,224 | 0.95 | 0.357143 | 0.027027 | vue-tools | 840 | 2024-08-21T02:24:44.868614 | BSD-3-Clause | false | ec77139ae83a49bfa19da908f1828a21 |
import sys\nfrom typing import Any, Callable, List, Mapping, Optional, Tuple\n\nclass BaseProcess:\n name: str\n daemon: bool\n authkey: bytes\n def __init__(\n self,\n group: None = ...,\n target: Optional[Callable[..., Any]] = ...,\n name: Optional[str] = ...,\n args: Tuple[Any, ...] = ...,\n kwargs: Mapping[str, Any] = ...,\n *,\n daemon: Optional[bool] = ...,\n ) -> None: ...\n def run(self) -> None: ...\n def start(self) -> None: ...\n def terminate(self) -> None: ...\n if sys.version_info >= (3, 7):\n def kill(self) -> None: ...\n def close(self) -> None: ...\n def join(self, timeout: Optional[float] = ...) -> None: ...\n def is_alive(self) -> bool: ...\n @property\n def exitcode(self) -> Optional[int]: ...\n @property\n def ident(self) -> Optional[int]: ...\n @property\n def pid(self) -> Optional[int]: ...\n @property\n def sentinel(self) -> int: ...\n\ndef current_process() -> BaseProcess: ...\ndef active_children() -> List[BaseProcess]: ...\n\nif sys.version_info >= (3, 8):\n def parent_process() -> Optional[BaseProcess]: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\multiprocessing\process.pyi | process.pyi | Other | 1,143 | 0.85 | 0.461538 | 0.027778 | react-lib | 954 | 2025-03-16T02:43:30.550974 | Apache-2.0 | false | 1df85c01c805c115d09a3478403008df |
import queue\nimport sys\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 Queue(queue.Queue[_T]):\n # FIXME: `ctx` is a circular dependency and it's not actually optional.\n # It's marked as such to be able to use the generic Queue in __init__.pyi.\n def __init__(self, maxsize: int = ..., *, ctx: Any = ...) -> None: ...\n def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...\n def put(self, obj: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...\n def qsize(self) -> int: ...\n def empty(self) -> bool: ...\n def full(self) -> bool: ...\n def put_nowait(self, item: _T) -> None: ...\n def get_nowait(self) -> _T: ...\n def close(self) -> None: ...\n def join_thread(self) -> None: ...\n def cancel_join_thread(self) -> None: ...\n\nclass JoinableQueue(Queue[_T]):\n def task_done(self) -> None: ...\n def join(self) -> None: ...\n\nclass SimpleQueue(Generic[_T]):\n def __init__(self, *, ctx: Any = ...) -> None: ...\n def empty(self) -> bool: ...\n def get(self) -> _T: ...\n def put(self, item: _T) -> None: ...\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\multiprocessing\queues.pyi | queues.pyi | Other | 1,288 | 0.95 | 0.657143 | 0.066667 | awesome-app | 335 | 2023-12-26T23:16:01.374672 | BSD-3-Clause | false | 85bbfe699d070dcb1bbd139d7423d5d9 |
from ctypes import _CData\nfrom multiprocessing.context import BaseContext\nfrom multiprocessing.synchronize import _LockLike\nfrom typing import Any, List, Optional, Sequence, Type, Union, overload\n\nclass _Array:\n value: Any = ...\n def __init__(\n self,\n typecode_or_type: Union[str, Type[_CData]],\n size_or_initializer: Union[int, Sequence[Any]],\n *,\n lock: Union[bool, _LockLike] = ...,\n ) -> None: ...\n def acquire(self) -> bool: ...\n def release(self) -> bool: ...\n def get_lock(self) -> _LockLike: ...\n def get_obj(self) -> Any: ...\n @overload\n def __getitem__(self, key: int) -> Any: ...\n @overload\n def __getitem__(self, key: slice) -> List[Any]: ...\n def __getslice__(self, start: int, stop: int) -> Any: ...\n def __setitem__(self, key: int, value: Any) -> None: ...\n\nclass _Value:\n value: Any = ...\n def __init__(self, typecode_or_type: Union[str, Type[_CData]], *args: Any, lock: Union[bool, _LockLike] = ...) -> None: ...\n def get_lock(self) -> _LockLike: ...\n def get_obj(self) -> Any: ...\n def acquire(self) -> bool: ...\n def release(self) -> bool: ...\n\ndef Array(\n typecode_or_type: Union[str, Type[_CData]],\n size_or_initializer: Union[int, Sequence[Any]],\n *,\n lock: Union[bool, _LockLike] = ...,\n ctx: Optional[BaseContext] = ...,\n) -> _Array: ...\ndef Value(\n typecode_or_type: Union[str, Type[_CData]], *args: Any, lock: Union[bool, _LockLike] = ..., ctx: Optional[BaseContext] = ...\n) -> _Value: ...\n | .venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\multiprocessing\sharedctypes.pyi | sharedctypes.pyi | Other | 1,526 | 0.85 | 0.418605 | 0.05 | awesome-app | 894 | 2025-06-05T07:51:51.739305 | Apache-2.0 | false | 31402da02af0d92162b39393ca0cc0b7 |
import sys\nfrom typing import Any, Generic, Iterable, Optional, Tuple, TypeVar\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_S = TypeVar("_S")\n_SLT = TypeVar("_SLT", int, float, bool, str, bytes, None)\n\nif sys.version_info >= (3, 8):\n class SharedMemory:\n def __init__(self, name: Optional[str] = ..., create: bool = ..., size: int = ...) -> None: ...\n @property\n def buf(self) -> memoryview: ...\n @property\n def name(self) -> str: ...\n @property\n def size(self) -> int: ...\n def close(self) -> None: ...\n def unlink(self) -> None: ...\n class ShareableList(Generic[_SLT]):\n shm: SharedMemory\n def __init__(self, sequence: Optional[Iterable[_SLT]] = ..., *, name: Optional[str] = ...) -> None: ...\n def __getitem__(self, position: int) -> _SLT: ...\n def __setitem__(self, position: int, value: _SLT) -> None: ...\n def __reduce__(self: _S) -> Tuple[_S, Tuple[_SLT, ...]]: ...\n def __len__(self) -> int: ...\n @property\n def format(self) -> str: ...\n def count(self, value: _SLT) -> int: ...\n def index(self, value: _SLT) -> 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\multiprocessing\shared_memory.pyi | shared_memory.pyi | Other | 1,302 | 0.85 | 0.606061 | 0 | vue-tools | 507 | 2024-01-03T20:08:44.913416 | BSD-3-Clause | false | c9e497c7bc38ebab5f8dd3766798350e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.