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
from typing import Dict\n\ns: str\nd: Dict[str, str]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\this.pyi
this.pyi
Other
50
0.65
0
0
node-utils
296
2023-12-22T20:35:12.719281
BSD-3-Clause
false
8195640d194902044fa05f35500989ce
import sys\nfrom types import FrameType, TracebackType\nfrom typing import Any, Callable, Iterable, List, Mapping, Optional, Text, Type, TypeVar, Union\n\n# TODO recursive type\n_TF = Callable[[FrameType, str, Any], Optional[Callable[..., Any]]]\n\n_PF = Callable[[FrameType, str, Any], None]\n_T = TypeVar("_T")\n\n__all__: List[str]\n\ndef active_count() -> int: ...\n\nif sys.version_info < (3,):\n def activeCount() -> int: ...\n\ndef current_thread() -> Thread: ...\ndef currentThread() -> Thread: ...\n\nif sys.version_info >= (3,):\n def get_ident() -> int: ...\n\ndef enumerate() -> List[Thread]: ...\n\nif sys.version_info >= (3, 4):\n def main_thread() -> Thread: ...\n\nif sys.version_info >= (3, 8):\n from _thread import get_native_id as get_native_id\n\ndef settrace(func: _TF) -> None: ...\ndef setprofile(func: Optional[_PF]) -> None: ...\ndef stack_size(size: int = ...) -> int: ...\n\nif sys.version_info >= (3,):\n TIMEOUT_MAX: float\n\nclass ThreadError(Exception): ...\n\nclass local(object):\n def __getattribute__(self, name: str) -> Any: ...\n def __setattr__(self, name: str, value: Any) -> None: ...\n def __delattr__(self, name: str) -> None: ...\n\nclass Thread:\n name: str\n ident: Optional[int]\n daemon: bool\n if sys.version_info >= (3,):\n def __init__(\n self,\n group: None = ...,\n target: Optional[Callable[..., Any]] = ...,\n name: Optional[str] = ...,\n args: Iterable[Any] = ...,\n kwargs: Mapping[str, Any] = ...,\n *,\n daemon: Optional[bool] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n group: None = ...,\n target: Optional[Callable[..., Any]] = ...,\n name: Optional[Text] = ...,\n args: Iterable[Any] = ...,\n kwargs: Mapping[Text, Any] = ...,\n ) -> None: ...\n def start(self) -> None: ...\n def run(self) -> None: ...\n def join(self, timeout: Optional[float] = ...) -> None: ...\n def getName(self) -> str: ...\n def setName(self, name: Text) -> None: ...\n if sys.version_info >= (3, 8):\n @property\n def native_id(self) -> Optional[int]: ... # only available on some platforms\n def is_alive(self) -> bool: ...\n if sys.version_info < (3, 9):\n def isAlive(self) -> bool: ...\n def isDaemon(self) -> bool: ...\n def setDaemon(self, daemonic: bool) -> None: ...\n\nclass _DummyThread(Thread): ...\n\nclass Lock:\n def __init__(self) -> None: ...\n def __enter__(self) -> bool: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n if sys.version_info >= (3,):\n def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...\n else:\n def acquire(self, blocking: bool = ...) -> bool: ...\n def release(self) -> None: ...\n def locked(self) -> bool: ...\n\nclass _RLock:\n def __init__(self) -> None: ...\n def __enter__(self) -> bool: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n if sys.version_info >= (3,):\n def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...\n else:\n def acquire(self, blocking: bool = ...) -> bool: ...\n def release(self) -> None: ...\n\nRLock = _RLock\n\nclass Condition:\n def __init__(self, lock: Union[Lock, _RLock, None] = ...) -> None: ...\n def __enter__(self) -> bool: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n if sys.version_info >= (3,):\n def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...\n else:\n def acquire(self, blocking: bool = ...) -> bool: ...\n def release(self) -> None: ...\n def wait(self, timeout: Optional[float] = ...) -> bool: ...\n if sys.version_info >= (3,):\n def wait_for(self, predicate: Callable[[], _T], timeout: Optional[float] = ...) -> _T: ...\n def notify(self, n: int = ...) -> None: ...\n def notify_all(self) -> None: ...\n def notifyAll(self) -> None: ...\n\nclass Semaphore:\n def __init__(self, value: int = ...) -> None: ...\n def __enter__(self) -> bool: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n if sys.version_info >= (3,):\n def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...\n else:\n def acquire(self, blocking: bool = ...) -> bool: ...\n if sys.version_info >= (3, 9):\n def release(self, n: int = ...) -> None: ...\n else:\n def release(self) -> None: ...\n\nclass BoundedSemaphore(Semaphore): ...\n\nclass Event:\n def __init__(self) -> None: ...\n def is_set(self) -> bool: ...\n if sys.version_info < (3,):\n def isSet(self) -> bool: ...\n def set(self) -> None: ...\n def clear(self) -> None: ...\n def wait(self, timeout: Optional[float] = ...) -> bool: ...\n\nif sys.version_info >= (3, 8):\n from _thread import _excepthook, _ExceptHookArgs\n\n excepthook = _excepthook\n ExceptHookArgs = _ExceptHookArgs\n\nclass Timer(Thread):\n if sys.version_info >= (3,):\n def __init__(\n self,\n interval: float,\n function: Callable[..., Any],\n args: Optional[Iterable[Any]] = ...,\n kwargs: Optional[Mapping[str, Any]] = ...,\n ) -> None: ...\n else:\n def __init__(\n self, interval: float, function: Callable[..., Any], args: Iterable[Any] = ..., kwargs: Mapping[str, Any] = ...\n ) -> None: ...\n def cancel(self) -> None: ...\n\nif sys.version_info >= (3,):\n class Barrier:\n parties: int\n n_waiting: int\n broken: bool\n def __init__(self, parties: int, action: Optional[Callable[[], None]] = ..., timeout: Optional[float] = ...) -> None: ...\n def wait(self, timeout: Optional[float] = ...) -> int: ...\n def reset(self) -> None: ...\n def abort(self) -> None: ...\n class BrokenBarrierError(RuntimeError): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\threading.pyi
threading.pyi
Other
6,309
0.95
0.545455
0.0125
vue-tools
21
2024-06-22T03:04:15.291862
GPL-3.0
false
996f3aac3305fc1b8c667c93accba08a
import sys\nfrom typing import Any, NamedTuple, Optional, Tuple, Union\n\nif sys.version_info >= (3, 3):\n from types import SimpleNamespace\n\n_TimeTuple = Tuple[int, int, int, int, int, int, int, int, int]\n\nif sys.version_info < (3, 3):\n accept2dyear: bool\naltzone: int\ndaylight: int\ntimezone: int\ntzname: Tuple[str, str]\n\nif sys.version_info >= (3, 7) and sys.platform != "win32":\n CLOCK_BOOTTIME: int # Linux\n CLOCK_PROF: int # FreeBSD, NetBSD, OpenBSD\n CLOCK_UPTIME: int # FreeBSD, OpenBSD\n\nif sys.version_info >= (3, 3) and sys.platform != "win32":\n CLOCK_HIGHRES: int # Solaris only\n CLOCK_MONOTONIC: int # Unix only\n CLOCK_MONOTONIC_RAW: int # Linux 2.6.28 or later\n CLOCK_PROCESS_CPUTIME_ID: int # Unix only\n CLOCK_REALTIME: int # Unix only\n CLOCK_THREAD_CPUTIME_ID: int # Unix only\n\nif sys.version_info >= (3, 8) and sys.platform == "darwin":\n CLOCK_UPTIME_RAW: int\n\nclass _struct_time(NamedTuple):\n tm_year: int\n tm_mon: int\n tm_mday: int\n tm_hour: int\n tm_min: int\n tm_sec: int\n tm_wday: int\n tm_yday: int\n tm_isdst: int\n @property\n def n_fields(self) -> int: ...\n @property\n def n_sequence_fields(self) -> int: ...\n @property\n def n_unnamed_fields(self) -> int: ...\n\nif sys.version_info >= (3, 3):\n class struct_time(_struct_time):\n def __init__(\n self,\n o: Union[\n Tuple[int, int, int, int, int, int, int, int, int],\n Tuple[int, int, int, int, int, int, int, int, int, str],\n Tuple[int, int, int, int, int, int, int, int, int, str, int],\n ],\n _arg: Any = ...,\n ) -> None: ...\n def __new__(\n cls,\n o: Union[\n Tuple[int, int, int, int, int, int, int, int, int],\n Tuple[int, int, int, int, int, int, int, int, int, str],\n Tuple[int, int, int, int, int, int, int, int, int, str, int],\n ],\n _arg: Any = ...,\n ) -> struct_time: ...\n if sys.version_info >= (3, 6) or sys.platform != "win32":\n @property\n def tm_zone(self) -> str: ...\n @property\n def tm_gmtoff(self) -> int: ...\n\nelse:\n class struct_time(_struct_time):\n def __init__(self, o: _TimeTuple, _arg: Any = ...) -> None: ...\n def __new__(cls, o: _TimeTuple, _arg: Any = ...) -> struct_time: ...\n\ndef asctime(t: Union[_TimeTuple, struct_time] = ...) -> str: ...\n\nif sys.version_info < (3, 8):\n def clock() -> float: ...\n\ndef ctime(secs: Optional[float] = ...) -> str: ...\ndef gmtime(secs: Optional[float] = ...) -> struct_time: ...\ndef localtime(secs: Optional[float] = ...) -> struct_time: ...\ndef mktime(t: Union[_TimeTuple, struct_time]) -> float: ...\ndef sleep(secs: float) -> None: ...\ndef strftime(format: str, t: Union[_TimeTuple, struct_time] = ...) -> str: ...\ndef strptime(string: str, format: str = ...) -> struct_time: ...\ndef time() -> float: ...\n\nif sys.platform != "win32":\n def tzset() -> None: ... # Unix only\n\nif sys.version_info >= (3, 3):\n def get_clock_info(name: str) -> SimpleNamespace: ...\n def monotonic() -> float: ...\n def perf_counter() -> float: ...\n def process_time() -> float: ...\n if sys.platform != "win32":\n def clock_getres(clk_id: int) -> float: ... # Unix only\n def clock_gettime(clk_id: int) -> float: ... # Unix only\n def clock_settime(clk_id: int, time: float) -> None: ... # Unix only\n\nif sys.version_info >= (3, 7):\n if sys.platform != "win32":\n def clock_gettime_ns(clock_id: int) -> int: ...\n def clock_settime_ns(clock_id: int, time: int) -> int: ...\n def monotonic_ns() -> int: ...\n def perf_counter_ns() -> int: ...\n def process_time_ns() -> int: ...\n def time_ns() -> int: ...\n def thread_time() -> float: ...\n def thread_time_ns() -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\time.pyi
time.pyi
Other
3,900
0.95
0.439655
0
react-lib
662
2024-02-19T13:36:13.693944
BSD-3-Clause
false
ba3d40a7c1da9f19a39989c45e9d2a95
import sys\nfrom typing import IO, Any, Callable, Dict, List, Optional, Sequence, Text, Tuple, Union\n\n_str = Union[str, Text]\n_Timer = Callable[[], float]\n_stmt = Union[_str, Callable[[], Any]]\n\ndefault_timer: _Timer\n\nclass Timer:\n if sys.version_info >= (3, 5):\n def __init__(\n self, stmt: _stmt = ..., setup: _stmt = ..., timer: _Timer = ..., globals: Optional[Dict[str, Any]] = ...\n ) -> None: ...\n else:\n def __init__(self, stmt: _stmt = ..., setup: _stmt = ..., timer: _Timer = ...) -> None: ...\n def print_exc(self, file: Optional[IO[str]] = ...) -> None: ...\n def timeit(self, number: int = ...) -> float: ...\n def repeat(self, repeat: int = ..., number: int = ...) -> List[float]: ...\n if sys.version_info >= (3, 6):\n def autorange(self, callback: Optional[Callable[[int, float], Any]] = ...) -> Tuple[int, float]: ...\n\nif sys.version_info >= (3, 5):\n def timeit(\n stmt: _stmt = ..., setup: _stmt = ..., timer: _Timer = ..., number: int = ..., globals: Optional[Dict[str, Any]] = ...\n ) -> float: ...\n def repeat(\n stmt: _stmt = ...,\n setup: _stmt = ...,\n timer: _Timer = ...,\n repeat: int = ...,\n number: int = ...,\n globals: Optional[Dict[str, Any]] = ...,\n ) -> List[float]: ...\n\nelse:\n def timeit(stmt: _stmt = ..., setup: _stmt = ..., timer: _Timer = ..., number: int = ...) -> float: ...\n def repeat(\n stmt: _stmt = ..., setup: _stmt = ..., timer: _Timer = ..., repeat: int = ..., number: int = ...\n ) -> List[float]: ...\n\ndef main(args: Optional[Sequence[str]]) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\timeit.pyi
timeit.pyi
Other
1,623
0.85
0.357143
0
node-utils
285
2024-09-16T04:18:20.959854
GPL-3.0
false
7ae903018ef404bba1060b7e3e5273b7
import sys\nfrom typing import Dict\n\nENDMARKER: int\nNAME: int\nNUMBER: int\nSTRING: int\nNEWLINE: int\nINDENT: int\nDEDENT: int\nLPAR: int\nRPAR: int\nLSQB: int\nRSQB: int\nCOLON: int\nCOMMA: int\nSEMI: int\nPLUS: int\nMINUS: int\nSTAR: int\nSLASH: int\nVBAR: int\nAMPER: int\nLESS: int\nGREATER: int\nEQUAL: int\nDOT: int\nPERCENT: int\nif sys.version_info < (3,):\n BACKQUOTE: int\nLBRACE: int\nRBRACE: int\nEQEQUAL: int\nNOTEQUAL: int\nLESSEQUAL: int\nGREATEREQUAL: int\nTILDE: int\nCIRCUMFLEX: int\nLEFTSHIFT: int\nRIGHTSHIFT: int\nDOUBLESTAR: int\nPLUSEQUAL: int\nMINEQUAL: int\nSTAREQUAL: int\nSLASHEQUAL: int\nPERCENTEQUAL: int\nAMPEREQUAL: int\nVBAREQUAL: int\nCIRCUMFLEXEQUAL: int\nLEFTSHIFTEQUAL: int\nRIGHTSHIFTEQUAL: int\nDOUBLESTAREQUAL: int\nDOUBLESLASH: int\nDOUBLESLASHEQUAL: int\nAT: int\nif sys.version_info >= (3,):\n RARROW: int\n ELLIPSIS: int\nif sys.version_info >= (3, 5):\n ATEQUAL: int\n if sys.version_info < (3, 7):\n # These were removed in Python 3.7 but added back in Python 3.8\n AWAIT: int\n ASYNC: int\nif sys.version_info >= (3, 8):\n AWAIT: int\n ASYNC: int\nOP: int\nERRORTOKEN: int\nN_TOKENS: int\nNT_OFFSET: int\ntok_name: Dict[int, str]\nif sys.version_info >= (3, 7):\n COMMENT: int\n NL: int\n ENCODING: int\nif sys.version_info >= (3, 8):\n TYPE_COMMENT: int\n TYPE_IGNORE: int\n COLONEQUAL: int\n EXACT_TOKEN_TYPES: Dict[str, int]\n\ndef ISTERMINAL(x: int) -> bool: ...\ndef ISNONTERMINAL(x: int) -> bool: ...\ndef ISEOF(x: int) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\token.pyi
token.pyi
Other
1,468
0.95
0.117647
0.012048
react-lib
671
2024-11-27T13:02:00.637142
GPL-3.0
false
4fdfcfc5fba8f22b3c1c40b73296b9dd
import types\nfrom _typeshed import StrPath\nfrom typing import Any, Callable, Mapping, Optional, Sequence, Tuple, TypeVar, Union\n\n_T = TypeVar("_T")\n_localtrace = Callable[[types.FrameType, str, Any], Callable[..., Any]]\n\nclass CoverageResults:\n def update(self, other: CoverageResults) -> None: ...\n def write_results(self, show_missing: bool = ..., summary: bool = ..., coverdir: Optional[StrPath] = ...) -> None: ...\n def write_results_file(\n self, path: StrPath, lines: Sequence[str], lnotab: Any, lines_hit: Mapping[int, int], encoding: Optional[str] = ...\n ) -> Tuple[int, int]: ...\n\nclass Trace:\n def __init__(\n self,\n count: int = ...,\n trace: int = ...,\n countfuncs: int = ...,\n countcallers: int = ...,\n ignoremods: Sequence[str] = ...,\n ignoredirs: Sequence[str] = ...,\n infile: Optional[StrPath] = ...,\n outfile: Optional[StrPath] = ...,\n timing: bool = ...,\n ) -> None: ...\n def run(self, cmd: Union[str, types.CodeType]) -> None: ...\n def runctx(\n self,\n cmd: Union[str, types.CodeType],\n globals: Optional[Mapping[str, Any]] = ...,\n locals: Optional[Mapping[str, Any]] = ...,\n ) -> None: ...\n def runfunc(self, func: Callable[..., _T], *args: Any, **kw: Any) -> _T: ...\n def file_module_function_of(self, frame: types.FrameType) -> Tuple[str, Optional[str], str]: ...\n def globaltrace_trackcallers(self, frame: types.FrameType, why: str, arg: Any) -> None: ...\n def globaltrace_countfuncs(self, frame: types.FrameType, why: str, arg: Any) -> None: ...\n def globaltrace_lt(self, frame: types.FrameType, why: str, arg: Any) -> None: ...\n def localtrace_trace_and_count(self, frame: types.FrameType, why: str, arg: Any) -> _localtrace: ...\n def localtrace_trace(self, frame: types.FrameType, why: str, arg: Any) -> _localtrace: ...\n def localtrace_count(self, frame: types.FrameType, why: str, arg: Any) -> _localtrace: ...\n def results(self) -> CoverageResults: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\trace.pyi
trace.pyi
Other
2,037
0.85
0.395349
0
python-kit
240
2023-12-19T23:35:16.132253
Apache-2.0
false
3e6d68650fb53047d4822771d5222d47
import sys\nfrom _typeshed import SupportsWrite\nfrom types import FrameType, TracebackType\nfrom typing import IO, Any, Dict, Generator, Iterable, Iterator, List, Mapping, Optional, Tuple, Type\n\n_PT = Tuple[str, int, str, Optional[str]]\n\ndef print_tb(tb: Optional[TracebackType], limit: Optional[int] = ..., file: Optional[IO[str]] = ...) -> None: ...\n\nif sys.version_info >= (3,):\n def print_exception(\n etype: Optional[Type[BaseException]],\n value: Optional[BaseException],\n tb: Optional[TracebackType],\n limit: Optional[int] = ...,\n file: Optional[IO[str]] = ...,\n chain: bool = ...,\n ) -> None: ...\n def print_exc(limit: Optional[int] = ..., file: Optional[IO[str]] = ..., chain: bool = ...) -> None: ...\n def print_last(limit: Optional[int] = ..., file: Optional[IO[str]] = ..., chain: bool = ...) -> None: ...\n\nelse:\n def print_exception(\n etype: Optional[Type[BaseException]],\n value: Optional[BaseException],\n tb: Optional[TracebackType],\n limit: Optional[int] = ...,\n file: Optional[IO[str]] = ...,\n ) -> None: ...\n def print_exc(limit: Optional[int] = ..., file: Optional[IO[str]] = ...) -> None: ...\n def print_last(limit: Optional[int] = ..., file: Optional[IO[str]] = ...) -> None: ...\n\ndef print_stack(f: Optional[FrameType] = ..., limit: Optional[int] = ..., file: Optional[IO[str]] = ...) -> None: ...\n\nif sys.version_info >= (3, 5):\n def extract_tb(tb: Optional[TracebackType], limit: Optional[int] = ...) -> StackSummary: ...\n def extract_stack(f: Optional[FrameType] = ..., limit: Optional[int] = ...) -> StackSummary: ...\n def format_list(extracted_list: List[FrameSummary]) -> List[str]: ...\n # undocumented\n def print_list(extracted_list: List[FrameSummary], file: Optional[SupportsWrite[str]] = ...) -> None: ...\n\nelse:\n def extract_tb(tb: Optional[TracebackType], limit: Optional[int] = ...) -> List[_PT]: ...\n def extract_stack(f: Optional[FrameType] = ..., limit: Optional[int] = ...) -> List[_PT]: ...\n def format_list(extracted_list: List[_PT]) -> List[str]: ...\n\ndef format_exception_only(etype: Optional[Type[BaseException]], value: Optional[BaseException]) -> List[str]: ...\n\nif sys.version_info >= (3,):\n def format_exception(\n etype: Optional[Type[BaseException]],\n value: Optional[BaseException],\n tb: Optional[TracebackType],\n limit: Optional[int] = ...,\n chain: bool = ...,\n ) -> List[str]: ...\n def format_exc(limit: Optional[int] = ..., chain: bool = ...) -> str: ...\n\nelse:\n def format_exception(\n etype: Optional[Type[BaseException]],\n value: Optional[BaseException],\n tb: Optional[TracebackType],\n limit: Optional[int] = ...,\n ) -> List[str]: ...\n def format_exc(limit: Optional[int] = ...) -> str: ...\n\ndef format_tb(tb: Optional[TracebackType], limit: Optional[int] = ...) -> List[str]: ...\ndef format_stack(f: Optional[FrameType] = ..., limit: Optional[int] = ...) -> List[str]: ...\n\nif sys.version_info >= (3, 4):\n def clear_frames(tb: TracebackType) -> None: ...\n\nif sys.version_info >= (3, 5):\n def walk_stack(f: Optional[FrameType]) -> Iterator[Tuple[FrameType, int]]: ...\n def walk_tb(tb: Optional[TracebackType]) -> Iterator[Tuple[FrameType, int]]: ...\n\nif sys.version_info < (3,):\n def tb_lineno(tb: TracebackType) -> int: ...\n\nif sys.version_info >= (3, 5):\n class TracebackException:\n __cause__: TracebackException\n __context__: TracebackException\n __suppress_context__: bool\n stack: StackSummary\n exc_type: Type[BaseException]\n filename: str\n lineno: int\n text: str\n offset: int\n msg: str\n def __init__(\n self,\n exc_type: Type[BaseException],\n exc_value: BaseException,\n exc_traceback: TracebackType,\n *,\n limit: Optional[int] = ...,\n lookup_lines: bool = ...,\n capture_locals: bool = ...,\n ) -> None: ...\n @classmethod\n def from_exception(\n cls, exc: BaseException, *, limit: Optional[int] = ..., lookup_lines: bool = ..., capture_locals: bool = ...\n ) -> TracebackException: ...\n def format(self, *, chain: bool = ...) -> Generator[str, None, None]: ...\n def format_exception_only(self) -> Generator[str, None, None]: ...\n class FrameSummary(Iterable[Any]):\n filename: str\n lineno: int\n name: str\n line: str\n locals: Optional[Dict[str, str]]\n def __init__(\n self,\n filename: str,\n lineno: int,\n name: str,\n lookup_line: bool = ...,\n locals: Optional[Mapping[str, str]] = ...,\n line: Optional[str] = ...,\n ) -> None: ...\n # TODO: more precise typing for __getitem__ and __iter__,\n # for a namedtuple-like view on (filename, lineno, name, str).\n def __getitem__(self, i: int) -> Any: ...\n def __iter__(self) -> Iterator[Any]: ...\n class StackSummary(List[FrameSummary]):\n @classmethod\n def extract(\n cls,\n frame_gen: Generator[Tuple[FrameType, int], None, None],\n *,\n limit: Optional[int] = ...,\n lookup_lines: bool = ...,\n capture_locals: bool = ...,\n ) -> StackSummary: ...\n @classmethod\n def from_list(cls, a_list: List[_PT]) -> StackSummary: ...\n def format(self) -> List[str]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\traceback.pyi
traceback.pyi
Other
5,545
0.95
0.342857
0.04
react-lib
786
2024-03-16T07:26:33.141417
GPL-3.0
false
c2731749a7818a0bce6a9bfa465c0041
from typing import IO, Union\n\n_FD = Union[int, IO[str]]\n\n# XXX: Undocumented integer constants\nIFLAG: int\nOFLAG: int\nCFLAG: int\nLFLAG: int\nISPEED: int\nOSPEED: int\nCC: int\n\ndef setraw(fd: _FD, when: int = ...) -> None: ...\ndef setcbreak(fd: _FD, when: int = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\tty.pyi
tty.pyi
Other
275
0.95
0.133333
0.083333
react-lib
556
2025-03-31T16:49:27.761087
GPL-3.0
false
94e0ad2d5a5fda5d58e18968d2e03d4e
import sys\nfrom typing import Any, Callable, Dict, List, Optional, Sequence, Text, Tuple, TypeVar, Union, overload\n\nif sys.version_info >= (3,):\n from tkinter import Canvas, PhotoImage\nelse:\n # TODO: Replace these aliases once we have Python 2 stubs for the Tkinter module.\n Canvas = Any\n PhotoImage = Any\n\n# Note: '_Color' is the alias we use for arguments and _AnyColor is the\n# alias we use for return types. Really, these two aliases should be the\n# same, but as per the "no union returns" typeshed policy, we'll return\n# Any instead.\n_Color = Union[Text, Tuple[float, float, float]]\n_AnyColor = Any\n\n# TODO: Replace this with a TypedDict once it becomes standardized.\n_PenState = Dict[str, Any]\n\n_Speed = Union[str, float]\n_PolygonCoords = Sequence[Tuple[float, float]]\n\n# TODO: Type this more accurately\n# Vec2D is actually a custom subclass of 'tuple'.\nVec2D = Tuple[float, float]\n\nclass TurtleScreenBase(object):\n cv: Canvas = ...\n canvwidth: int = ...\n canvheight: int = ...\n xscale: float = ...\n yscale: float = ...\n def __init__(self, cv: Canvas) -> None: ...\n if sys.version_info >= (3,):\n def mainloop(self) -> None: ...\n def textinput(self, title: str, prompt: str) -> Optional[str]: ...\n def numinput(\n self,\n title: str,\n prompt: str,\n default: Optional[float] = ...,\n minval: Optional[float] = ...,\n maxval: Optional[float] = ...,\n ) -> Optional[float]: ...\n\nclass Terminator(Exception): ...\nclass TurtleGraphicsError(Exception): ...\n\nclass Shape(object):\n def __init__(self, type_: str, data: Union[_PolygonCoords, PhotoImage, None] = ...) -> None: ...\n def addcomponent(self, poly: _PolygonCoords, fill: _Color, outline: Optional[_Color] = ...) -> None: ...\n\nclass TurtleScreen(TurtleScreenBase):\n def __init__(self, cv: Canvas, mode: str = ..., colormode: float = ..., delay: int = ...) -> None: ...\n def clear(self) -> None: ...\n @overload\n def mode(self, mode: None = ...) -> str: ...\n @overload\n def mode(self, mode: str) -> None: ...\n def setworldcoordinates(self, llx: float, lly: float, urx: float, ury: float) -> None: ...\n def register_shape(self, name: str, shape: Union[_PolygonCoords, Shape, None] = ...) -> None: ...\n @overload\n def colormode(self, cmode: None = ...) -> float: ...\n @overload\n def colormode(self, cmode: float) -> None: ...\n def reset(self) -> None: ...\n def turtles(self) -> List[Turtle]: ...\n @overload\n def bgcolor(self) -> _AnyColor: ...\n @overload\n def bgcolor(self, color: _Color) -> None: ...\n @overload\n def bgcolor(self, r: float, g: float, b: float) -> None: ...\n @overload\n def tracer(self, n: None = ...) -> int: ...\n @overload\n def tracer(self, n: int, delay: Optional[int] = ...) -> None: ...\n @overload\n def delay(self, delay: None = ...) -> int: ...\n @overload\n def delay(self, delay: int) -> None: ...\n def update(self) -> None: ...\n def window_width(self) -> int: ...\n def window_height(self) -> int: ...\n def getcanvas(self) -> Canvas: ...\n def getshapes(self) -> List[str]: ...\n def onclick(self, fun: Callable[[float, float], Any], btn: int = ..., add: Optional[Any] = ...) -> None: ...\n def onkey(self, fun: Callable[[], Any], key: str) -> None: ...\n def listen(self, xdummy: Optional[float] = ..., ydummy: Optional[float] = ...) -> None: ...\n def ontimer(self, fun: Callable[[], Any], t: int = ...) -> None: ...\n @overload\n def bgpic(self, picname: None = ...) -> str: ...\n @overload\n def bgpic(self, picname: str) -> None: ...\n @overload\n def screensize(self, canvwidth: None = ..., canvheight: None = ..., bg: None = ...) -> Tuple[int, int]: ...\n # Looks like if self.cv is not a ScrolledCanvas, this could return a tuple as well\n @overload\n def screensize(self, canvwidth: int, canvheight: int, bg: Optional[_Color] = ...) -> None: ...\n onscreenclick = onclick\n resetscreen = reset\n clearscreen = clear\n addshape = register_shape\n if sys.version_info >= (3,):\n def onkeypress(self, fun: Callable[[], Any], key: Optional[str] = ...) -> None: ...\n onkeyrelease = onkey\n\nclass TNavigator(object):\n START_ORIENTATION: Dict[str, Vec2D] = ...\n DEFAULT_MODE: str = ...\n DEFAULT_ANGLEOFFSET: int = ...\n DEFAULT_ANGLEORIENT: int = ...\n def __init__(self, mode: str = ...) -> None: ...\n def reset(self) -> None: ...\n def degrees(self, fullcircle: float = ...) -> None: ...\n def radians(self) -> None: ...\n def forward(self, distance: float) -> None: ...\n def back(self, distance: float) -> None: ...\n def right(self, angle: float) -> None: ...\n def left(self, angle: float) -> None: ...\n def pos(self) -> Vec2D: ...\n def xcor(self) -> float: ...\n def ycor(self) -> float: ...\n @overload\n def goto(self, x: Tuple[float, float], y: None = ...) -> None: ...\n @overload\n def goto(self, x: float, y: float) -> None: ...\n def home(self) -> None: ...\n def setx(self, x: float) -> None: ...\n def sety(self, y: float) -> None: ...\n @overload\n def distance(self, x: Union[TNavigator, Tuple[float, float]], y: None = ...) -> float: ...\n @overload\n def distance(self, x: float, y: float) -> float: ...\n @overload\n def towards(self, x: Union[TNavigator, Tuple[float, float]], y: None = ...) -> float: ...\n @overload\n def towards(self, x: float, y: float) -> float: ...\n def heading(self) -> float: ...\n def setheading(self, to_angle: float) -> None: ...\n def circle(self, radius: float, extent: Optional[float] = ..., steps: Optional[int] = ...) -> None: ...\n fd = forward\n bk = back\n backward = back\n rt = right\n lt = left\n position = pos\n setpos = goto\n setposition = goto\n seth = setheading\n\nclass TPen(object):\n def __init__(self, resizemode: str = ...) -> None: ...\n @overload\n def resizemode(self, rmode: None = ...) -> str: ...\n @overload\n def resizemode(self, rmode: str) -> None: ...\n @overload\n def pensize(self, width: None = ...) -> int: ...\n @overload\n def pensize(self, width: int) -> None: ...\n def penup(self) -> None: ...\n def pendown(self) -> None: ...\n def isdown(self) -> bool: ...\n @overload\n def speed(self, speed: None = ...) -> int: ...\n @overload\n def speed(self, speed: _Speed) -> None: ...\n @overload\n def pencolor(self) -> _AnyColor: ...\n @overload\n def pencolor(self, color: _Color) -> None: ...\n @overload\n def pencolor(self, r: float, g: float, b: float) -> None: ...\n @overload\n def fillcolor(self) -> _AnyColor: ...\n @overload\n def fillcolor(self, color: _Color) -> None: ...\n @overload\n def fillcolor(self, r: float, g: float, b: float) -> None: ...\n @overload\n def color(self) -> Tuple[_AnyColor, _AnyColor]: ...\n @overload\n def color(self, color: _Color) -> None: ...\n @overload\n def color(self, r: float, g: float, b: float) -> None: ...\n @overload\n def color(self, color1: _Color, color2: _Color) -> None: ...\n def showturtle(self) -> None: ...\n def hideturtle(self) -> None: ...\n def isvisible(self) -> bool: ...\n # Note: signatures 1 and 2 overlap unsafely when no arguments are provided\n @overload\n def pen(self) -> _PenState: ... # type: ignore\n @overload\n def pen(\n self,\n pen: Optional[_PenState] = ...,\n *,\n shown: bool = ...,\n pendown: bool = ...,\n pencolor: _Color = ...,\n fillcolor: _Color = ...,\n pensize: int = ...,\n speed: int = ...,\n resizemode: str = ...,\n stretchfactor: Tuple[float, float] = ...,\n outline: int = ...,\n tilt: float = ...,\n ) -> None: ...\n width = pensize\n up = penup\n pu = penup\n pd = pendown\n down = pendown\n st = showturtle\n ht = hideturtle\n\n_T = TypeVar("_T")\n\nclass RawTurtle(TPen, TNavigator):\n def __init__(\n self, canvas: Union[Canvas, TurtleScreen, None] = ..., shape: str = ..., undobuffersize: int = ..., visible: bool = ...\n ) -> None: ...\n def reset(self) -> None: ...\n def setundobuffer(self, size: Optional[int]) -> None: ...\n def undobufferentries(self) -> int: ...\n def clear(self) -> None: ...\n def clone(self: _T) -> _T: ...\n @overload\n def shape(self, name: None = ...) -> str: ...\n @overload\n def shape(self, name: str) -> None: ...\n # Unsafely overlaps when no arguments are provided\n @overload\n def shapesize(self) -> Tuple[float, float, float]: ... # type: ignore\n @overload\n def shapesize(\n self, stretch_wid: Optional[float] = ..., stretch_len: Optional[float] = ..., outline: Optional[float] = ...\n ) -> None: ...\n if sys.version_info >= (3,):\n @overload\n def shearfactor(self, shear: None = ...) -> float: ...\n @overload\n def shearfactor(self, shear: float) -> None: ...\n # Unsafely overlaps when no arguments are provided\n @overload\n def shapetransform(self) -> Tuple[float, float, float, float]: ... # type: ignore\n @overload\n def shapetransform(\n self, t11: Optional[float] = ..., t12: Optional[float] = ..., t21: Optional[float] = ..., t22: Optional[float] = ...\n ) -> None: ...\n def get_shapepoly(self) -> Optional[_PolygonCoords]: ...\n def settiltangle(self, angle: float) -> None: ...\n @overload\n def tiltangle(self, angle: None = ...) -> float: ...\n @overload\n def tiltangle(self, angle: float) -> None: ...\n def tilt(self, angle: float) -> None: ...\n # Can return either 'int' or Tuple[int, ...] based on if the stamp is\n # a compound stamp or not. So, as per the "no Union return" policy,\n # we return Any.\n def stamp(self) -> Any: ...\n def clearstamp(self, stampid: Union[int, Tuple[int, ...]]) -> None: ...\n def clearstamps(self, n: Optional[int] = ...) -> None: ...\n def filling(self) -> bool: ...\n def begin_fill(self) -> None: ...\n def end_fill(self) -> None: ...\n def dot(self, size: Optional[int] = ..., *color: _Color) -> None: ...\n def write(self, arg: object, move: bool = ..., align: str = ..., font: Tuple[str, int, str] = ...) -> None: ...\n def begin_poly(self) -> None: ...\n def end_poly(self) -> None: ...\n def get_poly(self) -> Optional[_PolygonCoords]: ...\n def getscreen(self) -> TurtleScreen: ...\n def getturtle(self: _T) -> _T: ...\n getpen = getturtle\n def onclick(self, fun: Callable[[float, float], Any], btn: int = ..., add: Optional[bool] = ...) -> None: ...\n def onrelease(self, fun: Callable[[float, float], Any], btn: int = ..., add: Optional[bool] = ...) -> None: ...\n def ondrag(self, fun: Callable[[float, float], Any], btn: int = ..., add: Optional[bool] = ...) -> None: ...\n def undo(self) -> None: ...\n turtlesize = shapesize\n\nclass _Screen(TurtleScreen):\n def __init__(self) -> None: ...\n # Note int and float are interpreted differently, hence the Union instead of just float\n def setup(\n self,\n width: Union[int, float] = ...,\n height: Union[int, float] = ...,\n startx: Optional[int] = ...,\n starty: Optional[int] = ...,\n ) -> None: ...\n def title(self, titlestring: str) -> None: ...\n def bye(self) -> None: ...\n def exitonclick(self) -> None: ...\n\ndef Screen() -> _Screen: ...\n\nclass Turtle(RawTurtle):\n def __init__(self, shape: str = ..., undobuffersize: int = ..., visible: bool = ...) -> None: ...\n\nRawPen = RawTurtle\nPen = Turtle\n\ndef write_docstringdict(filename: str = ...) -> None: ...\n\n# Note: it's somewhat unfortunate that we have to copy the function signatures.\n# It would be nice if we could partially reduce the redundancy by doing something\n# like the following:\n#\n# _screen: Screen\n# clear = _screen.clear\n#\n# However, it seems pytype does not support this type of syntax in pyi files.\n\n# Functions copied from TurtleScreenBase:\n\n# Note: mainloop() was always present in the global scope, but was added to\n# TurtleScreenBase in Python 3.0\ndef mainloop() -> None: ...\n\nif sys.version_info >= (3,):\n def textinput(title: str, prompt: str) -> Optional[str]: ...\n def numinput(\n title: str, prompt: str, default: Optional[float] = ..., minval: Optional[float] = ..., maxval: Optional[float] = ...\n ) -> Optional[float]: ...\n\n# Functions copied from TurtleScreen:\n\ndef clear() -> None: ...\n@overload\ndef mode(mode: None = ...) -> str: ...\n@overload\ndef mode(mode: str) -> None: ...\ndef setworldcoordinates(llx: float, lly: float, urx: float, ury: float) -> None: ...\ndef register_shape(name: str, shape: Union[_PolygonCoords, Shape, None] = ...) -> None: ...\n@overload\ndef colormode(cmode: None = ...) -> float: ...\n@overload\ndef colormode(cmode: float) -> None: ...\ndef reset() -> None: ...\ndef turtles() -> List[Turtle]: ...\n@overload\ndef bgcolor() -> _AnyColor: ...\n@overload\ndef bgcolor(color: _Color) -> None: ...\n@overload\ndef bgcolor(r: float, g: float, b: float) -> None: ...\n@overload\ndef tracer(n: None = ...) -> int: ...\n@overload\ndef tracer(n: int, delay: Optional[int] = ...) -> None: ...\n@overload\ndef delay(delay: None = ...) -> int: ...\n@overload\ndef delay(delay: int) -> None: ...\ndef update() -> None: ...\ndef window_width() -> int: ...\ndef window_height() -> int: ...\ndef getcanvas() -> Canvas: ...\ndef getshapes() -> List[str]: ...\ndef onclick(fun: Callable[[float, float], Any], btn: int = ..., add: Optional[Any] = ...) -> None: ...\ndef onkey(fun: Callable[[], Any], key: str) -> None: ...\ndef listen(xdummy: Optional[float] = ..., ydummy: Optional[float] = ...) -> None: ...\ndef ontimer(fun: Callable[[], Any], t: int = ...) -> None: ...\n@overload\ndef bgpic(picname: None = ...) -> str: ...\n@overload\ndef bgpic(picname: str) -> None: ...\n@overload\ndef screensize(canvwidth: None = ..., canvheight: None = ..., bg: None = ...) -> Tuple[int, int]: ...\n@overload\ndef screensize(canvwidth: int, canvheight: int, bg: Optional[_Color] = ...) -> None: ...\n\nonscreenclick = onclick\nresetscreen = reset\nclearscreen = clear\naddshape = register_shape\nif sys.version_info >= (3,):\n def onkeypress(fun: Callable[[], Any], key: Optional[str] = ...) -> None: ...\n onkeyrelease = onkey\n\n# Functions copied from TNavigator:\n\ndef degrees(fullcircle: float = ...) -> None: ...\ndef radians() -> None: ...\ndef forward(distance: float) -> None: ...\ndef back(distance: float) -> None: ...\ndef right(angle: float) -> None: ...\ndef left(angle: float) -> None: ...\ndef pos() -> Vec2D: ...\ndef xcor() -> float: ...\ndef ycor() -> float: ...\n@overload\ndef goto(x: Tuple[float, float], y: None = ...) -> None: ...\n@overload\ndef goto(x: float, y: float) -> None: ...\ndef home() -> None: ...\ndef setx(x: float) -> None: ...\ndef sety(y: float) -> None: ...\n@overload\ndef distance(x: Union[TNavigator, Tuple[float, float]], y: None = ...) -> float: ...\n@overload\ndef distance(x: float, y: float) -> float: ...\n@overload\ndef towards(x: Union[TNavigator, Tuple[float, float]], y: None = ...) -> float: ...\n@overload\ndef towards(x: float, y: float) -> float: ...\ndef heading() -> float: ...\ndef setheading(to_angle: float) -> None: ...\ndef circle(radius: float, extent: Optional[float] = ..., steps: Optional[int] = ...) -> None: ...\n\nfd = forward\nbk = back\nbackward = back\nrt = right\nlt = left\nposition = pos\nsetpos = goto\nsetposition = goto\nseth = setheading\n\n# Functions copied from TPen:\n@overload\ndef resizemode(rmode: None = ...) -> str: ...\n@overload\ndef resizemode(rmode: str) -> None: ...\n@overload\ndef pensize(width: None = ...) -> int: ...\n@overload\ndef pensize(width: int) -> None: ...\ndef penup() -> None: ...\ndef pendown() -> None: ...\ndef isdown() -> bool: ...\n@overload\ndef speed(speed: None = ...) -> int: ...\n@overload\ndef speed(speed: _Speed) -> None: ...\n@overload\ndef pencolor() -> _AnyColor: ...\n@overload\ndef pencolor(color: _Color) -> None: ...\n@overload\ndef pencolor(r: float, g: float, b: float) -> None: ...\n@overload\ndef fillcolor() -> _AnyColor: ...\n@overload\ndef fillcolor(color: _Color) -> None: ...\n@overload\ndef fillcolor(r: float, g: float, b: float) -> None: ...\n@overload\ndef color() -> Tuple[_AnyColor, _AnyColor]: ...\n@overload\ndef color(color: _Color) -> None: ...\n@overload\ndef color(r: float, g: float, b: float) -> None: ...\n@overload\ndef color(color1: _Color, color2: _Color) -> None: ...\ndef showturtle() -> None: ...\ndef hideturtle() -> None: ...\ndef isvisible() -> bool: ...\n\n# Note: signatures 1 and 2 overlap unsafely when no arguments are provided\n@overload\ndef pen() -> _PenState: ... # type: ignore\n@overload\ndef pen(\n pen: Optional[_PenState] = ...,\n *,\n shown: bool = ...,\n pendown: bool = ...,\n pencolor: _Color = ...,\n fillcolor: _Color = ...,\n pensize: int = ...,\n speed: int = ...,\n resizemode: str = ...,\n stretchfactor: Tuple[float, float] = ...,\n outline: int = ...,\n tilt: float = ...,\n) -> None: ...\n\nwidth = pensize\nup = penup\npu = penup\npd = pendown\ndown = pendown\nst = showturtle\nht = hideturtle\n\n# Functions copied from RawTurtle:\n\ndef setundobuffer(size: Optional[int]) -> None: ...\ndef undobufferentries() -> int: ...\n@overload\ndef shape(name: None = ...) -> str: ...\n@overload\ndef shape(name: str) -> None: ...\n\n# Unsafely overlaps when no arguments are provided\n@overload\ndef shapesize() -> Tuple[float, float, float]: ... # type: ignore\n@overload\ndef shapesize(stretch_wid: Optional[float] = ..., stretch_len: Optional[float] = ..., outline: Optional[float] = ...) -> None: ...\n\nif sys.version_info >= (3,):\n @overload\n def shearfactor(shear: None = ...) -> float: ...\n @overload\n def shearfactor(shear: float) -> None: ...\n # Unsafely overlaps when no arguments are provided\n @overload\n def shapetransform() -> Tuple[float, float, float, float]: ... # type: ignore\n @overload\n def shapetransform(\n t11: Optional[float] = ..., t12: Optional[float] = ..., t21: Optional[float] = ..., t22: Optional[float] = ...\n ) -> None: ...\n def get_shapepoly() -> Optional[_PolygonCoords]: ...\n\ndef settiltangle(angle: float) -> None: ...\n@overload\ndef tiltangle(angle: None = ...) -> float: ...\n@overload\ndef tiltangle(angle: float) -> None: ...\ndef tilt(angle: float) -> None: ...\n\n# Can return either 'int' or Tuple[int, ...] based on if the stamp is\n# a compound stamp or not. So, as per the "no Union return" policy,\n# we return Any.\ndef stamp() -> Any: ...\ndef clearstamp(stampid: Union[int, Tuple[int, ...]]) -> None: ...\ndef clearstamps(n: Optional[int] = ...) -> None: ...\ndef filling() -> bool: ...\ndef begin_fill() -> None: ...\ndef end_fill() -> None: ...\ndef dot(size: Optional[int] = ..., *color: _Color) -> None: ...\ndef write(arg: object, move: bool = ..., align: str = ..., font: Tuple[str, int, str] = ...) -> None: ...\ndef begin_poly() -> None: ...\ndef end_poly() -> None: ...\ndef get_poly() -> Optional[_PolygonCoords]: ...\ndef getscreen() -> TurtleScreen: ...\ndef getturtle() -> Turtle: ...\n\ngetpen = getturtle\n\ndef onrelease(fun: Callable[[float, float], Any], btn: int = ..., add: Optional[Any] = ...) -> None: ...\ndef ondrag(fun: Callable[[float, float], Any], btn: int = ..., add: Optional[Any] = ...) -> None: ...\ndef undo() -> None: ...\n\nturtlesize = shapesize\n\n# Functions copied from RawTurtle with a few tweaks:\n\ndef clone() -> Turtle: ...\n\n# Extra functions present only in the global scope:\n\ndone = mainloop\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\turtle.pyi
turtle.pyi
Other
19,476
0.95
0.473118
0.079767
vue-tools
802
2024-01-29T09:07:23.420538
GPL-3.0
false
ccece365856a0148b0f48f8a96001b76
import sys\nfrom typing import Any, Text, TypeVar, Union\n\nucd_3_2_0: UCD\nucnhash_CAPI: Any\nunidata_version: str\n\n_default = TypeVar("_default")\n\ndef bidirectional(__chr: Text) -> Text: ...\ndef category(__chr: Text) -> Text: ...\ndef combining(__chr: Text) -> int: ...\ndef decimal(__chr: Text, __default: _default = ...) -> Union[int, _default]: ...\ndef decomposition(__chr: Text) -> Text: ...\ndef digit(__chr: Text, __default: _default = ...) -> Union[int, _default]: ...\ndef east_asian_width(__chr: Text) -> Text: ...\n\nif sys.version_info >= (3, 8):\n def is_normalized(__form: str, __unistr: str) -> bool: ...\n\ndef lookup(__name: Union[Text, bytes]) -> Text: ...\ndef mirrored(__chr: Text) -> int: ...\ndef name(__chr: Text, __default: _default = ...) -> Union[Text, _default]: ...\ndef normalize(__form: Text, __unistr: Text) -> Text: ...\ndef numeric(__chr: Text, __default: _default = ...) -> Union[float, _default]: ...\n\nclass UCD(object):\n # The methods below are constructed from the same array in C\n # (unicodedata_functions) and hence identical to the methods above.\n unidata_version: str\n def bidirectional(self, __chr: Text) -> str: ...\n def category(self, __chr: Text) -> str: ...\n def combining(self, __chr: Text) -> int: ...\n def decimal(self, __chr: Text, __default: _default = ...) -> Union[int, _default]: ...\n def decomposition(self, __chr: Text) -> str: ...\n def digit(self, __chr: Text, __default: _default = ...) -> Union[int, _default]: ...\n def east_asian_width(self, __chr: Text) -> str: ...\n def lookup(self, __name: Union[Text, bytes]) -> Text: ...\n def mirrored(self, __chr: Text) -> int: ...\n def name(self, __chr: Text, __default: _default = ...) -> Union[Text, _default]: ...\n def normalize(self, __form: Text, __unistr: Text) -> Text: ...\n def numeric(self, __chr: Text, __default: _default = ...) -> Union[float, _default]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\unicodedata.pyi
unicodedata.pyi
Other
1,902
0.95
0.642857
0.055556
awesome-app
93
2024-06-30T06:45:54.288658
GPL-3.0
false
3652d7979d67a7c78107b980bfc9db16
import sys\nfrom typing import BinaryIO, Optional, Text, Union\n\n_File = Union[Text, BinaryIO]\n\nclass Error(Exception): ...\n\nif sys.version_info >= (3, 7):\n def encode(\n in_file: _File, out_file: _File, name: Optional[str] = ..., mode: Optional[int] = ..., *, backtick: bool = ...\n ) -> None: ...\n\nelse:\n def encode(in_file: _File, out_file: _File, name: Optional[str] = ..., mode: Optional[int] = ...) -> None: ...\n\ndef decode(in_file: _File, out_file: Optional[_File] = ..., mode: Optional[int] = ..., quiet: int = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\uu.pyi
uu.pyi
Other
549
0.85
0.3125
0
node-utils
660
2024-04-24T12:41:44.289641
MIT
false
8dc621542d4c136048bfbd46b32f8858
import sys\nfrom typing import Any, Optional, Text, Tuple\n\n# Because UUID has properties called int and bytes we need to rename these temporarily.\n_Int = int\n_Bytes = bytes\n_FieldsType = Tuple[int, int, int, int, int, int]\n\nif sys.version_info >= (3, 7):\n from enum import Enum\n class SafeUUID(Enum):\n safe: int\n unsafe: int\n unknown: None\n\nclass UUID:\n if sys.version_info >= (3, 7):\n def __init__(\n self,\n hex: Optional[Text] = ...,\n bytes: Optional[_Bytes] = ...,\n bytes_le: Optional[_Bytes] = ...,\n fields: Optional[_FieldsType] = ...,\n int: Optional[_Int] = ...,\n version: Optional[_Int] = ...,\n *,\n is_safe: SafeUUID = ...,\n ) -> None: ...\n @property\n def is_safe(self) -> SafeUUID: ...\n else:\n def __init__(\n self,\n hex: Optional[Text] = ...,\n bytes: Optional[_Bytes] = ...,\n bytes_le: Optional[_Bytes] = ...,\n fields: Optional[_FieldsType] = ...,\n int: Optional[_Int] = ...,\n version: Optional[_Int] = ...,\n ) -> None: ...\n @property\n def bytes(self) -> _Bytes: ...\n @property\n def bytes_le(self) -> _Bytes: ...\n @property\n def clock_seq(self) -> _Int: ...\n @property\n def clock_seq_hi_variant(self) -> _Int: ...\n @property\n def clock_seq_low(self) -> _Int: ...\n @property\n def fields(self) -> _FieldsType: ...\n @property\n def hex(self) -> str: ...\n @property\n def int(self) -> _Int: ...\n @property\n def node(self) -> _Int: ...\n @property\n def time(self) -> _Int: ...\n @property\n def time_hi_version(self) -> _Int: ...\n @property\n def time_low(self) -> _Int: ...\n @property\n def time_mid(self) -> _Int: ...\n @property\n def urn(self) -> str: ...\n @property\n def variant(self) -> str: ...\n @property\n def version(self) -> Optional[_Int]: ...\n def __int__(self) -> _Int: ...\n if sys.version_info >= (3,):\n def __eq__(self, other: Any) -> bool: ...\n def __lt__(self, other: Any) -> bool: ...\n def __le__(self, other: Any) -> bool: ...\n def __gt__(self, other: Any) -> bool: ...\n def __ge__(self, other: Any) -> bool: ...\n else:\n def get_bytes(self) -> _Bytes: ...\n def get_bytes_le(self) -> _Bytes: ...\n def get_clock_seq(self) -> _Int: ...\n def get_clock_seq_hi_variant(self) -> _Int: ...\n def get_clock_seq_low(self) -> _Int: ...\n def get_fields(self) -> _FieldsType: ...\n def get_hex(self) -> str: ...\n def get_node(self) -> _Int: ...\n def get_time(self) -> _Int: ...\n def get_time_hi_version(self) -> _Int: ...\n def get_time_low(self) -> _Int: ...\n def get_time_mid(self) -> _Int: ...\n def get_urn(self) -> str: ...\n def get_variant(self) -> str: ...\n def get_version(self) -> Optional[_Int]: ...\n def __cmp__(self, other: Any) -> _Int: ...\n\ndef getnode() -> int: ...\ndef uuid1(node: Optional[_Int] = ..., clock_seq: Optional[_Int] = ...) -> UUID: ...\ndef uuid3(namespace: UUID, name: str) -> UUID: ...\ndef uuid4() -> UUID: ...\ndef uuid5(namespace: UUID, name: str) -> UUID: ...\n\nNAMESPACE_DNS: UUID\nNAMESPACE_URL: UUID\nNAMESPACE_OID: UUID\nNAMESPACE_X500: UUID\nRESERVED_NCS: str\nRFC_4122: str\nRESERVED_MICROSOFT: str\nRESERVED_FUTURE: str\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\uuid.pyi
uuid.pyi
Other
3,448
0.95
0.459459
0.018868
awesome-app
395
2023-10-14T01:25:10.856816
BSD-3-Clause
false
80cc60e452d4125df48dbfebd3ba6c76
import sys\nfrom types import ModuleType, TracebackType\nfrom typing import Any, List, Optional, TextIO, Type, Union, overload\nfrom typing_extensions import Literal\n\nfrom _warnings import warn as warn, warn_explicit as warn_explicit\n\ndef showwarning(\n message: Union[Warning, str],\n category: Type[Warning],\n filename: str,\n lineno: int,\n file: Optional[TextIO] = ...,\n line: Optional[str] = ...,\n) -> None: ...\ndef formatwarning(\n message: Union[Warning, str], category: Type[Warning], filename: str, lineno: int, line: Optional[str] = ...\n) -> str: ...\ndef filterwarnings(\n action: str, message: str = ..., category: Type[Warning] = ..., module: str = ..., lineno: int = ..., append: bool = ...\n) -> None: ...\ndef simplefilter(action: str, category: Type[Warning] = ..., lineno: int = ..., append: bool = ...) -> None: ...\ndef resetwarnings() -> None: ...\n\nclass _OptionError(Exception): ...\n\nclass WarningMessage:\n message: Union[Warning, str]\n category: Type[Warning]\n filename: str\n lineno: int\n file: Optional[TextIO]\n line: Optional[str]\n if sys.version_info >= (3, 6):\n source: Optional[Any]\n def __init__(\n self,\n message: Union[Warning, str],\n category: Type[Warning],\n filename: str,\n lineno: int,\n file: Optional[TextIO] = ...,\n line: Optional[str] = ...,\n source: Optional[Any] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n message: Union[Warning, str],\n category: Type[Warning],\n filename: str,\n lineno: int,\n file: Optional[TextIO] = ...,\n line: Optional[str] = ...,\n ) -> None: ...\n\nclass catch_warnings:\n @overload\n def __new__(cls, *, record: Literal[False] = ..., module: Optional[ModuleType] = ...) -> _catch_warnings_without_records: ...\n @overload\n def __new__(cls, *, record: Literal[True], module: Optional[ModuleType] = ...) -> _catch_warnings_with_records: ...\n @overload\n def __new__(cls, *, record: bool, module: Optional[ModuleType] = ...) -> catch_warnings: ...\n def __enter__(self) -> Optional[List[WarningMessage]]: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n\nclass _catch_warnings_without_records(catch_warnings):\n def __enter__(self) -> None: ...\n\nclass _catch_warnings_with_records(catch_warnings):\n def __enter__(self) -> List[WarningMessage]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\warnings.pyi
warnings.pyi
Other
2,583
0.85
0.273973
0
node-utils
70
2025-04-25T15:53:16.485364
GPL-3.0
false
ca70b89190e48e4fc5ce7f693fd8817b
import sys\nfrom typing import IO, Any, BinaryIO, NamedTuple, NoReturn, Optional, Text, Tuple, Union\n\n_File = Union[Text, IO[bytes]]\n\nclass Error(Exception): ...\n\nWAVE_FORMAT_PCM: int\n\nif sys.version_info < (3, 0):\n _wave_params = Tuple[int, int, int, int, str, str]\nelse:\n class _wave_params(NamedTuple):\n nchannels: int\n sampwidth: int\n framerate: int\n nframes: int\n comptype: str\n compname: str\n\nclass Wave_read:\n def __init__(self, f: _File) -> None: ...\n if sys.version_info >= (3, 0):\n def __enter__(self) -> Wave_read: ...\n def __exit__(self, *args: Any) -> None: ...\n def getfp(self) -> Optional[BinaryIO]: ...\n def rewind(self) -> None: ...\n def close(self) -> None: ...\n def tell(self) -> int: ...\n def getnchannels(self) -> int: ...\n def getnframes(self) -> int: ...\n def getsampwidth(self) -> int: ...\n def getframerate(self) -> int: ...\n def getcomptype(self) -> str: ...\n def getcompname(self) -> str: ...\n def getparams(self) -> _wave_params: ...\n def getmarkers(self) -> None: ...\n def getmark(self, id: Any) -> NoReturn: ...\n def setpos(self, pos: int) -> None: ...\n def readframes(self, nframes: int) -> bytes: ...\n\nclass Wave_write:\n def __init__(self, f: _File) -> None: ...\n if sys.version_info >= (3, 0):\n def __enter__(self) -> Wave_write: ...\n def __exit__(self, *args: Any) -> None: ...\n def setnchannels(self, nchannels: int) -> None: ...\n def getnchannels(self) -> int: ...\n def setsampwidth(self, sampwidth: int) -> None: ...\n def getsampwidth(self) -> int: ...\n def setframerate(self, framerate: float) -> None: ...\n def getframerate(self) -> int: ...\n def setnframes(self, nframes: int) -> None: ...\n def getnframes(self) -> int: ...\n def setcomptype(self, comptype: str, compname: str) -> None: ...\n def getcomptype(self) -> str: ...\n def getcompname(self) -> str: ...\n def setparams(self, params: _wave_params) -> None: ...\n def getparams(self) -> _wave_params: ...\n def setmark(self, id: Any, pos: Any, name: Any) -> NoReturn: ...\n def getmark(self, id: Any) -> NoReturn: ...\n def getmarkers(self) -> None: ...\n def tell(self) -> int: ...\n # should be any bytes-like object after 3.4, but we don't have a type for that\n def writeframesraw(self, data: bytes) -> None: ...\n def writeframes(self, data: bytes) -> None: ...\n def close(self) -> None: ...\n\n# Returns a Wave_read if mode is rb and Wave_write if mode is wb\ndef open(f: _File, mode: Optional[str] = ...) -> Any: ...\n\nif sys.version_info < (3, 9):\n openfp = open\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\wave.pyi
wave.pyi
Other
2,651
0.95
0.726027
0.030769
react-lib
59
2024-04-25T18:40:51.204603
Apache-2.0
false
d1f493cb3cda578e0e6273aaa9cfc6dd
import sys\nimport types\nfrom _weakrefset import WeakSet as WeakSet\nfrom typing import (\n Any,\n Callable,\n Dict,\n Generic,\n Iterable,\n Iterator,\n List,\n Mapping,\n MutableMapping,\n Optional,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\n\nfrom _weakref import (\n CallableProxyType as CallableProxyType,\n ProxyType as ProxyType,\n ReferenceType as ReferenceType,\n getweakrefcount as getweakrefcount,\n getweakrefs as getweakrefs,\n proxy as proxy,\n ref as ref,\n)\n\nif sys.version_info < (3, 0):\n from exceptions import ReferenceError as ReferenceError\n\n_S = TypeVar("_S")\n_T = TypeVar("_T")\n_KT = TypeVar("_KT")\n_VT = TypeVar("_VT")\n\nProxyTypes: Tuple[Type[Any], ...]\n\nif sys.version_info >= (3, 4):\n class WeakMethod(ref[types.MethodType]):\n def __new__(cls, meth: types.MethodType, callback: Optional[Callable[[types.MethodType], Any]] = ...) -> WeakMethod: ...\n def __call__(self) -> Optional[types.MethodType]: ...\n\nclass WeakValueDictionary(MutableMapping[_KT, _VT]):\n @overload\n def __init__(self) -> None: ...\n @overload\n def __init__(self, __other: Union[Mapping[_KT, _VT], Iterable[Tuple[_KT, _VT]]], **kwargs: _VT) -> None: ...\n def __len__(self) -> int: ...\n def __getitem__(self, k: _KT) -> _VT: ...\n def __setitem__(self, k: _KT, v: _VT) -> None: ...\n def __delitem__(self, v: _KT) -> None: ...\n if sys.version_info < (3, 0):\n def has_key(self, key: object) -> bool: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[_KT]: ...\n def __str__(self) -> str: ...\n def copy(self) -> WeakValueDictionary[_KT, _VT]: ...\n if sys.version_info < (3, 0):\n def keys(self) -> List[_KT]: ...\n def values(self) -> List[_VT]: ...\n def items(self) -> List[Tuple[_KT, _VT]]: ...\n def iterkeys(self) -> Iterator[_KT]: ...\n def itervalues(self) -> Iterator[_VT]: ...\n def iteritems(self) -> Iterator[Tuple[_KT, _VT]]: ...\n else:\n # These are incompatible with Mapping\n def keys(self) -> Iterator[_KT]: ... # type: ignore\n def values(self) -> Iterator[_VT]: ... # type: ignore\n def items(self) -> Iterator[Tuple[_KT, _VT]]: ... # type: ignore\n def itervaluerefs(self) -> Iterator[KeyedRef[_KT, _VT]]: ...\n def valuerefs(self) -> List[KeyedRef[_KT, _VT]]: ...\n\nclass KeyedRef(ref[_T], Generic[_KT, _T]):\n key: _KT\n def __new__(type, ob: _T, callback: Callable[[_T], Any], key: _KT) -> KeyedRef: ...\n def __init__(self, ob: _T, callback: Callable[[_T], Any], key: _KT) -> None: ...\n\nclass WeakKeyDictionary(MutableMapping[_KT, _VT]):\n @overload\n def __init__(self, dict: None = ...) -> None: ...\n @overload\n def __init__(self, dict: Union[Mapping[_KT, _VT], Iterable[Tuple[_KT, _VT]]]) -> None: ...\n def __len__(self) -> int: ...\n def __getitem__(self, k: _KT) -> _VT: ...\n def __setitem__(self, k: _KT, v: _VT) -> None: ...\n def __delitem__(self, v: _KT) -> None: ...\n if sys.version_info < (3, 0):\n def has_key(self, key: object) -> bool: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[_KT]: ...\n def __str__(self) -> str: ...\n def copy(self) -> WeakKeyDictionary[_KT, _VT]: ...\n if sys.version_info < (3, 0):\n def keys(self) -> List[_KT]: ...\n def values(self) -> List[_VT]: ...\n def items(self) -> List[Tuple[_KT, _VT]]: ...\n def iterkeys(self) -> Iterator[_KT]: ...\n def itervalues(self) -> Iterator[_VT]: ...\n def iteritems(self) -> Iterator[Tuple[_KT, _VT]]: ...\n def iterkeyrefs(self) -> Iterator[ref[_KT]]: ...\n else:\n # These are incompatible with Mapping\n def keys(self) -> Iterator[_KT]: ... # type: ignore\n def values(self) -> Iterator[_VT]: ... # type: ignore\n def items(self) -> Iterator[Tuple[_KT, _VT]]: ... # type: ignore\n def keyrefs(self) -> List[ref[_KT]]: ...\n\nif sys.version_info >= (3, 4):\n class finalize:\n def __init__(self, __obj: _S, __func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...\n def __call__(self, _: Any = ...) -> Optional[_T]: ...\n def detach(self) -> Optional[Tuple[_S, _T, Tuple[Any, ...], Dict[str, Any]]]: ...\n def peek(self) -> Optional[Tuple[_S, _T, Tuple[Any, ...], Dict[str, Any]]]: ...\n alive: bool\n atexit: bool\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\weakref.pyi
weakref.pyi
Other
4,433
0.95
0.537815
0.018182
awesome-app
610
2023-12-06T23:15:36.149164
GPL-3.0
false
8b5eaac7ad66fae94f4d411457726213
import sys\nfrom typing import Callable, List, Optional, Sequence, Text, Union\n\nclass Error(Exception): ...\n\nif sys.version_info >= (3, 7):\n def register(\n name: Text, klass: Optional[Callable[[], BaseBrowser]], instance: Optional[BaseBrowser] = ..., *, preferred: bool = ...\n ) -> None: ...\n\nelse:\n def register(\n name: Text, klass: Optional[Callable[[], BaseBrowser]], instance: Optional[BaseBrowser] = ..., update_tryorder: int = ...\n ) -> None: ...\n\ndef get(using: Optional[Text] = ...) -> BaseBrowser: ...\ndef open(url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...\ndef open_new(url: Text) -> bool: ...\ndef open_new_tab(url: Text) -> bool: ...\n\nclass BaseBrowser:\n args: List[str]\n name: str\n basename: str\n def __init__(self, name: Text = ...) -> None: ...\n def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...\n def open_new(self, url: Text) -> bool: ...\n def open_new_tab(self, url: Text) -> bool: ...\n\nclass GenericBrowser(BaseBrowser):\n args: List[str]\n name: str\n basename: str\n def __init__(self, name: Union[Text, Sequence[Text]]) -> None: ...\n def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...\n\nclass BackgroundBrowser(GenericBrowser):\n def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...\n\nclass UnixBrowser(BaseBrowser):\n raise_opts: List[str]\n background: bool\n redirect_stdout: bool\n remote_args: List[str]\n remote_action: str\n remote_action_newwin: str\n remote_action_newtab: str\n def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...\n\nclass Mozilla(UnixBrowser):\n raise_opts: List[str]\n remote_args: List[str]\n remote_action: str\n remote_action_newwin: str\n remote_action_newtab: str\n background: bool\n\nclass Galeon(UnixBrowser):\n raise_opts: List[str]\n remote_args: List[str]\n remote_action: str\n remote_action_newwin: str\n background: bool\n\nclass Chrome(UnixBrowser):\n remote_args: List[str]\n remote_action: str\n remote_action_newwin: str\n remote_action_newtab: str\n background: bool\n\nclass Opera(UnixBrowser):\n raise_opts: List[str]\n remote_args: List[str]\n remote_action: str\n remote_action_newwin: str\n remote_action_newtab: str\n background: bool\n\nclass Elinks(UnixBrowser):\n remote_args: List[str]\n remote_action: str\n remote_action_newwin: str\n remote_action_newtab: str\n background: bool\n redirect_stdout: bool\n\nclass Konqueror(BaseBrowser):\n def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...\n\nclass Grail(BaseBrowser):\n def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...\n\nif sys.platform == "win32":\n class WindowsDefault(BaseBrowser):\n def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...\n\nif sys.platform == "darwin":\n class MacOSX(BaseBrowser):\n name: str\n def __init__(self, name: Text) -> None: ...\n def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...\n class MacOSXOSAScript(BaseBrowser):\n def __init__(self, name: Text) -> None: ...\n def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\webbrowser.pyi
webbrowser.pyi
Other
3,295
0.85
0.371429
0
vue-tools
122
2024-11-23T07:25:05.299786
GPL-3.0
false
7dc14627a0faf55b7c45a06ab3e1f8cc
import sys\nfrom typing import Optional, Union, overload\nfrom typing_extensions import Literal\n\nif sys.platform == "win32":\n SND_FILENAME: int\n SND_ALIAS: int\n SND_LOOP: int\n SND_MEMORY: int\n SND_PURGE: int\n SND_ASYNC: int\n SND_NODEFAULT: int\n SND_NOSTOP: int\n SND_NOWAIT: int\n\n MB_ICONASTERISK: int\n MB_ICONEXCLAMATION: int\n MB_ICONHAND: int\n MB_ICONQUESTION: int\n MB_OK: int\n def Beep(frequency: int, duration: int) -> None: ...\n # Can actually accept anything ORed with 4, and if not it's definitely str, but that's inexpressible\n @overload\n def PlaySound(sound: Optional[bytes], flags: Literal[4]) -> None: ...\n @overload\n def PlaySound(sound: Optional[Union[str, bytes]], flags: int) -> None: ...\n def MessageBeep(type: int = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\winsound.pyi
winsound.pyi
Other
811
0.95
0.222222
0.04
vue-tools
593
2024-02-17T10:05:31.828355
GPL-3.0
false
327cecbaad91d6615bb767e39da65bf1
from typing import Callable, List, Sequence, TypeVar\n\n_T = TypeVar("_T")\n\nclass Error(Exception):\n msg: str\n def __init__(self, msg: str) -> None: ...\n\nclass ConversionError(Error): ...\n\nclass Packer:\n def __init__(self) -> None: ...\n def reset(self) -> None: ...\n def get_buffer(self) -> bytes: ...\n def get_buf(self) -> bytes: ...\n def pack_uint(self, x: int) -> None: ...\n def pack_int(self, x: int) -> None: ...\n def pack_enum(self, x: int) -> None: ...\n def pack_bool(self, x: bool) -> None: ...\n def pack_uhyper(self, x: int) -> None: ...\n def pack_hyper(self, x: int) -> None: ...\n def pack_float(self, x: float) -> None: ...\n def pack_double(self, x: float) -> None: ...\n def pack_fstring(self, n: int, s: bytes) -> None: ...\n def pack_fopaque(self, n: int, s: bytes) -> None: ...\n def pack_string(self, s: bytes) -> None: ...\n def pack_opaque(self, s: bytes) -> None: ...\n def pack_bytes(self, s: bytes) -> None: ...\n def pack_list(self, list: Sequence[_T], pack_item: Callable[[_T], None]) -> None: ...\n def pack_farray(self, n: int, list: Sequence[_T], pack_item: Callable[[_T], None]) -> None: ...\n def pack_array(self, list: Sequence[_T], pack_item: Callable[[_T], None]) -> None: ...\n\nclass Unpacker:\n def __init__(self, data: bytes) -> None: ...\n def reset(self, data: bytes) -> None: ...\n def get_position(self) -> int: ...\n def set_position(self, position: int) -> None: ...\n def get_buffer(self) -> bytes: ...\n def done(self) -> None: ...\n def unpack_uint(self) -> int: ...\n def unpack_int(self) -> int: ...\n def unpack_enum(self) -> int: ...\n def unpack_bool(self) -> bool: ...\n def unpack_uhyper(self) -> int: ...\n def unpack_hyper(self) -> int: ...\n def unpack_float(self) -> float: ...\n def unpack_double(self) -> float: ...\n def unpack_fstring(self, n: int) -> bytes: ...\n def unpack_fopaque(self, n: int) -> bytes: ...\n def unpack_string(self) -> bytes: ...\n def unpack_opaque(self) -> bytes: ...\n def unpack_bytes(self) -> bytes: ...\n def unpack_list(self, unpack_item: Callable[[], _T]) -> List[_T]: ...\n def unpack_farray(self, n: int, unpack_item: Callable[[], _T]) -> List[_T]: ...\n def unpack_array(self, unpack_item: Callable[[], _T]) -> List[_T]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xdrlib.pyi
xdrlib.pyi
Other
2,315
0.85
0.854545
0
react-lib
217
2024-03-31T20:08:16.379420
BSD-3-Clause
false
779649a323347ee3f4b54e73090d5950
import io\nimport sys\nfrom _typeshed import StrPath\nfrom types import TracebackType\nfrom typing import (\n IO,\n Any,\n Callable,\n Dict,\n Iterable,\n Iterator,\n List,\n Optional,\n Pattern,\n Protocol,\n Sequence,\n Text,\n Tuple,\n Type,\n Union,\n)\n\n_SZI = Union[Text, ZipInfo]\n_DT = Tuple[int, int, int, int, int, int]\n\nif sys.version_info >= (3,):\n class BadZipFile(Exception): ...\n BadZipfile = BadZipFile\nelse:\n class BadZipfile(Exception): ...\n\nerror = BadZipfile\n\nclass LargeZipFile(Exception): ...\n\nclass ZipExtFile(io.BufferedIOBase):\n MAX_N: int = ...\n MIN_READ_SIZE: int = ...\n\n if sys.version_info < (3, 6):\n PATTERN: Pattern[str] = ...\n\n if sys.version_info >= (3, 7):\n MAX_SEEK_READ: int = ...\n\n newlines: Optional[List[bytes]]\n mode: str\n name: str\n if sys.version_info >= (3, 7):\n def __init__(\n self, fileobj: IO[bytes], mode: str, zipinfo: ZipInfo, pwd: Optional[bytes] = ..., close_fileobj: bool = ...\n ) -> None: ...\n else:\n def __init__(\n self,\n fileobj: IO[bytes],\n mode: str,\n zipinfo: ZipInfo,\n decrypter: Optional[Callable[[Sequence[int]], bytes]] = ...,\n close_fileobj: bool = ...,\n ) -> None: ...\n def __repr__(self) -> str: ...\n def peek(self, n: int = ...) -> bytes: ...\n def read1(self, n: Optional[int]) -> bytes: ... # type: ignore\n\nclass _Writer(Protocol):\n def write(self, __s: str) -> Any: ...\n\nclass ZipFile:\n filename: Optional[Text]\n debug: int\n comment: bytes\n filelist: List[ZipInfo]\n fp: Optional[IO[bytes]]\n NameToInfo: Dict[Text, ZipInfo]\n start_dir: int # undocumented\n if sys.version_info >= (3, 8):\n def __init__(\n self,\n file: Union[StrPath, IO[bytes]],\n mode: str = ...,\n compression: int = ...,\n allowZip64: bool = ...,\n compresslevel: Optional[int] = ...,\n *,\n strict_timestamps: bool = ...,\n ) -> None: ...\n elif sys.version_info >= (3, 7):\n def __init__(\n self,\n file: Union[StrPath, IO[bytes]],\n mode: str = ...,\n compression: int = ...,\n allowZip64: bool = ...,\n compresslevel: Optional[int] = ...,\n ) -> None: ...\n else:\n def __init__(\n self, file: Union[StrPath, IO[bytes]], mode: Text = ..., compression: int = ..., allowZip64: bool = ...\n ) -> None: ...\n def __enter__(self) -> ZipFile: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n def close(self) -> None: ...\n def getinfo(self, name: Text) -> ZipInfo: ...\n def infolist(self) -> List[ZipInfo]: ...\n def namelist(self) -> List[Text]: ...\n def open(self, name: _SZI, mode: Text = ..., pwd: Optional[bytes] = ..., *, force_zip64: bool = ...) -> IO[bytes]: ...\n def extract(self, member: _SZI, path: Optional[StrPath] = ..., pwd: Optional[bytes] = ...) -> str: ...\n def extractall(\n self, path: Optional[StrPath] = ..., members: Optional[Iterable[Text]] = ..., pwd: Optional[bytes] = ...\n ) -> None: ...\n if sys.version_info >= (3,):\n def printdir(self, file: Optional[_Writer] = ...) -> None: ...\n else:\n def printdir(self) -> None: ...\n def setpassword(self, pwd: bytes) -> None: ...\n def read(self, name: _SZI, pwd: Optional[bytes] = ...) -> bytes: ...\n def testzip(self) -> Optional[str]: ...\n if sys.version_info >= (3, 7):\n def write(\n self,\n filename: StrPath,\n arcname: Optional[StrPath] = ...,\n compress_type: Optional[int] = ...,\n compresslevel: Optional[int] = ...,\n ) -> None: ...\n else:\n def write(self, filename: StrPath, arcname: Optional[StrPath] = ..., compress_type: Optional[int] = ...) -> None: ...\n if sys.version_info >= (3, 7):\n def writestr(\n self,\n zinfo_or_arcname: _SZI,\n data: Union[bytes, str],\n compress_type: Optional[int] = ...,\n compresslevel: Optional[int] = ...,\n ) -> None: ...\n elif sys.version_info >= (3,):\n def writestr(self, zinfo_or_arcname: _SZI, data: Union[bytes, str], compress_type: Optional[int] = ...) -> None: ...\n else:\n def writestr(self, zinfo_or_arcname: _SZI, bytes: bytes, compress_type: Optional[int] = ...) -> None: ...\n\nclass PyZipFile(ZipFile):\n if sys.version_info >= (3,):\n def __init__(\n self,\n file: Union[str, IO[bytes]],\n mode: str = ...,\n compression: int = ...,\n allowZip64: bool = ...,\n optimize: int = ...,\n ) -> None: ...\n def writepy(self, pathname: str, basename: str = ..., filterfunc: Optional[Callable[[str], bool]] = ...) -> None: ...\n else:\n def writepy(self, pathname: Text, basename: Text = ...) -> None: ...\n\nclass ZipInfo:\n filename: Text\n date_time: _DT\n compress_type: int\n comment: bytes\n extra: bytes\n create_system: int\n create_version: int\n extract_version: int\n reserved: int\n flag_bits: int\n volume: int\n internal_attr: int\n external_attr: int\n header_offset: int\n CRC: int\n compress_size: int\n file_size: int\n def __init__(self, filename: Optional[Text] = ..., date_time: Optional[_DT] = ...) -> None: ...\n if sys.version_info >= (3, 8):\n @classmethod\n def from_file(cls, filename: StrPath, arcname: Optional[StrPath] = ..., *, strict_timestamps: bool = ...) -> ZipInfo: ...\n elif sys.version_info >= (3, 6):\n @classmethod\n def from_file(cls, filename: StrPath, arcname: Optional[StrPath] = ...) -> ZipInfo: ...\n if sys.version_info >= (3, 6):\n def is_dir(self) -> bool: ...\n def FileHeader(self, zip64: Optional[bool] = ...) -> bytes: ...\n\nif sys.version_info >= (3, 8):\n class Path:\n @property\n def name(self) -> str: ...\n @property\n def parent(self) -> Path: ... # undocumented\n def __init__(self, root: Union[ZipFile, StrPath, IO[bytes]], at: str = ...) -> None: ...\n def open(self, mode: str = ..., pwd: Optional[bytes] = ..., *, force_zip64: bool = ...) -> IO[bytes]: ...\n def iterdir(self) -> Iterator[Path]: ...\n def is_dir(self) -> bool: ...\n def is_file(self) -> bool: ...\n def exists(self) -> bool: ...\n def read_text(\n self,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n line_buffering: bool = ...,\n write_through: bool = ...,\n ) -> str: ...\n def read_bytes(self) -> bytes: ...\n def joinpath(self, add: StrPath) -> Path: ... # undocumented\n def __truediv__(self, add: StrPath) -> Path: ...\n\ndef is_zipfile(filename: Union[StrPath, IO[bytes]]) -> bool: ...\n\nZIP_STORED: int\nZIP_DEFLATED: int\nZIP64_LIMIT: int\nZIP_FILECOUNT_LIMIT: int\nZIP_MAX_COMMENT: int\nif sys.version_info >= (3, 3):\n ZIP_BZIP2: int\n ZIP_LZMA: int\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\zipfile.pyi
zipfile.pyi
Other
7,249
0.95
0.322727
0.004878
awesome-app
330
2024-09-23T07:21:43.055284
Apache-2.0
false
73a8ba83c8f0ecd0cdb7279681aef62c
import os\nimport sys\nfrom types import CodeType, ModuleType\nfrom typing import Any, List, Optional, Tuple, Union\n\nif sys.version_info >= (3, 7):\n from importlib.abc import ResourceReader\n\nclass ZipImportError(ImportError): ...\n\nclass zipimporter(object):\n archive: str\n prefix: str\n if sys.version_info >= (3, 6):\n def __init__(self, path: Union[str, bytes, os.PathLike[Any]]) -> None: ...\n else:\n def __init__(self, path: Union[str, bytes]) -> None: ...\n if sys.version_info >= (3,):\n def find_loader(\n self, fullname: str, path: Optional[str] = ...\n ) -> Tuple[Optional[zipimporter], List[str]]: ... # undocumented\n def find_module(self, fullname: str, path: Optional[str] = ...) -> Optional[zipimporter]: ...\n def get_code(self, fullname: str) -> CodeType: ...\n def get_data(self, pathname: str) -> str: ...\n def get_filename(self, fullname: str) -> str: ...\n if sys.version_info >= (3, 7):\n def get_resource_reader(self, fullname: str) -> Optional[ResourceReader]: ... # undocumented\n def get_source(self, fullname: str) -> Optional[str]: ...\n def is_package(self, fullname: str) -> bool: ...\n def load_module(self, fullname: str) -> ModuleType: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\zipimport.pyi
zipimport.pyi
Other
1,244
0.95
0.566667
0
awesome-app
521
2023-09-13T00:58:01.577390
Apache-2.0
false
dcf06be85958c55e745ae80d400f8003
import sys\nfrom array import array\nfrom typing import Any, Union\n\nDEFLATED: int\nDEF_MEM_LEVEL: int\nMAX_WBITS: int\nZLIB_VERSION: str\nZ_BEST_COMPRESSION: int\nZ_BEST_SPEED: int\nZ_DEFAULT_COMPRESSION: int\nZ_DEFAULT_STRATEGY: int\nZ_FILTERED: int\nZ_FINISH: int\nZ_FULL_FLUSH: int\nZ_HUFFMAN_ONLY: int\nZ_NO_FLUSH: int\nZ_SYNC_FLUSH: int\nif sys.version_info >= (3,):\n DEF_BUF_SIZE: int\n ZLIB_RUNTIME_VERSION: str\n\nclass error(Exception): ...\n\nclass _Compress:\n def compress(self, data: bytes) -> bytes: ...\n def flush(self, mode: int = ...) -> bytes: ...\n def copy(self) -> _Compress: ...\n\nclass _Decompress:\n unused_data: bytes\n unconsumed_tail: bytes\n if sys.version_info >= (3,):\n eof: bool\n def decompress(self, data: bytes, max_length: int = ...) -> bytes: ...\n def flush(self, length: int = ...) -> bytes: ...\n def copy(self) -> _Decompress: ...\n\ndef adler32(__data: bytes, __value: int = ...) -> int: ...\ndef compress(__data: bytes, level: int = ...) -> bytes: ...\n\nif sys.version_info >= (3,):\n def compressobj(\n level: int = ..., method: int = ..., wbits: int = ..., memLevel: int = ..., strategy: int = ..., zdict: bytes = ...\n ) -> _Compress: ...\n\nelse:\n def compressobj(\n level: int = ..., method: int = ..., wbits: int = ..., memlevel: int = ..., strategy: int = ...\n ) -> _Compress: ...\n\ndef crc32(__data: Union[array[Any], bytes], __value: int = ...) -> int: ...\ndef decompress(__data: bytes, wbits: int = ..., bufsize: int = ...) -> bytes: ...\n\nif sys.version_info >= (3,):\n def decompressobj(wbits: int = ..., zdict: bytes = ...) -> _Decompress: ...\n\nelse:\n def decompressobj(wbits: int = ...) -> _Decompress: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\zlib.pyi
zlib.pyi
Other
1,692
0.85
0.355932
0
vue-tools
36
2025-04-03T02:07:26.642516
MIT
false
d43f96d524cd861ddb7d05515cb965d1
from typing import MutableSequence, Optional, Sequence, TypeVar\n\n_T = TypeVar("_T")\n\ndef bisect_left(a: Sequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> int: ...\ndef bisect_right(a: Sequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> int: ...\ndef insort_left(a: MutableSequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> None: ...\ndef insort_right(a: MutableSequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_bisect.pyi
_bisect.pyi
Other
471
0.85
0.5
0
vue-tools
637
2024-07-09T22:31:00.345066
Apache-2.0
false
dbeda438c3ad1dcf9a3168fdd21cac13
import codecs\nimport sys\nfrom typing import Any, Callable, Dict, Optional, Text, Tuple, Union\n\n# For convenience:\n_Handler = Callable[[Exception], Tuple[Text, int]]\n_String = Union[bytes, str]\n_Errors = Union[str, Text, None]\nif sys.version_info < (3, 0):\n _Decodable = Union[bytes, Text]\n _Encodable = Union[bytes, Text]\nelse:\n _Decodable = bytes\n _Encodable = str\n\n# This type is not exposed; it is defined in unicodeobject.c\nclass _EncodingMap(object):\n def size(self) -> int: ...\n\n_MapT = Union[Dict[int, int], _EncodingMap]\n\ndef register(__search_function: Callable[[str], Any]) -> None: ...\ndef register_error(__errors: Union[str, Text], __handler: _Handler) -> None: ...\ndef lookup(__encoding: Union[str, Text]) -> codecs.CodecInfo: ...\ndef lookup_error(__name: Union[str, Text]) -> _Handler: ...\ndef decode(obj: Any, encoding: Union[str, Text] = ..., errors: _Errors = ...) -> Any: ...\ndef encode(obj: Any, encoding: Union[str, Text] = ..., errors: _Errors = ...) -> Any: ...\ndef charmap_build(__map: Text) -> _MapT: ...\ndef ascii_decode(__data: _Decodable, __errors: _Errors = ...) -> Tuple[Text, int]: ...\ndef ascii_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\n\nif sys.version_info < (3, 2):\n def charbuffer_encode(__data: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\n\ndef charmap_decode(__data: _Decodable, __errors: _Errors = ..., __mapping: Optional[_MapT] = ...) -> Tuple[Text, int]: ...\ndef charmap_encode(__str: _Encodable, __errors: _Errors = ..., __mapping: Optional[_MapT] = ...) -> Tuple[bytes, int]: ...\ndef escape_decode(__data: _String, __errors: _Errors = ...) -> Tuple[str, int]: ...\ndef escape_encode(__data: bytes, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\ndef latin_1_decode(__data: _Decodable, __errors: _Errors = ...) -> Tuple[Text, int]: ...\ndef latin_1_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\ndef raw_unicode_escape_decode(__data: _String, __errors: _Errors = ...) -> Tuple[Text, int]: ...\ndef raw_unicode_escape_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\ndef readbuffer_encode(__data: _String, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\ndef unicode_escape_decode(__data: _String, __errors: _Errors = ...) -> Tuple[Text, int]: ...\ndef unicode_escape_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\n\nif sys.version_info < (3, 8):\n def unicode_internal_decode(__obj: _String, __errors: _Errors = ...) -> Tuple[Text, int]: ...\n def unicode_internal_encode(__obj: _String, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\n\ndef utf_16_be_decode(__data: _Decodable, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\ndef utf_16_be_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\ndef utf_16_decode(__data: _Decodable, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\ndef utf_16_encode(__str: _Encodable, __errors: _Errors = ..., __byteorder: int = ...) -> Tuple[bytes, int]: ...\ndef utf_16_ex_decode(\n __data: _Decodable, __errors: _Errors = ..., __byteorder: int = ..., __final: int = ...\n) -> Tuple[Text, int, int]: ...\ndef utf_16_le_decode(__data: _Decodable, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\ndef utf_16_le_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\ndef utf_32_be_decode(__data: _Decodable, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\ndef utf_32_be_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\ndef utf_32_decode(__data: _Decodable, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\ndef utf_32_encode(__str: _Encodable, __errors: _Errors = ..., __byteorder: int = ...) -> Tuple[bytes, int]: ...\ndef utf_32_ex_decode(\n __data: _Decodable, __errors: _Errors = ..., __byteorder: int = ..., __final: int = ...\n) -> Tuple[Text, int, int]: ...\ndef utf_32_le_decode(__data: _Decodable, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\ndef utf_32_le_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\ndef utf_7_decode(__data: _Decodable, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\ndef utf_7_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\ndef utf_8_decode(__data: _Decodable, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\ndef utf_8_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\n\nif sys.platform == "win32":\n def mbcs_decode(__data: _Decodable, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\n def mbcs_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\n if sys.version_info >= (3, 0):\n def code_page_decode(__codepage: int, __data: bytes, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\n def code_page_encode(__code_page: int, __str: Text, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\n if sys.version_info >= (3, 6):\n def oem_decode(__data: bytes, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ...\n def oem_encode(__str: Text, __errors: _Errors = ...) -> Tuple[bytes, int]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_codecs.pyi
_codecs.pyi
Other
5,308
0.95
0.670732
0.027397
awesome-app
794
2023-10-19T04:21:27.718286
Apache-2.0
false
c503782a55030671b1acf2264cecc9a4
import sys\nfrom typing import Any, Iterable, Iterator, List, Optional, Protocol, Sequence, Text, Type, Union\n\nQUOTE_ALL: int\nQUOTE_MINIMAL: int\nQUOTE_NONE: int\nQUOTE_NONNUMERIC: int\n\nclass Error(Exception): ...\n\nclass Dialect:\n delimiter: str\n quotechar: Optional[str]\n escapechar: Optional[str]\n doublequote: bool\n skipinitialspace: bool\n lineterminator: str\n quoting: int\n strict: int\n def __init__(self) -> None: ...\n\n_DialectLike = Union[str, Dialect, Type[Dialect]]\n\nclass _reader(Iterator[List[str]]):\n dialect: Dialect\n line_num: int\n if sys.version_info >= (3, 0):\n def __next__(self) -> List[str]: ...\n else:\n def next(self) -> List[str]: ...\n\nclass _writer:\n dialect: Dialect\n\n if sys.version_info >= (3, 5):\n def writerow(self, row: Iterable[Any]) -> Any: ...\n def writerows(self, rows: Iterable[Iterable[Any]]) -> None: ...\n else:\n def writerow(self, row: Sequence[Any]) -> Any: ...\n def writerows(self, rows: Iterable[Sequence[Any]]) -> None: ...\n\nclass _Writer(Protocol):\n def write(self, s: str) -> Any: ...\n\ndef writer(csvfile: _Writer, dialect: _DialectLike = ..., **fmtparams: Any) -> _writer: ...\ndef reader(csvfile: Iterable[Text], dialect: _DialectLike = ..., **fmtparams: Any) -> _reader: ...\ndef register_dialect(name: str, dialect: Any = ..., **fmtparams: Any) -> None: ...\ndef unregister_dialect(name: str) -> None: ...\ndef get_dialect(name: str) -> Dialect: ...\ndef list_dialects() -> List[str]: ...\ndef field_size_limit(new_limit: int = ...) -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_csv.pyi
_csv.pyi
Other
1,574
0.85
0.431373
0
react-lib
704
2023-10-14T09:43:25.277679
MIT
false
a7d0710bfa992316a3c556bbfa66b21a
import sys\nfrom typing import IO, Any, BinaryIO, NamedTuple, Optional, Tuple, Union, overload\n\n_chtype = Union[str, bytes, int]\n\nALL_MOUSE_EVENTS: int\nA_ALTCHARSET: int\nA_ATTRIBUTES: int\nA_BLINK: int\nA_BOLD: int\nA_CHARTEXT: int\nA_COLOR: int\nA_DIM: int\nA_HORIZONTAL: int\nA_INVIS: int\nif sys.version_info >= (3, 7):\n A_ITALIC: int\nA_LEFT: int\nA_LOW: int\nA_NORMAL: int\nA_PROTECT: int\nA_REVERSE: int\nA_RIGHT: int\nA_STANDOUT: int\nA_TOP: int\nA_UNDERLINE: int\nA_VERTICAL: int\nBUTTON1_CLICKED: int\nBUTTON1_DOUBLE_CLICKED: int\nBUTTON1_PRESSED: int\nBUTTON1_RELEASED: int\nBUTTON1_TRIPLE_CLICKED: int\nBUTTON2_CLICKED: int\nBUTTON2_DOUBLE_CLICKED: int\nBUTTON2_PRESSED: int\nBUTTON2_RELEASED: int\nBUTTON2_TRIPLE_CLICKED: int\nBUTTON3_CLICKED: int\nBUTTON3_DOUBLE_CLICKED: int\nBUTTON3_PRESSED: int\nBUTTON3_RELEASED: int\nBUTTON3_TRIPLE_CLICKED: int\nBUTTON4_CLICKED: int\nBUTTON4_DOUBLE_CLICKED: int\nBUTTON4_PRESSED: int\nBUTTON4_RELEASED: int\nBUTTON4_TRIPLE_CLICKED: int\nBUTTON_ALT: int\nBUTTON_CTRL: int\nBUTTON_SHIFT: int\nCOLOR_BLACK: int\nCOLOR_BLUE: int\nCOLOR_CYAN: int\nCOLOR_GREEN: int\nCOLOR_MAGENTA: int\nCOLOR_RED: int\nCOLOR_WHITE: int\nCOLOR_YELLOW: int\nERR: int\nKEY_A1: int\nKEY_A3: int\nKEY_B2: int\nKEY_BACKSPACE: int\nKEY_BEG: int\nKEY_BREAK: int\nKEY_BTAB: int\nKEY_C1: int\nKEY_C3: int\nKEY_CANCEL: int\nKEY_CATAB: int\nKEY_CLEAR: int\nKEY_CLOSE: int\nKEY_COMMAND: int\nKEY_COPY: int\nKEY_CREATE: int\nKEY_CTAB: int\nKEY_DC: int\nKEY_DL: int\nKEY_DOWN: int\nKEY_EIC: int\nKEY_END: int\nKEY_ENTER: int\nKEY_EOL: int\nKEY_EOS: int\nKEY_EXIT: int\nKEY_F0: int\nKEY_F1: int\nKEY_F10: int\nKEY_F11: int\nKEY_F12: int\nKEY_F13: int\nKEY_F14: int\nKEY_F15: int\nKEY_F16: int\nKEY_F17: int\nKEY_F18: int\nKEY_F19: int\nKEY_F2: int\nKEY_F20: int\nKEY_F21: int\nKEY_F22: int\nKEY_F23: int\nKEY_F24: int\nKEY_F25: int\nKEY_F26: int\nKEY_F27: int\nKEY_F28: int\nKEY_F29: int\nKEY_F3: int\nKEY_F30: int\nKEY_F31: int\nKEY_F32: int\nKEY_F33: int\nKEY_F34: int\nKEY_F35: int\nKEY_F36: int\nKEY_F37: int\nKEY_F38: int\nKEY_F39: int\nKEY_F4: int\nKEY_F40: int\nKEY_F41: int\nKEY_F42: int\nKEY_F43: int\nKEY_F44: int\nKEY_F45: int\nKEY_F46: int\nKEY_F47: int\nKEY_F48: int\nKEY_F49: int\nKEY_F5: int\nKEY_F50: int\nKEY_F51: int\nKEY_F52: int\nKEY_F53: int\nKEY_F54: int\nKEY_F55: int\nKEY_F56: int\nKEY_F57: int\nKEY_F58: int\nKEY_F59: int\nKEY_F6: int\nKEY_F60: int\nKEY_F61: int\nKEY_F62: int\nKEY_F63: int\nKEY_F7: int\nKEY_F8: int\nKEY_F9: int\nKEY_FIND: int\nKEY_HELP: int\nKEY_HOME: int\nKEY_IC: int\nKEY_IL: int\nKEY_LEFT: int\nKEY_LL: int\nKEY_MARK: int\nKEY_MAX: int\nKEY_MESSAGE: int\nKEY_MIN: int\nKEY_MOUSE: int\nKEY_MOVE: int\nKEY_NEXT: int\nKEY_NPAGE: int\nKEY_OPEN: int\nKEY_OPTIONS: int\nKEY_PPAGE: int\nKEY_PREVIOUS: int\nKEY_PRINT: int\nKEY_REDO: int\nKEY_REFERENCE: int\nKEY_REFRESH: int\nKEY_REPLACE: int\nKEY_RESET: int\nKEY_RESIZE: int\nKEY_RESTART: int\nKEY_RESUME: int\nKEY_RIGHT: int\nKEY_SAVE: int\nKEY_SBEG: int\nKEY_SCANCEL: int\nKEY_SCOMMAND: int\nKEY_SCOPY: int\nKEY_SCREATE: int\nKEY_SDC: int\nKEY_SDL: int\nKEY_SELECT: int\nKEY_SEND: int\nKEY_SEOL: int\nKEY_SEXIT: int\nKEY_SF: int\nKEY_SFIND: int\nKEY_SHELP: int\nKEY_SHOME: int\nKEY_SIC: int\nKEY_SLEFT: int\nKEY_SMESSAGE: int\nKEY_SMOVE: int\nKEY_SNEXT: int\nKEY_SOPTIONS: int\nKEY_SPREVIOUS: int\nKEY_SPRINT: int\nKEY_SR: int\nKEY_SREDO: int\nKEY_SREPLACE: int\nKEY_SRESET: int\nKEY_SRIGHT: int\nKEY_SRSUME: int\nKEY_SSAVE: int\nKEY_SSUSPEND: int\nKEY_STAB: int\nKEY_SUNDO: int\nKEY_SUSPEND: int\nKEY_UNDO: int\nKEY_UP: int\nOK: int\nREPORT_MOUSE_POSITION: int\n_C_API: Any\nversion: bytes\n\ndef baudrate() -> int: ...\ndef beep() -> None: ...\ndef can_change_color() -> bool: ...\ndef cbreak(__flag: bool = ...) -> None: ...\ndef color_content(__color_number: int) -> Tuple[int, int, int]: ...\ndef color_pair(__color_number: int) -> int: ...\ndef curs_set(__visibility: int) -> int: ...\ndef def_prog_mode() -> None: ...\ndef def_shell_mode() -> None: ...\ndef delay_output(__ms: int) -> None: ...\ndef doupdate() -> None: ...\ndef echo(__flag: bool = ...) -> None: ...\ndef endwin() -> None: ...\ndef erasechar() -> bytes: ...\ndef filter() -> None: ...\ndef flash() -> None: ...\ndef flushinp() -> None: ...\ndef getmouse() -> Tuple[int, int, int, int, int]: ...\ndef getsyx() -> Tuple[int, int]: ...\ndef getwin(__file: BinaryIO) -> _CursesWindow: ...\ndef halfdelay(__tenths: int) -> None: ...\ndef has_colors() -> bool: ...\ndef has_ic() -> bool: ...\ndef has_il() -> bool: ...\ndef has_key(__key: int) -> bool: ...\ndef init_color(__color_number: int, __r: int, __g: int, __b: int) -> None: ...\ndef init_pair(__pair_number: int, __fg: int, __bg: int) -> None: ...\ndef initscr() -> _CursesWindow: ...\ndef intrflush(__flag: bool) -> None: ...\ndef is_term_resized(__nlines: int, __ncols: int) -> bool: ...\ndef isendwin() -> bool: ...\ndef keyname(__key: int) -> bytes: ...\ndef killchar() -> bytes: ...\ndef longname() -> bytes: ...\ndef meta(__yes: bool) -> None: ...\ndef mouseinterval(__interval: int) -> None: ...\ndef mousemask(__newmask: int) -> Tuple[int, int]: ...\ndef napms(__ms: int) -> int: ...\ndef newpad(__nlines: int, __ncols: int) -> _CursesWindow: ...\ndef newwin(__nlines: int, __ncols: int, __begin_y: int = ..., __begin_x: int = ...) -> _CursesWindow: ...\ndef nl(__flag: bool = ...) -> None: ...\ndef nocbreak() -> None: ...\ndef noecho() -> None: ...\ndef nonl() -> None: ...\ndef noqiflush() -> None: ...\ndef noraw() -> None: ...\ndef pair_content(__pair_number: int) -> Tuple[int, int]: ...\ndef pair_number(__attr: int) -> int: ...\ndef putp(__string: bytes) -> None: ...\ndef qiflush(__flag: bool = ...) -> None: ...\ndef raw(__flag: bool = ...) -> None: ...\ndef reset_prog_mode() -> None: ...\ndef reset_shell_mode() -> None: ...\ndef resetty() -> None: ...\ndef resize_term(__nlines: int, __ncols: int) -> None: ...\ndef resizeterm(__nlines: int, __ncols: int) -> None: ...\ndef savetty() -> None: ...\ndef setsyx(__y: int, __x: int) -> None: ...\ndef setupterm(term: Optional[str] = ..., fd: int = ...) -> None: ...\ndef start_color() -> None: ...\ndef termattrs() -> int: ...\ndef termname() -> bytes: ...\ndef tigetflag(__capname: str) -> int: ...\ndef tigetnum(__capname: str) -> int: ...\ndef tigetstr(__capname: str) -> bytes: ...\ndef tparm(\n __str: bytes,\n __i1: int = ...,\n __i2: int = ...,\n __i3: int = ...,\n __i4: int = ...,\n __i5: int = ...,\n __i6: int = ...,\n __i7: int = ...,\n __i8: int = ...,\n __i9: int = ...,\n) -> bytes: ...\ndef typeahead(__fd: int) -> None: ...\ndef unctrl(__ch: _chtype) -> bytes: ...\n\nif sys.version_info >= (3, 3):\n def unget_wch(__ch: Union[int, str]) -> None: ...\n\ndef ungetch(__ch: _chtype) -> None: ...\ndef ungetmouse(__id: int, __x: int, __y: int, __z: int, __bstate: int) -> None: ...\n\nif sys.version_info >= (3, 5):\n def update_lines_cols() -> int: ...\n\ndef use_default_colors() -> None: ...\ndef use_env(__flag: bool) -> None: ...\n\nclass error(Exception): ...\n\nclass _CursesWindow:\n if sys.version_info >= (3, 3):\n encoding: str\n @overload\n def addch(self, ch: _chtype, attr: int = ...) -> None: ...\n @overload\n def addch(self, y: int, x: int, ch: _chtype, attr: int = ...) -> None: ...\n @overload\n def addnstr(self, str: str, n: int, attr: int = ...) -> None: ...\n @overload\n def addnstr(self, y: int, x: int, str: str, n: int, attr: int = ...) -> None: ...\n @overload\n def addstr(self, str: str, attr: int = ...) -> None: ...\n @overload\n def addstr(self, y: int, x: int, str: str, attr: int = ...) -> None: ...\n def attroff(self, attr: int) -> None: ...\n def attron(self, attr: int) -> None: ...\n def attrset(self, attr: int) -> None: ...\n def bkgd(self, ch: _chtype, attr: int = ...) -> None: ...\n def bkgdset(self, ch: _chtype, attr: int = ...) -> None: ...\n def border(\n self,\n ls: _chtype = ...,\n rs: _chtype = ...,\n ts: _chtype = ...,\n bs: _chtype = ...,\n tl: _chtype = ...,\n tr: _chtype = ...,\n bl: _chtype = ...,\n br: _chtype = ...,\n ) -> None: ...\n @overload\n def box(self) -> None: ...\n @overload\n def box(self, vertch: _chtype = ..., horch: _chtype = ...) -> None: ...\n @overload\n def chgat(self, attr: int) -> None: ...\n @overload\n def chgat(self, num: int, attr: int) -> None: ...\n @overload\n def chgat(self, y: int, x: int, attr: int) -> None: ...\n @overload\n def chgat(self, y: int, x: int, num: int, attr: int) -> None: ...\n def clear(self) -> None: ...\n def clearok(self, yes: int) -> None: ...\n def clrtobot(self) -> None: ...\n def clrtoeol(self) -> None: ...\n def cursyncup(self) -> None: ...\n @overload\n def delch(self) -> None: ...\n @overload\n def delch(self, y: int, x: int) -> None: ...\n def deleteln(self) -> None: ...\n @overload\n def derwin(self, begin_y: int, begin_x: int) -> _CursesWindow: ...\n @overload\n def derwin(self, nlines: int, ncols: int, begin_y: int, begin_x: int) -> _CursesWindow: ...\n def echochar(self, ch: _chtype, attr: int = ...) -> None: ...\n def enclose(self, y: int, x: int) -> bool: ...\n def erase(self) -> None: ...\n def getbegyx(self) -> Tuple[int, int]: ...\n def getbkgd(self) -> Tuple[int, int]: ...\n @overload\n def getch(self) -> int: ...\n @overload\n def getch(self, y: int, x: int) -> int: ...\n if sys.version_info >= (3, 3):\n @overload\n def get_wch(self) -> Union[int, str]: ...\n @overload\n def get_wch(self, y: int, x: int) -> Union[int, str]: ...\n @overload\n def getkey(self) -> str: ...\n @overload\n def getkey(self, y: int, x: int) -> str: ...\n def getmaxyx(self) -> Tuple[int, int]: ...\n def getparyx(self) -> Tuple[int, int]: ...\n @overload\n def getstr(self) -> _chtype: ...\n @overload\n def getstr(self, n: int) -> _chtype: ...\n @overload\n def getstr(self, y: int, x: int) -> _chtype: ...\n @overload\n def getstr(self, y: int, x: int, n: int) -> _chtype: ...\n def getyx(self) -> Tuple[int, int]: ...\n @overload\n def hline(self, ch: _chtype, n: int) -> None: ...\n @overload\n def hline(self, y: int, x: int, ch: _chtype, n: int) -> None: ...\n def idcok(self, flag: bool) -> None: ...\n def idlok(self, yes: bool) -> None: ...\n def immedok(self, flag: bool) -> None: ...\n @overload\n def inch(self) -> _chtype: ...\n @overload\n def inch(self, y: int, x: int) -> _chtype: ...\n @overload\n def insch(self, ch: _chtype, attr: int = ...) -> None: ...\n @overload\n def insch(self, y: int, x: int, ch: _chtype, attr: int = ...) -> None: ...\n def insdelln(self, nlines: int) -> None: ...\n def insertln(self) -> None: ...\n @overload\n def insnstr(self, str: str, n: int, attr: int = ...) -> None: ...\n @overload\n def insnstr(self, y: int, x: int, str: str, n: int, attr: int = ...) -> None: ...\n @overload\n def insstr(self, str: str, attr: int = ...) -> None: ...\n @overload\n def insstr(self, y: int, x: int, str: str, attr: int = ...) -> None: ...\n @overload\n def instr(self, n: int = ...) -> _chtype: ...\n @overload\n def instr(self, y: int, x: int, n: int = ...) -> _chtype: ...\n def is_linetouched(self, line: int) -> bool: ...\n def is_wintouched(self) -> bool: ...\n def keypad(self, yes: bool) -> None: ...\n def leaveok(self, yes: bool) -> None: ...\n def move(self, new_y: int, new_x: int) -> None: ...\n def mvderwin(self, y: int, x: int) -> None: ...\n def mvwin(self, new_y: int, new_x: int) -> None: ...\n def nodelay(self, yes: bool) -> None: ...\n def notimeout(self, yes: bool) -> None: ...\n def noutrefresh(self) -> None: ...\n @overload\n def overlay(self, destwin: _CursesWindow) -> None: ...\n @overload\n def overlay(\n self, destwin: _CursesWindow, sminrow: int, smincol: int, dminrow: int, dmincol: int, dmaxrow: int, dmaxcol: int\n ) -> None: ...\n @overload\n def overwrite(self, destwin: _CursesWindow) -> None: ...\n @overload\n def overwrite(\n self, destwin: _CursesWindow, sminrow: int, smincol: int, dminrow: int, dmincol: int, dmaxrow: int, dmaxcol: int\n ) -> None: ...\n def putwin(self, file: IO[Any]) -> None: ...\n def redrawln(self, beg: int, num: int) -> None: ...\n def redrawwin(self) -> None: ...\n @overload\n def refresh(self) -> None: ...\n @overload\n def refresh(self, pminrow: int, pmincol: int, sminrow: int, smincol: int, smaxrow: int, smaxcol: int) -> None: ...\n def resize(self, nlines: int, ncols: int) -> None: ...\n def scroll(self, lines: int = ...) -> None: ...\n def scrollok(self, flag: bool) -> None: ...\n def setscrreg(self, top: int, bottom: int) -> None: ...\n def standend(self) -> None: ...\n def standout(self) -> None: ...\n @overload\n def subpad(self, begin_y: int, begin_x: int) -> _CursesWindow: ...\n @overload\n def subpad(self, nlines: int, ncols: int, begin_y: int, begin_x: int) -> _CursesWindow: ...\n @overload\n def subwin(self, begin_y: int, begin_x: int) -> _CursesWindow: ...\n @overload\n def subwin(self, nlines: int, ncols: int, begin_y: int, begin_x: int) -> _CursesWindow: ...\n def syncdown(self) -> None: ...\n def syncok(self, flag: bool) -> None: ...\n def syncup(self) -> None: ...\n def timeout(self, delay: int) -> None: ...\n def touchline(self, start: int, count: int, changed: bool = ...) -> None: ...\n def touchwin(self) -> None: ...\n def untouchwin(self) -> None: ...\n @overload\n def vline(self, ch: _chtype, n: int) -> None: ...\n @overload\n def vline(self, y: int, x: int, ch: _chtype, n: int) -> None: ...\n\nif sys.version_info >= (3, 8):\n class _ncurses_version(NamedTuple):\n major: int\n minor: int\n patch: int\n ncurses_version: _ncurses_version\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_curses.pyi
_curses.pyi
Other
13,596
0.85
0.37551
0
node-utils
488
2024-03-10T08:06:28.492560
GPL-3.0
false
bd36021ed0bc2851eb201d7ea1d954bd
import sys\nfrom types import FrameType, TracebackType\nfrom typing import Any, Callable, Iterable, List, Mapping, Optional, Text, Type, TypeVar, Union\n\n# TODO recursive type\n_TF = Callable[[FrameType, str, Any], Optional[Callable[..., Any]]]\n\n_PF = Callable[[FrameType, str, Any], None]\n_T = TypeVar("_T")\n\n__all__: List[str]\n\ndef active_count() -> int: ...\n\nif sys.version_info < (3,):\n def activeCount() -> int: ...\n\ndef current_thread() -> Thread: ...\ndef currentThread() -> Thread: ...\n\nif sys.version_info >= (3,):\n def get_ident() -> int: ...\n\ndef enumerate() -> List[Thread]: ...\n\nif sys.version_info >= (3, 4):\n def main_thread() -> Thread: ...\n\nif sys.version_info >= (3, 8):\n from _thread import get_native_id as get_native_id\n\ndef settrace(func: _TF) -> None: ...\ndef setprofile(func: Optional[_PF]) -> None: ...\ndef stack_size(size: int = ...) -> int: ...\n\nif sys.version_info >= (3,):\n TIMEOUT_MAX: float\n\nclass ThreadError(Exception): ...\n\nclass local(object):\n def __getattribute__(self, name: str) -> Any: ...\n def __setattr__(self, name: str, value: Any) -> None: ...\n def __delattr__(self, name: str) -> None: ...\n\nclass Thread:\n name: str\n ident: Optional[int]\n daemon: bool\n if sys.version_info >= (3,):\n def __init__(\n self,\n group: None = ...,\n target: Optional[Callable[..., Any]] = ...,\n name: Optional[str] = ...,\n args: Iterable[Any] = ...,\n kwargs: Mapping[str, Any] = ...,\n *,\n daemon: Optional[bool] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n group: None = ...,\n target: Optional[Callable[..., Any]] = ...,\n name: Optional[Text] = ...,\n args: Iterable[Any] = ...,\n kwargs: Mapping[Text, Any] = ...,\n ) -> None: ...\n def start(self) -> None: ...\n def run(self) -> None: ...\n def join(self, timeout: Optional[float] = ...) -> None: ...\n def getName(self) -> str: ...\n def setName(self, name: Text) -> None: ...\n if sys.version_info >= (3, 8):\n @property\n def native_id(self) -> Optional[int]: ... # only available on some platforms\n def is_alive(self) -> bool: ...\n if sys.version_info < (3, 9):\n def isAlive(self) -> bool: ...\n def isDaemon(self) -> bool: ...\n def setDaemon(self, daemonic: bool) -> None: ...\n\nclass _DummyThread(Thread): ...\n\nclass Lock:\n def __init__(self) -> None: ...\n def __enter__(self) -> bool: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n if sys.version_info >= (3,):\n def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...\n else:\n def acquire(self, blocking: bool = ...) -> bool: ...\n def release(self) -> None: ...\n def locked(self) -> bool: ...\n\nclass _RLock:\n def __init__(self) -> None: ...\n def __enter__(self) -> bool: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n if sys.version_info >= (3,):\n def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...\n else:\n def acquire(self, blocking: bool = ...) -> bool: ...\n def release(self) -> None: ...\n\nRLock = _RLock\n\nclass Condition:\n def __init__(self, lock: Union[Lock, _RLock, None] = ...) -> None: ...\n def __enter__(self) -> bool: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n if sys.version_info >= (3,):\n def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...\n else:\n def acquire(self, blocking: bool = ...) -> bool: ...\n def release(self) -> None: ...\n def wait(self, timeout: Optional[float] = ...) -> bool: ...\n if sys.version_info >= (3,):\n def wait_for(self, predicate: Callable[[], _T], timeout: Optional[float] = ...) -> _T: ...\n def notify(self, n: int = ...) -> None: ...\n def notify_all(self) -> None: ...\n def notifyAll(self) -> None: ...\n\nclass Semaphore:\n def __init__(self, value: int = ...) -> None: ...\n def __enter__(self) -> bool: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n if sys.version_info >= (3,):\n def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...\n else:\n def acquire(self, blocking: bool = ...) -> bool: ...\n if sys.version_info >= (3, 9):\n def release(self, n: int = ...) -> None: ...\n else:\n def release(self) -> None: ...\n\nclass BoundedSemaphore(Semaphore): ...\n\nclass Event:\n def __init__(self) -> None: ...\n def is_set(self) -> bool: ...\n if sys.version_info < (3,):\n def isSet(self) -> bool: ...\n def set(self) -> None: ...\n def clear(self) -> None: ...\n def wait(self, timeout: Optional[float] = ...) -> bool: ...\n\nif sys.version_info >= (3, 8):\n from _thread import _excepthook, _ExceptHookArgs\n\n excepthook = _excepthook\n ExceptHookArgs = _ExceptHookArgs\n\nclass Timer(Thread):\n if sys.version_info >= (3,):\n def __init__(\n self,\n interval: float,\n function: Callable[..., Any],\n args: Optional[Iterable[Any]] = ...,\n kwargs: Optional[Mapping[str, Any]] = ...,\n ) -> None: ...\n else:\n def __init__(\n self, interval: float, function: Callable[..., Any], args: Iterable[Any] = ..., kwargs: Mapping[str, Any] = ...\n ) -> None: ...\n def cancel(self) -> None: ...\n\nif sys.version_info >= (3,):\n class Barrier:\n parties: int\n n_waiting: int\n broken: bool\n def __init__(self, parties: int, action: Optional[Callable[[], None]] = ..., timeout: Optional[float] = ...) -> None: ...\n def wait(self, timeout: Optional[float] = ...) -> int: ...\n def reset(self) -> None: ...\n def abort(self) -> None: ...\n class BrokenBarrierError(RuntimeError): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_dummy_threading.pyi
_dummy_threading.pyi
Other
6,309
0.95
0.545455
0.0125
awesome-app
549
2024-09-21T13:13:08.105709
BSD-3-Clause
false
996f3aac3305fc1b8c667c93accba08a
import sys\nfrom typing import Any, Callable, Iterable, List, Optional, TypeVar\n\n_T = TypeVar("_T")\n\ndef heapify(__heap: List[_T]) -> None: ...\ndef heappop(__heap: List[_T]) -> _T: ...\ndef heappush(__heap: List[_T], __item: _T) -> None: ...\ndef heappushpop(__heap: List[_T], __item: _T) -> _T: ...\ndef heapreplace(__heap: List[_T], __item: _T) -> _T: ...\n\nif sys.version_info < (3,):\n def nlargest(__n: int, __iterable: Iterable[_T], __key: Optional[Callable[[_T], Any]] = ...) -> List[_T]: ...\n def nsmallest(__n: int, __iterable: Iterable[_T], __key: Optional[Callable[[_T], Any]] = ...) -> List[_T]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_heapq.pyi
_heapq.pyi
Other
612
0.85
0.571429
0
awesome-app
75
2024-02-15T06:48:51.225991
BSD-3-Clause
false
7af1550f3296deb8f49518c27c8d56dd
import sys\nfrom typing import List, Optional, Union\n\nif sys.platform == "win32":\n\n # Actual typename View, not exposed by the implementation\n class _View:\n def Execute(self, params: Optional[_Record] = ...) -> None: ...\n def GetColumnInfo(self, kind: int) -> _Record: ...\n def Fetch(self) -> _Record: ...\n def Modify(self, mode: int, record: _Record) -> None: ...\n def Close(self) -> None: ...\n # Don't exist at runtime\n __new__: None # type: ignore\n __init__: None # type: ignore\n # Actual typename Summary, not exposed by the implementation\n class _Summary:\n def GetProperty(self, propid: int) -> Optional[Union[str, bytes]]: ...\n def GetPropertyCount(self) -> int: ...\n def SetProperty(self, propid: int, value: Union[str, bytes]) -> None: ...\n def Persist(self) -> None: ...\n # Don't exist at runtime\n __new__: None # type: ignore\n __init__: None # type: ignore\n # Actual typename Database, not exposed by the implementation\n class _Database:\n def OpenView(self, sql: str) -> _View: ...\n def Commit(self) -> None: ...\n def GetSummaryInformation(self, updateCount: int) -> _Summary: ...\n def Close(self) -> None: ...\n # Don't exist at runtime\n __new__: None # type: ignore\n __init__: None # type: ignore\n # Actual typename Record, not exposed by the implementation\n class _Record:\n def GetFieldCount(self) -> int: ...\n def GetInteger(self, field: int) -> int: ...\n def GetString(self, field: int) -> str: ...\n def SetString(self, field: int, str: str) -> None: ...\n def SetStream(self, field: int, stream: str) -> None: ...\n def SetInteger(self, field: int, int: int) -> None: ...\n def ClearData(self) -> None: ...\n # Don't exist at runtime\n __new__: None # type: ignore\n __init__: None # type: ignore\n def UuidCreate() -> str: ...\n def FCICreate(cabname: str, files: List[str]) -> None: ...\n def OpenDatabase(name: str, flags: int) -> _Database: ...\n def CreateRecord(count: int) -> _Record: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_msi.pyi
_msi.pyi
Other
2,168
0.95
0.591837
0.170213
awesome-app
49
2023-08-27T00:24:49.803447
Apache-2.0
false
9ce8afaa0c73f0ddc244246c526b1877
import sys\nfrom typing import Tuple\n\n# Actually Tuple[(int,) * 625]\n_State = Tuple[int, ...]\n\nclass Random(object):\n def __init__(self, seed: object = ...) -> None: ...\n def seed(self, __n: object = ...) -> None: ...\n def getstate(self) -> _State: ...\n def setstate(self, __state: _State) -> None: ...\n def random(self) -> float: ...\n def getrandbits(self, __k: int) -> int: ...\n if sys.version_info < (3,):\n def jumpahead(self, i: int) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_random.pyi
_random.pyi
Other
478
0.95
0.6
0.076923
node-utils
476
2024-11-09T09:52:44.348552
MIT
false
5db0e9ec2b1587b6cd650604d052e955
import sys\nfrom typing import Any, Dict, List, Optional, Tuple, Type, Union, overload\n\nif sys.version_info >= (3, 0):\n _defaultaction: str\n _onceregistry: Dict[Any, Any]\nelse:\n default_action: str\n once_registry: Dict[Any, Any]\n\nfilters: List[Tuple[Any, ...]]\n\nif sys.version_info >= (3, 6):\n @overload\n def warn(\n message: str, category: Optional[Type[Warning]] = ..., stacklevel: int = ..., source: Optional[Any] = ...\n ) -> None: ...\n @overload\n def warn(message: Warning, category: Any = ..., stacklevel: int = ..., source: Optional[Any] = ...) -> None: ...\n @overload\n def warn_explicit(\n message: str,\n category: Type[Warning],\n filename: str,\n lineno: int,\n module: Optional[str] = ...,\n registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,\n module_globals: Optional[Dict[str, Any]] = ...,\n source: Optional[Any] = ...,\n ) -> None: ...\n @overload\n def warn_explicit(\n message: Warning,\n category: Any,\n filename: str,\n lineno: int,\n module: Optional[str] = ...,\n registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,\n module_globals: Optional[Dict[str, Any]] = ...,\n source: Optional[Any] = ...,\n ) -> None: ...\n\nelse:\n @overload\n def warn(message: str, category: Optional[Type[Warning]] = ..., stacklevel: int = ...) -> None: ...\n @overload\n def warn(message: Warning, category: Any = ..., stacklevel: int = ...) -> None: ...\n @overload\n def warn_explicit(\n message: str,\n category: Type[Warning],\n filename: str,\n lineno: int,\n module: Optional[str] = ...,\n registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,\n module_globals: Optional[Dict[str, Any]] = ...,\n ) -> None: ...\n @overload\n def warn_explicit(\n message: Warning,\n category: Any,\n filename: str,\n lineno: int,\n module: Optional[str] = ...,\n registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,\n module_globals: Optional[Dict[str, Any]] = ...,\n ) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_warnings.pyi
_warnings.pyi
Other
2,233
0.85
0.149254
0
node-utils
948
2023-09-03T12:24:40.824483
BSD-3-Clause
false
bb893939ce764a627415e0438c24f8f4
import sys\nfrom typing import Any, Callable, Generic, Optional, TypeVar, overload\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_C = TypeVar("_C", bound=Callable[..., Any])\n_T = TypeVar("_T")\n\nclass CallableProxyType(object): # "weakcallableproxy"\n def __getattr__(self, attr: str) -> Any: ...\n\nclass ProxyType(object): # "weakproxy"\n def __getattr__(self, attr: str) -> Any: ...\n\nclass ReferenceType(Generic[_T]):\n if sys.version_info >= (3, 4):\n __callback__: Callable[[ReferenceType[_T]], Any]\n def __init__(self, o: _T, callback: Optional[Callable[[ReferenceType[_T]], Any]] = ...) -> None: ...\n def __call__(self) -> Optional[_T]: ...\n def __hash__(self) -> int: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nref = ReferenceType\n\ndef getweakrefcount(__object: Any) -> int: ...\ndef getweakrefs(object: Any) -> int: ...\n@overload\ndef proxy(object: _C, callback: Optional[Callable[[_C], Any]] = ...) -> CallableProxyType: ...\n\n# Return CallableProxyType if object is callable, ProxyType otherwise\n@overload\ndef proxy(object: _T, callback: Optional[Callable[[_T], Any]] = ...) -> Any: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_weakref.pyi
_weakref.pyi
Other
1,200
0.95
0.5
0.038462
node-utils
575
2023-12-06T11:15:06.971862
Apache-2.0
false
3e7a42350bb0494c1af7aebcc6a66195
import sys\nfrom typing import Any, Generic, Iterable, Iterator, MutableSet, Optional, TypeVar, Union\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_S = TypeVar("_S")\n_T = TypeVar("_T")\n_SelfT = TypeVar("_SelfT", bound=WeakSet[Any])\n\nclass WeakSet(MutableSet[_T], Generic[_T]):\n def __init__(self, data: Optional[Iterable[_T]] = ...) -> None: ...\n def add(self, item: _T) -> None: ...\n def clear(self) -> None: ...\n def discard(self, item: _T) -> None: ...\n def copy(self: _SelfT) -> _SelfT: ...\n def pop(self) -> _T: ...\n def remove(self, item: _T) -> None: ...\n def update(self, other: Iterable[_T]) -> None: ...\n def __contains__(self, item: object) -> bool: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[_T]: ...\n def __ior__(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\n def difference(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\n def __sub__(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\n def difference_update(self: _SelfT, other: Iterable[_T]) -> None: ...\n def __isub__(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\n def intersection(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\n def __and__(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\n def intersection_update(self, other: Iterable[_T]) -> None: ...\n def __iand__(self: _SelfT, other: Iterable[_T]) -> _SelfT: ...\n def issubset(self, other: Iterable[_T]) -> bool: ...\n def __le__(self, other: Iterable[_T]) -> bool: ...\n def __lt__(self, other: Iterable[_T]) -> bool: ...\n def issuperset(self, other: Iterable[_T]) -> bool: ...\n def __ge__(self, other: Iterable[_T]) -> bool: ...\n def __gt__(self, other: Iterable[_T]) -> bool: ...\n def __eq__(self, other: object) -> bool: ...\n def symmetric_difference(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\n def __xor__(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\n def symmetric_difference_update(self, other: Iterable[_S]) -> None: ...\n def __ixor__(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\n def union(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\n def __or__(self, other: Iterable[_S]) -> WeakSet[Union[_S, _T]]: ...\n def isdisjoint(self, other: Iterable[_T]) -> bool: ...\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\2and3\_weakrefset.pyi
_weakrefset.pyi
Other
2,417
0.85
0.808511
0
react-lib
973
2025-01-02T21:37:34.894459
MIT
false
c6175ce94d1321c70956e5da2c42cf00
import sys\nfrom typing import List\n\nclass _Feature:\n def getOptionalRelease(self) -> sys._version_info: ...\n def getMandatoryRelease(self) -> sys._version_info: ...\n compiler_flag: int\n\nabsolute_import: _Feature\ndivision: _Feature\ngenerators: _Feature\nnested_scopes: _Feature\nprint_function: _Feature\nunicode_literals: _Feature\nwith_statement: _Feature\nif sys.version_info >= (3, 0):\n barry_as_FLUFL: _Feature\n\nif sys.version_info >= (3, 5):\n generator_stop: _Feature\n\nif sys.version_info >= (3, 7):\n annotations: _Feature\n\nall_feature_names: List[str] # undocumented\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\__future__.pyi
__future__.pyi
Other
587
0.95
0.24
0
react-lib
372
2025-01-10T22:22:50.872926
BSD-3-Clause
false
0fddc9fc7c7f5df9b840739dfb0ac8e7
import sys\nfrom typing import Optional\n\ndef find_library(name: str) -> Optional[str]: ...\n\nif sys.platform == "win32":\n def find_msvcrt() -> Optional[str]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\ctypes\util.pyi
util.pyi
Other
163
0.85
0.428571
0
node-utils
570
2023-07-27T11:33:23.288693
BSD-3-Clause
false
b6b37bc95be094e0c815a7f61c85294c
from ctypes import (\n Array,\n Structure,\n _SimpleCData,\n c_byte,\n c_char,\n c_char_p,\n c_double,\n c_float,\n c_int,\n c_long,\n c_longlong,\n c_short,\n c_uint,\n c_ulong,\n c_ulonglong,\n c_ushort,\n c_void_p,\n c_wchar,\n c_wchar_p,\n pointer,\n)\n\nBYTE = c_byte\nWORD = c_ushort\nDWORD = c_ulong\nCHAR = c_char\nWCHAR = c_wchar\nUINT = c_uint\nINT = c_int\nDOUBLE = c_double\nFLOAT = c_float\nBOOLEAN = BYTE\nBOOL = c_long\n\nclass VARIANT_BOOL(_SimpleCData[bool]): ...\n\nULONG = c_ulong\nLONG = c_long\nUSHORT = c_ushort\nSHORT = c_short\nLARGE_INTEGER = c_longlong\n_LARGE_INTEGER = c_longlong\nULARGE_INTEGER = c_ulonglong\n_ULARGE_INTEGER = c_ulonglong\n\nOLESTR = c_wchar_p\nLPOLESTR = c_wchar_p\nLPCOLESTR = c_wchar_p\nLPWSTR = c_wchar_p\nLPCWSTR = c_wchar_p\nLPSTR = c_char_p\nLPCSTR = c_char_p\nLPVOID = c_void_p\nLPCVOID = c_void_p\n\n# These two types are pointer-sized unsigned and signed ints, respectively.\n# At runtime, they are either c_[u]long or c_[u]longlong, depending on the host's pointer size\n# (they are not really separate classes).\nclass WPARAM(_SimpleCData[int]): ...\nclass LPARAM(_SimpleCData[int]): ...\n\nATOM = WORD\nLANGID = WORD\nCOLORREF = DWORD\nLGRPID = DWORD\nLCTYPE = DWORD\nLCID = DWORD\n\nHANDLE = c_void_p\nHACCEL = HANDLE\nHBITMAP = HANDLE\nHBRUSH = HANDLE\nHCOLORSPACE = HANDLE\nHDC = HANDLE\nHDESK = HANDLE\nHDWP = HANDLE\nHENHMETAFILE = HANDLE\nHFONT = HANDLE\nHGDIOBJ = HANDLE\nHGLOBAL = HANDLE\nHHOOK = HANDLE\nHICON = HANDLE\nHINSTANCE = HANDLE\nHKEY = HANDLE\nHKL = HANDLE\nHLOCAL = HANDLE\nHMENU = HANDLE\nHMETAFILE = HANDLE\nHMODULE = HANDLE\nHMONITOR = HANDLE\nHPALETTE = HANDLE\nHPEN = HANDLE\nHRGN = HANDLE\nHRSRC = HANDLE\nHSTR = HANDLE\nHTASK = HANDLE\nHWINSTA = HANDLE\nHWND = HANDLE\nSC_HANDLE = HANDLE\nSERVICE_STATUS_HANDLE = HANDLE\n\nclass RECT(Structure):\n left: LONG\n top: LONG\n right: LONG\n bottom: LONG\n\nRECTL = RECT\n_RECTL = RECT\ntagRECT = RECT\n\nclass _SMALL_RECT(Structure):\n Left: SHORT\n Top: SHORT\n Right: SHORT\n Bottom: SHORT\n\nSMALL_RECT = _SMALL_RECT\n\nclass _COORD(Structure):\n X: SHORT\n Y: SHORT\n\nclass POINT(Structure):\n x: LONG\n y: LONG\n\nPOINTL = POINT\n_POINTL = POINT\ntagPOINT = POINT\n\nclass SIZE(Structure):\n cx: LONG\n cy: LONG\n\nSIZEL = SIZE\ntagSIZE = SIZE\n\ndef RGB(red: int, green: int, blue: int) -> int: ...\n\nclass FILETIME(Structure):\n dwLowDateTime: DWORD\n dwHighDateTime: DWORD\n\n_FILETIME = FILETIME\n\nclass MSG(Structure):\n hWnd: HWND\n message: UINT\n wParam: WPARAM\n lParam: LPARAM\n time: DWORD\n pt: POINT\n\ntagMSG = MSG\nMAX_PATH: int\n\nclass WIN32_FIND_DATAA(Structure):\n dwFileAttributes: DWORD\n ftCreationTime: FILETIME\n ftLastAccessTime: FILETIME\n ftLastWriteTime: FILETIME\n nFileSizeHigh: DWORD\n nFileSizeLow: DWORD\n dwReserved0: DWORD\n dwReserved1: DWORD\n cFileName: Array[CHAR]\n cAlternateFileName: Array[CHAR]\n\nclass WIN32_FIND_DATAW(Structure):\n dwFileAttributes: DWORD\n ftCreationTime: FILETIME\n ftLastAccessTime: FILETIME\n ftLastWriteTime: FILETIME\n nFileSizeHigh: DWORD\n nFileSizeLow: DWORD\n dwReserved0: DWORD\n dwReserved1: DWORD\n cFileName: Array[WCHAR]\n cAlternateFileName: Array[WCHAR]\n\n# These pointer type definitions use pointer[...] instead of POINTER(...), to allow them\n# to be used in type annotations.\nPBOOL = pointer[BOOL]\nLPBOOL = pointer[BOOL]\nPBOOLEAN = pointer[BOOLEAN]\nPBYTE = pointer[BYTE]\nLPBYTE = pointer[BYTE]\nPCHAR = pointer[CHAR]\nLPCOLORREF = pointer[COLORREF]\nPDWORD = pointer[DWORD]\nLPDWORD = pointer[DWORD]\nPFILETIME = pointer[FILETIME]\nLPFILETIME = pointer[FILETIME]\nPFLOAT = pointer[FLOAT]\nPHANDLE = pointer[HANDLE]\nLPHANDLE = pointer[HANDLE]\nPHKEY = pointer[HKEY]\nLPHKL = pointer[HKL]\nPINT = pointer[INT]\nLPINT = pointer[INT]\nPLARGE_INTEGER = pointer[LARGE_INTEGER]\nPLCID = pointer[LCID]\nPLONG = pointer[LONG]\nLPLONG = pointer[LONG]\nPMSG = pointer[MSG]\nLPMSG = pointer[MSG]\nPPOINT = pointer[POINT]\nLPPOINT = pointer[POINT]\nPPOINTL = pointer[POINTL]\nPRECT = pointer[RECT]\nLPRECT = pointer[RECT]\nPRECTL = pointer[RECTL]\nLPRECTL = pointer[RECTL]\nLPSC_HANDLE = pointer[SC_HANDLE]\nPSHORT = pointer[SHORT]\nPSIZE = pointer[SIZE]\nLPSIZE = pointer[SIZE]\nPSIZEL = pointer[SIZEL]\nLPSIZEL = pointer[SIZEL]\nPSMALL_RECT = pointer[SMALL_RECT]\nPUINT = pointer[UINT]\nLPUINT = pointer[UINT]\nPULARGE_INTEGER = pointer[ULARGE_INTEGER]\nPULONG = pointer[ULONG]\nPUSHORT = pointer[USHORT]\nPWCHAR = pointer[WCHAR]\nPWIN32_FIND_DATAA = pointer[WIN32_FIND_DATAA]\nLPWIN32_FIND_DATAA = pointer[WIN32_FIND_DATAA]\nPWIN32_FIND_DATAW = pointer[WIN32_FIND_DATAW]\nLPWIN32_FIND_DATAW = pointer[WIN32_FIND_DATAW]\nPWORD = pointer[WORD]\nLPWORD = pointer[WORD]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\ctypes\wintypes.pyi
wintypes.pyi
Other
4,642
0.95
0.055556
0.02381
awesome-app
679
2023-12-16T04:16:52.235310
MIT
false
eda08263d7b0dd2db5bec02a4d8b5ab4
import sys\nfrom array import array\nfrom typing import (\n Any,\n Callable,\n ClassVar,\n Generic,\n Iterable,\n Iterator,\n List,\n Mapping,\n Optional,\n Sequence,\n Text,\n Tuple,\n Type,\n TypeVar,\n Union as _UnionT,\n overload,\n)\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_T = TypeVar("_T")\n_DLLT = TypeVar("_DLLT", bound=CDLL)\n_CT = TypeVar("_CT", bound=_CData)\n\nRTLD_GLOBAL: int = ...\nRTLD_LOCAL: int = ...\nDEFAULT_MODE: int = ...\n\nclass CDLL(object):\n _func_flags_: ClassVar[int] = ...\n _func_restype_: ClassVar[_CData] = ...\n _name: str = ...\n _handle: int = ...\n _FuncPtr: Type[_FuncPointer] = ...\n def __init__(\n self,\n name: Optional[str],\n mode: int = ...,\n handle: Optional[int] = ...,\n use_errno: bool = ...,\n use_last_error: bool = ...,\n winmode: Optional[int] = ...,\n ) -> None: ...\n def __getattr__(self, name: str) -> _NamedFuncPointer: ...\n def __getitem__(self, name: str) -> _NamedFuncPointer: ...\n\nif sys.platform == "win32":\n class OleDLL(CDLL): ...\n class WinDLL(CDLL): ...\n\nclass PyDLL(CDLL): ...\n\nclass LibraryLoader(Generic[_DLLT]):\n def __init__(self, dlltype: Type[_DLLT]) -> None: ...\n def __getattr__(self, name: str) -> _DLLT: ...\n def __getitem__(self, name: str) -> _DLLT: ...\n def LoadLibrary(self, name: str) -> _DLLT: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\ncdll: LibraryLoader[CDLL] = ...\nif sys.platform == "win32":\n windll: LibraryLoader[WinDLL] = ...\n oledll: LibraryLoader[OleDLL] = ...\npydll: LibraryLoader[PyDLL] = ...\npythonapi: PyDLL = ...\n\n# Anything that implements the read-write buffer interface.\n# The buffer interface is defined purely on the C level, so we cannot define a normal Protocol\n# for it. Instead we have to list the most common stdlib buffer classes in a Union.\n_WritableBuffer = _UnionT[bytearray, memoryview, array, _CData]\n# Same as _WritableBuffer, but also includes read-only buffer types (like bytes).\n_ReadOnlyBuffer = _UnionT[_WritableBuffer, bytes]\n\nclass _CDataMeta(type):\n # By default mypy complains about the following two methods, because strictly speaking cls\n # might not be a Type[_CT]. However this can never actually happen, because the only class that\n # uses _CDataMeta as its metaclass is _CData. So it's safe to ignore the errors here.\n def __mul__(cls: Type[_CT], other: int) -> Type[Array[_CT]]: ... # type: ignore\n def __rmul__(cls: Type[_CT], other: int) -> Type[Array[_CT]]: ... # type: ignore\n\nclass _CData(metaclass=_CDataMeta):\n _b_base: int = ...\n _b_needsfree_: bool = ...\n _objects: Optional[Mapping[Any, int]] = ...\n @classmethod\n def from_buffer(cls: Type[_CT], source: _WritableBuffer, offset: int = ...) -> _CT: ...\n @classmethod\n def from_buffer_copy(cls: Type[_CT], source: _ReadOnlyBuffer, offset: int = ...) -> _CT: ...\n @classmethod\n def from_address(cls: Type[_CT], address: int) -> _CT: ...\n @classmethod\n def from_param(cls: Type[_CT], obj: Any) -> _UnionT[_CT, _CArgObject]: ...\n @classmethod\n def in_dll(cls: Type[_CT], library: CDLL, name: str) -> _CT: ...\n\nclass _CanCastTo(_CData): ...\nclass _PointerLike(_CanCastTo): ...\n\n_ECT = Callable[[Optional[Type[_CData]], _FuncPointer, Tuple[_CData, ...]], _CData]\n_PF = _UnionT[Tuple[int], Tuple[int, str], Tuple[int, str, Any]]\n\nclass _FuncPointer(_PointerLike, _CData):\n restype: _UnionT[Type[_CData], Callable[[int], None], None] = ...\n argtypes: Sequence[Type[_CData]] = ...\n errcheck: _ECT = ...\n @overload\n def __init__(self, address: int) -> None: ...\n @overload\n def __init__(self, callable: Callable[..., Any]) -> None: ...\n @overload\n def __init__(self, func_spec: Tuple[_UnionT[str, int], CDLL], paramflags: Tuple[_PF, ...] = ...) -> None: ...\n @overload\n def __init__(self, vtlb_index: int, name: str, paramflags: Tuple[_PF, ...] = ..., iid: pointer[c_int] = ...) -> None: ...\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n\nclass _NamedFuncPointer(_FuncPointer):\n __name__: str\n\nclass ArgumentError(Exception): ...\n\ndef CFUNCTYPE(\n restype: Optional[Type[_CData]], *argtypes: Type[_CData], use_errno: bool = ..., use_last_error: bool = ...\n) -> Type[_FuncPointer]: ...\n\nif sys.platform == "win32":\n def WINFUNCTYPE(\n restype: Optional[Type[_CData]], *argtypes: Type[_CData], use_errno: bool = ..., use_last_error: bool = ...\n ) -> Type[_FuncPointer]: ...\n\ndef PYFUNCTYPE(restype: Optional[Type[_CData]], *argtypes: Type[_CData]) -> Type[_FuncPointer]: ...\n\nclass _CArgObject: ...\n\n# Any type that can be implicitly converted to c_void_p when passed as a C function argument.\n# (bytes is not included here, see below.)\n_CVoidPLike = _UnionT[_PointerLike, Array[Any], _CArgObject, int]\n# Same as above, but including types known to be read-only (i. e. bytes).\n# This distinction is not strictly necessary (ctypes doesn't differentiate between const\n# and non-const pointers), but it catches errors like memmove(b'foo', buf, 4)\n# when memmove(buf, b'foo', 4) was intended.\n_CVoidConstPLike = _UnionT[_CVoidPLike, bytes]\n\ndef addressof(obj: _CData) -> int: ...\ndef alignment(obj_or_type: _UnionT[_CData, Type[_CData]]) -> int: ...\ndef byref(obj: _CData, offset: int = ...) -> _CArgObject: ...\n\n_CastT = TypeVar("_CastT", bound=_CanCastTo)\n\ndef cast(obj: _UnionT[_CData, _CArgObject, int], type: Type[_CastT]) -> _CastT: ...\ndef create_string_buffer(init: _UnionT[int, bytes], size: Optional[int] = ...) -> Array[c_char]: ...\n\nc_buffer = create_string_buffer\n\ndef create_unicode_buffer(init: _UnionT[int, Text], size: Optional[int] = ...) -> Array[c_wchar]: ...\n\nif sys.platform == "win32":\n def DllCanUnloadNow() -> int: ...\n def DllGetClassObject(rclsid: Any, riid: Any, ppv: Any) -> int: ... # TODO not documented\n def FormatError(code: int) -> str: ...\n def GetLastError() -> int: ...\n\ndef get_errno() -> int: ...\n\nif sys.platform == "win32":\n def get_last_error() -> int: ...\n\ndef memmove(dst: _CVoidPLike, src: _CVoidConstPLike, count: int) -> None: ...\ndef memset(dst: _CVoidPLike, c: int, count: int) -> None: ...\ndef POINTER(type: Type[_CT]) -> Type[pointer[_CT]]: ...\n\n# The real ctypes.pointer is a function, not a class. The stub version of pointer behaves like\n# ctypes._Pointer in that it is the base class for all pointer types. Unlike the real _Pointer,\n# it can be instantiated directly (to mimic the behavior of the real pointer function).\nclass pointer(Generic[_CT], _PointerLike, _CData):\n _type_: ClassVar[Type[_CT]] = ...\n contents: _CT = ...\n def __init__(self, arg: _CT = ...) -> None: ...\n @overload\n def __getitem__(self, i: int) -> _CT: ...\n @overload\n def __getitem__(self, s: slice) -> List[_CT]: ...\n @overload\n def __setitem__(self, i: int, o: _CT) -> None: ...\n @overload\n def __setitem__(self, s: slice, o: Iterable[_CT]) -> None: ...\n\ndef resize(obj: _CData, size: int) -> None: ...\n\nif sys.version_info < (3,):\n def set_conversion_mode(encoding: str, errors: str) -> Tuple[str, str]: ...\n\ndef set_errno(value: int) -> int: ...\n\nif sys.platform == "win32":\n def set_last_error(value: int) -> int: ...\n\ndef sizeof(obj_or_type: _UnionT[_CData, Type[_CData]]) -> int: ...\ndef string_at(address: _CVoidConstPLike, size: int = ...) -> bytes: ...\n\nif sys.platform == "win32":\n def WinError(code: Optional[int] = ..., descr: Optional[str] = ...) -> OSError: ...\n\ndef wstring_at(address: _CVoidConstPLike, size: int = ...) -> str: ...\n\nclass _SimpleCData(Generic[_T], _CData):\n value: _T = ...\n def __init__(self, value: _T = ...) -> None: ...\n\nclass c_byte(_SimpleCData[int]): ...\n\nclass c_char(_SimpleCData[bytes]):\n def __init__(self, value: _UnionT[int, bytes] = ...) -> None: ...\n\nclass c_char_p(_PointerLike, _SimpleCData[Optional[bytes]]):\n def __init__(self, value: Optional[_UnionT[int, bytes]] = ...) -> None: ...\n\nclass c_double(_SimpleCData[float]): ...\nclass c_longdouble(_SimpleCData[float]): ...\nclass c_float(_SimpleCData[float]): ...\nclass c_int(_SimpleCData[int]): ...\nclass c_int8(_SimpleCData[int]): ...\nclass c_int16(_SimpleCData[int]): ...\nclass c_int32(_SimpleCData[int]): ...\nclass c_int64(_SimpleCData[int]): ...\nclass c_long(_SimpleCData[int]): ...\nclass c_longlong(_SimpleCData[int]): ...\nclass c_short(_SimpleCData[int]): ...\nclass c_size_t(_SimpleCData[int]): ...\nclass c_ssize_t(_SimpleCData[int]): ...\nclass c_ubyte(_SimpleCData[int]): ...\nclass c_uint(_SimpleCData[int]): ...\nclass c_uint8(_SimpleCData[int]): ...\nclass c_uint16(_SimpleCData[int]): ...\nclass c_uint32(_SimpleCData[int]): ...\nclass c_uint64(_SimpleCData[int]): ...\nclass c_ulong(_SimpleCData[int]): ...\nclass c_ulonglong(_SimpleCData[int]): ...\nclass c_ushort(_SimpleCData[int]): ...\nclass c_void_p(_PointerLike, _SimpleCData[Optional[int]]): ...\nclass c_wchar(_SimpleCData[Text]): ...\n\nclass c_wchar_p(_PointerLike, _SimpleCData[Optional[Text]]):\n def __init__(self, value: Optional[_UnionT[int, Text]] = ...) -> None: ...\n\nclass c_bool(_SimpleCData[bool]):\n def __init__(self, value: bool = ...) -> None: ...\n\nif sys.platform == "win32":\n class HRESULT(_SimpleCData[int]): ... # TODO undocumented\n\nclass py_object(_CanCastTo, _SimpleCData[_T]): ...\n\nclass _CField:\n offset: int = ...\n size: int = ...\n\nclass _StructUnionMeta(_CDataMeta):\n _fields_: Sequence[_UnionT[Tuple[str, Type[_CData]], Tuple[str, Type[_CData], int]]] = ...\n _pack_: int = ...\n _anonymous_: Sequence[str] = ...\n def __getattr__(self, name: str) -> _CField: ...\n\nclass _StructUnionBase(_CData, metaclass=_StructUnionMeta):\n def __init__(self, *args: Any, **kw: Any) -> None: ...\n def __getattr__(self, name: str) -> Any: ...\n def __setattr__(self, name: str, value: Any) -> None: ...\n\nclass Union(_StructUnionBase): ...\nclass Structure(_StructUnionBase): ...\nclass BigEndianStructure(Structure): ...\nclass LittleEndianStructure(Structure): ...\n\nclass Array(Generic[_CT], _CData):\n _length_: ClassVar[int] = ...\n _type_: ClassVar[Type[_CT]] = ...\n raw: bytes = ... # Note: only available if _CT == c_char\n value: Any = ... # Note: bytes if _CT == c_char, Text if _CT == c_wchar, unavailable otherwise\n # TODO These methods cannot be annotated correctly at the moment.\n # All of these "Any"s stand for the array's element type, but it's not possible to use _CT\n # here, because of a special feature of ctypes.\n # By default, when accessing an element of an Array[_CT], the returned object has type _CT.\n # However, when _CT is a "simple type" like c_int, ctypes automatically "unboxes" the object\n # and converts it to the corresponding Python primitive. For example, when accessing an element\n # of an Array[c_int], a Python int object is returned, not a c_int.\n # This behavior does *not* apply to subclasses of "simple types".\n # If MyInt is a subclass of c_int, then accessing an element of an Array[MyInt] returns\n # a MyInt, not an int.\n # This special behavior is not easy to model in a stub, so for now all places where\n # the array element type would belong are annotated with Any instead.\n def __init__(self, *args: Any) -> None: ...\n @overload\n def __getitem__(self, i: int) -> Any: ...\n @overload\n def __getitem__(self, s: slice) -> List[Any]: ...\n @overload\n def __setitem__(self, i: int, o: Any) -> None: ...\n @overload\n def __setitem__(self, s: slice, o: Iterable[Any]) -> None: ...\n def __iter__(self) -> Iterator[Any]: ...\n # Can't inherit from Sized because the metaclass conflict between\n # Sized and _CData prevents using _CDataMeta.\n def __len__(self) -> int: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\ctypes\__init__.pyi
__init__.pyi
Other
11,893
0.95
0.475728
0.116732
awesome-app
816
2025-02-09T18:16:05.033268
MIT
false
89200b1337121628851ea918661deeec
from typing import List, TypeVar, Union\n\n_Ch = TypeVar("_Ch", str, int)\n\nNUL: int\nSOH: int\nSTX: int\nETX: int\nEOT: int\nENQ: int\nACK: int\nBEL: int\nBS: int\nTAB: int\nHT: int\nLF: int\nNL: int\nVT: int\nFF: int\nCR: int\nSO: int\nSI: int\nDLE: int\nDC1: int\nDC2: int\nDC3: int\nDC4: int\nNAK: int\nSYN: int\nETB: int\nCAN: int\nEM: int\nSUB: int\nESC: int\nFS: int\nGS: int\nRS: int\nUS: int\nSP: int\nDEL: int\n\ncontrolnames: List[int]\n\ndef isalnum(c: Union[str, int]) -> bool: ...\ndef isalpha(c: Union[str, int]) -> bool: ...\ndef isascii(c: Union[str, int]) -> bool: ...\ndef isblank(c: Union[str, int]) -> bool: ...\ndef iscntrl(c: Union[str, int]) -> bool: ...\ndef isdigit(c: Union[str, int]) -> bool: ...\ndef isgraph(c: Union[str, int]) -> bool: ...\ndef islower(c: Union[str, int]) -> bool: ...\ndef isprint(c: Union[str, int]) -> bool: ...\ndef ispunct(c: Union[str, int]) -> bool: ...\ndef isspace(c: Union[str, int]) -> bool: ...\ndef isupper(c: Union[str, int]) -> bool: ...\ndef isxdigit(c: Union[str, int]) -> bool: ...\ndef isctrl(c: Union[str, int]) -> bool: ...\ndef ismeta(c: Union[str, int]) -> bool: ...\ndef ascii(c: _Ch) -> _Ch: ...\ndef ctrl(c: _Ch) -> _Ch: ...\ndef alt(c: _Ch) -> _Ch: ...\ndef unctrl(c: Union[str, int]) -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\curses\ascii.pyi
ascii.pyi
Other
1,212
0.85
0.306452
0
awesome-app
438
2025-02-14T12:49:08.294626
GPL-3.0
false
c01945bebeb5a300b6f89f140b66620a
from _curses import _CursesWindow\n\nclass _Curses_Panel: # type is <class '_curses_panel.curses panel'> (note the space in the class name)\n def above(self) -> _Curses_Panel: ...\n def below(self) -> _Curses_Panel: ...\n def bottom(self) -> None: ...\n def hidden(self) -> bool: ...\n def hide(self) -> None: ...\n def move(self, y: int, x: int) -> None: ...\n def replace(self, win: _CursesWindow) -> None: ...\n def set_userptr(self, obj: object) -> None: ...\n def show(self) -> None: ...\n def top(self) -> None: ...\n def userptr(self) -> object: ...\n def window(self) -> _CursesWindow: ...\n\ndef bottom_panel() -> _Curses_Panel: ...\ndef new_panel(__win: _CursesWindow) -> _Curses_Panel: ...\ndef top_panel() -> _Curses_Panel: ...\ndef update_panels() -> _Curses_Panel: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\curses\panel.pyi
panel.pyi
Other
801
0.95
0.95
0
vue-tools
98
2024-01-05T00:29:18.765939
BSD-3-Clause
false
b3fd4db368a1608d4443d9604cb7948d
from _curses import _CursesWindow\nfrom typing import Callable, Optional, Union\n\ndef rectangle(win: _CursesWindow, uly: int, ulx: int, lry: int, lrx: int) -> None: ...\n\nclass Textbox:\n stripspaces: bool\n def __init__(self, win: _CursesWindow, insert_mode: bool = ...) -> None: ...\n def edit(self, validate: Optional[Callable[[int], int]] = ...) -> str: ...\n def do_command(self, ch: Union[str, int]) -> None: ...\n def gather(self) -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\curses\textpad.pyi
textpad.pyi
Other
457
0.85
0.545455
0
vue-tools
995
2025-01-19T06:26:00.530585
GPL-3.0
false
6bafb7c7e3d50a5fc1c89de5ec14ffe2
from _curses import * # noqa: F403\nfrom _curses import _CursesWindow as _CursesWindow\nfrom typing import Any, Callable, TypeVar\n\n_T = TypeVar("_T")\n\n# available after calling `curses.initscr()`\nLINES: int\nCOLS: int\n\n# available after calling `curses.start_color()`\nCOLORS: int\nCOLOR_PAIRS: int\n\ndef wrapper(__func: Callable[..., _T], *arg: Any, **kwds: Any) -> _T: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\curses\__init__.pyi
__init__.pyi
Other
370
0.95
0.066667
0.181818
node-utils
991
2025-03-02T02:29:49.600682
Apache-2.0
false
3d3e26755cea0d08e9b10dea57a0a264
import sys\nfrom typing import Optional\n\ndef version() -> str: ...\n\nif sys.version_info >= (3, 0):\n def bootstrap(\n *,\n root: Optional[str] = ...,\n upgrade: bool = ...,\n user: bool = ...,\n altinstall: bool = ...,\n default_pip: bool = ...,\n verbosity: int = ...,\n ) -> None: ...\n\nelse:\n def bootstrap(\n root: Optional[str] = ...,\n upgrade: bool = ...,\n user: bool = ...,\n altinstall: bool = ...,\n default_pip: bool = ...,\n verbosity: int = ...,\n ) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\ensurepip\__init__.pyi
__init__.pyi
Other
562
0.85
0.16
0.045455
vue-tools
71
2024-01-01T18:04:21.827874
BSD-3-Clause
false
58b211ff8e9b9dbdf7e22b2b212b4f5b
from lib2to3.pgen2.grammar import Grammar\n\nclass Symbols:\n def __init__(self, grammar: Grammar) -> None: ...\n\nclass python_symbols(Symbols):\n and_expr: int\n and_test: int\n annassign: int\n arglist: int\n argument: int\n arith_expr: int\n assert_stmt: int\n async_funcdef: int\n async_stmt: int\n atom: int\n augassign: int\n break_stmt: int\n classdef: int\n comp_for: int\n comp_if: int\n comp_iter: int\n comp_op: int\n comparison: int\n compound_stmt: int\n continue_stmt: int\n decorated: int\n decorator: int\n decorators: int\n del_stmt: int\n dictsetmaker: int\n dotted_as_name: int\n dotted_as_names: int\n dotted_name: int\n encoding_decl: int\n eval_input: int\n except_clause: int\n exec_stmt: int\n expr: int\n expr_stmt: int\n exprlist: int\n factor: int\n file_input: int\n flow_stmt: int\n for_stmt: int\n funcdef: int\n global_stmt: int\n if_stmt: int\n import_as_name: int\n import_as_names: int\n import_from: int\n import_name: int\n import_stmt: int\n lambdef: int\n listmaker: int\n not_test: int\n old_lambdef: int\n old_test: int\n or_test: int\n parameters: int\n pass_stmt: int\n power: int\n print_stmt: int\n raise_stmt: int\n return_stmt: int\n shift_expr: int\n simple_stmt: int\n single_input: int\n sliceop: int\n small_stmt: int\n star_expr: int\n stmt: int\n subscript: int\n subscriptlist: int\n suite: int\n term: int\n test: int\n testlist: int\n testlist1: int\n testlist_gexp: int\n testlist_safe: int\n testlist_star_expr: int\n tfpdef: int\n tfplist: int\n tname: int\n trailer: int\n try_stmt: int\n typedargslist: int\n varargslist: int\n vfpdef: int\n vfplist: int\n vname: int\n while_stmt: int\n with_item: int\n with_stmt: int\n with_var: int\n xor_expr: int\n yield_arg: int\n yield_expr: int\n yield_stmt: int\n\nclass pattern_symbols(Symbols):\n Alternative: int\n Alternatives: int\n Details: int\n Matcher: int\n NegatedUnit: int\n Repeater: int\n Unit: int\n\npython_grammar: Grammar\npython_grammar_no_print_statement: Grammar\npattern_grammar: Grammar\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\lib2to3\pygram.pyi
pygram.pyi
Other
2,208
0.85
0.035398
0
awesome-app
787
2023-08-23T05:02:52.795199
BSD-3-Clause
false
eef6c2aa14cf1985e85f1a6670c12448
import sys\nfrom lib2to3.pgen2.grammar import Grammar\nfrom typing import Any, Callable, Dict, Iterator, List, Optional, Text, Tuple, TypeVar, Union\n\n_P = TypeVar("_P")\n_NL = Union[Node, Leaf]\n_Context = Tuple[Text, int, int]\n_Results = Dict[Text, _NL]\n_RawNode = Tuple[int, Text, _Context, Optional[List[_NL]]]\n_Convert = Callable[[Grammar, _RawNode], Any]\n\nHUGE: int\n\ndef type_repr(type_num: int) -> Text: ...\n\nclass Base:\n type: int\n parent: Optional[Node]\n prefix: Text\n children: List[_NL]\n was_changed: bool\n was_checked: bool\n def __eq__(self, other: Any) -> bool: ...\n def _eq(self: _P, other: _P) -> bool: ...\n def clone(self: _P) -> _P: ...\n def post_order(self) -> Iterator[_NL]: ...\n def pre_order(self) -> Iterator[_NL]: ...\n def replace(self, new: Union[_NL, List[_NL]]) -> None: ...\n def get_lineno(self) -> int: ...\n def changed(self) -> None: ...\n def remove(self) -> Optional[int]: ...\n @property\n def next_sibling(self) -> Optional[_NL]: ...\n @property\n def prev_sibling(self) -> Optional[_NL]: ...\n def leaves(self) -> Iterator[Leaf]: ...\n def depth(self) -> int: ...\n def get_suffix(self) -> Text: ...\n if sys.version_info < (3,):\n def get_prefix(self) -> Text: ...\n def set_prefix(self, prefix: Text) -> None: ...\n\nclass Node(Base):\n fixers_applied: List[Any]\n def __init__(\n self,\n type: int,\n children: List[_NL],\n context: Optional[Any] = ...,\n prefix: Optional[Text] = ...,\n fixers_applied: Optional[List[Any]] = ...,\n ) -> None: ...\n def set_child(self, i: int, child: _NL) -> None: ...\n def insert_child(self, i: int, child: _NL) -> None: ...\n def append_child(self, child: _NL) -> None: ...\n\nclass Leaf(Base):\n lineno: int\n column: int\n value: Text\n fixers_applied: List[Any]\n def __init__(\n self,\n type: int,\n value: Text,\n context: Optional[_Context] = ...,\n prefix: Optional[Text] = ...,\n fixers_applied: List[Any] = ...,\n ) -> None: ...\n\ndef convert(gr: Grammar, raw_node: _RawNode) -> _NL: ...\n\nclass BasePattern:\n type: int\n content: Optional[Text]\n name: Optional[Text]\n def optimize(self) -> BasePattern: ... # sic, subclasses are free to optimize themselves into different patterns\n def match(self, node: _NL, results: Optional[_Results] = ...) -> bool: ...\n def match_seq(self, nodes: List[_NL], results: Optional[_Results] = ...) -> bool: ...\n def generate_matches(self, nodes: List[_NL]) -> Iterator[Tuple[int, _Results]]: ...\n\nclass LeafPattern(BasePattern):\n def __init__(self, type: Optional[int] = ..., content: Optional[Text] = ..., name: Optional[Text] = ...) -> None: ...\n\nclass NodePattern(BasePattern):\n wildcards: bool\n def __init__(self, type: Optional[int] = ..., content: Optional[Text] = ..., name: Optional[Text] = ...) -> None: ...\n\nclass WildcardPattern(BasePattern):\n min: int\n max: int\n def __init__(self, content: Optional[Text] = ..., min: int = ..., max: int = ..., name: Optional[Text] = ...) -> None: ...\n\nclass NegatedPattern(BasePattern):\n def __init__(self, content: Optional[Text] = ...) -> None: ...\n\ndef generate_matches(patterns: List[BasePattern], nodes: List[_NL]) -> Iterator[Tuple[int, _Results]]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\lib2to3\pytree.pyi
pytree.pyi
Other
3,322
0.95
0.42268
0
react-lib
434
2025-01-08T04:07:33.788158
BSD-3-Clause
false
76e3bc86eed8bed28c72445b02526704
from _typeshed import StrPath\nfrom lib2to3.pgen2.grammar import Grammar\nfrom lib2to3.pytree import _NL, _Convert\nfrom logging import Logger\nfrom typing import IO, Any, Iterable, Optional, Text\n\nclass Driver:\n grammar: Grammar\n logger: Logger\n convert: _Convert\n def __init__(self, grammar: Grammar, convert: Optional[_Convert] = ..., logger: Optional[Logger] = ...) -> None: ...\n def parse_tokens(self, tokens: Iterable[Any], debug: bool = ...) -> _NL: ...\n def parse_stream_raw(self, stream: IO[Text], debug: bool = ...) -> _NL: ...\n def parse_stream(self, stream: IO[Text], debug: bool = ...) -> _NL: ...\n def parse_file(self, filename: StrPath, encoding: Optional[Text] = ..., debug: bool = ...) -> _NL: ...\n def parse_string(self, text: Text, debug: bool = ...) -> _NL: ...\n\ndef load_grammar(\n gt: Text = ..., gp: Optional[Text] = ..., save: bool = ..., force: bool = ..., logger: Optional[Logger] = ...\n) -> Grammar: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\lib2to3\pgen2\driver.pyi
driver.pyi
Other
956
0.85
0.4
0
python-kit
522
2025-05-06T00:52:59.778193
MIT
false
6b405a56963cdadb7a47d2d2445ccfbf
from _typeshed import StrPath\nfrom typing import Dict, List, Optional, Text, Tuple, TypeVar\n\n_P = TypeVar("_P")\n_Label = Tuple[int, Optional[Text]]\n_DFA = List[List[Tuple[int, int]]]\n_DFAS = Tuple[_DFA, Dict[int, int]]\n\nclass Grammar:\n symbol2number: Dict[Text, int]\n number2symbol: Dict[int, Text]\n states: List[_DFA]\n dfas: Dict[int, _DFAS]\n labels: List[_Label]\n keywords: Dict[Text, int]\n tokens: Dict[int, int]\n symbol2label: Dict[Text, int]\n start: int\n def __init__(self) -> None: ...\n def dump(self, filename: StrPath) -> None: ...\n def load(self, filename: StrPath) -> None: ...\n def copy(self: _P) -> _P: ...\n def report(self) -> None: ...\n\nopmap_raw: Text\nopmap: Dict[Text, Text]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\lib2to3\pgen2\grammar.pyi
grammar.pyi
Other
733
0.85
0.230769
0
python-kit
437
2024-08-31T15:18:53.384648
BSD-3-Clause
false
e628b3d1d9b001962e2579d1a05913fc
from typing import Dict, Match, Text\n\nsimple_escapes: Dict[Text, Text]\n\ndef escape(m: Match[str]) -> Text: ...\ndef evalString(s: Text) -> Text: ...\ndef test() -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\lib2to3\pgen2\literals.pyi
literals.pyi
Other
172
0.85
0.428571
0
vue-tools
411
2023-10-18T07:15:56.181405
BSD-3-Clause
false
32dcb795206d90916d0d8667a21f2701
from lib2to3.pgen2.grammar import _DFAS, Grammar\nfrom lib2to3.pytree import _NL, _Convert, _RawNode\nfrom typing import Any, List, Optional, Sequence, Set, Text, Tuple\n\n_Context = Sequence[Any]\n\nclass ParseError(Exception):\n msg: Text\n type: int\n value: Optional[Text]\n context: _Context\n def __init__(self, msg: Text, type: int, value: Optional[Text], context: _Context) -> None: ...\n\nclass Parser:\n grammar: Grammar\n convert: _Convert\n stack: List[Tuple[_DFAS, int, _RawNode]]\n rootnode: Optional[_NL]\n used_names: Set[Text]\n def __init__(self, grammar: Grammar, convert: Optional[_Convert] = ...) -> None: ...\n def setup(self, start: Optional[int] = ...) -> None: ...\n def addtoken(self, type: int, value: Optional[Text], context: _Context) -> bool: ...\n def classify(self, type: int, value: Optional[Text], context: _Context) -> int: ...\n def shift(self, type: int, value: Optional[Text], newstate: int, context: _Context) -> None: ...\n def push(self, type: int, newdfa: _DFAS, newstate: int, context: _Context) -> None: ...\n def pop(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\lib2to3\pgen2\parse.pyi
parse.pyi
Other
1,107
0.85
0.384615
0
react-lib
902
2025-01-15T15:44:49.568031
GPL-3.0
false
287963f0eb5771c28aae56d80d8af9b7
from _typeshed import StrPath\nfrom lib2to3.pgen2 import grammar\nfrom lib2to3.pgen2.tokenize import _TokenInfo\nfrom typing import IO, Any, Dict, Iterable, Iterator, List, NoReturn, Optional, Text, Tuple\n\nclass PgenGrammar(grammar.Grammar): ...\n\nclass ParserGenerator:\n filename: StrPath\n stream: IO[Text]\n generator: Iterator[_TokenInfo]\n first: Dict[Text, Dict[Text, int]]\n def __init__(self, filename: StrPath, stream: Optional[IO[Text]] = ...) -> None: ...\n def make_grammar(self) -> PgenGrammar: ...\n def make_first(self, c: PgenGrammar, name: Text) -> Dict[int, int]: ...\n def make_label(self, c: PgenGrammar, label: Text) -> int: ...\n def addfirstsets(self) -> None: ...\n def calcfirst(self, name: Text) -> None: ...\n def parse(self) -> Tuple[Dict[Text, List[DFAState]], Text]: ...\n def make_dfa(self, start: NFAState, finish: NFAState) -> List[DFAState]: ...\n def dump_nfa(self, name: Text, start: NFAState, finish: NFAState) -> List[DFAState]: ...\n def dump_dfa(self, name: Text, dfa: Iterable[DFAState]) -> None: ...\n def simplify_dfa(self, dfa: List[DFAState]) -> None: ...\n def parse_rhs(self) -> Tuple[NFAState, NFAState]: ...\n def parse_alt(self) -> Tuple[NFAState, NFAState]: ...\n def parse_item(self) -> Tuple[NFAState, NFAState]: ...\n def parse_atom(self) -> Tuple[NFAState, NFAState]: ...\n def expect(self, type: int, value: Optional[Any] = ...) -> Text: ...\n def gettoken(self) -> None: ...\n def raise_error(self, msg: str, *args: Any) -> NoReturn: ...\n\nclass NFAState:\n arcs: List[Tuple[Optional[Text], NFAState]]\n def __init__(self) -> None: ...\n def addarc(self, next: NFAState, label: Optional[Text] = ...) -> None: ...\n\nclass DFAState:\n nfaset: Dict[NFAState, Any]\n isfinal: bool\n arcs: Dict[Text, DFAState]\n def __init__(self, nfaset: Dict[NFAState, Any], final: NFAState) -> None: ...\n def addarc(self, next: DFAState, label: Text) -> None: ...\n def unifystate(self, old: DFAState, new: DFAState) -> None: ...\n def __eq__(self, other: Any) -> bool: ...\n\ndef generate_grammar(filename: StrPath = ...) -> PgenGrammar: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\lib2to3\pgen2\pgen.pyi
pgen.pyi
Other
2,140
0.85
0.630435
0
node-utils
462
2024-07-25T19:04:10.548497
BSD-3-Clause
false
291e7a5308fb922171d9ab354da85446
import sys\nfrom typing import Dict, Text\n\nENDMARKER: int\nNAME: int\nNUMBER: int\nSTRING: int\nNEWLINE: int\nINDENT: int\nDEDENT: int\nLPAR: int\nRPAR: int\nLSQB: int\nRSQB: int\nCOLON: int\nCOMMA: int\nSEMI: int\nPLUS: int\nMINUS: int\nSTAR: int\nSLASH: int\nVBAR: int\nAMPER: int\nLESS: int\nGREATER: int\nEQUAL: int\nDOT: int\nPERCENT: int\nBACKQUOTE: int\nLBRACE: int\nRBRACE: int\nEQEQUAL: int\nNOTEQUAL: int\nLESSEQUAL: int\nGREATEREQUAL: int\nTILDE: int\nCIRCUMFLEX: int\nLEFTSHIFT: int\nRIGHTSHIFT: int\nDOUBLESTAR: int\nPLUSEQUAL: int\nMINEQUAL: int\nSTAREQUAL: int\nSLASHEQUAL: int\nPERCENTEQUAL: int\nAMPEREQUAL: int\nVBAREQUAL: int\nCIRCUMFLEXEQUAL: int\nLEFTSHIFTEQUAL: int\nRIGHTSHIFTEQUAL: int\nDOUBLESTAREQUAL: int\nDOUBLESLASH: int\nDOUBLESLASHEQUAL: int\nOP: int\nCOMMENT: int\nNL: int\nif sys.version_info >= (3,):\n RARROW: int\nif sys.version_info >= (3, 5):\n AT: int\n ATEQUAL: int\n AWAIT: int\n ASYNC: int\nERRORTOKEN: int\nN_TOKENS: int\nNT_OFFSET: int\ntok_name: Dict[int, Text]\n\ndef ISTERMINAL(x: int) -> bool: ...\ndef ISNONTERMINAL(x: int) -> bool: ...\ndef ISEOF(x: int) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\lib2to3\pgen2\token.pyi
token.pyi
Other
1,065
0.85
0.070423
0
awesome-app
209
2023-12-24T18:14:43.084471
MIT
false
5a80971e46ca93d4aff133134e6084c9
from lib2to3.pgen2.token import * # noqa\nfrom typing import Callable, Iterable, Iterator, List, Text, Tuple\n\n_Coord = Tuple[int, int]\n_TokenEater = Callable[[int, Text, _Coord, _Coord, Text], None]\n_TokenInfo = Tuple[int, Text, _Coord, _Coord, Text]\n\nclass TokenError(Exception): ...\nclass StopTokenizing(Exception): ...\n\ndef tokenize(readline: Callable[[], Text], tokeneater: _TokenEater = ...) -> None: ...\n\nclass Untokenizer:\n tokens: List[Text]\n prev_row: int\n prev_col: int\n def __init__(self) -> None: ...\n def add_whitespace(self, start: _Coord) -> None: ...\n def untokenize(self, iterable: Iterable[_TokenInfo]) -> Text: ...\n def compat(self, token: Tuple[int, Text], iterable: Iterable[_TokenInfo]) -> None: ...\n\ndef untokenize(iterable: Iterable[_TokenInfo]) -> Text: ...\ndef generate_tokens(readline: Callable[[], Text]) -> Iterator[_TokenInfo]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\lib2to3\pgen2\tokenize.pyi
tokenize.pyi
Other
883
0.95
0.434783
0
awesome-app
352
2023-12-24T07:39:38.653454
Apache-2.0
false
5b8cd926881152e13c40c0decc844f62
import sys\nfrom _typeshed import AnyPath, StrPath\nfrom threading import Thread\nfrom typing import IO, Any, Callable, Dict, Optional, Union\n\nif sys.version_info >= (3,):\n from configparser import RawConfigParser\nelse:\n from ConfigParser import RawConfigParser\n\nif sys.version_info >= (3, 7):\n _Path = AnyPath\nelse:\n _Path = StrPath\n\ndef dictConfig(config: Dict[str, Any]) -> None: ...\n\nif sys.version_info >= (3, 4):\n def fileConfig(\n fname: Union[_Path, IO[str], RawConfigParser],\n defaults: Optional[Dict[str, str]] = ...,\n disable_existing_loggers: bool = ...,\n ) -> None: ...\n def listen(port: int = ..., verify: Optional[Callable[[bytes], Optional[bytes]]] = ...) -> Thread: ...\n\nelse:\n def fileConfig(\n fname: Union[str, IO[str]], defaults: Optional[Dict[str, str]] = ..., disable_existing_loggers: bool = ...\n ) -> None: ...\n def listen(port: int = ...) -> Thread: ...\n\ndef stopListening() -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\logging\config.pyi
config.pyi
Other
967
0.85
0.28125
0
vue-tools
912
2025-06-13T12:46:26.347818
BSD-3-Clause
false
d7b6e2a893605a83f4bae0a98443836c
import datetime\nimport ssl\nimport sys\nfrom _typeshed import StrPath\nfrom logging import FileHandler, Handler, LogRecord\nfrom socket import SocketKind, SocketType\nfrom typing import Any, Callable, ClassVar, Dict, List, Optional, Tuple, Union\n\nif sys.version_info >= (3, 7):\n from queue import Queue, SimpleQueue\nelif sys.version_info >= (3,):\n from queue import Queue\nelse:\n from Queue import Queue\n\nDEFAULT_TCP_LOGGING_PORT: int\nDEFAULT_UDP_LOGGING_PORT: int\nDEFAULT_HTTP_LOGGING_PORT: int\nDEFAULT_SOAP_LOGGING_PORT: int\nSYSLOG_UDP_PORT: int\nSYSLOG_TCP_PORT: int\n\nclass WatchedFileHandler(FileHandler):\n dev: int\n ino: int\n def __init__(self, filename: StrPath, mode: str = ..., encoding: Optional[str] = ..., delay: bool = ...) -> None: ...\n def _statstream(self) -> None: ...\n\nif sys.version_info >= (3,):\n class BaseRotatingHandler(FileHandler):\n terminator: str\n namer: Optional[Callable[[str], str]]\n rotator: Optional[Callable[[str, str], None]]\n def __init__(self, filename: StrPath, mode: str, encoding: Optional[str] = ..., delay: bool = ...) -> None: ...\n def rotation_filename(self, default_name: str) -> None: ...\n def rotate(self, source: str, dest: str) -> None: ...\n\nif sys.version_info >= (3,):\n class RotatingFileHandler(BaseRotatingHandler):\n def __init__(\n self,\n filename: StrPath,\n mode: str = ...,\n maxBytes: int = ...,\n backupCount: int = ...,\n encoding: Optional[str] = ...,\n delay: bool = ...,\n ) -> None: ...\n def doRollover(self) -> None: ...\n\nelse:\n class RotatingFileHandler(Handler):\n def __init__(\n self,\n filename: str,\n mode: str = ...,\n maxBytes: int = ...,\n backupCount: int = ...,\n encoding: Optional[str] = ...,\n delay: bool = ...,\n ) -> None: ...\n def doRollover(self) -> None: ...\n\nif sys.version_info >= (3,):\n class TimedRotatingFileHandler(BaseRotatingHandler):\n if sys.version_info >= (3, 4):\n def __init__(\n self,\n filename: StrPath,\n when: str = ...,\n interval: int = ...,\n backupCount: int = ...,\n encoding: Optional[str] = ...,\n delay: bool = ...,\n utc: bool = ...,\n atTime: Optional[datetime.datetime] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n filename: str,\n when: str = ...,\n interval: int = ...,\n backupCount: int = ...,\n encoding: Optional[str] = ...,\n delay: bool = ...,\n utc: bool = ...,\n ) -> None: ...\n def doRollover(self) -> None: ...\n\nelse:\n class TimedRotatingFileHandler(Handler):\n def __init__(\n self,\n filename: str,\n when: str = ...,\n interval: int = ...,\n backupCount: int = ...,\n encoding: Optional[str] = ...,\n delay: bool = ...,\n utc: bool = ...,\n ) -> None: ...\n def doRollover(self) -> None: ...\n\nclass SocketHandler(Handler):\n retryStart: float\n retryFactor: float\n retryMax: float\n if sys.version_info >= (3, 4):\n def __init__(self, host: str, port: Optional[int]) -> None: ...\n else:\n def __init__(self, host: str, port: int) -> None: ...\n def makeSocket(self, timeout: float = ...) -> SocketType: ... # timeout is undocumented\n def makePickle(self, record: LogRecord) -> bytes: ...\n def send(self, s: bytes) -> None: ...\n def createSocket(self) -> None: ...\n\nclass DatagramHandler(SocketHandler):\n def makeSocket(self) -> SocketType: ... # type: ignore\n\nclass SysLogHandler(Handler):\n LOG_EMERG: int\n LOG_ALERT: int\n LOG_CRIT: int\n LOG_ERR: int\n LOG_WARNING: int\n LOG_NOTICE: int\n LOG_INFO: int\n LOG_DEBUG: int\n\n LOG_KERN: int\n LOG_USER: int\n LOG_MAIL: int\n LOG_DAEMON: int\n LOG_AUTH: int\n LOG_SYSLOG: int\n LOG_LPR: int\n LOG_NEWS: int\n LOG_UUCP: int\n LOG_CRON: int\n LOG_AUTHPRIV: int\n LOG_FTP: int\n\n if sys.version_info >= (3, 9):\n LOG_NTP: int\n LOG_SECURITY: int\n LOG_CONSOLE: int\n LOG_SOLCRON: int\n\n LOG_LOCAL0: int\n LOG_LOCAL1: int\n LOG_LOCAL2: int\n LOG_LOCAL3: int\n LOG_LOCAL4: int\n LOG_LOCAL5: int\n LOG_LOCAL6: int\n LOG_LOCAL7: int\n unixsocket: bool # undocumented\n socktype: SocketKind # undocumented\n if sys.version_info >= (3,):\n ident: str # undocumented\n facility: int # undocumented\n priority_names: ClassVar[Dict[str, int]] # undocumented\n facility_names: ClassVar[Dict[str, int]] # undocumented\n priority_map: ClassVar[Dict[str, str]] # undocumented\n def __init__(\n self, address: Union[Tuple[str, int], str] = ..., facility: int = ..., socktype: Optional[SocketKind] = ...\n ) -> None: ...\n def encodePriority(self, facility: Union[int, str], priority: Union[int, str]) -> int: ...\n def mapPriority(self, levelName: str) -> str: ...\n\nclass NTEventLogHandler(Handler):\n def __init__(self, appname: str, dllname: Optional[str] = ..., logtype: str = ...) -> None: ...\n def getEventCategory(self, record: LogRecord) -> int: ...\n # TODO correct return value?\n def getEventType(self, record: LogRecord) -> int: ...\n def getMessageID(self, record: LogRecord) -> int: ...\n\nclass SMTPHandler(Handler):\n # TODO `secure` can also be an empty tuple\n if sys.version_info >= (3,):\n def __init__(\n self,\n mailhost: Union[str, Tuple[str, int]],\n fromaddr: str,\n toaddrs: List[str],\n subject: str,\n credentials: Optional[Tuple[str, str]] = ...,\n secure: Union[Tuple[str], Tuple[str, str], None] = ...,\n timeout: float = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n mailhost: Union[str, Tuple[str, int]],\n fromaddr: str,\n toaddrs: List[str],\n subject: str,\n credentials: Optional[Tuple[str, str]] = ...,\n secure: Union[Tuple[str], Tuple[str, str], None] = ...,\n ) -> None: ...\n def getSubject(self, record: LogRecord) -> str: ...\n\nclass BufferingHandler(Handler):\n buffer: List[LogRecord]\n def __init__(self, capacity: int) -> None: ...\n def shouldFlush(self, record: LogRecord) -> bool: ...\n\nclass MemoryHandler(BufferingHandler):\n if sys.version_info >= (3, 6):\n def __init__(\n self, capacity: int, flushLevel: int = ..., target: Optional[Handler] = ..., flushOnClose: bool = ...\n ) -> None: ...\n else:\n def __init__(self, capacity: int, flushLevel: int = ..., target: Optional[Handler] = ...) -> None: ...\n def setTarget(self, target: Handler) -> None: ...\n\nclass HTTPHandler(Handler):\n if sys.version_info >= (3, 5):\n def __init__(\n self,\n host: str,\n url: str,\n method: str = ...,\n secure: bool = ...,\n credentials: Optional[Tuple[str, str]] = ...,\n context: Optional[ssl.SSLContext] = ...,\n ) -> None: ...\n elif sys.version_info >= (3,):\n def __init__(\n self, host: str, url: str, method: str = ..., secure: bool = ..., credentials: Optional[Tuple[str, str]] = ...\n ) -> None: ...\n else:\n def __init__(self, host: str, url: str, method: str = ...) -> None: ...\n def mapLogRecord(self, record: LogRecord) -> Dict[str, Any]: ...\n\nif sys.version_info >= (3,):\n class QueueHandler(Handler):\n if sys.version_info >= (3, 7):\n def __init__(self, queue: Union[SimpleQueue[Any], Queue[Any]]) -> None: ...\n else:\n def __init__(self, queue: Queue[Any]) -> None: ...\n def prepare(self, record: LogRecord) -> Any: ...\n def enqueue(self, record: LogRecord) -> None: ...\n class QueueListener:\n if sys.version_info >= (3, 7):\n def __init__(\n self, queue: Union[SimpleQueue[Any], Queue[Any]], *handlers: Handler, respect_handler_level: bool = ...\n ) -> None: ...\n elif sys.version_info >= (3, 5):\n def __init__(self, queue: Queue[Any], *handlers: Handler, respect_handler_level: bool = ...) -> None: ...\n else:\n def __init__(self, queue: Queue, *handlers: Handler) -> None: ...\n def dequeue(self, block: bool) -> LogRecord: ...\n def prepare(self, record: LogRecord) -> Any: ...\n def start(self) -> None: ...\n def stop(self) -> None: ...\n def enqueue_sentinel(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\logging\handlers.pyi
handlers.pyi
Other
8,847
0.95
0.317829
0.008403
python-kit
873
2024-07-02T15:15:23.457033
Apache-2.0
false
f500fc0afe5a79410f4e7ae24b4ee6df
import sys\nimport threading\nfrom _typeshed import StrPath\nfrom string import Template\nfrom time import struct_time\nfrom types import FrameType, TracebackType\nfrom typing import (\n IO,\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n Mapping,\n MutableMapping,\n Optional,\n Sequence,\n Text,\n Tuple,\n Union,\n overload,\n)\n\n_SysExcInfoType = Union[Tuple[type, BaseException, Optional[TracebackType]], Tuple[None, None, None]]\nif sys.version_info >= (3, 5):\n _ExcInfoType = Union[None, bool, _SysExcInfoType, BaseException]\nelse:\n _ExcInfoType = Union[None, bool, _SysExcInfoType]\n_ArgsType = Union[Tuple[Any, ...], Mapping[str, Any]]\n_FilterType = Union[Filter, Callable[[LogRecord], int]]\n_Level = Union[int, Text]\n\nraiseExceptions: bool\nlogThreads: bool\nlogMultiprocessing: bool\nlogProcesses: bool\n_srcfile: Optional[str]\n\ndef currentframe() -> FrameType: ...\n\nif sys.version_info >= (3,):\n _levelToName: Dict[int, str]\n _nameToLevel: Dict[str, int]\nelse:\n _levelNames: Dict[Union[int, str], Union[str, int]] # Union[int:str, str:int]\n\nclass Filterer(object):\n filters: List[Filter]\n def __init__(self) -> None: ...\n def addFilter(self, filter: _FilterType) -> None: ...\n def removeFilter(self, filter: _FilterType) -> None: ...\n def filter(self, record: LogRecord) -> bool: ...\n\nclass Logger(Filterer):\n name: str\n level: int\n parent: Union[Logger, PlaceHolder]\n propagate: bool\n handlers: List[Handler]\n disabled: int\n def __init__(self, name: str, level: _Level = ...) -> None: ...\n def setLevel(self, level: _Level) -> None: ...\n def isEnabledFor(self, level: int) -> bool: ...\n def getEffectiveLevel(self) -> int: ...\n def getChild(self, suffix: str) -> Logger: ...\n if sys.version_info >= (3, 8):\n def debug(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def info(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warning(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warn(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def error(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def exception(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def critical(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def log(\n self,\n level: int,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def _log(\n self,\n level: int,\n msg: Any,\n args: _ArgsType,\n exc_info: Optional[_ExcInfoType] = ...,\n extra: Optional[Dict[str, Any]] = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n ) -> None: ... # undocumented\n elif sys.version_info >= (3,):\n def debug(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def info(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warning(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warn(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def error(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def critical(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n fatal = critical\n def log(\n self,\n level: int,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def exception(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def _log(\n self,\n level: int,\n msg: Any,\n args: _ArgsType,\n exc_info: Optional[_ExcInfoType] = ...,\n extra: Optional[Dict[str, Any]] = ...,\n stack_info: bool = ...,\n ) -> None: ... # undocumented\n else:\n def debug(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def info(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def warning(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n warn = warning\n def error(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def critical(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n fatal = critical\n def log(\n self,\n level: int,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def exception(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def _log(\n self,\n level: int,\n msg: Any,\n args: _ArgsType,\n exc_info: Optional[_ExcInfoType] = ...,\n extra: Optional[Dict[str, Any]] = ...,\n ) -> None: ... # undocumented\n def filter(self, record: LogRecord) -> bool: ...\n def addHandler(self, hdlr: Handler) -> None: ...\n def removeHandler(self, hdlr: Handler) -> None: ...\n if sys.version_info >= (3, 8):\n def findCaller(self, stack_info: bool = ..., stacklevel: int = ...) -> Tuple[str, int, str, Optional[str]]: ...\n elif sys.version_info >= (3,):\n def findCaller(self, stack_info: bool = ...) -> Tuple[str, int, str, Optional[str]]: ...\n else:\n def findCaller(self) -> Tuple[str, int, str]: ...\n def handle(self, record: LogRecord) -> None: ...\n if sys.version_info >= (3,):\n def makeRecord(\n self,\n name: str,\n level: int,\n fn: str,\n lno: int,\n msg: Any,\n args: _ArgsType,\n exc_info: Optional[_SysExcInfoType],\n func: Optional[str] = ...,\n extra: Optional[Mapping[str, Any]] = ...,\n sinfo: Optional[str] = ...,\n ) -> LogRecord: ...\n else:\n def makeRecord(\n self,\n name: str,\n level: int,\n fn: str,\n lno: int,\n msg: Any,\n args: _ArgsType,\n exc_info: Optional[_SysExcInfoType],\n func: Optional[str] = ...,\n extra: Optional[Mapping[str, Any]] = ...,\n ) -> LogRecord: ...\n if sys.version_info >= (3,):\n def hasHandlers(self) -> bool: ...\n\nCRITICAL: int\nFATAL: int\nERROR: int\nWARNING: int\nWARN: int\nINFO: int\nDEBUG: int\nNOTSET: int\n\nclass Handler(Filterer):\n level: int # undocumented\n formatter: Optional[Formatter] # undocumented\n lock: Optional[threading.Lock] # undocumented\n name: Optional[str] # undocumented\n def __init__(self, level: _Level = ...) -> None: ...\n def createLock(self) -> None: ...\n def acquire(self) -> None: ...\n def release(self) -> None: ...\n def setLevel(self, level: _Level) -> None: ...\n def setFormatter(self, fmt: Formatter) -> None: ...\n def filter(self, record: LogRecord) -> bool: ...\n def flush(self) -> None: ...\n def close(self) -> None: ...\n def handle(self, record: LogRecord) -> None: ...\n def handleError(self, record: LogRecord) -> None: ...\n def format(self, record: LogRecord) -> str: ...\n def emit(self, record: LogRecord) -> None: ...\n\nclass Formatter:\n converter: Callable[[Optional[float]], struct_time]\n _fmt: Optional[str]\n datefmt: Optional[str]\n if sys.version_info >= (3,):\n _style: PercentStyle\n default_time_format: str\n default_msec_format: str\n\n if sys.version_info >= (3, 8):\n def __init__(\n self, fmt: Optional[str] = ..., datefmt: Optional[str] = ..., style: str = ..., validate: bool = ...\n ) -> None: ...\n elif sys.version_info >= (3,):\n def __init__(self, fmt: Optional[str] = ..., datefmt: Optional[str] = ..., style: str = ...) -> None: ...\n else:\n def __init__(self, fmt: Optional[str] = ..., datefmt: Optional[str] = ...) -> None: ...\n def format(self, record: LogRecord) -> str: ...\n def formatTime(self, record: LogRecord, datefmt: Optional[str] = ...) -> str: ...\n def formatException(self, ei: _SysExcInfoType) -> str: ...\n if sys.version_info >= (3,):\n def formatMessage(self, record: LogRecord) -> str: ... # undocumented\n def formatStack(self, stack_info: str) -> str: ...\n\nclass Filter:\n def __init__(self, name: str = ...) -> None: ...\n def filter(self, record: LogRecord) -> bool: ...\n\nclass LogRecord:\n args: _ArgsType\n asctime: str\n created: int\n exc_info: Optional[_SysExcInfoType]\n exc_text: Optional[str]\n filename: str\n funcName: str\n levelname: str\n levelno: int\n lineno: int\n module: str\n msecs: int\n message: str\n msg: str\n name: str\n pathname: str\n process: int\n processName: str\n relativeCreated: int\n if sys.version_info >= (3,):\n stack_info: Optional[str]\n thread: int\n threadName: str\n if sys.version_info >= (3,):\n def __init__(\n self,\n name: str,\n level: int,\n pathname: str,\n lineno: int,\n msg: Any,\n args: _ArgsType,\n exc_info: Optional[_SysExcInfoType],\n func: Optional[str] = ...,\n sinfo: Optional[str] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n name: str,\n level: int,\n pathname: str,\n lineno: int,\n msg: Any,\n args: _ArgsType,\n exc_info: Optional[_SysExcInfoType],\n func: Optional[str] = ...,\n ) -> None: ...\n def getMessage(self) -> str: ...\n\nclass LoggerAdapter:\n logger: Logger\n extra: Mapping[str, Any]\n def __init__(self, logger: Logger, extra: Mapping[str, Any]) -> None: ...\n def process(self, msg: Any, kwargs: MutableMapping[str, Any]) -> Tuple[Any, MutableMapping[str, Any]]: ...\n if sys.version_info >= (3, 8):\n def debug(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def info(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warning(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warn(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def error(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def exception(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def critical(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def log(\n self,\n level: int,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n elif sys.version_info >= (3,):\n def debug(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def info(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warning(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warn(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def error(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def exception(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def critical(\n self,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def log(\n self,\n level: int,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n else:\n def debug(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def info(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def warning(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def error(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def exception(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def critical(\n self, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def log(\n self,\n level: int,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def isEnabledFor(self, level: int) -> bool: ...\n if sys.version_info >= (3,):\n def getEffectiveLevel(self) -> int: ...\n def setLevel(self, level: Union[int, str]) -> None: ...\n def hasHandlers(self) -> bool: ...\n if sys.version_info >= (3, 6):\n def _log(\n self,\n level: int,\n msg: Any,\n args: _ArgsType,\n exc_info: Optional[_ExcInfoType] = ...,\n extra: Optional[Dict[str, Any]] = ...,\n stack_info: bool = ...,\n ) -> None: ... # undocumented\n\nif sys.version_info >= (3,):\n def getLogger(name: Optional[str] = ...) -> Logger: ...\n\nelse:\n @overload\n def getLogger() -> Logger: ...\n @overload\n def getLogger(name: Union[Text, str]) -> Logger: ...\n\ndef getLoggerClass() -> type: ...\n\nif sys.version_info >= (3,):\n def getLogRecordFactory() -> Callable[..., LogRecord]: ...\n\nif sys.version_info >= (3, 8):\n def debug(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def info(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warning(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warn(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def error(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def critical(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def exception(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def log(\n level: int,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n stacklevel: int = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n\nelif sys.version_info >= (3,):\n def debug(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def info(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warning(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def warn(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def error(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def critical(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def exception(\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n def log(\n level: int,\n msg: Any,\n *args: Any,\n exc_info: _ExcInfoType = ...,\n stack_info: bool = ...,\n extra: Optional[Dict[str, Any]] = ...,\n **kwargs: Any,\n ) -> None: ...\n\nelse:\n def debug(\n msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def info(\n msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def warning(\n msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n warn = warning\n def error(\n msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def critical(\n msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def exception(\n msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n def log(\n level: int, msg: Any, *args: Any, exc_info: _ExcInfoType = ..., extra: Optional[Dict[str, Any]] = ..., **kwargs: Any\n ) -> None: ...\n\nfatal = critical\n\nif sys.version_info >= (3, 7):\n def disable(level: int = ...) -> None: ...\n\nelse:\n def disable(level: int) -> None: ...\n\ndef addLevelName(level: int, levelName: str) -> None: ...\ndef getLevelName(level: Union[int, str]) -> Any: ...\ndef makeLogRecord(dict: Mapping[str, Any]) -> LogRecord: ...\n\nif sys.version_info >= (3, 8):\n def basicConfig(\n *,\n filename: Optional[StrPath] = ...,\n filemode: str = ...,\n format: str = ...,\n datefmt: Optional[str] = ...,\n style: str = ...,\n level: Optional[_Level] = ...,\n stream: Optional[IO[str]] = ...,\n handlers: Optional[Iterable[Handler]] = ...,\n force: bool = ...,\n ) -> None: ...\n\nelif sys.version_info >= (3,):\n def basicConfig(\n *,\n filename: Optional[StrPath] = ...,\n filemode: str = ...,\n format: str = ...,\n datefmt: Optional[str] = ...,\n style: str = ...,\n level: Optional[_Level] = ...,\n stream: Optional[IO[str]] = ...,\n handlers: Optional[Iterable[Handler]] = ...,\n ) -> None: ...\n\nelse:\n @overload\n def basicConfig() -> None: ...\n @overload\n def basicConfig(\n *,\n filename: Optional[str] = ...,\n filemode: str = ...,\n format: str = ...,\n datefmt: Optional[str] = ...,\n level: Optional[_Level] = ...,\n stream: IO[str] = ...,\n ) -> None: ...\n\ndef shutdown(handlerList: Sequence[Any] = ...) -> None: ... # handlerList is undocumented\ndef setLoggerClass(klass: type) -> None: ...\ndef captureWarnings(capture: bool) -> None: ...\n\nif sys.version_info >= (3,):\n def setLogRecordFactory(factory: Callable[..., LogRecord]) -> None: ...\n\nif sys.version_info >= (3,):\n lastResort: Optional[StreamHandler]\n\nclass StreamHandler(Handler):\n stream: IO[str] # undocumented\n if sys.version_info >= (3, 2):\n terminator: str\n def __init__(self, stream: Optional[IO[str]] = ...) -> None: ...\n if sys.version_info >= (3, 7):\n def setStream(self, stream: IO[str]) -> Optional[IO[str]]: ...\n\nclass FileHandler(StreamHandler):\n baseFilename: str # undocumented\n mode: str # undocumented\n encoding: Optional[str] # undocumented\n delay: bool # undocumented\n def __init__(self, filename: StrPath, mode: str = ..., encoding: Optional[str] = ..., delay: bool = ...) -> None: ...\n def _open(self) -> IO[Any]: ...\n\nclass NullHandler(Handler): ...\n\nclass PlaceHolder:\n def __init__(self, alogger: Logger) -> None: ...\n def append(self, alogger: Logger) -> None: ...\n\n# Below aren't in module docs but still visible\n\nclass RootLogger(Logger):\n def __init__(self, level: int) -> None: ...\n\nroot: RootLogger\n\nif sys.version_info >= (3,):\n class PercentStyle(object):\n default_format: str\n asctime_format: str\n asctime_search: str\n _fmt: str\n def __init__(self, fmt: str) -> None: ...\n def usesTime(self) -> bool: ...\n def format(self, record: Any) -> str: ...\n class StrFormatStyle(PercentStyle): ...\n class StringTemplateStyle(PercentStyle):\n _tpl: Template\n _STYLES: Dict[str, Tuple[PercentStyle, str]]\n\nBASIC_FORMAT: str\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\logging\__init__.pyi
__init__.pyi
Other
28,358
0.95
0.20915
0.118316
react-lib
970
2024-07-13T08:29:28.657582
GPL-3.0
false
fe26c50a8649e5440577c9414ca96640
import sys\nfrom typing import List, Optional, Tuple\n\nif sys.platform == "win32":\n from . import Table\n\n _Validation: Table\n ActionText: Table\n AdminExecuteSequence: Table\n Condition: Table\n AdminUISequence: Table\n AdvtExecuteSequence: Table\n AdvtUISequence: Table\n AppId: Table\n AppSearch: Table\n Property: Table\n BBControl: Table\n Billboard: Table\n Feature: Table\n Binary: Table\n BindImage: Table\n File: Table\n CCPSearch: Table\n CheckBox: Table\n Class: Table\n Component: Table\n Icon: Table\n ProgId: Table\n ComboBox: Table\n CompLocator: Table\n Complus: Table\n Directory: Table\n Control: Table\n Dialog: Table\n ControlCondition: Table\n ControlEvent: Table\n CreateFolder: Table\n CustomAction: Table\n DrLocator: Table\n DuplicateFile: Table\n Environment: Table\n Error: Table\n EventMapping: Table\n Extension: Table\n MIME: Table\n FeatureComponents: Table\n FileSFPCatalog: Table\n SFPCatalog: Table\n Font: Table\n IniFile: Table\n IniLocator: Table\n InstallExecuteSequence: Table\n InstallUISequence: Table\n IsolatedComponent: Table\n LaunchCondition: Table\n ListBox: Table\n ListView: Table\n LockPermissions: Table\n Media: Table\n MoveFile: Table\n MsiAssembly: Table\n MsiAssemblyName: Table\n MsiDigitalCertificate: Table\n MsiDigitalSignature: Table\n MsiFileHash: Table\n MsiPatchHeaders: Table\n ODBCAttribute: Table\n ODBCDriver: Table\n ODBCDataSource: Table\n ODBCSourceAttribute: Table\n ODBCTranslator: Table\n Patch: Table\n PatchPackage: Table\n PublishComponent: Table\n RadioButton: Table\n Registry: Table\n RegLocator: Table\n RemoveFile: Table\n RemoveIniFile: Table\n RemoveRegistry: Table\n ReserveCost: Table\n SelfReg: Table\n ServiceControl: Table\n ServiceInstall: Table\n Shortcut: Table\n Signature: Table\n TextStyle: Table\n TypeLib: Table\n UIText: Table\n Upgrade: Table\n Verb: Table\n\n tables: List[Table]\n\n _Validation_records: List[\n Tuple[str, str, str, Optional[int], Optional[int], Optional[str], Optional[int], Optional[str], Optional[str], str]\n ]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\msilib\schema.pyi
schema.pyi
Other
2,214
0.85
0.010309
0
react-lib
427
2025-01-31T12:21:46.141674
GPL-3.0
false
2d04d6fe3e072459dc9e86d936e48648
import sys\nfrom typing import List, Optional, Tuple\n\nif sys.platform == "win32":\n\n _SequenceType = List[Tuple[str, Optional[str], int]]\n\n AdminExecuteSequence: _SequenceType\n AdminUISequence: _SequenceType\n AdvtExecuteSequence: _SequenceType\n InstallExecuteSequence: _SequenceType\n InstallUISequence: _SequenceType\n\n tables: List[str]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\msilib\sequence.pyi
sequence.pyi
Other
356
0.85
0.071429
0
vue-tools
974
2025-01-26T12:32:43.898558
MIT
false
3707f190b9549e5de233a053fec4032a
import sys\nfrom typing import List, Optional, Tuple\n\nif sys.platform == "win32":\n\n ActionText: List[Tuple[str, str, Optional[str]]]\n UIText: List[Tuple[str, Optional[str]]]\n\n tables: List[str]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\msilib\text.pyi
text.pyi
Other
202
0.85
0.111111
0
vue-tools
893
2025-05-19T11:05:02.804910
MIT
false
0f4fcd480fe6f1008e386ac9100e156d
import sys\nfrom types import ModuleType\nfrom typing import Any, Container, Dict, Iterable, List, Optional, Sequence, Set, Tuple, Type, Union\nfrom typing_extensions import Literal\n\nif sys.platform == "win32":\n from _msi import _Database\n\n AMD64: bool\n if sys.version_info < (3, 7):\n Itanium: bool\n Win64: bool\n\n datasizemask: Literal[0x00FF]\n type_valid: Literal[0x0100]\n type_localizable: Literal[0x0200]\n typemask: Literal[0x0C00]\n type_long: Literal[0x0000]\n type_short: Literal[0x0400]\n type_string: Literal[0x0C00]\n type_binary: Literal[0x0800]\n type_nullable: Literal[0x1000]\n type_key: Literal[0x2000]\n knownbits: Literal[0x3FFF]\n class Table:\n\n name: str\n fields: List[Tuple[int, str, int]]\n def __init__(self, name: str) -> None: ...\n def add_field(self, index: int, name: str, type: int) -> None: ...\n def sql(self) -> str: ...\n def create(self, db: _Database) -> None: ...\n class _Unspecified: ...\n def change_sequence(\n seq: Sequence[Tuple[str, Optional[str], int]],\n action: str,\n seqno: Union[int, Type[_Unspecified]] = ...,\n cond: Union[str, Type[_Unspecified]] = ...,\n ) -> None: ...\n def add_data(db: _Database, table: str, values: Iterable[Tuple[Any, ...]]) -> None: ...\n def add_stream(db: _Database, name: str, path: str) -> None: ...\n def init_database(\n name: str, schema: ModuleType, ProductName: str, ProductCode: str, ProductVersion: str, Manufacturer: str\n ) -> _Database: ...\n def add_tables(db: _Database, module: ModuleType) -> None: ...\n def make_id(str: str) -> str: ...\n def gen_uuid() -> str: ...\n class CAB:\n\n name: str\n files: List[Tuple[str, str]]\n filenames: Set[str]\n index: int\n def __init__(self, name: str) -> None: ...\n def gen_id(self, file: str) -> str: ...\n def append(self, full: str, file: str, logical: str) -> Tuple[int, str]: ...\n def commit(self, db: _Database) -> None: ...\n _directories: Set[str]\n class Directory:\n\n db: _Database\n cab: CAB\n basedir: str\n physical: str\n logical: str\n component: Optional[str]\n short_names: Set[str]\n ids: Set[str]\n keyfiles: Dict[str, str]\n componentflags: Optional[int]\n absolute: str\n def __init__(\n self,\n db: _Database,\n cab: CAB,\n basedir: str,\n physical: str,\n _logical: str,\n default: str,\n componentflags: Optional[int] = ...,\n ) -> None: ...\n def start_component(\n self,\n component: Optional[str] = ...,\n feature: Optional[Feature] = ...,\n flags: Optional[int] = ...,\n keyfile: Optional[str] = ...,\n uuid: Optional[str] = ...,\n ) -> None: ...\n def make_short(self, file: str) -> str: ...\n def add_file(\n self, file: str, src: Optional[str] = ..., version: Optional[str] = ..., language: Optional[str] = ...\n ) -> str: ...\n def glob(self, pattern: str, exclude: Optional[Container[str]] = ...) -> List[str]: ...\n def remove_pyc(self) -> None: ...\n class Binary:\n\n name: str\n def __init__(self, fname: str) -> None: ...\n def __repr__(self) -> str: ...\n class Feature:\n\n id: str\n def __init__(\n self,\n db: _Database,\n id: str,\n title: str,\n desc: str,\n display: int,\n level: int = ...,\n parent: Optional[Feature] = ...,\n directory: Optional[str] = ...,\n attributes: int = ...,\n ) -> None: ...\n def set_current(self) -> None: ...\n class Control:\n\n dlg: Dialog\n name: str\n def __init__(self, dlg: Dialog, name: str) -> None: ...\n def event(self, event: str, argument: str, condition: str = ..., ordering: Optional[int] = ...) -> None: ...\n def mapping(self, event: str, attribute: str) -> None: ...\n def condition(self, action: str, condition: str) -> None: ...\n class RadioButtonGroup(Control):\n\n property: str\n index: int\n def __init__(self, dlg: Dialog, name: str, property: str) -> None: ...\n def add(self, name: str, x: int, y: int, w: int, h: int, text: str, value: Optional[str] = ...) -> None: ...\n class Dialog:\n\n db: _Database\n name: str\n x: int\n y: int\n w: int\n h: int\n def __init__(\n self,\n db: _Database,\n name: str,\n x: int,\n y: int,\n w: int,\n h: int,\n attr: int,\n title: str,\n first: str,\n default: str,\n cancel: str,\n ) -> None: ...\n def control(\n self,\n name: str,\n type: str,\n x: int,\n y: int,\n w: int,\n h: int,\n attr: int,\n prop: Optional[str],\n text: Optional[str],\n next: Optional[str],\n help: Optional[str],\n ) -> Control: ...\n def text(self, name: str, x: int, y: int, w: int, h: int, attr: int, text: Optional[str]) -> Control: ...\n def bitmap(self, name: str, x: int, y: int, w: int, h: int, text: Optional[str]) -> Control: ...\n def line(self, name: str, x: int, y: int, w: int, h: int) -> Control: ...\n def pushbutton(\n self, name: str, x: int, y: int, w: int, h: int, attr: int, text: Optional[str], next: Optional[str]\n ) -> Control: ...\n def radiogroup(\n self,\n name: str,\n x: int,\n y: int,\n w: int,\n h: int,\n attr: int,\n prop: Optional[str],\n text: Optional[str],\n next: Optional[str],\n ) -> RadioButtonGroup: ...\n def checkbox(\n self,\n name: str,\n x: int,\n y: int,\n w: int,\n h: int,\n attr: int,\n prop: Optional[str],\n text: Optional[str],\n next: Optional[str],\n ) -> Control: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\msilib\__init__.pyi
__init__.pyi
Other
6,306
0.85
0.255102
0
react-lib
884
2025-05-15T22:15:19.615825
GPL-3.0
false
70b755feaa6ae8ab9a4fb53cee5e69ca
from typing import Dict\n\ntopics: Dict[str, str]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pydoc_data\topics.pyi
topics.pyi
Other
48
0.65
0
0
react-lib
716
2023-12-06T23:45:45.431118
MIT
false
7c1bf20fbf20645c93b1fbeb8d9f0517
import sys\nfrom typing import Dict\n\nif sys.version_info >= (3, 2):\n codes: Dict[str, int]\n messages: Dict[int, str]\n\nXML_ERROR_ABORTED: str\nXML_ERROR_ASYNC_ENTITY: str\nXML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF: str\nXML_ERROR_BAD_CHAR_REF: str\nXML_ERROR_BINARY_ENTITY_REF: str\nXML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING: str\nXML_ERROR_DUPLICATE_ATTRIBUTE: str\nXML_ERROR_ENTITY_DECLARED_IN_PE: str\nXML_ERROR_EXTERNAL_ENTITY_HANDLING: str\nXML_ERROR_FEATURE_REQUIRES_XML_DTD: str\nXML_ERROR_FINISHED: str\nXML_ERROR_INCOMPLETE_PE: str\nXML_ERROR_INCORRECT_ENCODING: str\nXML_ERROR_INVALID_TOKEN: str\nXML_ERROR_JUNK_AFTER_DOC_ELEMENT: str\nXML_ERROR_MISPLACED_XML_PI: str\nXML_ERROR_NOT_STANDALONE: str\nXML_ERROR_NOT_SUSPENDED: str\nXML_ERROR_NO_ELEMENTS: str\nXML_ERROR_NO_MEMORY: str\nXML_ERROR_PARAM_ENTITY_REF: str\nXML_ERROR_PARTIAL_CHAR: str\nXML_ERROR_PUBLICID: str\nXML_ERROR_RECURSIVE_ENTITY_REF: str\nXML_ERROR_SUSPENDED: str\nXML_ERROR_SUSPEND_PE: str\nXML_ERROR_SYNTAX: str\nXML_ERROR_TAG_MISMATCH: str\nXML_ERROR_TEXT_DECL: str\nXML_ERROR_UNBOUND_PREFIX: str\nXML_ERROR_UNCLOSED_CDATA_SECTION: str\nXML_ERROR_UNCLOSED_TOKEN: str\nXML_ERROR_UNDECLARING_PREFIX: str\nXML_ERROR_UNDEFINED_ENTITY: str\nXML_ERROR_UNEXPECTED_STATE: str\nXML_ERROR_UNKNOWN_ENCODING: str\nXML_ERROR_XML_DECL: str\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pyexpat\errors.pyi
errors.pyi
Other
1,275
0.85
0.022727
0
react-lib
496
2025-02-03T04:17:10.751332
GPL-3.0
false
df8bcaac28b82ca1fa0bac4a25776d23
XML_CTYPE_ANY: int\nXML_CTYPE_CHOICE: int\nXML_CTYPE_EMPTY: int\nXML_CTYPE_MIXED: int\nXML_CTYPE_NAME: int\nXML_CTYPE_SEQ: int\n\nXML_CQUANT_NONE: int\nXML_CQUANT_OPT: int\nXML_CQUANT_PLUS: int\nXML_CQUANT_REP: int\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pyexpat\model.pyi
model.pyi
Other
205
0.7
0
0
awesome-app
483
2024-03-28T11:58:15.122053
Apache-2.0
false
d617f4dd67bb631715384779b91351fc
import pyexpat.errors as errors\nimport pyexpat.model as model\nfrom _typeshed import SupportsRead\nfrom typing import Any, Callable, Dict, List, Optional, Text, Tuple, Union\n\nEXPAT_VERSION: str # undocumented\nversion_info: Tuple[int, int, int] # undocumented\nnative_encoding: str # undocumented\nfeatures: List[Tuple[str, int]] # undocumented\n\nclass ExpatError(Exception):\n code: int\n lineno: int\n offset: int\n\nerror = ExpatError\n\nXML_PARAM_ENTITY_PARSING_NEVER: int\nXML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE: int\nXML_PARAM_ENTITY_PARSING_ALWAYS: int\n\n_Model = Tuple[int, int, Optional[str], tuple]\n\nclass XMLParserType(object):\n def Parse(self, __data: Union[Text, bytes], __isfinal: bool = ...) -> int: ...\n def ParseFile(self, __file: SupportsRead[bytes]) -> int: ...\n def SetBase(self, __base: Text) -> None: ...\n def GetBase(self) -> Optional[str]: ...\n def GetInputContext(self) -> Optional[bytes]: ...\n def ExternalEntityParserCreate(self, __context: Optional[Text], __encoding: Text = ...) -> XMLParserType: ...\n def SetParamEntityParsing(self, __flag: int) -> int: ...\n def UseForeignDTD(self, __flag: bool = ...) -> None: ...\n buffer_size: int\n buffer_text: bool\n buffer_used: int\n namespace_prefixes: bool # undocumented\n ordered_attributes: bool\n specified_attributes: bool\n ErrorByteIndex: int\n ErrorCode: int\n ErrorColumnNumber: int\n ErrorLineNumber: int\n CurrentByteIndex: int\n CurrentColumnNumber: int\n CurrentLineNumber: int\n XmlDeclHandler: Optional[Callable[[str, Optional[str], int], Any]]\n StartDoctypeDeclHandler: Optional[Callable[[str, Optional[str], Optional[str], bool], Any]]\n EndDoctypeDeclHandler: Optional[Callable[[], Any]]\n ElementDeclHandler: Optional[Callable[[str, _Model], Any]]\n AttlistDeclHandler: Optional[Callable[[str, str, str, Optional[str], bool], Any]]\n StartElementHandler: Optional[\n Union[\n Callable[[str, Dict[str, str]], Any],\n Callable[[str, List[str]], Any],\n Callable[[str, Union[Dict[str, str]], List[str]], Any],\n ]\n ]\n EndElementHandler: Optional[Callable[[str], Any]]\n ProcessingInstructionHandler: Optional[Callable[[str, str], Any]]\n CharacterDataHandler: Optional[Callable[[str], Any]]\n UnparsedEntityDeclHandler: Optional[Callable[[str, Optional[str], str, Optional[str], str], Any]]\n EntityDeclHandler: Optional[Callable[[str, bool, Optional[str], Optional[str], str, Optional[str], Optional[str]], Any]]\n NotationDeclHandler: Optional[Callable[[str, Optional[str], str, Optional[str]], Any]]\n StartNamespaceDeclHandler: Optional[Callable[[str, str], Any]]\n EndNamespaceDeclHandler: Optional[Callable[[str], Any]]\n CommentHandler: Optional[Callable[[str], Any]]\n StartCdataSectionHandler: Optional[Callable[[], Any]]\n EndCdataSectionHandler: Optional[Callable[[], Any]]\n DefaultHandler: Optional[Callable[[str], Any]]\n DefaultHandlerExpand: Optional[Callable[[str], Any]]\n NotStandaloneHandler: Optional[Callable[[], int]]\n ExternalEntityRefHandler: Optional[Callable[[str, Optional[str], Optional[str], Optional[str]], int]]\n\ndef ErrorString(__code: int) -> str: ...\n\n# intern is undocumented\ndef ParserCreate(\n encoding: Optional[Text] = ..., namespace_separator: Optional[Text] = ..., intern: Optional[Dict[str, Any]] = ...\n) -> XMLParserType: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pyexpat\__init__.pyi
__init__.pyi
Other
3,404
0.95
0.151899
0.014085
awesome-app
420
2025-04-09T00:15:03.020336
Apache-2.0
false
2b593b881d3037699b9aa408d26965b3
import os\nimport sys\nfrom datetime import date, datetime, time\nfrom typing import Any, Callable, Generator, Iterable, Iterator, List, Optional, Text, Tuple, Type, TypeVar, Union\n\n_T = TypeVar("_T")\n\nparamstyle: str\nthreadsafety: int\napilevel: str\nDate = date\nTime = time\nTimestamp = datetime\n\ndef DateFromTicks(ticks: float) -> Date: ...\ndef TimeFromTicks(ticks: float) -> Time: ...\ndef TimestampFromTicks(ticks: float) -> Timestamp: ...\n\nversion_info: str\nsqlite_version_info: Tuple[int, int, int]\nif sys.version_info >= (3,):\n Binary = memoryview\nelse:\n Binary = buffer\n\n# The remaining definitions are imported from _sqlite3.\n\nPARSE_COLNAMES: int\nPARSE_DECLTYPES: int\nSQLITE_ALTER_TABLE: int\nSQLITE_ANALYZE: int\nSQLITE_ATTACH: int\nSQLITE_CREATE_INDEX: int\nSQLITE_CREATE_TABLE: int\nSQLITE_CREATE_TEMP_INDEX: int\nSQLITE_CREATE_TEMP_TABLE: int\nSQLITE_CREATE_TEMP_TRIGGER: int\nSQLITE_CREATE_TEMP_VIEW: int\nSQLITE_CREATE_TRIGGER: int\nSQLITE_CREATE_VIEW: int\nSQLITE_DELETE: int\nSQLITE_DENY: int\nSQLITE_DETACH: int\nSQLITE_DROP_INDEX: int\nSQLITE_DROP_TABLE: int\nSQLITE_DROP_TEMP_INDEX: int\nSQLITE_DROP_TEMP_TABLE: int\nSQLITE_DROP_TEMP_TRIGGER: int\nSQLITE_DROP_TEMP_VIEW: int\nSQLITE_DROP_TRIGGER: int\nSQLITE_DROP_VIEW: int\nSQLITE_IGNORE: int\nSQLITE_INSERT: int\nSQLITE_OK: int\nSQLITE_PRAGMA: int\nSQLITE_READ: int\nSQLITE_REINDEX: int\nSQLITE_SELECT: int\nSQLITE_TRANSACTION: int\nSQLITE_UPDATE: int\nadapters: Any\nconverters: Any\nsqlite_version: str\nversion: str\n\n# TODO: adapt needs to get probed\ndef adapt(obj, protocol, alternate): ...\ndef complete_statement(sql: str) -> bool: ...\n\nif sys.version_info >= (3, 7):\n def connect(\n database: Union[bytes, Text, os.PathLike[Text]],\n timeout: float = ...,\n detect_types: int = ...,\n isolation_level: Optional[str] = ...,\n check_same_thread: bool = ...,\n factory: Optional[Type[Connection]] = ...,\n cached_statements: int = ...,\n uri: bool = ...,\n ) -> Connection: ...\n\nelif sys.version_info >= (3, 4):\n def connect(\n database: Union[bytes, Text],\n timeout: float = ...,\n detect_types: int = ...,\n isolation_level: Optional[str] = ...,\n check_same_thread: bool = ...,\n factory: Optional[Type[Connection]] = ...,\n cached_statements: int = ...,\n uri: bool = ...,\n ) -> Connection: ...\n\nelse:\n def connect(\n database: Union[bytes, Text],\n timeout: float = ...,\n detect_types: int = ...,\n isolation_level: Optional[str] = ...,\n check_same_thread: bool = ...,\n factory: Optional[Type[Connection]] = ...,\n cached_statements: int = ...,\n ) -> Connection: ...\n\ndef enable_callback_tracebacks(flag: bool) -> None: ...\ndef enable_shared_cache(do_enable: int) -> None: ...\ndef register_adapter(type: Type[_T], callable: Callable[[_T], Union[int, float, str, bytes]]) -> None: ...\ndef register_converter(typename: str, callable: Callable[[bytes], Any]) -> None: ...\n\nif sys.version_info < (3, 8):\n class Cache(object):\n def __init__(self, *args, **kwargs) -> None: ...\n def display(self, *args, **kwargs) -> None: ...\n def get(self, *args, **kwargs) -> None: ...\n\nclass Connection(object):\n DataError: Any\n DatabaseError: Any\n Error: Any\n IntegrityError: Any\n InterfaceError: Any\n InternalError: Any\n NotSupportedError: Any\n OperationalError: Any\n ProgrammingError: Any\n Warning: Any\n in_transaction: Any\n isolation_level: Any\n row_factory: Any\n text_factory: Any\n total_changes: Any\n def __init__(self, *args: Any, **kwargs: Any) -> None: ...\n def close(self) -> None: ...\n def commit(self) -> None: ...\n def create_aggregate(self, name: str, num_params: int, aggregate_class: type) -> None: ...\n def create_collation(self, name: str, callable: Any) -> None: ...\n if sys.version_info >= (3, 8):\n def create_function(self, name: str, num_params: int, func: Any, *, deterministic: bool = ...) -> None: ...\n else:\n def create_function(self, name: str, num_params: int, func: Any) -> None: ...\n def cursor(self, cursorClass: Optional[type] = ...) -> Cursor: ...\n def execute(self, sql: str, parameters: Iterable[Any] = ...) -> Cursor: ...\n # TODO: please check in executemany() if seq_of_parameters type is possible like this\n def executemany(self, sql: str, seq_of_parameters: Iterable[Iterable[Any]]) -> Cursor: ...\n def executescript(self, sql_script: Union[bytes, Text]) -> Cursor: ...\n def interrupt(self, *args: Any, **kwargs: Any) -> None: ...\n def iterdump(self, *args: Any, **kwargs: Any) -> Generator[str, None, None]: ...\n def rollback(self, *args: Any, **kwargs: Any) -> None: ...\n # TODO: set_authorizer(authorzer_callback)\n # see https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.set_authorizer\n # returns [SQLITE_OK, SQLITE_DENY, SQLITE_IGNORE] so perhaps int\n def set_authorizer(self, *args: Any, **kwargs: Any) -> None: ...\n # set_progress_handler(handler, n) -> see https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.set_progress_handler\n def set_progress_handler(self, *args: Any, **kwargs: Any) -> None: ...\n def set_trace_callback(self, *args: Any, **kwargs: Any) -> None: ...\n # enable_load_extension and load_extension is not available on python distributions compiled\n # without sqlite3 loadable extension support. see footnotes https://docs.python.org/3/library/sqlite3.html#f1\n def enable_load_extension(self, enabled: bool) -> None: ...\n def load_extension(self, path: str) -> None: ...\n if sys.version_info >= (3, 7):\n def backup(\n self,\n target: Connection,\n *,\n pages: int = ...,\n progress: Optional[Callable[[int, int, int], object]] = ...,\n name: str = ...,\n sleep: float = ...,\n ) -> None: ...\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n def __enter__(self) -> Connection: ...\n def __exit__(self, t: Optional[type] = ..., exc: Optional[BaseException] = ..., tb: Optional[Any] = ...) -> None: ...\n\nclass Cursor(Iterator[Any]):\n arraysize: Any\n connection: Any\n description: Any\n lastrowid: Any\n row_factory: Any\n rowcount: Any\n # TODO: Cursor class accepts exactly 1 argument\n # required type is sqlite3.Connection (which is imported as _Connection)\n # however, the name of the __init__ variable is unknown\n def __init__(self, *args: Any, **kwargs: Any) -> None: ...\n def close(self, *args: Any, **kwargs: Any) -> None: ...\n def execute(self, sql: str, parameters: Iterable[Any] = ...) -> Cursor: ...\n def executemany(self, sql: str, seq_of_parameters: Iterable[Iterable[Any]]) -> Cursor: ...\n def executescript(self, sql_script: Union[bytes, Text]) -> Cursor: ...\n def fetchall(self) -> List[Any]: ...\n def fetchmany(self, size: Optional[int] = ...) -> List[Any]: ...\n def fetchone(self) -> Any: ...\n def setinputsizes(self, *args: Any, **kwargs: Any) -> None: ...\n def setoutputsize(self, *args: Any, **kwargs: Any) -> None: ...\n def __iter__(self) -> Cursor: ...\n if sys.version_info >= (3, 0):\n def __next__(self) -> Any: ...\n else:\n def next(self) -> Any: ...\n\nclass DataError(DatabaseError): ...\nclass DatabaseError(Error): ...\nclass Error(Exception): ...\nclass IntegrityError(DatabaseError): ...\nclass InterfaceError(Error): ...\nclass InternalError(DatabaseError): ...\nclass NotSupportedError(DatabaseError): ...\nclass OperationalError(DatabaseError): ...\n\nif sys.version_info >= (3,):\n OptimizedUnicode = str\nelse:\n class OptimizedUnicode(object):\n maketrans: Any\n def __init__(self, *args, **kwargs): ...\n def capitalize(self, *args, **kwargs): ...\n def casefold(self, *args, **kwargs): ...\n def center(self, *args, **kwargs): ...\n def count(self, *args, **kwargs): ...\n def encode(self, *args, **kwargs): ...\n def endswith(self, *args, **kwargs): ...\n def expandtabs(self, *args, **kwargs): ...\n def find(self, *args, **kwargs): ...\n def format(self, *args, **kwargs): ...\n def format_map(self, *args, **kwargs): ...\n def index(self, *args, **kwargs): ...\n def isalnum(self, *args, **kwargs): ...\n def isalpha(self, *args, **kwargs): ...\n def isdecimal(self, *args, **kwargs): ...\n def isdigit(self, *args, **kwargs): ...\n def isidentifier(self, *args, **kwargs): ...\n def islower(self, *args, **kwargs): ...\n def isnumeric(self, *args, **kwargs): ...\n def isprintable(self, *args, **kwargs): ...\n def isspace(self, *args, **kwargs): ...\n def istitle(self, *args, **kwargs): ...\n def isupper(self, *args, **kwargs): ...\n def join(self, *args, **kwargs): ...\n def ljust(self, *args, **kwargs): ...\n def lower(self, *args, **kwargs): ...\n def lstrip(self, *args, **kwargs): ...\n def partition(self, *args, **kwargs): ...\n def replace(self, *args, **kwargs): ...\n def rfind(self, *args, **kwargs): ...\n def rindex(self, *args, **kwargs): ...\n def rjust(self, *args, **kwargs): ...\n def rpartition(self, *args, **kwargs): ...\n def rsplit(self, *args, **kwargs): ...\n def rstrip(self, *args, **kwargs): ...\n def split(self, *args, **kwargs): ...\n def splitlines(self, *args, **kwargs): ...\n def startswith(self, *args, **kwargs): ...\n def strip(self, *args, **kwargs): ...\n def swapcase(self, *args, **kwargs): ...\n def title(self, *args, **kwargs): ...\n def translate(self, *args, **kwargs): ...\n def upper(self, *args, **kwargs): ...\n def zfill(self, *args, **kwargs): ...\n def __add__(self, other): ...\n def __contains__(self, *args, **kwargs): ...\n def __eq__(self, other): ...\n def __format__(self, *args, **kwargs): ...\n def __ge__(self, other): ...\n def __getitem__(self, index): ...\n def __getnewargs__(self, *args, **kwargs): ...\n def __gt__(self, other): ...\n def __hash__(self): ...\n def __iter__(self): ...\n def __le__(self, other): ...\n def __len__(self, *args, **kwargs): ...\n def __lt__(self, other): ...\n def __mod__(self, other): ...\n def __mul__(self, other): ...\n def __ne__(self, other): ...\n def __rmod__(self, other): ...\n def __rmul__(self, other): ...\n\nclass PrepareProtocol(object):\n def __init__(self, *args: Any, **kwargs: Any) -> None: ...\n\nclass ProgrammingError(DatabaseError): ...\n\nclass Row(object):\n def __init__(self, *args: Any, **kwargs: Any) -> None: ...\n def keys(self, *args: Any, **kwargs: Any): ...\n def __eq__(self, other): ...\n def __ge__(self, other): ...\n def __getitem__(self, index): ...\n def __gt__(self, other): ...\n def __hash__(self): ...\n def __iter__(self): ...\n def __le__(self, other): ...\n def __len__(self, *args: Any, **kwargs: Any): ...\n def __lt__(self, other): ...\n def __ne__(self, other): ...\n\nif sys.version_info < (3, 8):\n class Statement(object):\n def __init__(self, *args, **kwargs): ...\n\nclass Warning(Exception): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\sqlite3\dbapi2.pyi
dbapi2.pyi
Other
11,315
0.95
0.513333
0.046595
react-lib
941
2024-11-18T20:10:54.617734
Apache-2.0
false
42ef22b5c81641a2159e5c8c64df148a
from sqlite3.dbapi2 import * # noqa: F403\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\sqlite3\__init__.pyi
__init__.pyi
Other
43
0.75
0
0
node-utils
324
2025-01-26T23:30:59.673971
MIT
false
7bcb9e3afd5d513c6e43a64f93eb36a7
import sys\nfrom abc import abstractmethod\nfrom types import TracebackType\nfrom typing import IO, Callable, Dict, List, MutableMapping, Optional, Text, Tuple, Type\n\nfrom .headers import Headers\nfrom .types import ErrorStream, InputStream, StartResponse, WSGIApplication, WSGIEnvironment\nfrom .util import FileWrapper\n\n_exc_info = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]\n\ndef format_date_time(timestamp: Optional[float]) -> str: ... # undocumented\n\nif sys.version_info >= (3, 2):\n def read_environ() -> Dict[str, str]: ...\n\nclass BaseHandler:\n wsgi_version: Tuple[int, int] # undocumented\n wsgi_multithread: bool\n wsgi_multiprocess: bool\n wsgi_run_once: bool\n\n origin_server: bool\n http_version: str\n server_software: Optional[str]\n\n os_environ: MutableMapping[str, str]\n\n wsgi_file_wrapper: Optional[Type[FileWrapper]]\n headers_class: Type[Headers] # undocumented\n\n traceback_limit: Optional[int]\n error_status: str\n error_headers: List[Tuple[Text, Text]]\n error_body: bytes\n def run(self, application: WSGIApplication) -> None: ...\n def setup_environ(self) -> None: ...\n def finish_response(self) -> None: ...\n def get_scheme(self) -> str: ...\n def set_content_length(self) -> None: ...\n def cleanup_headers(self) -> None: ...\n def start_response(\n self, status: Text, headers: List[Tuple[Text, Text]], exc_info: Optional[_exc_info] = ...\n ) -> Callable[[bytes], None]: ...\n def send_preamble(self) -> None: ...\n def write(self, data: bytes) -> None: ...\n def sendfile(self) -> bool: ...\n def finish_content(self) -> None: ...\n def close(self) -> None: ...\n def send_headers(self) -> None: ...\n def result_is_file(self) -> bool: ...\n def client_is_modern(self) -> bool: ...\n def log_exception(self, exc_info: _exc_info) -> None: ...\n def handle_error(self) -> None: ...\n def error_output(self, environ: WSGIEnvironment, start_response: StartResponse) -> List[bytes]: ...\n @abstractmethod\n def _write(self, data: bytes) -> None: ...\n @abstractmethod\n def _flush(self) -> None: ...\n @abstractmethod\n def get_stdin(self) -> InputStream: ...\n @abstractmethod\n def get_stderr(self) -> ErrorStream: ...\n @abstractmethod\n def add_cgi_vars(self) -> None: ...\n\nclass SimpleHandler(BaseHandler):\n stdin: InputStream\n stdout: IO[bytes]\n stderr: ErrorStream\n base_env: MutableMapping[str, str]\n def __init__(\n self,\n stdin: InputStream,\n stdout: IO[bytes],\n stderr: ErrorStream,\n environ: MutableMapping[str, str],\n multithread: bool = ...,\n multiprocess: bool = ...,\n ) -> None: ...\n def get_stdin(self) -> InputStream: ...\n def get_stderr(self) -> ErrorStream: ...\n def add_cgi_vars(self) -> None: ...\n def _write(self, data: bytes) -> None: ...\n def _flush(self) -> None: ...\n\nclass BaseCGIHandler(SimpleHandler): ...\n\nclass CGIHandler(BaseCGIHandler):\n def __init__(self) -> None: ...\n\nclass IISCGIHandler(BaseCGIHandler):\n def __init__(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\wsgiref\handlers.pyi
handlers.pyi
Other
3,125
0.95
0.419355
0
node-utils
537
2025-05-01T01:09:48.497456
BSD-3-Clause
false
e3dbf3c523737f69322fbca469f0e00f
import sys\nfrom typing import List, Optional, Pattern, Tuple, overload\n\n_HeaderList = List[Tuple[str, str]]\n\ntspecials: Pattern[str] # undocumented\n\nclass Headers:\n if sys.version_info < (3, 5):\n def __init__(self, headers: _HeaderList) -> None: ...\n else:\n def __init__(self, headers: Optional[_HeaderList] = ...) -> None: ...\n def __len__(self) -> int: ...\n def __setitem__(self, name: str, val: str) -> None: ...\n def __delitem__(self, name: str) -> None: ...\n def __getitem__(self, name: str) -> Optional[str]: ...\n if sys.version_info < (3,):\n def has_key(self, name: str) -> bool: ...\n def __contains__(self, name: str) -> bool: ...\n def get_all(self, name: str) -> List[str]: ...\n @overload\n def get(self, name: str, default: str) -> str: ...\n @overload\n def get(self, name: str, default: Optional[str] = ...) -> Optional[str]: ...\n def keys(self) -> List[str]: ...\n def values(self) -> List[str]: ...\n def items(self) -> _HeaderList: ...\n if sys.version_info >= (3,):\n def __bytes__(self) -> bytes: ...\n def setdefault(self, name: str, value: str) -> str: ...\n def add_header(self, _name: str, _value: Optional[str], **_params: Optional[str]) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\wsgiref\headers.pyi
headers.pyi
Other
1,250
0.95
0.677419
0
python-kit
462
2025-05-14T03:20:20.213408
Apache-2.0
false
9720c3320e8d52641287c5c40ee330db
import sys\nfrom typing import List, Optional, Type, TypeVar, overload\n\nfrom .handlers import SimpleHandler\nfrom .types import ErrorStream, StartResponse, WSGIApplication, WSGIEnvironment\n\nif sys.version_info < (3,):\n from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer\nelse:\n from http.server import BaseHTTPRequestHandler, HTTPServer\n\nserver_version: str # undocumented\nsys_version: str # undocumented\nsoftware_version: str # undocumented\n\nclass ServerHandler(SimpleHandler): # undocumented\n server_software: str\n def close(self) -> None: ...\n\nclass WSGIServer(HTTPServer):\n application: Optional[WSGIApplication]\n base_environ: WSGIEnvironment # only available after call to setup_environ()\n def setup_environ(self) -> None: ...\n def get_app(self) -> Optional[WSGIApplication]: ...\n def set_app(self, application: Optional[WSGIApplication]) -> None: ...\n\nclass WSGIRequestHandler(BaseHTTPRequestHandler):\n server_version: str\n def get_environ(self) -> WSGIEnvironment: ...\n def get_stderr(self) -> ErrorStream: ...\n def handle(self) -> None: ...\n\ndef demo_app(environ: WSGIEnvironment, start_response: StartResponse) -> List[bytes]: ...\n\n_S = TypeVar("_S", bound=WSGIServer)\n@overload\ndef make_server(host: str, port: int, app: WSGIApplication, *, handler_class: Type[WSGIRequestHandler] = ...) -> WSGIServer: ...\n@overload\ndef make_server(\n host: str, port: int, app: WSGIApplication, server_class: Type[_S], handler_class: Type[WSGIRequestHandler] = ...\n) -> _S: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\wsgiref\simple_server.pyi
simple_server.pyi
Other
1,528
0.95
0.341463
0
node-utils
449
2024-02-14T05:48:21.153778
BSD-3-Clause
false
827567ac6e540af69f17ce202205d957
# Obsolete, use _typeshed.wsgi directly.\n\nfrom _typeshed.wsgi import *\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\wsgiref\types.pyi
types.pyi
Other
71
0.75
0
0.5
react-lib
574
2023-08-05T13:46:50.197265
MIT
false
b75a045128ff72f0f939960dd6074253
import sys\nfrom typing import IO, Any, Callable, Optional\n\nfrom .types import WSGIEnvironment\n\nclass FileWrapper:\n filelike: IO[bytes]\n blksize: int\n close: Callable[[], None] # only exists if filelike.close exists\n def __init__(self, filelike: IO[bytes], blksize: int = ...) -> None: ...\n def __getitem__(self, key: Any) -> bytes: ...\n def __iter__(self) -> FileWrapper: ...\n if sys.version_info < (3,):\n def next(self) -> bytes: ...\n else:\n def __next__(self) -> bytes: ...\n\ndef guess_scheme(environ: WSGIEnvironment) -> str: ...\ndef application_uri(environ: WSGIEnvironment) -> str: ...\ndef request_uri(environ: WSGIEnvironment, include_query: bool = ...) -> str: ...\ndef shift_path_info(environ: WSGIEnvironment) -> Optional[str]: ...\ndef setup_testing_defaults(environ: WSGIEnvironment) -> None: ...\ndef is_hop_by_hop(header_name: str) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\wsgiref\util.pyi
util.pyi
Other
893
0.95
0.608696
0
react-lib
164
2025-02-18T08:38:35.318088
GPL-3.0
false
11aa9457c89176fb9d51d7598375a65b
import sys\nfrom _typeshed.wsgi import ErrorStream, InputStream, WSGIApplication\nfrom typing import Any, Callable, Iterable, Iterator, NoReturn, Optional\n\nclass WSGIWarning(Warning): ...\n\ndef validator(application: WSGIApplication) -> WSGIApplication: ...\n\nclass InputWrapper:\n input: InputStream\n def __init__(self, wsgi_input: InputStream) -> None: ...\n if sys.version_info < (3,):\n def read(self, size: int = ...) -> bytes: ...\n def readline(self) -> bytes: ...\n else:\n def read(self, size: int) -> bytes: ...\n def readline(self, size: int = ...) -> bytes: ...\n def readlines(self, hint: int = ...) -> bytes: ...\n def __iter__(self) -> Iterable[bytes]: ...\n def close(self) -> NoReturn: ...\n\nclass ErrorWrapper:\n errors: ErrorStream\n def __init__(self, wsgi_errors: ErrorStream) -> None: ...\n def write(self, s: str) -> None: ...\n def flush(self) -> None: ...\n def writelines(self, seq: Iterable[str]) -> None: ...\n def close(self) -> NoReturn: ...\n\nclass WriteWrapper:\n writer: Callable[[bytes], Any]\n def __init__(self, wsgi_writer: Callable[[bytes], Any]) -> None: ...\n def __call__(self, s: bytes) -> None: ...\n\nclass PartialIteratorWrapper:\n iterator: Iterator[bytes]\n def __init__(self, wsgi_iterator: Iterator[bytes]) -> None: ...\n def __iter__(self) -> IteratorWrapper: ...\n\nclass IteratorWrapper:\n original_iterator: Iterator[bytes]\n iterator: Iterator[bytes]\n closed: bool\n check_start_response: Optional[bool]\n def __init__(self, wsgi_iterator: Iterator[bytes], check_start_response: Optional[bool]) -> None: ...\n def __iter__(self) -> IteratorWrapper: ...\n if sys.version_info < (3,):\n def next(self) -> bytes: ...\n else:\n def __next__(self) -> bytes: ...\n def close(self) -> None: ...\n def __del__(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\wsgiref\validate.pyi
validate.pyi
Other
1,861
0.85
0.615385
0
vue-tools
989
2024-06-20T19:34:31.112593
BSD-3-Clause
false
5e92515187d80dab2dd007b5360fdacf
import xml.parsers as parsers\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\__init__.pyi
__init__.pyi
Other
30
0.65
0
0
vue-tools
722
2025-03-20T07:01:43.957521
GPL-3.0
false
a828085696269dca975a24ee4577bc78
from _typeshed.xml import DOMImplementation\nfrom typing import Any, Callable, Dict, Iterable, Optional, Tuple, Union\n\nwell_known_implementations: Dict[str, str]\nregistered: Dict[str, Callable[[], DOMImplementation]]\n\ndef registerDOMImplementation(name: str, factory: Callable[[], DOMImplementation]) -> None: ...\ndef getDOMImplementation(\n name: Optional[str] = ..., features: Union[str, Iterable[Tuple[str, Optional[str]]]] = ...\n) -> DOMImplementation: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\dom\domreg.pyi
domreg.pyi
Other
462
0.85
0.2
0
python-kit
891
2024-04-19T08:54:53.632614
BSD-3-Clause
false
5d1393a2d3b6417cb15ee768048fc9fe
from typing import Any\n\ndef __getattr__(name: str) -> Any: ... # incomplete\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\dom\expatbuilder.pyi
expatbuilder.pyi
Other
77
0.75
0.333333
0
vue-tools
116
2024-05-26T05:00:39.521930
MIT
false
0244548e1dba18ff5c58d98bcc50b931
from typing import Any\n\ndef __getattr__(name: str) -> Any: ... # incomplete\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\dom\minicompat.pyi
minicompat.pyi
Other
77
0.75
0.333333
0
vue-tools
230
2024-03-16T21:46:01.189315
BSD-3-Clause
false
0244548e1dba18ff5c58d98bcc50b931
from typing import Any, Optional\nfrom xml.sax.xmlreader import XMLReader\n\ndef parse(file: str, parser: Optional[XMLReader] = ..., bufsize: Optional[int] = ...): ...\ndef parseString(string: str, parser: Optional[XMLReader] = ...): ...\ndef __getattr__(name: str) -> Any: ... # incomplete\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\dom\minidom.pyi
minidom.pyi
Other
287
0.95
0.5
0
node-utils
674
2025-06-27T00:22:16.973064
MIT
false
bc0413a0ed34645906a7ef90fc92e9d7
class NodeFilter:\n FILTER_ACCEPT: int\n FILTER_REJECT: int\n FILTER_SKIP: int\n\n SHOW_ALL: int\n SHOW_ELEMENT: int\n SHOW_ATTRIBUTE: int\n SHOW_TEXT: int\n SHOW_CDATA_SECTION: int\n SHOW_ENTITY_REFERENCE: int\n SHOW_ENTITY: int\n SHOW_PROCESSING_INSTRUCTION: int\n SHOW_COMMENT: int\n SHOW_DOCUMENT: int\n SHOW_DOCUMENT_TYPE: int\n SHOW_DOCUMENT_FRAGMENT: int\n SHOW_NOTATION: int\n def acceptNode(self, node) -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\dom\NodeFilter.pyi
NodeFilter.pyi
Other
457
0.85
0.105263
0
node-utils
257
2025-06-13T21:02:25.613838
MIT
false
436072e7fe7d8168a28d383722cd6738
from typing import Any\n\ndef __getattr__(name: str) -> Any: ... # incomplete\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\dom\pulldom.pyi
pulldom.pyi
Other
77
0.75
0.333333
0
awesome-app
401
2023-07-28T05:26:50.266193
MIT
false
0244548e1dba18ff5c58d98bcc50b931
from typing import Any\n\ndef __getattr__(name: str) -> Any: ... # incomplete\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\dom\xmlbuilder.pyi
xmlbuilder.pyi
Other
77
0.75
0.333333
0
react-lib
397
2024-02-24T09:06:32.388399
Apache-2.0
false
0244548e1dba18ff5c58d98bcc50b931
from typing import Any\n\nfrom .domreg import getDOMImplementation as getDOMImplementation, registerDOMImplementation as registerDOMImplementation\n\nclass Node:\n ELEMENT_NODE: int\n ATTRIBUTE_NODE: int\n TEXT_NODE: int\n CDATA_SECTION_NODE: int\n ENTITY_REFERENCE_NODE: int\n ENTITY_NODE: int\n PROCESSING_INSTRUCTION_NODE: int\n COMMENT_NODE: int\n DOCUMENT_NODE: int\n DOCUMENT_TYPE_NODE: int\n DOCUMENT_FRAGMENT_NODE: int\n NOTATION_NODE: int\n\n# ExceptionCode\nINDEX_SIZE_ERR: int\nDOMSTRING_SIZE_ERR: int\nHIERARCHY_REQUEST_ERR: int\nWRONG_DOCUMENT_ERR: int\nINVALID_CHARACTER_ERR: int\nNO_DATA_ALLOWED_ERR: int\nNO_MODIFICATION_ALLOWED_ERR: int\nNOT_FOUND_ERR: int\nNOT_SUPPORTED_ERR: int\nINUSE_ATTRIBUTE_ERR: int\nINVALID_STATE_ERR: int\nSYNTAX_ERR: int\nINVALID_MODIFICATION_ERR: int\nNAMESPACE_ERR: int\nINVALID_ACCESS_ERR: int\nVALIDATION_ERR: int\n\nclass DOMException(Exception):\n code: int\n def __init__(self, *args: Any, **kw: Any) -> None: ...\n def _get_code(self) -> int: ...\n\nclass IndexSizeErr(DOMException): ...\nclass DomstringSizeErr(DOMException): ...\nclass HierarchyRequestErr(DOMException): ...\nclass WrongDocumentErr(DOMException): ...\nclass NoDataAllowedErr(DOMException): ...\nclass NoModificationAllowedErr(DOMException): ...\nclass NotFoundErr(DOMException): ...\nclass NotSupportedErr(DOMException): ...\nclass InuseAttributeErr(DOMException): ...\nclass InvalidStateErr(DOMException): ...\nclass SyntaxErr(DOMException): ...\nclass InvalidModificationErr(DOMException): ...\nclass NamespaceErr(DOMException): ...\nclass InvalidAccessErr(DOMException): ...\nclass ValidationErr(DOMException): ...\n\nclass UserDataHandler:\n NODE_CLONED: int\n NODE_IMPORTED: int\n NODE_DELETED: int\n NODE_RENAMED: int\n\nXML_NAMESPACE: str\nXMLNS_NAMESPACE: str\nXHTML_NAMESPACE: str\nEMPTY_NAMESPACE: None\nEMPTY_PREFIX: None\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\dom\__init__.pyi
__init__.pyi
Other
1,844
0.95
0.294118
0.016393
node-utils
334
2025-05-29T07:34:39.633363
BSD-3-Clause
false
c12e0a77dc42a2e91ce38fa2df3f5ff3
from xml.etree.ElementTree import * # noqa: F403\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\etree\cElementTree.pyi
cElementTree.pyi
Other
50
0.75
0
0
python-kit
367
2024-06-03T04:55:16.957029
Apache-2.0
false
ff62e9b9e7c1bcb0979ce242c52461e5
import sys\nfrom typing import Callable, Optional, Union\nfrom xml.etree.ElementTree import Element\n\nXINCLUDE: str\nXINCLUDE_INCLUDE: str\nXINCLUDE_FALLBACK: str\n\nclass FatalIncludeError(SyntaxError): ...\n\ndef default_loader(href: Union[str, bytes, int], parse: str, encoding: Optional[str] = ...) -> Union[str, Element]: ...\n\n# TODO: loader is of type default_loader ie it takes a callable that has the\n# same signature as default_loader. But default_loader has a keyword argument\n# Which can't be represented using Callable...\nif sys.version_info >= (3, 9):\n def include(\n elem: Element,\n loader: Optional[Callable[..., Union[str, Element]]] = ...,\n base_url: Optional[str] = ...,\n max_depth: Optional[int] = ...,\n ) -> None: ...\n\nelse:\n def include(elem: Element, loader: Optional[Callable[..., Union[str, Element]]] = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\etree\ElementInclude.pyi
ElementInclude.pyi
Other
873
0.95
0.2
0.15
node-utils
317
2024-06-26T23:02:19.206212
BSD-3-Clause
false
7662d56247305d739cc428d13c3557e5
from typing import Callable, Dict, Generator, List, Optional, Pattern, Tuple, TypeVar, Union\nfrom xml.etree.ElementTree import Element\n\nxpath_tokenizer_re: Pattern[str]\n\n_token = Tuple[str, str]\n_next = Callable[[], _token]\n_callback = Callable[[_SelectorContext, List[Element]], Generator[Element, None, None]]\n\ndef xpath_tokenizer(pattern: str, namespaces: Optional[Dict[str, str]] = ...) -> Generator[_token, None, None]: ...\ndef get_parent_map(context: _SelectorContext) -> Dict[Element, Element]: ...\ndef prepare_child(next: _next, token: _token) -> _callback: ...\ndef prepare_star(next: _next, token: _token) -> _callback: ...\ndef prepare_self(next: _next, token: _token) -> _callback: ...\ndef prepare_descendant(next: _next, token: _token) -> _callback: ...\ndef prepare_parent(next: _next, token: _token) -> _callback: ...\ndef prepare_predicate(next: _next, token: _token) -> _callback: ...\n\nops: Dict[str, Callable[[_next, _token], _callback]]\n\nclass _SelectorContext:\n parent_map: Dict[Element, Element]\n root: Element\n def __init__(self, root: Element) -> None: ...\n\n_T = TypeVar("_T")\n\ndef iterfind(elem: Element, path: str, namespaces: Optional[Dict[str, str]] = ...) -> List[Element]: ...\ndef find(elem: Element, path: str, namespaces: Optional[Dict[str, str]] = ...) -> Optional[Element]: ...\ndef findall(elem: Element, path: str, namespaces: Optional[Dict[str, str]] = ...) -> List[Element]: ...\ndef findtext(\n elem: Element, path: str, default: Optional[_T] = ..., namespaces: Optional[Dict[str, str]] = ...\n) -> Union[_T, str]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\etree\ElementPath.pyi
ElementPath.pyi
Other
1,561
0.85
0.424242
0
python-kit
399
2025-01-05T07:48:16.667707
BSD-3-Clause
false
4cbd7424063f9e9ec931e72519f0919f
import sys\nfrom _typeshed import AnyPath, FileDescriptor, SupportsWrite\nfrom typing import (\n IO,\n Any,\n Callable,\n Dict,\n Generator,\n ItemsView,\n Iterable,\n Iterator,\n KeysView,\n List,\n MutableSequence,\n Optional,\n Sequence,\n Text,\n Tuple,\n TypeVar,\n Union,\n overload,\n)\nfrom typing_extensions import Literal\n\nVERSION: str\n\nclass ParseError(SyntaxError):\n code: int\n position: Tuple[int, int]\n\ndef iselement(element: object) -> bool: ...\n\n_T = TypeVar("_T")\n\n# Type for parser inputs. Parser will accept any unicode/str/bytes and coerce,\n# and this is true in py2 and py3 (even fromstringlist() in python3 can be\n# called with a heterogeneous list)\n_parser_input_type = Union[bytes, Text]\n\n# Type for individual tag/attr/ns/text values in args to most functions.\n# In py2, the library accepts str or unicode everywhere and coerces\n# aggressively.\n# In py3, bytes is not coerced to str and so use of bytes is probably an error,\n# so we exclude it. (why? the parser never produces bytes when it parses XML,\n# so e.g., element.get(b'name') will always return None for parsed XML, even if\n# there is a 'name' attribute.)\n_str_argument_type = Union[str, Text]\n\n# Type for return values from individual tag/attr/text values\nif sys.version_info >= (3,):\n # note: in python3, everything comes out as str, yay:\n _str_result_type = str\nelse:\n # in python2, if the tag/attribute/text wasn't decode-able as ascii, it\n # comes out as a unicode string; otherwise it comes out as str. (see\n # _fixtext function in the source). Client code knows best:\n _str_result_type = Any\n\n_file_or_filename = Union[AnyPath, FileDescriptor, IO[Any]]\n\nif sys.version_info >= (3, 8):\n @overload\n def canonicalize(\n xml_data: Optional[_parser_input_type] = ...,\n *,\n out: None = ...,\n from_file: Optional[_file_or_filename] = ...,\n with_comments: bool = ...,\n strip_text: bool = ...,\n rewrite_prefixes: bool = ...,\n qname_aware_tags: Optional[Iterable[str]] = ...,\n qname_aware_attrs: Optional[Iterable[str]] = ...,\n exclude_attrs: Optional[Iterable[str]] = ...,\n exclude_tags: Optional[Iterable[str]] = ...,\n ) -> str: ...\n @overload\n def canonicalize(\n xml_data: Optional[_parser_input_type] = ...,\n *,\n out: SupportsWrite[str],\n from_file: Optional[_file_or_filename] = ...,\n with_comments: bool = ...,\n strip_text: bool = ...,\n rewrite_prefixes: bool = ...,\n qname_aware_tags: Optional[Iterable[str]] = ...,\n qname_aware_attrs: Optional[Iterable[str]] = ...,\n exclude_attrs: Optional[Iterable[str]] = ...,\n exclude_tags: Optional[Iterable[str]] = ...,\n ) -> None: ...\n\nclass Element(MutableSequence[Element]):\n tag: _str_result_type\n attrib: Dict[_str_result_type, _str_result_type]\n text: Optional[_str_result_type]\n tail: Optional[_str_result_type]\n def __init__(\n self,\n tag: Union[_str_argument_type, Callable[..., Element]],\n attrib: Dict[_str_argument_type, _str_argument_type] = ...,\n **extra: _str_argument_type,\n ) -> None: ...\n def append(self, __subelement: Element) -> None: ...\n def clear(self) -> None: ...\n def extend(self, __elements: Iterable[Element]) -> None: ...\n def find(\n self, path: _str_argument_type, namespaces: Optional[Dict[_str_argument_type, _str_argument_type]] = ...\n ) -> Optional[Element]: ...\n def findall(\n self, path: _str_argument_type, namespaces: Optional[Dict[_str_argument_type, _str_argument_type]] = ...\n ) -> List[Element]: ...\n @overload\n def findtext(\n self,\n path: _str_argument_type,\n default: None = ...,\n namespaces: Optional[Dict[_str_argument_type, _str_argument_type]] = ...,\n ) -> Optional[_str_result_type]: ...\n @overload\n def findtext(\n self, path: _str_argument_type, default: _T, namespaces: Optional[Dict[_str_argument_type, _str_argument_type]] = ...\n ) -> Union[_T, _str_result_type]: ...\n @overload\n def get(self, key: _str_argument_type, default: None = ...) -> Optional[_str_result_type]: ...\n @overload\n def get(self, key: _str_argument_type, default: _T) -> Union[_str_result_type, _T]: ...\n if sys.version_info >= (3, 2):\n def insert(self, __index: int, __subelement: Element) -> None: ...\n else:\n def insert(self, __index: int, __element: Element) -> None: ...\n def items(self) -> ItemsView[_str_result_type, _str_result_type]: ...\n def iter(self, tag: Optional[_str_argument_type] = ...) -> Generator[Element, None, None]: ...\n def iterfind(\n self, path: _str_argument_type, namespaces: Optional[Dict[_str_argument_type, _str_argument_type]] = ...\n ) -> List[Element]: ...\n def itertext(self) -> Generator[_str_result_type, None, None]: ...\n def keys(self) -> KeysView[_str_result_type]: ...\n def makeelement(self, __tag: _str_argument_type, __attrib: Dict[_str_argument_type, _str_argument_type]) -> Element: ...\n def remove(self, __subelement: Element) -> None: ...\n def set(self, __key: _str_argument_type, __value: _str_argument_type) -> None: ...\n def __delitem__(self, i: Union[int, slice]) -> None: ...\n @overload\n def __getitem__(self, i: int) -> Element: ...\n @overload\n def __getitem__(self, s: slice) -> MutableSequence[Element]: ...\n def __len__(self) -> int: ...\n @overload\n def __setitem__(self, i: int, o: Element) -> None: ...\n @overload\n def __setitem__(self, s: slice, o: Iterable[Element]) -> None: ...\n if sys.version_info < (3, 9):\n def getchildren(self) -> List[Element]: ...\n def getiterator(self, tag: Optional[_str_argument_type] = ...) -> List[Element]: ...\n\ndef SubElement(\n parent: Element,\n tag: _str_argument_type,\n attrib: Dict[_str_argument_type, _str_argument_type] = ...,\n **extra: _str_argument_type,\n) -> Element: ...\ndef Comment(text: Optional[_str_argument_type] = ...) -> Element: ...\ndef ProcessingInstruction(target: _str_argument_type, text: Optional[_str_argument_type] = ...) -> Element: ...\n\nPI: Callable[..., Element]\n\nclass QName:\n text: str\n def __init__(self, text_or_uri: _str_argument_type, tag: Optional[_str_argument_type] = ...) -> None: ...\n\nclass ElementTree:\n def __init__(self, element: Optional[Element] = ..., file: Optional[_file_or_filename] = ...) -> None: ...\n def getroot(self) -> Element: ...\n def parse(self, source: _file_or_filename, parser: Optional[XMLParser] = ...) -> Element: ...\n def iter(self, tag: Optional[_str_argument_type] = ...) -> Generator[Element, None, None]: ...\n if sys.version_info < (3, 9):\n def getiterator(self, tag: Optional[_str_argument_type] = ...) -> List[Element]: ...\n def find(\n self, path: _str_argument_type, namespaces: Optional[Dict[_str_argument_type, _str_argument_type]] = ...\n ) -> Optional[Element]: ...\n @overload\n def findtext(\n self,\n path: _str_argument_type,\n default: None = ...,\n namespaces: Optional[Dict[_str_argument_type, _str_argument_type]] = ...,\n ) -> Optional[_str_result_type]: ...\n @overload\n def findtext(\n self, path: _str_argument_type, default: _T, namespaces: Optional[Dict[_str_argument_type, _str_argument_type]] = ...\n ) -> Union[_T, _str_result_type]: ...\n def findall(\n self, path: _str_argument_type, namespaces: Optional[Dict[_str_argument_type, _str_argument_type]] = ...\n ) -> List[Element]: ...\n def iterfind(\n self, path: _str_argument_type, namespaces: Optional[Dict[_str_argument_type, _str_argument_type]] = ...\n ) -> List[Element]: ...\n if sys.version_info >= (3, 4):\n def write(\n self,\n file_or_filename: _file_or_filename,\n encoding: Optional[str] = ...,\n xml_declaration: Optional[bool] = ...,\n default_namespace: Optional[_str_argument_type] = ...,\n method: Optional[str] = ...,\n *,\n short_empty_elements: bool = ...,\n ) -> None: ...\n else:\n def write(\n self,\n file_or_filename: _file_or_filename,\n encoding: Optional[str] = ...,\n xml_declaration: Optional[bool] = ...,\n default_namespace: Optional[_str_argument_type] = ...,\n method: Optional[str] = ...,\n ) -> None: ...\n def write_c14n(self, file: _file_or_filename) -> None: ...\n\ndef register_namespace(prefix: _str_argument_type, uri: _str_argument_type) -> None: ...\n\nif sys.version_info >= (3, 8):\n @overload\n def tostring(\n element: Element,\n encoding: None = ...,\n method: Optional[str] = ...,\n *,\n xml_declaration: Optional[bool] = ...,\n default_namespace: Optional[_str_argument_type] = ...,\n short_empty_elements: bool = ...,\n ) -> bytes: ...\n @overload\n def tostring(\n element: Element,\n encoding: Literal["unicode"],\n method: Optional[str] = ...,\n *,\n xml_declaration: Optional[bool] = ...,\n default_namespace: Optional[_str_argument_type] = ...,\n short_empty_elements: bool = ...,\n ) -> str: ...\n @overload\n def tostring(\n element: Element,\n encoding: str,\n method: Optional[str] = ...,\n *,\n xml_declaration: Optional[bool] = ...,\n default_namespace: Optional[_str_argument_type] = ...,\n short_empty_elements: bool = ...,\n ) -> Any: ...\n @overload\n def tostringlist(\n element: Element,\n encoding: None = ...,\n method: Optional[str] = ...,\n *,\n xml_declaration: Optional[bool] = ...,\n default_namespace: Optional[_str_argument_type] = ...,\n short_empty_elements: bool = ...,\n ) -> List[bytes]: ...\n @overload\n def tostringlist(\n element: Element,\n encoding: Literal["unicode"],\n method: Optional[str] = ...,\n *,\n xml_declaration: Optional[bool] = ...,\n default_namespace: Optional[_str_argument_type] = ...,\n short_empty_elements: bool = ...,\n ) -> List[str]: ...\n @overload\n def tostringlist(\n element: Element,\n encoding: str,\n method: Optional[str] = ...,\n *,\n xml_declaration: Optional[bool] = ...,\n default_namespace: Optional[_str_argument_type] = ...,\n short_empty_elements: bool = ...,\n ) -> List[Any]: ...\n\nelif sys.version_info >= (3,):\n @overload\n def tostring(\n element: Element, encoding: None = ..., method: Optional[str] = ..., *, short_empty_elements: bool = ...\n ) -> bytes: ...\n @overload\n def tostring(\n element: Element, encoding: Literal["unicode"], method: Optional[str] = ..., *, short_empty_elements: bool = ...\n ) -> str: ...\n @overload\n def tostring(element: Element, encoding: str, method: Optional[str] = ..., *, short_empty_elements: bool = ...) -> Any: ...\n @overload\n def tostringlist(\n element: Element, encoding: None = ..., method: Optional[str] = ..., *, short_empty_elements: bool = ...\n ) -> List[bytes]: ...\n @overload\n def tostringlist(\n element: Element, encoding: Literal["unicode"], method: Optional[str] = ..., *, short_empty_elements: bool = ...\n ) -> List[str]: ...\n @overload\n def tostringlist(\n element: Element, encoding: str, method: Optional[str] = ..., *, short_empty_elements: bool = ...\n ) -> List[Any]: ...\n\nelse:\n def tostring(element: Element, encoding: Optional[str] = ..., method: Optional[str] = ...) -> bytes: ...\n def tostringlist(element: Element, encoding: Optional[str] = ..., method: Optional[str] = ...) -> List[bytes]: ...\n\ndef dump(elem: Element) -> None: ...\ndef parse(source: _file_or_filename, parser: Optional[XMLParser] = ...) -> ElementTree: ...\ndef iterparse(\n source: _file_or_filename, events: Optional[Sequence[str]] = ..., parser: Optional[XMLParser] = ...\n) -> Iterator[Tuple[str, Any]]: ...\n\nif sys.version_info >= (3, 4):\n class XMLPullParser:\n def __init__(self, events: Optional[Sequence[str]] = ..., *, _parser: Optional[XMLParser] = ...) -> None: ...\n def feed(self, data: bytes) -> None: ...\n def close(self) -> None: ...\n def read_events(self) -> Iterator[Tuple[str, Element]]: ...\n\ndef XML(text: _parser_input_type, parser: Optional[XMLParser] = ...) -> Element: ...\ndef XMLID(text: _parser_input_type, parser: Optional[XMLParser] = ...) -> Tuple[Element, Dict[_str_result_type, Element]]: ...\n\n# This is aliased to XML in the source.\nfromstring = XML\n\ndef fromstringlist(sequence: Sequence[_parser_input_type], parser: Optional[XMLParser] = ...) -> Element: ...\n\n# This type is both not precise enough and too precise. The TreeBuilder\n# requires the elementfactory to accept tag and attrs in its args and produce\n# some kind of object that has .text and .tail properties.\n# I've chosen to constrain the ElementFactory to always produce an Element\n# because that is how almost everyone will use it.\n# Unfortunately, the type of the factory arguments is dependent on how\n# TreeBuilder is called by client code (they could pass strs, bytes or whatever);\n# but we don't want to use a too-broad type, or it would be too hard to write\n# elementfactories.\n_ElementFactory = Callable[[Any, Dict[Any, Any]], Element]\n\nclass TreeBuilder:\n def __init__(self, element_factory: Optional[_ElementFactory] = ...) -> None: ...\n def close(self) -> Element: ...\n def data(self, __data: _parser_input_type) -> None: ...\n def start(self, __tag: _parser_input_type, __attrs: Dict[_parser_input_type, _parser_input_type]) -> Element: ...\n def end(self, __tag: _parser_input_type) -> Element: ...\n\nif sys.version_info >= (3, 8):\n class C14NWriterTarget:\n def __init__(\n self,\n write: Callable[[str], Any],\n *,\n with_comments: bool = ...,\n strip_text: bool = ...,\n rewrite_prefixes: bool = ...,\n qname_aware_tags: Optional[Iterable[str]] = ...,\n qname_aware_attrs: Optional[Iterable[str]] = ...,\n exclude_attrs: Optional[Iterable[str]] = ...,\n exclude_tags: Optional[Iterable[str]] = ...,\n ) -> None: ...\n\nclass XMLParser:\n parser: Any\n target: Any\n # TODO-what is entity used for???\n entity: Any\n version: str\n if sys.version_info >= (3, 8):\n def __init__(self, *, target: Any = ..., encoding: Optional[str] = ...) -> None: ...\n else:\n def __init__(self, html: int = ..., target: Any = ..., encoding: Optional[str] = ...) -> None: ...\n def doctype(self, __name: str, __pubid: str, __system: str) -> None: ...\n def close(self) -> Any: ...\n def feed(self, __data: _parser_input_type) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\etree\ElementTree.pyi
ElementTree.pyi
Other
14,905
0.95
0.292553
0.108883
awesome-app
435
2025-06-02T04:54:17.440036
GPL-3.0
false
b45a64d441b98e308c9a1a3bf16f77dd
import xml.parsers.expat as expat\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\parsers\__init__.pyi
__init__.pyi
Other
34
0.65
0
0
vue-tools
418
2024-12-04T23:12:32.343364
MIT
false
3b72d96154280886c40edbd592d5dc8a
from pyexpat.errors import *\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\parsers\expat\errors.pyi
errors.pyi
Other
29
0.65
0
0
react-lib
26
2025-03-20T04:53:19.161035
Apache-2.0
false
f32d303aa18a26d315a92e0b867a2750
from pyexpat.model import *\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\parsers\expat\model.pyi
model.pyi
Other
28
0.65
0
0
react-lib
248
2024-08-19T07:16:23.028830
GPL-3.0
false
eba847991cb9b4adc1797cf102a9b535
from pyexpat import *\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\parsers\expat\__init__.pyi
__init__.pyi
Other
22
0.65
0
0
awesome-app
644
2024-04-02T15:04:16.938856
BSD-3-Clause
false
b79416ea3e5c5140d5cadfe81115c2d8
from typing import Any\n\nversion: Any\n\nclass ErrorHandler:\n def error(self, exception): ...\n def fatalError(self, exception): ...\n def warning(self, exception): ...\n\nclass ContentHandler:\n def __init__(self) -> None: ...\n def setDocumentLocator(self, locator): ...\n def startDocument(self): ...\n def endDocument(self): ...\n def startPrefixMapping(self, prefix, uri): ...\n def endPrefixMapping(self, prefix): ...\n def startElement(self, name, attrs): ...\n def endElement(self, name): ...\n def startElementNS(self, name, qname, attrs): ...\n def endElementNS(self, name, qname): ...\n def characters(self, content): ...\n def ignorableWhitespace(self, whitespace): ...\n def processingInstruction(self, target, data): ...\n def skippedEntity(self, name): ...\n\nclass DTDHandler:\n def notationDecl(self, name, publicId, systemId): ...\n def unparsedEntityDecl(self, name, publicId, systemId, ndata): ...\n\nclass EntityResolver:\n def resolveEntity(self, publicId, systemId): ...\n\nfeature_namespaces: Any\nfeature_namespace_prefixes: Any\nfeature_string_interning: Any\nfeature_validation: Any\nfeature_external_ges: Any\nfeature_external_pes: Any\nall_features: Any\nproperty_lexical_handler: Any\nproperty_declaration_handler: Any\nproperty_dom_node: Any\nproperty_xml_string: Any\nproperty_encoding: Any\nproperty_interning_dict: Any\nall_properties: Any\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\sax\handler.pyi
handler.pyi
Other
1,391
0.85
0.521739
0
python-kit
783
2025-05-08T15:03:57.505772
GPL-3.0
false
93485d87bc014a576a87341a19083400
import sys\nfrom _typeshed import SupportsWrite\nfrom codecs import StreamReaderWriter, StreamWriter\nfrom io import RawIOBase, TextIOBase\nfrom typing import Mapping, Optional, Text, Union\nfrom xml.sax import handler, xmlreader\n\ndef escape(data: Text, entities: Mapping[Text, Text] = ...) -> Text: ...\ndef unescape(data: Text, entities: Mapping[Text, Text] = ...) -> Text: ...\ndef quoteattr(data: Text, entities: Mapping[Text, Text] = ...) -> Text: ...\n\nclass XMLGenerator(handler.ContentHandler):\n if sys.version_info >= (3, 0):\n def __init__(\n self,\n out: Optional[Union[TextIOBase, RawIOBase, StreamWriter, StreamReaderWriter, SupportsWrite[str]]] = ...,\n encoding: str = ...,\n short_empty_elements: bool = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n out: Optional[Union[TextIOBase, RawIOBase, StreamWriter, StreamReaderWriter, SupportsWrite[str]]] = ...,\n encoding: Text = ...,\n ) -> None: ...\n def startDocument(self): ...\n def endDocument(self): ...\n def startPrefixMapping(self, prefix, uri): ...\n def endPrefixMapping(self, prefix): ...\n def startElement(self, name, attrs): ...\n def endElement(self, name): ...\n def startElementNS(self, name, qname, attrs): ...\n def endElementNS(self, name, qname): ...\n def characters(self, content): ...\n def ignorableWhitespace(self, content): ...\n def processingInstruction(self, target, data): ...\n\nclass XMLFilterBase(xmlreader.XMLReader):\n def __init__(self, parent: Optional[xmlreader.XMLReader] = ...) -> None: ...\n def error(self, exception): ...\n def fatalError(self, exception): ...\n def warning(self, exception): ...\n def setDocumentLocator(self, locator): ...\n def startDocument(self): ...\n def endDocument(self): ...\n def startPrefixMapping(self, prefix, uri): ...\n def endPrefixMapping(self, prefix): ...\n def startElement(self, name, attrs): ...\n def endElement(self, name): ...\n def startElementNS(self, name, qname, attrs): ...\n def endElementNS(self, name, qname): ...\n def characters(self, content): ...\n def ignorableWhitespace(self, chars): ...\n def processingInstruction(self, target, data): ...\n def skippedEntity(self, name): ...\n def notationDecl(self, name, publicId, systemId): ...\n def unparsedEntityDecl(self, name, publicId, systemId, ndata): ...\n def resolveEntity(self, publicId, systemId): ...\n def parse(self, source): ...\n def setLocale(self, locale): ...\n def getFeature(self, name): ...\n def setFeature(self, name, state): ...\n def getProperty(self, name): ...\n def setProperty(self, name, value): ...\n def getParent(self): ...\n def setParent(self, parent): ...\n\ndef prepare_input_source(source, base=...): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\sax\saxutils.pyi
saxutils.pyi
Other
2,825
0.85
0.705882
0
react-lib
667
2025-07-08T22:08:31.219906
MIT
false
1c211f875e7792c9c947efcc0f4595a1
from typing import Mapping, Optional, Tuple\n\nclass XMLReader:\n def __init__(self) -> None: ...\n def parse(self, source): ...\n def getContentHandler(self): ...\n def setContentHandler(self, handler): ...\n def getDTDHandler(self): ...\n def setDTDHandler(self, handler): ...\n def getEntityResolver(self): ...\n def setEntityResolver(self, resolver): ...\n def getErrorHandler(self): ...\n def setErrorHandler(self, handler): ...\n def setLocale(self, locale): ...\n def getFeature(self, name): ...\n def setFeature(self, name, state): ...\n def getProperty(self, name): ...\n def setProperty(self, name, value): ...\n\nclass IncrementalParser(XMLReader):\n def __init__(self, bufsize: int = ...) -> None: ...\n def parse(self, source): ...\n def feed(self, data): ...\n def prepareParser(self, source): ...\n def close(self): ...\n def reset(self): ...\n\nclass Locator:\n def getColumnNumber(self): ...\n def getLineNumber(self): ...\n def getPublicId(self): ...\n def getSystemId(self): ...\n\nclass InputSource:\n def __init__(self, system_id: Optional[str] = ...) -> None: ...\n def setPublicId(self, public_id): ...\n def getPublicId(self): ...\n def setSystemId(self, system_id): ...\n def getSystemId(self): ...\n def setEncoding(self, encoding): ...\n def getEncoding(self): ...\n def setByteStream(self, bytefile): ...\n def getByteStream(self): ...\n def setCharacterStream(self, charfile): ...\n def getCharacterStream(self): ...\n\nclass AttributesImpl:\n def __init__(self, attrs: Mapping[str, str]) -> None: ...\n def getLength(self): ...\n def getType(self, name): ...\n def getValue(self, name): ...\n def getValueByQName(self, name): ...\n def getNameByQName(self, name): ...\n def getQNameByName(self, name): ...\n def getNames(self): ...\n def getQNames(self): ...\n def __len__(self): ...\n def __getitem__(self, name): ...\n def keys(self): ...\n def has_key(self, name): ...\n def __contains__(self, name): ...\n def get(self, name, alternative=...): ...\n def copy(self): ...\n def items(self): ...\n def values(self): ...\n\nclass AttributesNSImpl(AttributesImpl):\n def __init__(self, attrs: Mapping[Tuple[str, str], str], qnames: Mapping[Tuple[str, str], str]) -> None: ...\n def getValueByQName(self, name): ...\n def getNameByQName(self, name): ...\n def getQNameByName(self, name): ...\n def getQNames(self): ...\n def copy(self): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\sax\xmlreader.pyi
xmlreader.pyi
Other
2,477
0.85
0.90411
0
vue-tools
758
2023-09-27T16:08:47.021829
MIT
false
f5520ec025f9a093a19d63227b36e01c
import sys\nfrom typing import IO, Any, Iterable, List, NoReturn, Optional, Text, Union\nfrom xml.sax.handler import ContentHandler, ErrorHandler\nfrom xml.sax.xmlreader import Locator, XMLReader\n\nclass SAXException(Exception):\n def __init__(self, msg: str, exception: Optional[Exception] = ...) -> None: ...\n def getMessage(self) -> str: ...\n def getException(self) -> Exception: ...\n def __getitem__(self, ix: Any) -> NoReturn: ...\n\nclass SAXParseException(SAXException):\n def __init__(self, msg: str, exception: Exception, locator: Locator) -> None: ...\n def getColumnNumber(self) -> int: ...\n def getLineNumber(self) -> int: ...\n def getPublicId(self): ...\n def getSystemId(self): ...\n\nclass SAXNotRecognizedException(SAXException): ...\nclass SAXNotSupportedException(SAXException): ...\nclass SAXReaderNotAvailable(SAXNotSupportedException): ...\n\ndefault_parser_list: List[str]\n\nif sys.version_info >= (3, 8):\n def make_parser(parser_list: Iterable[str] = ...) -> XMLReader: ...\n\nelse:\n def make_parser(parser_list: List[str] = ...) -> XMLReader: ...\n\ndef parse(source: Union[str, IO[str], IO[bytes]], handler: ContentHandler, errorHandler: ErrorHandler = ...) -> None: ...\ndef parseString(string: Union[bytes, Text], handler: ContentHandler, errorHandler: Optional[ErrorHandler] = ...) -> None: ...\ndef _create_parser(parser_name: str) -> XMLReader: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\xml\sax\__init__.pyi
__init__.pyi
Other
1,389
0.85
0.606061
0
react-lib
280
2025-01-18T23:34:31.837885
GPL-3.0
false
864f3a06e4c7e4c2a1b12cdcb12d87e8
# Types to support PEP 3333 (WSGI)\n#\n# This module doesn't exist at runtime and neither do the types defined in this\n# file. They are provided for type checking purposes.\n\nfrom sys import _OptExcInfo\nfrom typing import Any, Callable, Dict, Iterable, List, Optional, Protocol, Text, Tuple\n\nclass StartResponse(Protocol):\n def __call__(\n self, status: str, headers: List[Tuple[str, str]], exc_info: Optional[_OptExcInfo] = ...\n ) -> Callable[[bytes], Any]: ...\n\nWSGIEnvironment = Dict[Text, Any]\nWSGIApplication = Callable[[WSGIEnvironment, StartResponse], Iterable[bytes]]\n\n# WSGI input streams per PEP 3333\nclass InputStream(Protocol):\n def read(self, size: int = ...) -> bytes: ...\n def readline(self, size: int = ...) -> bytes: ...\n def readlines(self, hint: int = ...) -> List[bytes]: ...\n def __iter__(self) -> Iterable[bytes]: ...\n\n# WSGI error streams per PEP 3333\nclass ErrorStream(Protocol):\n def flush(self) -> None: ...\n def write(self, s: str) -> None: ...\n def writelines(self, seq: List[str]) -> None: ...\n\nclass _Readable(Protocol):\n def read(self, size: int = ...) -> bytes: ...\n\n# Optional file wrapper in wsgi.file_wrapper\nclass FileWrapper(Protocol):\n def __call__(self, file: _Readable, block_size: int = ...) -> Iterable[bytes]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_typeshed\wsgi.pyi
wsgi.pyi
Other
1,293
0.95
0.457143
0.25
react-lib
501
2024-04-08T00:07:54.857904
MIT
false
b16b9f5d72a59e2bb039bae5824e797f
# Stub-only types. This module does not exist at runtime.\n\nfrom typing import Any, Optional\nfrom typing_extensions import Protocol\n\n# As defined https://docs.python.org/3/library/xml.dom.html#domimplementation-objects\nclass DOMImplementation(Protocol):\n def hasFeature(self, feature: str, version: Optional[str]) -> bool: ...\n def createDocument(self, namespaceUri: str, qualifiedName: str, doctype: Optional[Any]) -> Any: ...\n def createDocumentType(self, qualifiedName: str, publicId: str, systemId: str) -> Any: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_typeshed\xml.pyi
xml.pyi
Other
528
0.95
0.4
0.25
node-utils
444
2025-07-01T18:32:30.514373
BSD-3-Clause
false
0176cef4f73856df5caa4304d1d3ff63
# Utility types for typeshed\n\n# This module contains various common types to be used by typeshed. The\n# module and its types do not exist at runtime. You can use this module\n# outside of typeshed, but no API stability guarantees are made. To use\n# it in implementation (.py) files, the following construct must be used:\n#\n# from typing import TYPE_CHECKING\n# if TYPE_CHECKING:\n# from _typeshed import ...\n#\n# If on Python versions < 3.10 and "from __future__ import annotations"\n# is not used, types from this module must be quoted.\n\nimport array\nimport mmap\nimport sys\nfrom typing import AbstractSet, Any, Container, Iterable, Protocol, Text, Tuple, TypeVar, Union\nfrom typing_extensions import Literal, final\n\n_KT = TypeVar("_KT")\n_KT_co = TypeVar("_KT_co", covariant=True)\n_KT_contra = TypeVar("_KT_contra", contravariant=True)\n_VT = TypeVar("_VT")\n_VT_co = TypeVar("_VT_co", covariant=True)\n_T_co = TypeVar("_T_co", covariant=True)\n_T_contra = TypeVar("_T_contra", contravariant=True)\n\nclass SupportsLessThan(Protocol):\n def __lt__(self, __other: Any) -> bool: ...\n\nSupportsLessThanT = TypeVar("SupportsLessThanT", bound=SupportsLessThan) # noqa: Y001\n\n# Mapping-like protocols\n\nclass SupportsItems(Protocol[_KT_co, _VT_co]):\n if sys.version_info >= (3,):\n def items(self) -> AbstractSet[Tuple[_KT_co, _VT_co]]: ...\n else:\n # We want dictionaries to support this on Python 2.\n def items(self) -> Iterable[Tuple[_KT_co, _VT_co]]: ...\n\nclass SupportsKeysAndGetItem(Protocol[_KT, _VT_co]):\n def keys(self) -> Iterable[_KT]: ...\n def __getitem__(self, __k: _KT) -> _VT_co: ...\n\nclass SupportsGetItem(Container[_KT_contra], Protocol[_KT_contra, _VT_co]):\n def __getitem__(self, __k: _KT_contra) -> _VT_co: ...\n\nclass SupportsItemAccess(SupportsGetItem[_KT_contra, _VT], Protocol[_KT_contra, _VT]):\n def __setitem__(self, __k: _KT_contra, __v: _VT) -> None: ...\n def __delitem__(self, __v: _KT_contra) -> None: ...\n\n# StrPath and AnyPath can be used in places where a\n# path can be used instead of a string, starting with Python 3.6.\nif sys.version_info >= (3, 6):\n from os import PathLike\n\n StrPath = Union[str, PathLike[str]]\n BytesPath = Union[bytes, PathLike[bytes]]\n AnyPath = Union[str, bytes, PathLike[str], PathLike[bytes]]\nelse:\n StrPath = Text\n BytesPath = bytes\n AnyPath = Union[Text, bytes]\n\nOpenTextMode = Literal[\n "r",\n "r+",\n "+r",\n "rt",\n "tr",\n "rt+",\n "r+t",\n "+rt",\n "tr+",\n "t+r",\n "+tr",\n "w",\n "w+",\n "+w",\n "wt",\n "tw",\n "wt+",\n "w+t",\n "+wt",\n "tw+",\n "t+w",\n "+tw",\n "a",\n "a+",\n "+a",\n "at",\n "ta",\n "at+",\n "a+t",\n "+at",\n "ta+",\n "t+a",\n "+ta",\n "x",\n "x+",\n "+x",\n "xt",\n "tx",\n "xt+",\n "x+t",\n "+xt",\n "tx+",\n "t+x",\n "+tx",\n "U",\n "rU",\n "Ur",\n "rtU",\n "rUt",\n "Urt",\n "trU",\n "tUr",\n "Utr",\n]\nOpenBinaryModeUpdating = Literal[\n "rb+",\n "r+b",\n "+rb",\n "br+",\n "b+r",\n "+br",\n "wb+",\n "w+b",\n "+wb",\n "bw+",\n "b+w",\n "+bw",\n "ab+",\n "a+b",\n "+ab",\n "ba+",\n "b+a",\n "+ba",\n "xb+",\n "x+b",\n "+xb",\n "bx+",\n "b+x",\n "+bx",\n]\nOpenBinaryModeWriting = Literal["wb", "bw", "ab", "ba", "xb", "bx"]\nOpenBinaryModeReading = Literal["rb", "br", "rbU", "rUb", "Urb", "brU", "bUr", "Ubr"]\nOpenBinaryMode = Union[OpenBinaryModeUpdating, OpenBinaryModeReading, OpenBinaryModeWriting]\n\nclass HasFileno(Protocol):\n def fileno(self) -> int: ...\n\nFileDescriptor = int\nFileDescriptorLike = Union[int, HasFileno]\n\nclass SupportsRead(Protocol[_T_co]):\n def read(self, __length: int = ...) -> _T_co: ...\n\nclass SupportsReadline(Protocol[_T_co]):\n def readline(self, __length: int = ...) -> _T_co: ...\n\nclass SupportsNoArgReadline(Protocol[_T_co]):\n def readline(self) -> _T_co: ...\n\nclass SupportsWrite(Protocol[_T_contra]):\n def write(self, __s: _T_contra) -> int: ...\n\nif sys.version_info >= (3,):\n ReadableBuffer = Union[bytes, bytearray, memoryview, array.array, mmap.mmap]\n WriteableBuffer = Union[bytearray, memoryview, array.array, mmap.mmap]\nelse:\n ReadableBuffer = Union[bytes, bytearray, memoryview, array.array, mmap.mmap, buffer]\n WriteableBuffer = Union[bytearray, memoryview, array.array, mmap.mmap, buffer]\n\nif sys.version_info >= (3, 10):\n from types import NoneType as NoneType\nelse:\n # Used by type checkers for checks involving None (does not exist at runtime)\n @final\n class NoneType:\n def __bool__(self) -> Literal[False]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\_typeshed\__init__.pyi
__init__.pyi
Other
4,615
0.95
0.174863
0.104938
react-lib
197
2025-02-11T23:19:02.489984
MIT
false
c85c0b7da1c9b7da5537722e0abadd90
from typing import Any, Callable, Type, TypeVar\n\n_T = TypeVar("_T")\n_FuncT = TypeVar("_FuncT", bound=Callable[..., Any])\n\n# These definitions have special processing in mypy\nclass ABCMeta(type):\n def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ...\n\ndef abstractmethod(callable: _FuncT) -> _FuncT: ...\n\nclass abstractproperty(property): ...\n\n# These two are deprecated and not supported by mypy\ndef abstractstaticmethod(callable: _FuncT) -> _FuncT: ...\ndef abstractclassmethod(callable: _FuncT) -> _FuncT: ...\n\nclass ABC(metaclass=ABCMeta): ...\n\ndef get_cache_token() -> object: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\abc.pyi
abc.pyi
Other
597
0.95
0.4
0.153846
vue-tools
50
2024-06-02T14:06:58.870350
MIT
false
a293b3835974856dd90cfc373cc7321b
# Rename typing to _typing, as not to conflict with typing imported\n# from _ast below when loaded in an unorthodox way by the Dropbox\n# internal Bazel integration.\n\n# The same unorthodox Bazel integration causes issues with sys, which\n# is imported in both modules. unfortunately we can't just rename sys,\n# since mypy only supports version checks with a sys that is named\n# sys.\nimport sys\nimport typing as _typing\nfrom typing import Any, Iterator, Optional, TypeVar, Union, overload\nfrom typing_extensions import Literal\n\nfrom _ast import * # type: ignore\n\nif sys.version_info >= (3, 8):\n class Num(Constant):\n value: complex\n class Str(Constant):\n value: str\n # Aliases for value, for backwards compatibility\n s: str\n class Bytes(Constant):\n value: bytes\n # Aliases for value, for backwards compatibility\n s: bytes\n class NameConstant(Constant): ...\n class Ellipsis(Constant): ...\n\nif sys.version_info >= (3, 9):\n class slice(AST): ...\n class ExtSlice(slice): ...\n class Index(slice): ...\n class Suite(mod): ...\n class AugLoad(expr_context): ...\n class AugStore(expr_context): ...\n class Param(expr_context): ...\n\nclass NodeVisitor:\n def visit(self, node: AST) -> Any: ...\n def generic_visit(self, node: AST) -> Any: ...\n def visit_Module(self, node: Module) -> Any: ...\n def visit_Interactive(self, node: Interactive) -> Any: ...\n def visit_Expression(self, node: Expression) -> Any: ...\n def visit_FunctionDef(self, node: FunctionDef) -> Any: ...\n def visit_AsyncFunctionDef(self, node: AsyncFunctionDef) -> Any: ...\n def visit_ClassDef(self, node: ClassDef) -> Any: ...\n def visit_Return(self, node: Return) -> Any: ...\n def visit_Delete(self, node: Delete) -> Any: ...\n def visit_Assign(self, node: Assign) -> Any: ...\n def visit_AugAssign(self, node: AugAssign) -> Any: ...\n def visit_AnnAssign(self, node: AnnAssign) -> Any: ...\n def visit_For(self, node: For) -> Any: ...\n def visit_AsyncFor(self, node: AsyncFor) -> Any: ...\n def visit_While(self, node: While) -> Any: ...\n def visit_If(self, node: If) -> Any: ...\n def visit_With(self, node: With) -> Any: ...\n def visit_AsyncWith(self, node: AsyncWith) -> Any: ...\n def visit_Raise(self, node: Raise) -> Any: ...\n def visit_Try(self, node: Try) -> Any: ...\n def visit_Assert(self, node: Assert) -> Any: ...\n def visit_Import(self, node: Import) -> Any: ...\n def visit_ImportFrom(self, node: ImportFrom) -> Any: ...\n def visit_Global(self, node: Global) -> Any: ...\n def visit_Nonlocal(self, node: Nonlocal) -> Any: ...\n def visit_Expr(self, node: Expr) -> Any: ...\n def visit_Pass(self, node: Pass) -> Any: ...\n def visit_Break(self, node: Break) -> Any: ...\n def visit_Continue(self, node: Continue) -> Any: ...\n def visit_Slice(self, node: Slice) -> Any: ...\n def visit_BoolOp(self, node: BoolOp) -> Any: ...\n def visit_BinOp(self, node: BinOp) -> Any: ...\n def visit_UnaryOp(self, node: UnaryOp) -> Any: ...\n def visit_Lambda(self, node: Lambda) -> Any: ...\n def visit_IfExp(self, node: IfExp) -> Any: ...\n def visit_Dict(self, node: Dict) -> Any: ...\n def visit_Set(self, node: Set) -> Any: ...\n def visit_ListComp(self, node: ListComp) -> Any: ...\n def visit_SetComp(self, node: SetComp) -> Any: ...\n def visit_DictComp(self, node: DictComp) -> Any: ...\n def visit_GeneratorExp(self, node: GeneratorExp) -> Any: ...\n def visit_Await(self, node: Await) -> Any: ...\n def visit_Yield(self, node: Yield) -> Any: ...\n def visit_YieldFrom(self, node: YieldFrom) -> Any: ...\n def visit_Compare(self, node: Compare) -> Any: ...\n def visit_Call(self, node: Call) -> Any: ...\n def visit_FormattedValue(self, node: FormattedValue) -> Any: ...\n def visit_JoinedStr(self, node: JoinedStr) -> Any: ...\n def visit_Constant(self, node: Constant) -> Any: ...\n if sys.version_info >= (3, 8):\n def visit_NamedExpr(self, node: NamedExpr) -> Any: ...\n def visit_Attribute(self, node: Attribute) -> Any: ...\n def visit_Subscript(self, node: Subscript) -> Any: ...\n def visit_Starred(self, node: Starred) -> Any: ...\n def visit_Name(self, node: Name) -> Any: ...\n def visit_List(self, node: List) -> Any: ...\n def visit_Tuple(self, node: Tuple) -> Any: ...\n def visit_Del(self, node: Del) -> Any: ...\n def visit_Load(self, node: Load) -> Any: ...\n def visit_Store(self, node: Store) -> Any: ...\n def visit_And(self, node: And) -> Any: ...\n def visit_Or(self, node: Or) -> Any: ...\n def visit_Add(self, node: Add) -> Any: ...\n def visit_BitAnd(self, node: BitAnd) -> Any: ...\n def visit_BitOr(self, node: BitOr) -> Any: ...\n def visit_BitXor(self, node: BitXor) -> Any: ...\n def visit_Div(self, node: Div) -> Any: ...\n def visit_FloorDiv(self, node: FloorDiv) -> Any: ...\n def visit_LShift(self, node: LShift) -> Any: ...\n def visit_Mod(self, node: Mod) -> Any: ...\n def visit_Mult(self, node: Mult) -> Any: ...\n def visit_MatMult(self, node: MatMult) -> Any: ...\n def visit_Pow(self, node: Pow) -> Any: ...\n def visit_RShift(self, node: RShift) -> Any: ...\n def visit_Sub(self, node: Sub) -> Any: ...\n def visit_Invert(self, node: Invert) -> Any: ...\n def visit_Not(self, node: Not) -> Any: ...\n def visit_UAdd(self, node: UAdd) -> Any: ...\n def visit_USub(self, node: USub) -> Any: ...\n def visit_Eq(self, node: Eq) -> Any: ...\n def visit_Gt(self, node: Gt) -> Any: ...\n def visit_GtE(self, node: GtE) -> Any: ...\n def visit_In(self, node: In) -> Any: ...\n def visit_Is(self, node: Is) -> Any: ...\n def visit_IsNot(self, node: IsNot) -> Any: ...\n def visit_Lt(self, node: Lt) -> Any: ...\n def visit_LtE(self, node: LtE) -> Any: ...\n def visit_NotEq(self, node: NotEq) -> Any: ...\n def visit_NotIn(self, node: NotIn) -> Any: ...\n def visit_comprehension(self, node: comprehension) -> Any: ...\n def visit_ExceptHandler(self, node: ExceptHandler) -> Any: ...\n def visit_arguments(self, node: arguments) -> Any: ...\n def visit_arg(self, node: arg) -> Any: ...\n def visit_keyword(self, node: keyword) -> Any: ...\n def visit_alias(self, node: alias) -> Any: ...\n def visit_withitem(self, node: withitem) -> Any: ...\n # visit methods for deprecated nodes\n def visit_ExtSlice(self, node: ExtSlice) -> Any: ...\n def visit_Index(self, node: Index) -> Any: ...\n def visit_Suite(self, node: Suite) -> Any: ...\n def visit_AugLoad(self, node: AugLoad) -> Any: ...\n def visit_AugStore(self, node: AugStore) -> Any: ...\n def visit_Param(self, node: Param) -> Any: ...\n def visit_Num(self, node: Num) -> Any: ...\n def visit_Str(self, node: Str) -> Any: ...\n def visit_Bytes(self, node: Bytes) -> Any: ...\n def visit_NameConstant(self, node: NameConstant) -> Any: ...\n def visit_Ellipsis(self, node: Ellipsis) -> Any: ...\n\nclass NodeTransformer(NodeVisitor):\n def generic_visit(self, node: AST) -> AST: ...\n # TODO: Override the visit_* methods with better return types.\n # The usual return type is Optional[AST], but Iterable[AST]\n # is also allowed in some cases -- this needs to be mapped.\n\n_T = TypeVar("_T", bound=AST)\n\nif sys.version_info >= (3, 8):\n @overload\n def parse(\n source: Union[str, bytes],\n filename: Union[str, bytes] = ...,\n mode: Literal["exec"] = ...,\n *,\n type_comments: bool = ...,\n feature_version: Union[None, int, _typing.Tuple[int, int]] = ...,\n ) -> Module: ...\n @overload\n def parse(\n source: Union[str, bytes],\n filename: Union[str, bytes] = ...,\n mode: str = ...,\n *,\n type_comments: bool = ...,\n feature_version: Union[None, int, _typing.Tuple[int, int]] = ...,\n ) -> AST: ...\n\nelse:\n @overload\n def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: Literal["exec"] = ...) -> Module: ...\n @overload\n def parse(source: Union[str, bytes], filename: Union[str, bytes] = ..., mode: str = ...) -> AST: ...\n\nif sys.version_info >= (3, 9):\n def unparse(ast_obj: AST) -> str: ...\n\ndef copy_location(new_node: _T, old_node: AST) -> _T: ...\n\nif sys.version_info >= (3, 9):\n def dump(\n node: AST, annotate_fields: bool = ..., include_attributes: bool = ..., *, indent: Union[int, str, None] = ...\n ) -> str: ...\n\nelse:\n def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ...\n\ndef fix_missing_locations(node: _T) -> _T: ...\ndef get_docstring(node: AST, clean: bool = ...) -> Optional[str]: ...\ndef increment_lineno(node: _T, n: int = ...) -> _T: ...\ndef iter_child_nodes(node: AST) -> Iterator[AST]: ...\ndef iter_fields(node: AST) -> Iterator[_typing.Tuple[str, Any]]: ...\ndef literal_eval(node_or_string: Union[str, AST]) -> Any: ...\n\nif sys.version_info >= (3, 8):\n def get_source_segment(source: str, node: AST, *, padded: bool = ...) -> Optional[str]: ...\n\ndef walk(node: AST) -> Iterator[AST]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\ast.pyi
ast.pyi
Other
9,090
0.95
0.724638
0.078534
react-lib
648
2023-12-11T14:00:37.529037
MIT
false
026e99b4bf1fe30d7f7568980da18e3b
from typing import Any, Callable\n\ndef _clear() -> None: ...\ndef _ncallbacks() -> int: ...\ndef _run_exitfuncs() -> None: ...\ndef register(func: Callable[..., Any], *args: Any, **kwargs: Any) -> Callable[..., Any]: ...\ndef unregister(func: Callable[..., Any]) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\atexit.pyi
atexit.pyi
Other
271
0.85
0.714286
0
vue-tools
144
2024-05-04T22:15:51.263880
GPL-3.0
false
bdaa7d96ed2d1fd555b88feaa974494e
import sys\nfrom _typeshed import (\n AnyPath,\n OpenBinaryMode,\n OpenBinaryModeReading,\n OpenBinaryModeUpdating,\n OpenBinaryModeWriting,\n OpenTextMode,\n ReadableBuffer,\n SupportsKeysAndGetItem,\n SupportsLessThan,\n SupportsLessThanT,\n SupportsWrite,\n)\nfrom ast import AST, mod\nfrom io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper\nfrom types import CodeType, TracebackType\nfrom typing import (\n IO,\n AbstractSet,\n Any,\n BinaryIO,\n ByteString,\n Callable,\n Container,\n Dict,\n FrozenSet,\n Generic,\n ItemsView,\n Iterable,\n Iterator,\n KeysView,\n List,\n Mapping,\n MutableMapping,\n MutableSequence,\n MutableSet,\n NoReturn,\n Optional,\n Protocol,\n Reversible,\n Sequence,\n Set,\n Sized,\n SupportsAbs,\n SupportsBytes,\n SupportsComplex,\n SupportsFloat,\n SupportsInt,\n SupportsRound,\n Tuple,\n Type,\n TypeVar,\n Union,\n ValuesView,\n overload,\n runtime_checkable,\n)\nfrom typing_extensions import Literal\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\nclass _SupportsIndex(Protocol):\n def __index__(self) -> int: ...\n\nclass _SupportsTrunc(Protocol):\n def __trunc__(self) -> int: ...\n\n_T = TypeVar("_T")\n_T_co = TypeVar("_T_co", covariant=True)\n_KT = TypeVar("_KT")\n_VT = TypeVar("_VT")\n_S = TypeVar("_S")\n_T1 = TypeVar("_T1")\n_T2 = TypeVar("_T2")\n_T3 = TypeVar("_T3")\n_T4 = TypeVar("_T4")\n_T5 = TypeVar("_T5")\n_TT = TypeVar("_TT", bound="type")\n_TBE = TypeVar("_TBE", bound="BaseException")\n\nclass object:\n __doc__: Optional[str]\n __dict__: Dict[str, Any]\n __slots__: Union[str, Iterable[str]]\n __module__: str\n __annotations__: Dict[str, Any]\n @property\n def __class__(self: _T) -> Type[_T]: ...\n @__class__.setter\n def __class__(self, __type: Type[object]) -> None: ... # noqa: F811\n def __init__(self) -> None: ...\n def __new__(cls) -> Any: ...\n def __setattr__(self, name: str, value: Any) -> None: ...\n def __eq__(self, o: object) -> bool: ...\n def __ne__(self, o: object) -> bool: ...\n def __str__(self) -> str: ...\n def __repr__(self) -> str: ...\n def __hash__(self) -> int: ...\n def __format__(self, format_spec: str) -> str: ...\n def __getattribute__(self, name: str) -> Any: ...\n def __delattr__(self, name: str) -> None: ...\n def __sizeof__(self) -> int: ...\n def __reduce__(self) -> Union[str, Tuple[Any, ...]]: ...\n def __reduce_ex__(self, protocol: int) -> Union[str, Tuple[Any, ...]]: ...\n def __dir__(self) -> Iterable[str]: ...\n def __init_subclass__(cls) -> None: ...\n\nclass staticmethod(object): # Special, only valid as a decorator.\n __func__: Callable[..., Any]\n __isabstractmethod__: bool\n def __init__(self, f: Callable[..., Any]) -> None: ...\n def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...\n def __get__(self, obj: _T, type: Optional[Type[_T]] = ...) -> Callable[..., Any]: ...\n\nclass classmethod(object): # Special, only valid as a decorator.\n __func__: Callable[..., Any]\n __isabstractmethod__: bool\n def __init__(self, f: Callable[..., Any]) -> None: ...\n def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...\n def __get__(self, obj: _T, type: Optional[Type[_T]] = ...) -> Callable[..., Any]: ...\n\nclass type(object):\n __base__: type\n __bases__: Tuple[type, ...]\n __basicsize__: int\n __dict__: Dict[str, Any]\n __dictoffset__: int\n __flags__: int\n __itemsize__: int\n __module__: str\n __mro__: Tuple[type, ...]\n __name__: str\n __qualname__: str\n __text_signature__: Optional[str]\n __weakrefoffset__: int\n @overload\n def __init__(self, o: object) -> None: ...\n @overload\n def __init__(self, name: str, bases: Tuple[type, ...], dict: Dict[str, Any]) -> None: ...\n @overload\n def __new__(cls, o: object) -> type: ...\n @overload\n def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ...\n def __call__(self, *args: Any, **kwds: Any) -> Any: ...\n def __subclasses__(self: _TT) -> List[_TT]: ...\n # Note: the documentation doesnt specify what the return type is, the standard\n # implementation seems to be returning a list.\n def mro(self) -> List[type]: ...\n def __instancecheck__(self, instance: Any) -> bool: ...\n def __subclasscheck__(self, subclass: type) -> bool: ...\n @classmethod\n def __prepare__(metacls, __name: str, __bases: Tuple[type, ...], **kwds: Any) -> Mapping[str, Any]: ...\n\nclass super(object):\n @overload\n def __init__(self, t: Any, obj: Any) -> None: ...\n @overload\n def __init__(self, t: Any) -> None: ...\n @overload\n def __init__(self) -> None: ...\n\nclass int:\n @overload\n def __new__(cls: Type[_T], x: Union[str, bytes, SupportsInt, _SupportsIndex, _SupportsTrunc] = ...) -> _T: ...\n @overload\n def __new__(cls: Type[_T], x: Union[str, bytes, bytearray], base: int) -> _T: ...\n @overload\n def __init__(self, x: Union[str, bytes, SupportsInt, _SupportsIndex, _SupportsTrunc] = ...) -> _T: ...\n @overload\n def __init__(self, x: Union[str, bytes, bytearray], base: int) -> _T: ...\n if sys.version_info >= (3, 8):\n def as_integer_ratio(self) -> Tuple[int, Literal[1]]: ...\n @property\n def real(self) -> int: ...\n @property\n def imag(self) -> int: ...\n @property\n def numerator(self) -> int: ...\n @property\n def denominator(self) -> int: ...\n def conjugate(self) -> int: ...\n def bit_length(self) -> int: ...\n def to_bytes(self, length: int, byteorder: str, *, signed: bool = ...) -> bytes: ...\n @classmethod\n def from_bytes(\n cls, bytes: Union[Iterable[int], SupportsBytes], byteorder: str, *, signed: bool = ...\n ) -> int: ... # TODO buffer object argument\n def __add__(self, x: int) -> int: ...\n def __sub__(self, x: int) -> int: ...\n def __mul__(self, x: int) -> int: ...\n def __floordiv__(self, x: int) -> int: ...\n def __truediv__(self, x: int) -> float: ...\n def __mod__(self, x: int) -> int: ...\n def __divmod__(self, x: int) -> Tuple[int, int]: ...\n def __radd__(self, x: int) -> int: ...\n def __rsub__(self, x: int) -> int: ...\n def __rmul__(self, x: int) -> int: ...\n def __rfloordiv__(self, x: int) -> int: ...\n def __rtruediv__(self, x: int) -> float: ...\n def __rmod__(self, x: int) -> int: ...\n def __rdivmod__(self, x: int) -> Tuple[int, int]: ...\n @overload\n def __pow__(self, __x: Literal[2], __modulo: Optional[int] = ...) -> int: ...\n @overload\n def __pow__(self, __x: int, __modulo: Optional[int] = ...) -> Any: ... # Return type can be int or float, depending on x.\n def __rpow__(self, x: int, mod: Optional[int] = ...) -> Any: ...\n def __and__(self, n: int) -> int: ...\n def __or__(self, n: int) -> int: ...\n def __xor__(self, n: int) -> int: ...\n def __lshift__(self, n: int) -> int: ...\n def __rshift__(self, n: int) -> int: ...\n def __rand__(self, n: int) -> int: ...\n def __ror__(self, n: int) -> int: ...\n def __rxor__(self, n: int) -> int: ...\n def __rlshift__(self, n: int) -> int: ...\n def __rrshift__(self, n: int) -> int: ...\n def __neg__(self) -> int: ...\n def __pos__(self) -> int: ...\n def __invert__(self) -> int: ...\n def __trunc__(self) -> int: ...\n def __ceil__(self) -> int: ...\n def __floor__(self) -> int: ...\n def __round__(self, ndigits: Optional[int] = ...) -> int: ...\n def __getnewargs__(self) -> Tuple[int]: ...\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __lt__(self, x: int) -> bool: ...\n def __le__(self, x: int) -> bool: ...\n def __gt__(self, x: int) -> bool: ...\n def __ge__(self, x: int) -> bool: ...\n def __str__(self) -> str: ...\n def __float__(self) -> float: ...\n def __int__(self) -> int: ...\n def __abs__(self) -> int: ...\n def __hash__(self) -> int: ...\n def __bool__(self) -> bool: ...\n def __index__(self) -> int: ...\n\nclass float:\n def __new__(cls: Type[_T], x: Union[SupportsFloat, _SupportsIndex, str, bytes, bytearray] = ...) -> _T: ...\n def as_integer_ratio(self) -> Tuple[int, int]: ...\n def hex(self) -> str: ...\n def is_integer(self) -> bool: ...\n @classmethod\n def fromhex(cls, __s: str) -> float: ...\n @property\n def real(self) -> float: ...\n @property\n def imag(self) -> float: ...\n def conjugate(self) -> float: ...\n def __add__(self, x: float) -> float: ...\n def __sub__(self, x: float) -> float: ...\n def __mul__(self, x: float) -> float: ...\n def __floordiv__(self, x: float) -> float: ...\n def __truediv__(self, x: float) -> float: ...\n def __mod__(self, x: float) -> float: ...\n def __divmod__(self, x: float) -> Tuple[float, float]: ...\n def __pow__(\n self, x: float, mod: None = ...\n ) -> float: ... # In Python 3, returns complex if self is negative and x is not whole\n def __radd__(self, x: float) -> float: ...\n def __rsub__(self, x: float) -> float: ...\n def __rmul__(self, x: float) -> float: ...\n def __rfloordiv__(self, x: float) -> float: ...\n def __rtruediv__(self, x: float) -> float: ...\n def __rmod__(self, x: float) -> float: ...\n def __rdivmod__(self, x: float) -> Tuple[float, float]: ...\n def __rpow__(self, x: float, mod: None = ...) -> float: ...\n def __getnewargs__(self) -> Tuple[float]: ...\n def __trunc__(self) -> int: ...\n if sys.version_info >= (3, 9):\n def __ceil__(self) -> int: ...\n def __floor__(self) -> int: ...\n @overload\n def __round__(self, ndigits: None = ...) -> int: ...\n @overload\n def __round__(self, ndigits: int) -> float: ...\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __lt__(self, x: float) -> bool: ...\n def __le__(self, x: float) -> bool: ...\n def __gt__(self, x: float) -> bool: ...\n def __ge__(self, x: float) -> bool: ...\n def __neg__(self) -> float: ...\n def __pos__(self) -> float: ...\n def __str__(self) -> str: ...\n def __int__(self) -> int: ...\n def __float__(self) -> float: ...\n def __abs__(self) -> float: ...\n def __hash__(self) -> int: ...\n def __bool__(self) -> bool: ...\n\nclass complex:\n @overload\n def __new__(cls: Type[_T], real: float = ..., imag: float = ...) -> _T: ...\n @overload\n def __new__(cls: Type[_T], real: Union[str, SupportsComplex, _SupportsIndex]) -> _T: ...\n @property\n def real(self) -> float: ...\n @property\n def imag(self) -> float: ...\n def conjugate(self) -> complex: ...\n def __add__(self, x: complex) -> complex: ...\n def __sub__(self, x: complex) -> complex: ...\n def __mul__(self, x: complex) -> complex: ...\n def __pow__(self, x: complex, mod: None = ...) -> complex: ...\n def __truediv__(self, x: complex) -> complex: ...\n def __radd__(self, x: complex) -> complex: ...\n def __rsub__(self, x: complex) -> complex: ...\n def __rmul__(self, x: complex) -> complex: ...\n def __rpow__(self, x: complex, mod: None = ...) -> complex: ...\n def __rtruediv__(self, x: complex) -> complex: ...\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __neg__(self) -> complex: ...\n def __pos__(self) -> complex: ...\n def __str__(self) -> str: ...\n def __complex__(self) -> complex: ...\n def __abs__(self) -> float: ...\n def __hash__(self) -> int: ...\n def __bool__(self) -> bool: ...\n\nclass _FormatMapMapping(Protocol):\n def __getitem__(self, __key: str) -> Any: ...\n\nclass str(Sequence[str]):\n @overload\n def __new__(cls: Type[_T], o: object = ...) -> _T: ...\n @overload\n def __new__(cls: Type[_T], o: bytes, encoding: str = ..., errors: str = ...) -> _T: ...\n @overload\n def __init__(self, o: object = ...) -> _T: ...\n @overload\n def __init__(self, o: bytes, encoding: str = ..., errors: str = ...) -> _T: ...\n def capitalize(self) -> str: ...\n def casefold(self) -> str: ...\n def center(self, __width: int, __fillchar: str = ...) -> str: ...\n def count(self, x: str, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def encode(self, encoding: str = ..., errors: str = ...) -> bytes: ...\n def endswith(self, suffix: Union[str, Tuple[str, ...]], start: Optional[int] = ..., end: Optional[int] = ...) -> bool: ...\n def expandtabs(self, tabsize: int = ...) -> str: ...\n def find(self, sub: str, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def format(self, *args: object, **kwargs: object) -> str: ...\n def format_map(self, map: _FormatMapMapping) -> str: ...\n def index(self, sub: str, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def isalnum(self) -> bool: ...\n def isalpha(self) -> bool: ...\n if sys.version_info >= (3, 7):\n def isascii(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, __iterable: Iterable[str]) -> str: ...\n def ljust(self, __width: int, __fillchar: str = ...) -> str: ...\n def lower(self) -> str: ...\n def lstrip(self, __chars: Optional[str] = ...) -> str: ...\n def partition(self, __sep: str) -> Tuple[str, str, str]: ...\n def replace(self, __old: str, __new: str, __count: int = ...) -> str: ...\n if sys.version_info >= (3, 9):\n def removeprefix(self, __prefix: str) -> str: ...\n def removesuffix(self, __suffix: str) -> str: ...\n def rfind(self, sub: str, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def rindex(self, sub: str, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def rjust(self, __width: int, __fillchar: str = ...) -> str: ...\n def rpartition(self, __sep: str) -> Tuple[str, str, str]: ...\n def rsplit(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...\n def rstrip(self, __chars: Optional[str] = ...) -> str: ...\n def split(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: Optional[int] = ..., end: Optional[int] = ...) -> bool: ...\n def strip(self, __chars: Optional[str] = ...) -> str: ...\n def swapcase(self) -> str: ...\n def title(self) -> str: ...\n def translate(self, __table: Union[Mapping[int, Union[int, str, None]], Sequence[Union[int, str, None]]]) -> str: ...\n def upper(self) -> str: ...\n def zfill(self, __width: int) -> str: ...\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: Optional[str] = ...) -> Dict[int, Union[int, None]]: ...\n def __add__(self, s: str) -> str: ...\n # Incompatible with Sequence.__contains__\n def __contains__(self, o: str) -> bool: ... # type: ignore\n def __eq__(self, x: object) -> bool: ...\n def __ge__(self, x: str) -> bool: ...\n def __getitem__(self, i: Union[int, slice]) -> str: ...\n def __gt__(self, x: str) -> bool: ...\n def __hash__(self) -> int: ...\n def __iter__(self) -> Iterator[str]: ...\n def __le__(self, x: str) -> bool: ...\n def __len__(self) -> int: ...\n def __lt__(self, x: str) -> bool: ...\n def __mod__(self, x: Any) -> str: ...\n def __mul__(self, n: int) -> str: ...\n def __ne__(self, x: object) -> bool: ...\n def __repr__(self) -> str: ...\n def __rmul__(self, n: int) -> str: ...\n def __str__(self) -> str: ...\n def __getnewargs__(self) -> Tuple[str]: ...\n\nclass bytes(ByteString):\n @overload\n def __new__(cls: Type[_T], ints: Iterable[int]) -> _T: ...\n @overload\n def __new__(cls: Type[_T], string: str, encoding: str, errors: str = ...) -> _T: ...\n @overload\n def __new__(cls: Type[_T], length: int) -> _T: ...\n @overload\n def __new__(cls: Type[_T]) -> _T: ...\n @overload\n def __new__(cls: Type[_T], o: SupportsBytes) -> _T: ...\n def capitalize(self) -> bytes: ...\n def center(self, __width: int, __fillchar: bytes = ...) -> bytes: ...\n def count(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...\n def decode(self, encoding: str = ..., errors: str = ...) -> str: ...\n def endswith(self, suffix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...\n def expandtabs(self, tabsize: int = ...) -> bytes: ...\n def find(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...\n if sys.version_info >= (3, 8):\n def hex(self, sep: Union[str, bytes] = ..., bytes_per_sep: int = ...) -> str: ...\n else:\n def hex(self) -> str: ...\n def index(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...\n def isalnum(self) -> bool: ...\n def isalpha(self) -> bool: ...\n if sys.version_info >= (3, 7):\n def isascii(self) -> bool: ...\n def isdigit(self) -> bool: ...\n def islower(self) -> bool: ...\n def isspace(self) -> bool: ...\n def istitle(self) -> bool: ...\n def isupper(self) -> bool: ...\n def join(self, __iterable_of_bytes: Iterable[Union[ByteString, memoryview]]) -> bytes: ...\n def ljust(self, __width: int, __fillchar: bytes = ...) -> bytes: ...\n def lower(self) -> bytes: ...\n def lstrip(self, __bytes: Optional[bytes] = ...) -> bytes: ...\n def partition(self, __sep: bytes) -> Tuple[bytes, bytes, bytes]: ...\n def replace(self, __old: bytes, __new: bytes, __count: int = ...) -> bytes: ...\n if sys.version_info >= (3, 9):\n def removeprefix(self, __prefix: bytes) -> bytes: ...\n def removesuffix(self, __suffix: bytes) -> bytes: ...\n def rfind(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...\n def rindex(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...\n def rjust(self, __width: int, __fillchar: bytes = ...) -> bytes: ...\n def rpartition(self, __sep: bytes) -> Tuple[bytes, bytes, bytes]: ...\n def rsplit(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytes]: ...\n def rstrip(self, __bytes: Optional[bytes] = ...) -> bytes: ...\n def split(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytes]: ...\n def splitlines(self, keepends: bool = ...) -> List[bytes]: ...\n def startswith(\n self, prefix: Union[bytes, Tuple[bytes, ...]], start: Optional[int] = ..., end: Optional[int] = ...\n ) -> bool: ...\n def strip(self, __bytes: Optional[bytes] = ...) -> bytes: ...\n def swapcase(self) -> bytes: ...\n def title(self) -> bytes: ...\n def translate(self, __table: Optional[bytes], delete: bytes = ...) -> bytes: ...\n def upper(self) -> bytes: ...\n def zfill(self, __width: int) -> bytes: ...\n @classmethod\n def fromhex(cls, __s: str) -> bytes: ...\n @classmethod\n def maketrans(cls, frm: bytes, to: bytes) -> bytes: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[int]: ...\n def __str__(self) -> str: ...\n def __repr__(self) -> str: ...\n def __int__(self) -> int: ...\n def __float__(self) -> float: ...\n def __hash__(self) -> int: ...\n @overload\n def __getitem__(self, i: int) -> int: ...\n @overload\n def __getitem__(self, s: slice) -> bytes: ...\n def __add__(self, s: bytes) -> bytes: ...\n def __mul__(self, n: int) -> bytes: ...\n def __rmul__(self, n: int) -> bytes: ...\n def __mod__(self, value: Any) -> bytes: ...\n # Incompatible with Sequence.__contains__\n def __contains__(self, o: Union[int, bytes]) -> bool: ... # type: ignore\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __lt__(self, x: bytes) -> bool: ...\n def __le__(self, x: bytes) -> bool: ...\n def __gt__(self, x: bytes) -> bool: ...\n def __ge__(self, x: bytes) -> bool: ...\n def __getnewargs__(self) -> Tuple[bytes]: ...\n\nclass bytearray(MutableSequence[int], ByteString):\n @overload\n def __init__(self) -> None: ...\n @overload\n def __init__(self, ints: Iterable[int]) -> None: ...\n @overload\n def __init__(self, string: str, encoding: str, errors: str = ...) -> None: ...\n @overload\n def __init__(self, length: int) -> None: ...\n def capitalize(self) -> bytearray: ...\n def center(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...\n def count(self, __sub: Union[bytes, int], __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def copy(self) -> bytearray: ...\n def decode(self, encoding: str = ..., errors: str = ...) -> str: ...\n def endswith(self, __suffix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...\n def expandtabs(self, tabsize: int = ...) -> bytearray: ...\n def find(self, __sub: Union[bytes, int], __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def hex(self) -> str: ...\n def index(self, __sub: Union[bytes, int], __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def insert(self, __index: int, __item: int) -> None: ...\n def isalnum(self) -> bool: ...\n def isalpha(self) -> bool: ...\n if sys.version_info >= (3, 7):\n def isascii(self) -> bool: ...\n def isdigit(self) -> bool: ...\n def islower(self) -> bool: ...\n def isspace(self) -> bool: ...\n def istitle(self) -> bool: ...\n def isupper(self) -> bool: ...\n def join(self, __iterable_of_bytes: Iterable[Union[ByteString, memoryview]]) -> bytearray: ...\n def ljust(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...\n def lower(self) -> bytearray: ...\n def lstrip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...\n def partition(self, __sep: bytes) -> Tuple[bytearray, bytearray, bytearray]: ...\n if sys.version_info >= (3, 9):\n def removeprefix(self, __prefix: bytes) -> bytearray: ...\n def removesuffix(self, __suffix: bytes) -> bytearray: ...\n def replace(self, __old: bytes, __new: bytes, __count: int = ...) -> bytearray: ...\n def rfind(self, __sub: Union[bytes, int], __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def rindex(self, __sub: Union[bytes, int], __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def rjust(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...\n def rpartition(self, __sep: bytes) -> Tuple[bytearray, bytearray, bytearray]: ...\n def rsplit(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...\n def rstrip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...\n def split(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...\n def splitlines(self, keepends: bool = ...) -> List[bytearray]: ...\n def startswith(\n self, __prefix: Union[bytes, Tuple[bytes, ...]], __start: Optional[int] = ..., __end: Optional[int] = ...\n ) -> bool: ...\n def strip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...\n def swapcase(self) -> bytearray: ...\n def title(self) -> bytearray: ...\n def translate(self, __table: Optional[bytes], delete: bytes = ...) -> bytearray: ...\n def upper(self) -> bytearray: ...\n def zfill(self, __width: int) -> bytearray: ...\n @classmethod\n def fromhex(cls, __string: str) -> bytearray: ...\n @classmethod\n def maketrans(cls, __frm: bytes, __to: bytes) -> bytes: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[int]: ...\n def __str__(self) -> str: ...\n def __repr__(self) -> str: ...\n def __int__(self) -> int: ...\n def __float__(self) -> float: ...\n __hash__: None # type: ignore\n @overload\n def __getitem__(self, i: int) -> int: ...\n @overload\n def __getitem__(self, s: slice) -> bytearray: ...\n @overload\n def __setitem__(self, i: int, x: int) -> None: ...\n @overload\n def __setitem__(self, s: slice, x: Union[Iterable[int], bytes]) -> None: ...\n def __delitem__(self, i: Union[int, slice]) -> None: ...\n def __add__(self, s: bytes) -> bytearray: ...\n def __iadd__(self, s: Iterable[int]) -> bytearray: ...\n def __mul__(self, n: int) -> bytearray: ...\n def __rmul__(self, n: int) -> bytearray: ...\n def __imul__(self, n: int) -> bytearray: ...\n def __mod__(self, value: Any) -> bytes: ...\n # Incompatible with Sequence.__contains__\n def __contains__(self, o: Union[int, bytes]) -> bool: ... # type: ignore\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __lt__(self, x: bytes) -> bool: ...\n def __le__(self, x: bytes) -> bool: ...\n def __gt__(self, x: bytes) -> bool: ...\n def __ge__(self, x: bytes) -> bool: ...\n\nclass memoryview(Sized, Container[int]):\n format: str\n itemsize: int\n shape: Optional[Tuple[int, ...]]\n strides: Optional[Tuple[int, ...]]\n suboffsets: Optional[Tuple[int, ...]]\n readonly: bool\n ndim: int\n\n obj: Union[bytes, bytearray]\n c_contiguous: bool\n f_contiguous: bool\n contiguous: bool\n nbytes: int\n def __init__(self, obj: ReadableBuffer) -> None: ...\n def __enter__(self) -> memoryview: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n def cast(self, format: str, shape: Union[List[int], Tuple[int]] = ...) -> memoryview: ...\n @overload\n def __getitem__(self, i: int) -> int: ...\n @overload\n def __getitem__(self, s: slice) -> memoryview: ...\n def __contains__(self, x: object) -> bool: ...\n def __iter__(self) -> Iterator[int]: ...\n def __len__(self) -> int: ...\n @overload\n def __setitem__(self, s: slice, o: memoryview) -> None: ...\n @overload\n def __setitem__(self, i: int, o: bytes) -> None: ...\n @overload\n def __setitem__(self, s: slice, o: Sequence[bytes]) -> None: ...\n if sys.version_info >= (3, 8):\n def tobytes(self, order: Optional[Literal["C", "F", "A"]] = ...) -> bytes: ...\n else:\n def tobytes(self) -> bytes: ...\n def tolist(self) -> List[int]: ...\n if sys.version_info >= (3, 8):\n def toreadonly(self) -> memoryview: ...\n def release(self) -> None: ...\n def hex(self) -> str: ...\n\nclass bool(int):\n def __new__(cls: Type[_T], __o: object = ...) -> _T: ...\n def __init__(self, o: object = ...): ...\n @overload\n def __and__(self, x: bool) -> bool: ...\n @overload\n def __and__(self, x: int) -> int: ...\n @overload\n def __or__(self, x: bool) -> bool: ...\n @overload\n def __or__(self, x: int) -> int: ...\n @overload\n def __xor__(self, x: bool) -> bool: ...\n @overload\n def __xor__(self, x: int) -> int: ...\n @overload\n def __rand__(self, x: bool) -> bool: ...\n @overload\n def __rand__(self, x: int) -> int: ...\n @overload\n def __ror__(self, x: bool) -> bool: ...\n @overload\n def __ror__(self, x: int) -> int: ...\n @overload\n def __rxor__(self, x: bool) -> bool: ...\n @overload\n def __rxor__(self, x: int) -> int: ...\n def __getnewargs__(self) -> Tuple[int]: ...\n\nclass slice(object):\n start: Any\n step: Any\n stop: Any\n @overload\n def __init__(self, stop: Any) -> None: ...\n @overload\n def __init__(self, start: Any, stop: Any, step: Any = ...) -> None: ...\n __hash__: None # type: ignore\n def indices(self, len: int) -> Tuple[int, int, int]: ...\n\nclass tuple(Sequence[_T_co], Generic[_T_co]):\n def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ...\n def __init__(self, iterable: Iterable[_T_co] = ...): ...\n def __len__(self) -> int: ...\n def __contains__(self, x: object) -> bool: ...\n @overload\n def __getitem__(self, x: int) -> _T_co: ...\n @overload\n def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ...\n def __iter__(self) -> Iterator[_T_co]: ...\n def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ...\n def __le__(self, x: Tuple[_T_co, ...]) -> bool: ...\n def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ...\n def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ...\n @overload\n def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ...\n @overload\n def __add__(self, x: Tuple[Any, ...]) -> Tuple[Any, ...]: ...\n def __mul__(self, n: int) -> Tuple[_T_co, ...]: ...\n def __rmul__(self, n: int) -> Tuple[_T_co, ...]: ...\n def count(self, __value: Any) -> int: ...\n def index(self, __value: Any, __start: int = ..., __stop: int = ...) -> int: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass list(MutableSequence[_T], Generic[_T]):\n @overload\n def __init__(self) -> None: ...\n @overload\n def __init__(self, iterable: Iterable[_T]) -> None: ...\n def clear(self) -> None: ...\n def copy(self) -> List[_T]: ...\n def append(self, __object: _T) -> None: ...\n def extend(self, __iterable: Iterable[_T]) -> None: ...\n def pop(self, __index: int = ...) -> _T: ...\n def index(self, __value: _T, __start: int = ..., __stop: int = ...) -> int: ...\n def count(self, __value: _T) -> int: ...\n def insert(self, __index: int, __object: _T) -> None: ...\n def remove(self, __value: _T) -> None: ...\n def reverse(self) -> None: ...\n @overload\n def sort(self: List[SupportsLessThanT], *, key: None = ..., reverse: bool = ...) -> None: ...\n @overload\n def sort(self, *, key: Callable[[_T], SupportsLessThan], reverse: bool = ...) -> None: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[_T]: ...\n def __str__(self) -> str: ...\n __hash__: None # type: ignore\n @overload\n def __getitem__(self, i: int) -> _T: ...\n @overload\n def __getitem__(self, s: slice) -> List[_T]: ...\n @overload\n def __setitem__(self, i: int, o: _T) -> None: ...\n @overload\n def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...\n def __delitem__(self, i: Union[int, slice]) -> None: ...\n def __add__(self, x: List[_T]) -> List[_T]: ...\n def __iadd__(self: _S, x: Iterable[_T]) -> _S: ...\n def __mul__(self, n: int) -> List[_T]: ...\n def __rmul__(self, n: int) -> List[_T]: ...\n def __imul__(self: _S, n: int) -> _S: ...\n def __contains__(self, o: object) -> bool: ...\n def __reversed__(self) -> Iterator[_T]: ...\n def __gt__(self, x: List[_T]) -> bool: ...\n def __ge__(self, x: List[_T]) -> bool: ...\n def __lt__(self, x: List[_T]) -> bool: ...\n def __le__(self, x: List[_T]) -> bool: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):\n # NOTE: Keyword arguments are special. If they are used, _KT must include\n # str, but we have no way of enforcing it here.\n @overload\n def __init__(self, **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, map: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...\n def __new__(cls: Type[_T1], *args: Any, **kwargs: Any) -> _T1: ...\n def clear(self) -> None: ...\n def copy(self) -> Dict[_KT, _VT]: ...\n def popitem(self) -> Tuple[_KT, _VT]: ...\n def setdefault(self, __key: _KT, __default: _VT = ...) -> _VT: ...\n @overload\n def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...\n @overload\n def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...\n @overload\n def update(self, **kwargs: _VT) -> None: ...\n def keys(self) -> KeysView[_KT]: ...\n def values(self) -> ValuesView[_VT]: ...\n def items(self) -> ItemsView[_KT, _VT]: ...\n @classmethod\n @overload\n def fromkeys(cls, __iterable: Iterable[_T]) -> Dict[_T, Any]: ...\n @classmethod\n @overload\n def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> Dict[_T, _S]: ...\n def __len__(self) -> int: ...\n def __getitem__(self, k: _KT) -> _VT: ...\n def __setitem__(self, k: _KT, v: _VT) -> None: ...\n def __delitem__(self, v: _KT) -> None: ...\n def __iter__(self) -> Iterator[_KT]: ...\n if sys.version_info >= (3, 8):\n def __reversed__(self) -> Iterator[_KT]: ...\n def __str__(self) -> str: ...\n __hash__: None # type: ignore\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n def __or__(self, __value: Mapping[_KT, _VT]) -> Dict[_KT, _VT]: ...\n def __ior__(self, __value: Mapping[_KT, _VT]) -> Dict[_KT, _VT]: ...\n\nclass set(MutableSet[_T], Generic[_T]):\n def __init__(self, iterable: Iterable[_T] = ...) -> None: ...\n def add(self, element: _T) -> None: ...\n def clear(self) -> None: ...\n def copy(self) -> Set[_T]: ...\n def difference(self, *s: Iterable[Any]) -> Set[_T]: ...\n def difference_update(self, *s: Iterable[Any]) -> None: ...\n def discard(self, element: _T) -> None: ...\n def intersection(self, *s: Iterable[Any]) -> Set[_T]: ...\n def intersection_update(self, *s: Iterable[Any]) -> None: ...\n def isdisjoint(self, s: Iterable[Any]) -> bool: ...\n def issubset(self, s: Iterable[Any]) -> bool: ...\n def issuperset(self, s: Iterable[Any]) -> bool: ...\n def pop(self) -> _T: ...\n def remove(self, element: _T) -> None: ...\n def symmetric_difference(self, s: Iterable[_T]) -> Set[_T]: ...\n def symmetric_difference_update(self, s: Iterable[_T]) -> None: ...\n def union(self, *s: Iterable[_T]) -> Set[_T]: ...\n def update(self, *s: Iterable[_T]) -> None: ...\n def __len__(self) -> int: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[_T]: ...\n def __str__(self) -> str: ...\n def __and__(self, s: AbstractSet[object]) -> Set[_T]: ...\n def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ...\n def __or__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...\n def __ior__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...\n def __sub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...\n def __isub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...\n def __xor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...\n def __ixor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...\n def __le__(self, s: AbstractSet[object]) -> bool: ...\n def __lt__(self, s: AbstractSet[object]) -> bool: ...\n def __ge__(self, s: AbstractSet[object]) -> bool: ...\n def __gt__(self, s: AbstractSet[object]) -> bool: ...\n __hash__: None # type: ignore\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass frozenset(AbstractSet[_T_co], Generic[_T_co]):\n def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...\n def copy(self) -> FrozenSet[_T_co]: ...\n def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...\n def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...\n def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...\n def issubset(self, s: Iterable[object]) -> bool: ...\n def issuperset(self, s: Iterable[object]) -> bool: ...\n def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...\n def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...\n def __len__(self) -> int: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[_T_co]: ...\n def __str__(self) -> str: ...\n def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...\n def __or__(self, s: AbstractSet[_S]) -> FrozenSet[Union[_T_co, _S]]: ...\n def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...\n def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[Union[_T_co, _S]]: ...\n def __le__(self, s: AbstractSet[object]) -> bool: ...\n def __lt__(self, s: AbstractSet[object]) -> bool: ...\n def __ge__(self, s: AbstractSet[object]) -> bool: ...\n def __gt__(self, s: AbstractSet[object]) -> bool: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass enumerate(Iterator[Tuple[int, _T]], Generic[_T]):\n def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ...\n def __iter__(self) -> Iterator[Tuple[int, _T]]: ...\n def __next__(self) -> Tuple[int, _T]: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass range(Sequence[int]):\n start: int\n stop: int\n step: int\n @overload\n def __init__(self, stop: int) -> None: ...\n @overload\n def __init__(self, start: int, stop: int, step: int = ...) -> None: ...\n def count(self, value: int) -> int: ...\n def index(self, value: int) -> int: ... # type: ignore\n def __len__(self) -> int: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[int]: ...\n @overload\n def __getitem__(self, i: int) -> int: ...\n @overload\n def __getitem__(self, s: slice) -> range: ...\n def __repr__(self) -> str: ...\n def __reversed__(self) -> Iterator[int]: ...\n\nclass property(object):\n def __init__(\n self,\n fget: Optional[Callable[[Any], Any]] = ...,\n fset: Optional[Callable[[Any, Any], None]] = ...,\n fdel: Optional[Callable[[Any], None]] = ...,\n doc: Optional[str] = ...,\n ) -> None: ...\n def getter(self, fget: Callable[[Any], Any]) -> property: ...\n def setter(self, fset: Callable[[Any, Any], None]) -> property: ...\n def deleter(self, fdel: Callable[[Any], None]) -> property: ...\n def __get__(self, obj: Any, type: Optional[type] = ...) -> Any: ...\n def __set__(self, obj: Any, value: Any) -> None: ...\n def __delete__(self, obj: Any) -> None: ...\n def fget(self) -> Any: ...\n def fset(self, value: Any) -> None: ...\n def fdel(self) -> None: ...\n\nclass _NotImplementedType(Any): # type: ignore\n # A little weird, but typing the __call__ as NotImplemented makes the error message\n # for NotImplemented() much better\n pass\n\nNotImplemented: _NotImplementedType\n\ndef abs(__x: SupportsAbs[_T]) -> _T: ...\ndef all(__iterable: Iterable[object]) -> bool: ...\ndef any(__iterable: Iterable[object]) -> bool: ...\ndef ascii(__obj: object) -> str: ...\ndef bin(__number: Union[int, _SupportsIndex]) -> str: ...\n\nif sys.version_info >= (3, 7):\n def breakpoint(*args: Any, **kws: Any) -> None: ...\n\ndef callable(__obj: object) -> bool: ...\ndef chr(__i: int) -> str: ...\n\n# This class is to be exported as PathLike from os,\n# but we define it here as _PathLike to avoid import cycle issues.\n# See https://github.com/python/typeshed/pull/991#issuecomment-288160993\n_AnyStr_co = TypeVar("_AnyStr_co", str, bytes, covariant=True)\n@runtime_checkable\nclass _PathLike(Protocol[_AnyStr_co]):\n def __fspath__(self) -> _AnyStr_co: ...\n\nif sys.version_info >= (3, 8):\n def compile(\n source: Union[str, bytes, mod, AST],\n filename: Union[str, bytes, _PathLike[Any]],\n mode: str,\n flags: int = ...,\n dont_inherit: int = ...,\n optimize: int = ...,\n *,\n _feature_version: int = ...,\n ) -> Any: ...\n\nelse:\n def compile(\n source: Union[str, bytes, mod, AST],\n filename: Union[str, bytes, _PathLike[Any]],\n mode: str,\n flags: int = ...,\n dont_inherit: int = ...,\n optimize: int = ...,\n ) -> Any: ...\n\ndef copyright() -> None: ...\ndef credits() -> None: ...\ndef delattr(__obj: Any, __name: str) -> None: ...\ndef dir(__o: object = ...) -> List[str]: ...\n\n_N2 = TypeVar("_N2", int, float)\n\ndef divmod(__x: _N2, __y: _N2) -> Tuple[_N2, _N2]: ...\ndef eval(\n __source: Union[str, bytes, CodeType], __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Mapping[str, Any]] = ...\n) -> Any: ...\ndef exec(\n __source: Union[str, bytes, CodeType],\n __globals: Optional[Dict[str, Any]] = ...,\n __locals: Optional[Mapping[str, Any]] = ...,\n) -> Any: ...\ndef exit(code: object = ...) -> NoReturn: ...\n@overload\ndef filter(__function: None, __iterable: Iterable[Optional[_T]]) -> Iterator[_T]: ...\n@overload\ndef filter(__function: Callable[[_T], Any], __iterable: Iterable[_T]) -> Iterator[_T]: ...\ndef format(__value: object, __format_spec: str = ...) -> str: ... # TODO unicode\ndef getattr(__o: Any, name: str, __default: Any = ...) -> Any: ...\ndef globals() -> Dict[str, Any]: ...\ndef hasattr(__obj: Any, __name: str) -> bool: ...\ndef hash(__obj: object) -> int: ...\ndef help(*args: Any, **kwds: Any) -> None: ...\ndef hex(__number: Union[int, _SupportsIndex]) -> str: ...\ndef id(__obj: object) -> int: ...\ndef input(__prompt: Any = ...) -> str: ...\n@overload\ndef iter(__iterable: Iterable[_T]) -> Iterator[_T]: ...\n@overload\ndef iter(__function: Callable[[], Optional[_T]], __sentinel: None) -> Iterator[_T]: ...\n@overload\ndef iter(__function: Callable[[], _T], __sentinel: Any) -> Iterator[_T]: ...\ndef isinstance(__obj: object, __class_or_tuple: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...\ndef issubclass(__cls: type, __class_or_tuple: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...\ndef len(__obj: Sized) -> int: ...\ndef license() -> None: ...\ndef locals() -> Dict[str, Any]: ...\n@overload\ndef map(__func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> Iterator[_S]: ...\n@overload\ndef map(__func: Callable[[_T1, _T2], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> Iterator[_S]: ...\n@overload\ndef map(\n __func: Callable[[_T1, _T2, _T3], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]\n) -> Iterator[_S]: ...\n@overload\ndef map(\n __func: Callable[[_T1, _T2, _T3, _T4], _S],\n __iter1: Iterable[_T1],\n __iter2: Iterable[_T2],\n __iter3: Iterable[_T3],\n __iter4: Iterable[_T4],\n) -> Iterator[_S]: ...\n@overload\ndef map(\n __func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],\n __iter1: Iterable[_T1],\n __iter2: Iterable[_T2],\n __iter3: Iterable[_T3],\n __iter4: Iterable[_T4],\n __iter5: Iterable[_T5],\n) -> Iterator[_S]: ...\n@overload\ndef map(\n __func: Callable[..., _S],\n __iter1: Iterable[Any],\n __iter2: Iterable[Any],\n __iter3: Iterable[Any],\n __iter4: Iterable[Any],\n __iter5: Iterable[Any],\n __iter6: Iterable[Any],\n *iterables: Iterable[Any],\n) -> Iterator[_S]: ...\n@overload\ndef max(\n __arg1: SupportsLessThanT, __arg2: SupportsLessThanT, *_args: SupportsLessThanT, key: None = ...\n) -> SupportsLessThanT: ...\n@overload\ndef max(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThanT]) -> _T: ...\n@overload\ndef max(__iterable: Iterable[SupportsLessThanT], *, key: None = ...) -> SupportsLessThanT: ...\n@overload\ndef max(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThanT]) -> _T: ...\n@overload\ndef max(__iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T) -> Union[SupportsLessThanT, _T]: ...\n@overload\ndef max(__iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThanT], default: _T2) -> Union[_T1, _T2]: ...\n@overload\ndef min(\n __arg1: SupportsLessThanT, __arg2: SupportsLessThanT, *_args: SupportsLessThanT, key: None = ...\n) -> SupportsLessThanT: ...\n@overload\ndef min(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], SupportsLessThanT]) -> _T: ...\n@overload\ndef min(__iterable: Iterable[SupportsLessThanT], *, key: None = ...) -> SupportsLessThanT: ...\n@overload\ndef min(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThanT]) -> _T: ...\n@overload\ndef min(__iterable: Iterable[SupportsLessThanT], *, key: None = ..., default: _T) -> Union[SupportsLessThanT, _T]: ...\n@overload\ndef min(__iterable: Iterable[_T1], *, key: Callable[[_T1], SupportsLessThanT], default: _T2) -> Union[_T1, _T2]: ...\n@overload\ndef next(__i: Iterator[_T]) -> _T: ...\n@overload\ndef next(__i: Iterator[_T], default: _VT) -> Union[_T, _VT]: ...\ndef oct(__number: Union[int, _SupportsIndex]) -> str: ...\n\n_OpenFile = Union[AnyPath, int]\n_Opener = Callable[[str, int], int]\n\n# Text mode: always returns a TextIOWrapper\n@overload\ndef open(\n file: _OpenFile,\n mode: OpenTextMode = ...,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n closefd: bool = ...,\n opener: Optional[_Opener] = ...,\n) -> TextIOWrapper: ...\n\n# Unbuffered binary mode: returns a FileIO\n@overload\ndef open(\n file: _OpenFile,\n mode: OpenBinaryMode,\n buffering: Literal[0],\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n closefd: bool = ...,\n opener: Optional[_Opener] = ...,\n) -> FileIO: ...\n\n# Buffering is on: return BufferedRandom, BufferedReader, or BufferedWriter\n@overload\ndef open(\n file: _OpenFile,\n mode: OpenBinaryModeUpdating,\n buffering: Literal[-1, 1] = ...,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n closefd: bool = ...,\n opener: Optional[_Opener] = ...,\n) -> BufferedRandom: ...\n@overload\ndef open(\n file: _OpenFile,\n mode: OpenBinaryModeWriting,\n buffering: Literal[-1, 1] = ...,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n closefd: bool = ...,\n opener: Optional[_Opener] = ...,\n) -> BufferedWriter: ...\n@overload\ndef open(\n file: _OpenFile,\n mode: OpenBinaryModeReading,\n buffering: Literal[-1, 1] = ...,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n closefd: bool = ...,\n opener: Optional[_Opener] = ...,\n) -> BufferedReader: ...\n\n# Buffering cannot be determined: fall back to BinaryIO\n@overload\ndef open(\n file: _OpenFile,\n mode: OpenBinaryMode,\n buffering: int,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n closefd: bool = ...,\n opener: Optional[_Opener] = ...,\n) -> BinaryIO: ...\n\n# Fallback if mode is not specified\n@overload\ndef open(\n file: _OpenFile,\n mode: str,\n buffering: int = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n closefd: bool = ...,\n opener: Optional[_Opener] = ...,\n) -> IO[Any]: ...\ndef ord(__c: Union[str, bytes]) -> int: ...\ndef print(\n *values: object,\n sep: Optional[str] = ...,\n end: Optional[str] = ...,\n file: Optional[SupportsWrite[str]] = ...,\n flush: bool = ...,\n) -> None: ...\n\n_E = TypeVar("_E", contravariant=True)\n_M = TypeVar("_M", contravariant=True)\n\nclass _SupportsPow2(Protocol[_E, _T_co]):\n def __pow__(self, __other: _E) -> _T_co: ...\n\nclass _SupportsPow3(Protocol[_E, _M, _T_co]):\n def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ...\n\nif sys.version_info >= (3, 8):\n @overload\n def pow(base: int, exp: int, mod: None = ...) -> Any: ... # returns int or float depending on whether exp is non-negative\n @overload\n def pow(base: int, exp: int, mod: int) -> int: ...\n @overload\n def pow(base: float, exp: float, mod: None = ...) -> float: ...\n @overload\n def pow(base: _SupportsPow2[_E, _T_co], exp: _E) -> _T_co: ...\n @overload\n def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M) -> _T_co: ...\n\nelse:\n @overload\n def pow(\n __base: int, __exp: int, __mod: None = ...\n ) -> Any: ... # returns int or float depending on whether exp is non-negative\n @overload\n def pow(__base: int, __exp: int, __mod: int) -> int: ...\n @overload\n def pow(__base: float, __exp: float, __mod: None = ...) -> float: ...\n @overload\n def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ...\n @overload\n def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ...\n\ndef quit(code: object = ...) -> NoReturn: ...\n@overload\ndef reversed(__sequence: Sequence[_T]) -> Iterator[_T]: ...\n@overload\ndef reversed(__sequence: Reversible[_T]) -> Iterator[_T]: ...\ndef repr(__obj: object) -> str: ...\n@overload\ndef round(number: float) -> int: ...\n@overload\ndef round(number: float, ndigits: None) -> int: ...\n@overload\ndef round(number: float, ndigits: int) -> float: ...\n@overload\ndef round(number: SupportsRound[_T]) -> int: ...\n@overload\ndef round(number: SupportsRound[_T], ndigits: None) -> int: ...\n@overload\ndef round(number: SupportsRound[_T], ndigits: int) -> _T: ...\ndef setattr(__obj: Any, __name: str, __value: Any) -> None: ...\n@overload\ndef sorted(__iterable: Iterable[SupportsLessThanT], *, key: None = ..., reverse: bool = ...) -> List[SupportsLessThanT]: ...\n@overload\ndef sorted(__iterable: Iterable[_T], *, key: Callable[[_T], SupportsLessThan], reverse: bool = ...) -> List[_T]: ...\n\nif sys.version_info >= (3, 8):\n @overload\n def sum(__iterable: Iterable[_T]) -> Union[_T, int]: ...\n @overload\n def sum(__iterable: Iterable[_T], start: _S) -> Union[_T, _S]: ...\n\nelse:\n @overload\n def sum(__iterable: Iterable[_T]) -> Union[_T, int]: ...\n @overload\n def sum(__iterable: Iterable[_T], __start: _S) -> Union[_T, _S]: ...\n\ndef vars(__object: Any = ...) -> Dict[str, Any]: ...\n@overload\ndef zip(__iter1: Iterable[_T1]) -> Iterator[Tuple[_T1]]: ...\n@overload\ndef zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> Iterator[Tuple[_T1, _T2]]: ...\n@overload\ndef zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]) -> Iterator[Tuple[_T1, _T2, _T3]]: ...\n@overload\ndef zip(\n __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4]\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4]]: ...\n@overload\ndef zip(\n __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4], __iter5: Iterable[_T5]\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...\n@overload\ndef zip(\n __iter1: Iterable[Any],\n __iter2: Iterable[Any],\n __iter3: Iterable[Any],\n __iter4: Iterable[Any],\n __iter5: Iterable[Any],\n __iter6: Iterable[Any],\n *iterables: Iterable[Any],\n) -> Iterator[Tuple[Any, ...]]: ...\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) -> Any: ...\n\n# Actually the type of Ellipsis is <type 'ellipsis'>, but since it's\n# not exposed anywhere under that name, we make it private here.\nclass ellipsis: ...\n\nEllipsis: ellipsis\n\nclass BaseException(object):\n args: Tuple[Any, ...]\n __cause__: Optional[BaseException]\n __context__: Optional[BaseException]\n __suppress_context__: bool\n __traceback__: Optional[TracebackType]\n def __init__(self, *args: object) -> None: ...\n def __str__(self) -> str: ...\n def __repr__(self) -> str: ...\n def with_traceback(self: _TBE, tb: Optional[TracebackType]) -> _TBE: ...\n\nclass GeneratorExit(BaseException): ...\nclass KeyboardInterrupt(BaseException): ...\n\nclass SystemExit(BaseException):\n code: int\n\nclass Exception(BaseException): ...\n\nclass StopIteration(Exception):\n value: Any\n\n_StandardError = Exception\n\nclass OSError(Exception):\n errno: int\n strerror: str\n # filename, filename2 are actually Union[str, bytes, None]\n filename: Any\n filename2: Any\n\nEnvironmentError = OSError\nIOError = OSError\n\nclass ArithmeticError(_StandardError): ...\nclass AssertionError(_StandardError): ...\nclass AttributeError(_StandardError): ...\nclass BufferError(_StandardError): ...\nclass EOFError(_StandardError): ...\n\nclass ImportError(_StandardError):\n def __init__(self, *args: object, name: Optional[str] = ..., path: Optional[str] = ...) -> None: ...\n name: Optional[str]\n path: Optional[str]\n\nclass LookupError(_StandardError): ...\nclass MemoryError(_StandardError): ...\nclass NameError(_StandardError): ...\nclass ReferenceError(_StandardError): ...\nclass RuntimeError(_StandardError): ...\n\nclass StopAsyncIteration(Exception):\n value: Any\n\nclass SyntaxError(_StandardError):\n msg: str\n lineno: Optional[int]\n offset: Optional[int]\n text: Optional[str]\n filename: Optional[str]\n\nclass SystemError(_StandardError): ...\nclass TypeError(_StandardError): ...\nclass ValueError(_StandardError): ...\nclass FloatingPointError(ArithmeticError): ...\nclass OverflowError(ArithmeticError): ...\nclass ZeroDivisionError(ArithmeticError): ...\nclass ModuleNotFoundError(ImportError): ...\nclass IndexError(LookupError): ...\nclass KeyError(LookupError): ...\nclass UnboundLocalError(NameError): ...\n\nclass WindowsError(OSError):\n winerror: int\n\nclass BlockingIOError(OSError):\n characters_written: int\n\nclass ChildProcessError(OSError): ...\nclass ConnectionError(OSError): ...\nclass BrokenPipeError(ConnectionError): ...\nclass ConnectionAbortedError(ConnectionError): ...\nclass ConnectionRefusedError(ConnectionError): ...\nclass ConnectionResetError(ConnectionError): ...\nclass FileExistsError(OSError): ...\nclass FileNotFoundError(OSError): ...\nclass InterruptedError(OSError): ...\nclass IsADirectoryError(OSError): ...\nclass NotADirectoryError(OSError): ...\nclass PermissionError(OSError): ...\nclass ProcessLookupError(OSError): ...\nclass TimeoutError(OSError): ...\nclass NotImplementedError(RuntimeError): ...\nclass RecursionError(RuntimeError): ...\nclass IndentationError(SyntaxError): ...\nclass TabError(IndentationError): ...\nclass UnicodeError(ValueError): ...\n\nclass UnicodeDecodeError(UnicodeError):\n encoding: str\n object: bytes\n start: int\n end: int\n reason: str\n def __init__(self, __encoding: str, __object: bytes, __start: int, __end: int, __reason: str) -> None: ...\n\nclass UnicodeEncodeError(UnicodeError):\n encoding: str\n object: str\n start: int\n end: int\n reason: str\n def __init__(self, __encoding: str, __object: str, __start: int, __end: int, __reason: str) -> None: ...\n\nclass UnicodeTranslateError(UnicodeError): ...\nclass Warning(Exception): ...\nclass UserWarning(Warning): ...\nclass DeprecationWarning(Warning): ...\nclass SyntaxWarning(Warning): ...\nclass RuntimeWarning(Warning): ...\nclass FutureWarning(Warning): ...\nclass PendingDeprecationWarning(Warning): ...\nclass ImportWarning(Warning): ...\nclass UnicodeWarning(Warning): ...\nclass BytesWarning(Warning): ...\nclass ResourceWarning(Warning): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\builtins.pyi
builtins.pyi
Other
54,524
0.75
0.583994
0.018307
python-kit
168
2023-09-04T12:30:46.876020
MIT
false
6411ff232cc611d06daa15db042f1062
import sys\nfrom _typeshed import AnyPath\nfrom typing import Any, Optional, Pattern\n\nif sys.version_info >= (3, 7):\n from py_compile import PycInvalidationMode\n\nif sys.version_info >= (3, 9):\n def compile_dir(\n dir: AnyPath,\n maxlevels: Optional[int] = ...,\n ddir: Optional[AnyPath] = ...,\n force: bool = ...,\n rx: Optional[Pattern[Any]] = ...,\n quiet: int = ...,\n legacy: bool = ...,\n optimize: int = ...,\n workers: int = ...,\n invalidation_mode: Optional[PycInvalidationMode] = ...,\n *,\n stripdir: Optional[str] = ..., # TODO: change to Optional[AnyPath] once https://bugs.python.org/issue40447 is resolved\n prependdir: Optional[AnyPath] = ...,\n limit_sl_dest: Optional[AnyPath] = ...,\n hardlink_dupes: bool = ...,\n ) -> int: ...\n def compile_file(\n fullname: AnyPath,\n ddir: Optional[AnyPath] = ...,\n force: bool = ...,\n rx: Optional[Pattern[Any]] = ...,\n quiet: int = ...,\n legacy: bool = ...,\n optimize: int = ...,\n invalidation_mode: Optional[PycInvalidationMode] = ...,\n *,\n stripdir: Optional[str] = ..., # TODO: change to Optional[AnyPath] once https://bugs.python.org/issue40447 is resolved\n prependdir: Optional[AnyPath] = ...,\n limit_sl_dest: Optional[AnyPath] = ...,\n hardlink_dupes: bool = ...,\n ) -> int: ...\n\nelif sys.version_info >= (3, 7):\n def compile_dir(\n dir: AnyPath,\n maxlevels: int = ...,\n ddir: Optional[AnyPath] = ...,\n force: bool = ...,\n rx: Optional[Pattern[Any]] = ...,\n quiet: int = ...,\n legacy: bool = ...,\n optimize: int = ...,\n workers: int = ...,\n invalidation_mode: Optional[PycInvalidationMode] = ...,\n ) -> int: ...\n def compile_file(\n fullname: AnyPath,\n ddir: Optional[AnyPath] = ...,\n force: bool = ...,\n rx: Optional[Pattern[Any]] = ...,\n quiet: int = ...,\n legacy: bool = ...,\n optimize: int = ...,\n invalidation_mode: Optional[PycInvalidationMode] = ...,\n ) -> int: ...\n\nelse:\n # rx can be any object with a 'search' method; once we have Protocols we can change the type\n def compile_dir(\n dir: AnyPath,\n maxlevels: int = ...,\n ddir: Optional[AnyPath] = ...,\n force: bool = ...,\n rx: Optional[Pattern[Any]] = ...,\n quiet: int = ...,\n legacy: bool = ...,\n optimize: int = ...,\n workers: int = ...,\n ) -> int: ...\n def compile_file(\n fullname: AnyPath,\n ddir: Optional[AnyPath] = ...,\n force: bool = ...,\n rx: Optional[Pattern[Any]] = ...,\n quiet: int = ...,\n legacy: bool = ...,\n optimize: int = ...,\n ) -> int: ...\n\nif sys.version_info >= (3, 7):\n def compile_path(\n skip_curdir: bool = ...,\n maxlevels: int = ...,\n force: bool = ...,\n quiet: int = ...,\n legacy: bool = ...,\n optimize: int = ...,\n invalidation_mode: Optional[PycInvalidationMode] = ...,\n ) -> int: ...\n\nelse:\n def compile_path(\n skip_curdir: bool = ...,\n maxlevels: int = ...,\n force: bool = ...,\n quiet: int = ...,\n legacy: bool = ...,\n optimize: int = ...,\n ) -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\compileall.pyi
compileall.pyi
Other
3,367
0.95
0.101852
0.029412
react-lib
957
2025-03-14T23:32:24.018974
GPL-3.0
false
6b3b8f98501c435a7d3128cb59e2e299
import sys\nfrom _typeshed import AnyPath, StrPath, SupportsWrite\nfrom typing import (\n AbstractSet,\n Any,\n Callable,\n ClassVar,\n Dict,\n Iterable,\n Iterator,\n List,\n Mapping,\n MutableMapping,\n Optional,\n Pattern,\n Sequence,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\nfrom typing_extensions import Literal\n\n# Internal type aliases\n_section = Mapping[str, str]\n_parser = MutableMapping[str, _section]\n_converter = Callable[[str], Any]\n_converters = Dict[str, _converter]\n_T = TypeVar("_T")\n\nif sys.version_info >= (3, 7):\n _Path = AnyPath\nelse:\n _Path = StrPath\n\nDEFAULTSECT: str\nMAX_INTERPOLATION_DEPTH: int\n\nclass Interpolation:\n def before_get(self, parser: _parser, section: str, option: str, value: str, defaults: _section) -> str: ...\n def before_set(self, parser: _parser, section: str, option: str, value: str) -> str: ...\n def before_read(self, parser: _parser, section: str, option: str, value: str) -> str: ...\n def before_write(self, parser: _parser, section: str, option: str, value: str) -> str: ...\n\nclass BasicInterpolation(Interpolation): ...\nclass ExtendedInterpolation(Interpolation): ...\nclass LegacyInterpolation(Interpolation): ...\n\nclass RawConfigParser(_parser):\n _SECT_TMPL: ClassVar[str] = ... # Undocumented\n _OPT_TMPL: ClassVar[str] = ... # Undocumented\n _OPT_NV_TMPL: ClassVar[str] = ... # Undocumented\n\n SECTCRE: Pattern[str] = ...\n OPTCRE: ClassVar[Pattern[str]] = ...\n OPTCRE_NV: ClassVar[Pattern[str]] = ... # Undocumented\n NONSPACECRE: ClassVar[Pattern[str]] = ... # Undocumented\n\n BOOLEAN_STATES: ClassVar[Mapping[str, bool]] = ... # Undocumented\n default_section: str\n @overload\n def __init__(\n self,\n defaults: Optional[Mapping[str, Optional[str]]] = ...,\n dict_type: Type[Mapping[str, str]] = ...,\n allow_no_value: Literal[True] = ...,\n *,\n delimiters: Sequence[str] = ...,\n comment_prefixes: Sequence[str] = ...,\n inline_comment_prefixes: Optional[Sequence[str]] = ...,\n strict: bool = ...,\n empty_lines_in_values: bool = ...,\n default_section: str = ...,\n interpolation: Optional[Interpolation] = ...,\n converters: _converters = ...,\n ) -> None: ...\n @overload\n def __init__(\n self,\n defaults: Optional[_section] = ...,\n dict_type: Type[Mapping[str, str]] = ...,\n allow_no_value: bool = ...,\n *,\n delimiters: Sequence[str] = ...,\n comment_prefixes: Sequence[str] = ...,\n inline_comment_prefixes: Optional[Sequence[str]] = ...,\n strict: bool = ...,\n empty_lines_in_values: bool = ...,\n default_section: str = ...,\n interpolation: Optional[Interpolation] = ...,\n converters: _converters = ...,\n ) -> None: ...\n def __len__(self) -> int: ...\n def __getitem__(self, section: str) -> SectionProxy: ...\n def __setitem__(self, section: str, options: _section) -> None: ...\n def __delitem__(self, section: str) -> None: ...\n def __iter__(self) -> Iterator[str]: ...\n def defaults(self) -> _section: ...\n def sections(self) -> List[str]: ...\n def add_section(self, section: str) -> None: ...\n def has_section(self, section: str) -> bool: ...\n def options(self, section: str) -> List[str]: ...\n def has_option(self, section: str, option: str) -> bool: ...\n def read(self, filenames: Union[_Path, Iterable[_Path]], encoding: Optional[str] = ...) -> List[str]: ...\n def read_file(self, f: Iterable[str], source: Optional[str] = ...) -> None: ...\n def read_string(self, string: str, source: str = ...) -> None: ...\n def read_dict(self, dictionary: Mapping[str, Mapping[str, Any]], source: str = ...) -> None: ...\n def readfp(self, fp: Iterable[str], filename: Optional[str] = ...) -> None: ...\n # These get* methods are partially applied (with the same names) in\n # SectionProxy; the stubs should be kept updated together\n @overload\n def getint(self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> int: ...\n @overload\n def getint(\n self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...\n ) -> Union[int, _T]: ...\n @overload\n def getfloat(self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> float: ...\n @overload\n def getfloat(\n self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...\n ) -> Union[float, _T]: ...\n @overload\n def getboolean(self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> bool: ...\n @overload\n def getboolean(\n self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...\n ) -> Union[bool, _T]: ...\n def _get_conv(\n self,\n section: str,\n option: str,\n conv: Callable[[str], _T],\n *,\n raw: bool = ...,\n vars: Optional[_section] = ...,\n fallback: _T = ...,\n ) -> _T: ...\n # This is incompatible with MutableMapping so we ignore the type\n @overload # type: ignore\n def get(self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> str: ...\n @overload\n def get(\n self, section: str, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T\n ) -> Union[str, _T]: ...\n @overload\n def items(self, *, raw: bool = ..., vars: Optional[_section] = ...) -> AbstractSet[Tuple[str, SectionProxy]]: ...\n @overload\n def items(self, section: str, raw: bool = ..., vars: Optional[_section] = ...) -> List[Tuple[str, str]]: ...\n def set(self, section: str, option: str, value: Optional[str] = ...) -> None: ...\n def write(self, fp: SupportsWrite[str], space_around_delimiters: bool = ...) -> None: ...\n def remove_option(self, section: str, option: str) -> bool: ...\n def remove_section(self, section: str) -> bool: ...\n def optionxform(self, optionstr: str) -> str: ...\n\nclass ConfigParser(RawConfigParser): ...\nclass SafeConfigParser(ConfigParser): ...\n\nclass SectionProxy(MutableMapping[str, str]):\n def __init__(self, parser: RawConfigParser, name: str) -> None: ...\n def __getitem__(self, key: str) -> str: ...\n def __setitem__(self, key: str, value: str) -> None: ...\n def __delitem__(self, key: str) -> None: ...\n def __contains__(self, key: object) -> bool: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[str]: ...\n @property\n def parser(self) -> RawConfigParser: ...\n @property\n def name(self) -> str: ...\n def get(self, option: str, fallback: Optional[str] = ..., *, raw: bool = ..., vars: Optional[_section] = ..., _impl: Optional[Any] = ..., **kwargs: Any) -> str: ... # type: ignore\n # These are partially-applied version of the methods with the same names in\n # RawConfigParser; the stubs should be kept updated together\n @overload\n def getint(self, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> int: ...\n @overload\n def getint(self, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...) -> Union[int, _T]: ...\n @overload\n def getfloat(self, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> float: ...\n @overload\n def getfloat(\n self, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...\n ) -> Union[float, _T]: ...\n @overload\n def getboolean(self, option: str, *, raw: bool = ..., vars: Optional[_section] = ...) -> bool: ...\n @overload\n def getboolean(\n self, option: str, *, raw: bool = ..., vars: Optional[_section] = ..., fallback: _T = ...\n ) -> Union[bool, _T]: ...\n # SectionProxy can have arbitrary attributes when custon converters are used\n def __getattr__(self, key: str) -> Callable[..., Any]: ...\n\nclass ConverterMapping(MutableMapping[str, Optional[_converter]]):\n GETTERCRE: Pattern[Any]\n def __init__(self, parser: RawConfigParser) -> None: ...\n def __getitem__(self, key: str) -> _converter: ...\n def __setitem__(self, key: str, value: Optional[_converter]) -> None: ...\n def __delitem__(self, key: str) -> None: ...\n def __iter__(self) -> Iterator[str]: ...\n def __len__(self) -> int: ...\n\nclass Error(Exception):\n message: str\n def __init__(self, msg: str = ...) -> None: ...\n\nclass NoSectionError(Error):\n section: str\n def __init__(self, section: str) -> None: ...\n\nclass DuplicateSectionError(Error):\n section: str\n source: Optional[str]\n lineno: Optional[int]\n def __init__(self, section: str, source: Optional[str] = ..., lineno: Optional[int] = ...) -> None: ...\n\nclass DuplicateOptionError(Error):\n section: str\n option: str\n source: Optional[str]\n lineno: Optional[int]\n def __init__(self, section: str, option: str, source: Optional[str] = ..., lineno: Optional[str] = ...) -> None: ...\n\nclass NoOptionError(Error):\n section: str\n option: str\n def __init__(self, option: str, section: str) -> None: ...\n\nclass InterpolationError(Error):\n section: str\n option: str\n def __init__(self, option: str, section: str, msg: str) -> None: ...\n\nclass InterpolationDepthError(InterpolationError):\n def __init__(self, option: str, section: str, rawval: object) -> None: ...\n\nclass InterpolationMissingOptionError(InterpolationError):\n reference: str\n def __init__(self, option: str, section: str, rawval: object, reference: str) -> None: ...\n\nclass InterpolationSyntaxError(InterpolationError): ...\n\nclass ParsingError(Error):\n source: str\n errors: List[Tuple[int, str]]\n def __init__(self, source: Optional[str] = ..., filename: Optional[str] = ...) -> None: ...\n def append(self, lineno: int, line: str) -> None: ...\n\nclass MissingSectionHeaderError(ParsingError):\n lineno: int\n line: str\n def __init__(self, filename: str, lineno: int, line: str) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\configparser.pyi
configparser.pyi
Other
10,095
0.95
0.369048
0.043478
python-kit
231
2023-09-07T23:05:25.319086
MIT
false
0d8dd0b14de6b519bf0ddd329909f1af
from typing import Any, Callable, Hashable, List, Optional, SupportsInt, Tuple, TypeVar, Union\n\n_Type = TypeVar("_Type", bound=type)\n_Reduce = Union[Tuple[Callable[..., _Type], Tuple[Any, ...]], Tuple[Callable[..., _Type], Tuple[Any, ...], Optional[Any]]]\n\n__all__: List[str]\n\ndef pickle(\n ob_type: _Type,\n pickle_function: Callable[[_Type], Union[str, _Reduce[_Type]]],\n constructor_ob: Optional[Callable[[_Reduce[_Type]], _Type]] = ...,\n) -> None: ...\ndef constructor(object: Callable[[_Reduce[_Type]], _Type]) -> None: ...\ndef add_extension(module: Hashable, name: Hashable, code: SupportsInt) -> None: ...\ndef remove_extension(module: Hashable, name: Hashable, code: int) -> None: ...\ndef clear_extension_cache() -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\3\copyreg.pyi
copyreg.pyi
Other
739
0.85
0.3125
0
vue-tools
86
2024-07-17T05:44:32.417803
Apache-2.0
false
d334bc42169b6dbc00df4884b6f40485