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 IO, Any, Callable, Generic, List, Mapping, Optional, Sequence, Text, Tuple, TypeVar, Union\n\n_FILE = Union[None, int, IO[Any]]\n_TXT = Union[bytes, Text]\n_CMD = Union[_TXT, Sequence[_TXT]]\n_ENV = Union[Mapping[bytes, _TXT], Mapping[Text, _TXT]]\n\n# Same args as Popen.__init__\ndef call(\n args: _CMD,\n bufsize: int = ...,\n executable: _TXT = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[_TXT] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n) -> int: ...\ndef check_call(\n args: _CMD,\n bufsize: int = ...,\n executable: _TXT = ...,\n stdin: _FILE = ...,\n stdout: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[_TXT] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n) -> int: ...\n\n# Same args as Popen.__init__ except for stdout\ndef check_output(\n args: _CMD,\n bufsize: int = ...,\n executable: _TXT = ...,\n stdin: _FILE = ...,\n stderr: _FILE = ...,\n preexec_fn: Callable[[], Any] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[_TXT] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Any = ...,\n creationflags: int = ...,\n) -> bytes: ...\n\nPIPE: int\nSTDOUT: int\n\nclass CalledProcessError(Exception):\n returncode: int\n # morally: _CMD\n cmd: Any\n # morally: Optional[bytes]\n output: bytes\n def __init__(self, returncode: int, cmd: _CMD, output: Optional[bytes] = ...) -> None: ...\n\n# We use a dummy type variable used to make Popen generic like it is in python 3\n_T = TypeVar("_T", bound=bytes)\n\nclass Popen(Generic[_T]):\n stdin: Optional[IO[bytes]]\n stdout: Optional[IO[bytes]]\n stderr: Optional[IO[bytes]]\n pid: int\n returncode: int\n def __new__(\n cls,\n args: _CMD,\n bufsize: int = ...,\n executable: Optional[_TXT] = ...,\n stdin: Optional[_FILE] = ...,\n stdout: Optional[_FILE] = ...,\n stderr: Optional[_FILE] = ...,\n preexec_fn: Optional[Callable[[], Any]] = ...,\n close_fds: bool = ...,\n shell: bool = ...,\n cwd: Optional[_TXT] = ...,\n env: Optional[_ENV] = ...,\n universal_newlines: bool = ...,\n startupinfo: Optional[Any] = ...,\n creationflags: int = ...,\n ) -> Popen[bytes]: ...\n def poll(self) -> Optional[int]: ...\n def wait(self) -> int: ...\n # morally: -> Tuple[Optional[bytes], Optional[bytes]]\n def communicate(self, input: Optional[_TXT] = ...) -> Tuple[bytes, bytes]: ...\n def send_signal(self, signal: int) -> None: ...\n def terminate(self) -> None: ...\n def kill(self) -> None: ...\n\ndef list2cmdline(seq: Sequence[str]) -> str: ... # undocumented\n\n# Windows-only: STARTUPINFO etc.\n\nSTD_INPUT_HANDLE: Any\nSTD_OUTPUT_HANDLE: Any\nSTD_ERROR_HANDLE: Any\nSW_HIDE: Any\nSTARTF_USESTDHANDLES: Any\nSTARTF_USESHOWWINDOW: Any\nCREATE_NEW_CONSOLE: Any\nCREATE_NEW_PROCESS_GROUP: Any\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\subprocess.pyi
subprocess.pyi
Other
3,282
0.95
0.130435
0.066667
awesome-app
996
2024-09-01T14:47:14.860119
Apache-2.0
false
41ace79978dcaf3c4e83bdb68b04a012
from typing import Dict\n\nsingle_input: int\nfile_input: int\neval_input: int\ndecorator: int\ndecorators: int\ndecorated: int\nfuncdef: int\nparameters: int\nvarargslist: int\nfpdef: int\nfplist: int\nstmt: int\nsimple_stmt: int\nsmall_stmt: int\nexpr_stmt: int\naugassign: int\nprint_stmt: int\ndel_stmt: int\npass_stmt: int\nflow_stmt: int\nbreak_stmt: int\ncontinue_stmt: int\nreturn_stmt: int\nyield_stmt: int\nraise_stmt: int\nimport_stmt: int\nimport_name: int\nimport_from: int\nimport_as_name: int\ndotted_as_name: int\nimport_as_names: int\ndotted_as_names: int\ndotted_name: int\nglobal_stmt: int\nexec_stmt: int\nassert_stmt: int\ncompound_stmt: int\nif_stmt: int\nwhile_stmt: int\nfor_stmt: int\ntry_stmt: int\nwith_stmt: int\nwith_item: int\nexcept_clause: int\nsuite: int\ntestlist_safe: int\nold_test: int\nold_lambdef: int\ntest: int\nor_test: int\nand_test: int\nnot_test: int\ncomparison: int\ncomp_op: int\nexpr: int\nxor_expr: int\nand_expr: int\nshift_expr: int\narith_expr: int\nterm: int\nfactor: int\npower: int\natom: int\nlistmaker: int\ntestlist_comp: int\nlambdef: int\ntrailer: int\nsubscriptlist: int\nsubscript: int\nsliceop: int\nexprlist: int\ntestlist: int\ndictorsetmaker: int\nclassdef: int\narglist: int\nargument: int\nlist_iter: int\nlist_for: int\nlist_if: int\ncomp_iter: int\ncomp_for: int\ncomp_if: int\ntestlist1: int\nencoding_decl: int\nyield_expr: int\n\nsym_name: Dict[int, str]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\symbol.pyi
symbol.pyi
Other
1,341
0.85
0
0
react-lib
150
2025-06-01T21:12:06.249229
Apache-2.0
false
881fafd96a1d571c1b3ecc52f9bad876
from types import ClassType, FrameType, ModuleType, TracebackType\nfrom typing import IO, Any, BinaryIO, Callable, Dict, List, NoReturn, Optional, Sequence, Text, Tuple, Type, Union, overload\n\n# The following type alias are stub-only and do not exist during runtime\n_ExcInfo = Tuple[Type[BaseException], BaseException, TracebackType]\n_OptExcInfo = Union[_ExcInfo, Tuple[None, None, None]]\n\nclass _flags:\n bytes_warning: int\n debug: int\n division_new: int\n division_warning: int\n dont_write_bytecode: int\n hash_randomization: int\n ignore_environment: int\n inspect: int\n interactive: int\n no_site: int\n no_user_site: int\n optimize: int\n py3k_warning: int\n tabcheck: int\n unicode: int\n verbose: int\n\nclass _float_info:\n max: float\n max_exp: int\n max_10_exp: int\n min: float\n min_exp: int\n min_10_exp: int\n dig: int\n mant_dig: int\n epsilon: float\n radix: int\n rounds: int\n\nclass _version_info(Tuple[int, int, int, str, int]):\n major: int\n minor: int\n micro: int\n releaselevel: str\n serial: int\n\n_mercurial: Tuple[str, str, str]\napi_version: int\nargv: List[str]\nbuiltin_module_names: Tuple[str, ...]\nbyteorder: str\ncopyright: str\ndont_write_bytecode: bool\nexec_prefix: str\nexecutable: str\nflags: _flags\nfloat_repr_style: str\nhexversion: int\nlong_info: object\nmaxint: int\nmaxsize: int\nmaxunicode: int\nmodules: Dict[str, Any]\npath: List[str]\nplatform: str\nprefix: str\npy3kwarning: bool\n__stderr__: IO[str]\n__stdin__: IO[str]\n__stdout__: IO[str]\nstderr: IO[str]\nstdin: IO[str]\nstdout: IO[str]\nsubversion: Tuple[str, str, str]\nversion: str\nwarnoptions: object\nfloat_info: _float_info\nversion_info: _version_info\nps1: str\nps2: str\nlast_type: type\nlast_value: BaseException\nlast_traceback: TracebackType\n# TODO precise types\nmeta_path: List[Any]\npath_hooks: List[Any]\npath_importer_cache: Dict[str, Any]\ndisplayhook: Callable[[object], Any]\nexcepthook: Callable[[Type[BaseException], BaseException, TracebackType], Any]\nexc_type: Optional[type]\nexc_value: Union[BaseException, ClassType]\nexc_traceback: TracebackType\n\nclass _WindowsVersionType:\n major: Any\n minor: Any\n build: Any\n platform: Any\n service_pack: Any\n service_pack_major: Any\n service_pack_minor: Any\n suite_mask: Any\n product_type: Any\n\ndef getwindowsversion() -> _WindowsVersionType: ...\ndef _clear_type_cache() -> None: ...\ndef _current_frames() -> Dict[int, FrameType]: ...\ndef _getframe(depth: int = ...) -> FrameType: ...\ndef call_tracing(fn: Any, args: Any) -> Any: ...\ndef __displayhook__(value: object) -> None: ...\ndef __excepthook__(type_: type, value: BaseException, traceback: TracebackType) -> None: ...\ndef exc_clear() -> None: ...\ndef exc_info() -> _OptExcInfo: ...\n\n# sys.exit() accepts an optional argument of anything printable\ndef exit(arg: Any = ...) -> NoReturn: ...\ndef getcheckinterval() -> int: ... # deprecated\ndef getdefaultencoding() -> str: ...\ndef getdlopenflags() -> int: ...\ndef getfilesystemencoding() -> str: ... # In practice, never returns None\ndef getrefcount(arg: Any) -> int: ...\ndef getrecursionlimit() -> int: ...\ndef getsizeof(obj: object, default: int = ...) -> int: ...\ndef getprofile() -> Optional[Any]: ...\ndef gettrace() -> Optional[Any]: ...\ndef setcheckinterval(interval: int) -> None: ... # deprecated\ndef setdlopenflags(n: int) -> None: ...\ndef setdefaultencoding(encoding: Text) -> None: ... # only exists after reload(sys)\ndef setprofile(profilefunc: Any) -> None: ... # TODO type\ndef setrecursionlimit(limit: int) -> None: ...\ndef settrace(tracefunc: Any) -> None: ... # TODO type\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\sys.pyi
sys.pyi
Other
3,616
0.95
0.223077
0.02459
react-lib
818
2023-12-23T20:02:33.492518
GPL-3.0
false
40fc5df7dbc7e059f425674dfeeb91ba
from random import Random\nfrom thread import LockType\nfrom typing import IO, Any, AnyStr, Iterable, Iterator, List, Optional, Text, Tuple, Union, overload\n\nTMP_MAX: int\ntempdir: str\ntemplate: str\n_name_sequence: Optional[_RandomNameSequence]\n\nclass _RandomNameSequence:\n characters: str = ...\n mutex: LockType\n @property\n def rng(self) -> Random: ...\n def __iter__(self) -> _RandomNameSequence: ...\n def next(self) -> str: ...\n # from os.path:\n def normcase(self, path: AnyStr) -> AnyStr: ...\n\nclass _TemporaryFileWrapper(IO[str]):\n delete: bool\n file: IO[str]\n name: Any\n def __init__(self, file: IO[str], name: Any, delete: bool = ...) -> None: ...\n def __del__(self) -> None: ...\n def __enter__(self) -> _TemporaryFileWrapper: ...\n def __exit__(self, exc, value, tb) -> Optional[bool]: ...\n def __getattr__(self, name: unicode) -> Any: ...\n def close(self) -> None: ...\n def unlink(self, path: unicode) -> None: ...\n # These methods don't exist directly on this object, but\n # are delegated to the underlying IO object through __getattr__.\n # We need to add them here so that this class is concrete.\n def __iter__(self) -> Iterator[str]: ...\n def fileno(self) -> int: ...\n def flush(self) -> None: ...\n def isatty(self) -> bool: ...\n def next(self) -> str: ...\n def read(self, n: int = ...) -> str: ...\n def readable(self) -> bool: ...\n def readline(self, limit: int = ...) -> str: ...\n def readlines(self, hint: int = ...) -> List[str]: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def seekable(self) -> bool: ...\n def tell(self) -> int: ...\n def truncate(self, size: Optional[int] = ...) -> int: ...\n def writable(self) -> bool: ...\n def write(self, s: Text) -> int: ...\n def writelines(self, lines: Iterable[str]) -> None: ...\n\n# TODO text files\n\ndef TemporaryFile(\n mode: Union[bytes, unicode] = ...,\n bufsize: int = ...,\n suffix: Union[bytes, unicode] = ...,\n prefix: Union[bytes, unicode] = ...,\n dir: Union[bytes, unicode] = ...,\n) -> _TemporaryFileWrapper: ...\ndef NamedTemporaryFile(\n mode: Union[bytes, unicode] = ...,\n bufsize: int = ...,\n suffix: Union[bytes, unicode] = ...,\n prefix: Union[bytes, unicode] = ...,\n dir: Union[bytes, unicode] = ...,\n delete: bool = ...,\n) -> _TemporaryFileWrapper: ...\ndef SpooledTemporaryFile(\n max_size: int = ...,\n mode: Union[bytes, unicode] = ...,\n buffering: int = ...,\n suffix: Union[bytes, unicode] = ...,\n prefix: Union[bytes, unicode] = ...,\n dir: Union[bytes, unicode] = ...,\n) -> _TemporaryFileWrapper: ...\n\nclass TemporaryDirectory:\n name: Any\n def __init__(\n self, suffix: Union[bytes, unicode] = ..., prefix: Union[bytes, unicode] = ..., dir: Union[bytes, unicode] = ...\n ) -> None: ...\n def cleanup(self) -> None: ...\n def __enter__(self) -> Any: ... # Can be str or unicode\n def __exit__(self, type, value, traceback) -> None: ...\n\n@overload\ndef mkstemp() -> Tuple[int, str]: ...\n@overload\ndef mkstemp(suffix: AnyStr = ..., prefix: AnyStr = ..., dir: Optional[AnyStr] = ..., text: bool = ...) -> Tuple[int, AnyStr]: ...\n@overload\ndef mkdtemp() -> str: ...\n@overload\ndef mkdtemp(suffix: AnyStr = ..., prefix: AnyStr = ..., dir: Optional[AnyStr] = ...) -> AnyStr: ...\n@overload\ndef mktemp() -> str: ...\n@overload\ndef mktemp(suffix: AnyStr = ..., prefix: AnyStr = ..., dir: Optional[AnyStr] = ...) -> AnyStr: ...\ndef gettempdir() -> str: ...\ndef gettempprefix() -> str: ...\ndef _candidate_tempdir_list() -> List[str]: ...\ndef _get_candidate_names() -> Optional[_RandomNameSequence]: ...\ndef _get_default_tempdir() -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\tempfile.pyi
tempfile.pyi
Other
3,696
0.95
0.480392
0.052632
python-kit
942
2024-06-12T05:17:29.130417
BSD-3-Clause
false
10eefa5fe6e9887daf171be4a1e0045f
from typing import AnyStr, Dict, List, Pattern\n\nclass TextWrapper(object):\n width: int = ...\n initial_indent: str = ...\n subsequent_indent: str = ...\n expand_tabs: bool = ...\n replace_whitespace: bool = ...\n fix_sentence_endings: bool = ...\n drop_whitespace: bool = ...\n break_long_words: bool = ...\n break_on_hyphens: bool = ...\n\n # Attributes not present in documentation\n sentence_end_re: Pattern[str] = ...\n wordsep_re: Pattern[str] = ...\n wordsep_simple_re: Pattern[str] = ...\n whitespace_trans: str = ...\n unicode_whitespace_trans: Dict[int, int] = ...\n uspace: int = ...\n x: int = ...\n def __init__(\n self,\n width: int = ...,\n initial_indent: str = ...,\n subsequent_indent: str = ...,\n expand_tabs: bool = ...,\n replace_whitespace: bool = ...,\n fix_sentence_endings: bool = ...,\n break_long_words: bool = ...,\n drop_whitespace: bool = ...,\n break_on_hyphens: bool = ...,\n ) -> None: ...\n def wrap(self, text: AnyStr) -> List[AnyStr]: ...\n def fill(self, text: AnyStr) -> AnyStr: ...\n\ndef wrap(\n text: AnyStr,\n width: int = ...,\n initial_indent: AnyStr = ...,\n subsequent_indent: AnyStr = ...,\n expand_tabs: bool = ...,\n replace_whitespace: bool = ...,\n fix_sentence_endings: bool = ...,\n break_long_words: bool = ...,\n drop_whitespace: bool = ...,\n break_on_hyphens: bool = ...,\n) -> List[AnyStr]: ...\ndef fill(\n text: AnyStr,\n width: int = ...,\n initial_indent: AnyStr = ...,\n subsequent_indent: AnyStr = ...,\n expand_tabs: bool = ...,\n replace_whitespace: bool = ...,\n fix_sentence_endings: bool = ...,\n break_long_words: bool = ...,\n drop_whitespace: bool = ...,\n break_on_hyphens: bool = ...,\n) -> AnyStr: ...\ndef dedent(text: AnyStr) -> AnyStr: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\textwrap.pyi
textwrap.pyi
Other
1,854
0.95
0.114754
0.017241
vue-tools
72
2025-05-08T17:51:55.987465
GPL-3.0
false
3e60852b5cca0a02ef59a7f15cc91324
from typing import Any, Callable\n\ndef _count() -> int: ...\n\nclass error(Exception): ...\n\nclass LockType:\n def acquire(self, waitflag: int = ...) -> bool: ...\n def acquire_lock(self, waitflag: int = ...) -> bool: ...\n def release(self) -> None: ...\n def release_lock(self) -> None: ...\n def locked(self) -> bool: ...\n def locked_lock(self) -> bool: ...\n def __enter__(self) -> LockType: ...\n def __exit__(self, typ: Any, value: Any, traceback: Any) -> None: ...\n\nclass _local(object): ...\nclass _localdummy(object): ...\n\ndef start_new(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...\ndef start_new_thread(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...\ndef interrupt_main() -> None: ...\ndef exit() -> None: ...\ndef exit_thread() -> Any: ...\ndef allocate_lock() -> LockType: ...\ndef get_ident() -> int: ...\ndef stack_size(size: int = ...) -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\thread.pyi
thread.pyi
Other
920
0.85
0.851852
0
vue-tools
603
2025-02-13T05:48:42.530534
Apache-2.0
false
ae30a266617f34c2c286bb2077c93a39
from pipes import Template\nfrom typing import Dict, List\n\ntable: Dict[str, Template]\nt: Template\nuncompress: Template\n\nclass error(Exception): ...\n\ndef toaiff(filename: str) -> str: ...\ndef _toaiff(filename: str, temps: List[str]) -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\toaiff.pyi
toaiff.pyi
Other
243
0.85
0.272727
0
node-utils
776
2025-03-30T07:18:30.138480
MIT
false
ba498f63f667f79ea3dfeb57f9797044
from typing import Any, Callable, Dict, Generator, Iterable, Iterator, List, Tuple, Union\n\n__author__: str\n__credits__: str\n\nAMPER: int\nAMPEREQUAL: int\nAT: int\nBACKQUOTE: int\nBinnumber: str\nBracket: str\nCIRCUMFLEX: int\nCIRCUMFLEXEQUAL: int\nCOLON: int\nCOMMA: int\nCOMMENT: int\nComment: str\nContStr: str\nDEDENT: int\nDOT: int\nDOUBLESLASH: int\nDOUBLESLASHEQUAL: int\nDOUBLESTAR: int\nDOUBLESTAREQUAL: int\nDecnumber: str\nDouble: str\nDouble3: str\nENDMARKER: int\nEQEQUAL: int\nEQUAL: int\nERRORTOKEN: int\nExpfloat: str\nExponent: str\nFloatnumber: str\nFunny: str\nGREATER: int\nGREATEREQUAL: int\nHexnumber: str\nINDENT: int\n\ndef ISEOF(x: int) -> bool: ...\ndef ISNONTERMINAL(x: int) -> bool: ...\ndef ISTERMINAL(x: int) -> bool: ...\n\nIgnore: str\nImagnumber: str\nIntnumber: str\nLBRACE: int\nLEFTSHIFT: int\nLEFTSHIFTEQUAL: int\nLESS: int\nLESSEQUAL: int\nLPAR: int\nLSQB: int\nMINEQUAL: int\nMINUS: int\nNAME: int\nNEWLINE: int\nNL: int\nNOTEQUAL: int\nNT_OFFSET: int\nNUMBER: int\nN_TOKENS: int\nName: str\nNumber: str\nOP: int\nOctnumber: str\nOperator: str\nPERCENT: int\nPERCENTEQUAL: int\nPLUS: int\nPLUSEQUAL: int\nPlainToken: str\nPointfloat: str\nPseudoExtras: str\nPseudoToken: str\nRBRACE: int\nRIGHTSHIFT: int\nRIGHTSHIFTEQUAL: int\nRPAR: int\nRSQB: int\nSEMI: int\nSLASH: int\nSLASHEQUAL: int\nSTAR: int\nSTAREQUAL: int\nSTRING: int\nSingle: str\nSingle3: str\nSpecial: str\nString: str\nTILDE: int\nToken: str\nTriple: str\nVBAR: int\nVBAREQUAL: int\nWhitespace: str\nchain: type\ndouble3prog: type\nendprogs: Dict[str, Any]\npseudoprog: type\nsingle3prog: type\nsingle_quoted: Dict[str, str]\nt: str\ntabsize: int\ntok_name: Dict[int, str]\ntokenprog: type\ntriple_quoted: Dict[str, str]\nx: str\n\n_Pos = Tuple[int, int]\n_TokenType = Tuple[int, str, _Pos, _Pos, str]\n\ndef any(*args, **kwargs) -> str: ...\ndef generate_tokens(readline: Callable[[], str]) -> Generator[_TokenType, None, None]: ...\ndef group(*args: str) -> str: ...\ndef maybe(*args: str) -> str: ...\ndef printtoken(type: int, token: str, srow_scol: _Pos, erow_ecol: _Pos, line: str) -> None: ...\ndef tokenize(readline: Callable[[], str], tokeneater: Callable[[Tuple[int, str, _Pos, _Pos, str]], None]) -> None: ...\ndef tokenize_loop(readline: Callable[[], str], tokeneater: Callable[[Tuple[int, str, _Pos, _Pos, str]], None]) -> None: ...\ndef untokenize(iterable: Iterable[_TokenType]) -> str: ...\n\nclass StopTokenizing(Exception): ...\nclass TokenError(Exception): ...\n\nclass Untokenizer:\n prev_col: int\n prev_row: int\n tokens: List[str]\n def __init__(self) -> None: ...\n def add_whitespace(self, _Pos) -> None: ...\n def compat(self, token: Tuple[int, Any], iterable: Iterator[_TokenType]) -> None: ...\n def untokenize(self, iterable: Iterable[_TokenType]) -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\tokenize.pyi
tokenize.pyi
Other
2,686
0.85
0.135338
0
python-kit
781
2024-01-11T14:37:42.587852
Apache-2.0
false
b070f129038299161cb3e8ef19ec6829
from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Tuple, Type, TypeVar, Union, overload\n\n_T = TypeVar("_T")\n\n# Note, all classes "defined" here require special handling.\n\nclass NoneType: ...\n\nTypeType = type\nObjectType = object\n\nIntType = int\nLongType = int # Really long, but can't reference that due to a mypy import cycle\nFloatType = float\nBooleanType = bool\nComplexType = complex\nStringType = str\nUnicodeType = unicode\nStringTypes: Tuple[Type[StringType], Type[UnicodeType]]\nBufferType = buffer\nTupleType = tuple\nListType = list\nDictType = dict\nDictionaryType = dict\n\nclass _Cell:\n cell_contents: Any\n\nclass FunctionType:\n func_closure: Optional[Tuple[_Cell, ...]] = ...\n func_code: CodeType = ...\n func_defaults: Optional[Tuple[Any, ...]] = ...\n func_dict: Dict[str, Any] = ...\n func_doc: Optional[str] = ...\n func_globals: Dict[str, Any] = ...\n func_name: str = ...\n __closure__ = func_closure\n __code__ = func_code\n __defaults__ = func_defaults\n __dict__ = func_dict\n __globals__ = func_globals\n __name__ = func_name\n def __init__(\n self,\n code: CodeType,\n globals: Dict[str, Any],\n name: Optional[str] = ...,\n argdefs: Optional[Tuple[object, ...]] = ...,\n closure: Optional[Tuple[_Cell, ...]] = ...,\n ) -> None: ...\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n def __get__(self, obj: Optional[object], type: Optional[type]) -> UnboundMethodType: ...\n\nLambdaType = FunctionType\n\nclass CodeType:\n co_argcount: int\n co_cellvars: Tuple[str, ...]\n co_code: str\n co_consts: Tuple[Any, ...]\n co_filename: str\n co_firstlineno: int\n co_flags: int\n co_freevars: Tuple[str, ...]\n co_lnotab: str\n co_name: str\n co_names: Tuple[str, ...]\n co_nlocals: int\n co_stacksize: int\n co_varnames: Tuple[str, ...]\n def __init__(\n self,\n argcount: int,\n nlocals: int,\n stacksize: int,\n flags: int,\n codestring: str,\n constants: Tuple[Any, ...],\n names: Tuple[str, ...],\n varnames: Tuple[str, ...],\n filename: str,\n name: str,\n firstlineno: int,\n lnotab: str,\n freevars: Tuple[str, ...] = ...,\n cellvars: Tuple[str, ...] = ...,\n ) -> None: ...\n\nclass GeneratorType:\n gi_code: CodeType\n gi_frame: FrameType\n gi_running: int\n def __iter__(self) -> GeneratorType: ...\n def close(self) -> None: ...\n def next(self) -> Any: ...\n def send(self, __arg: Any) -> Any: ...\n @overload\n def throw(\n self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...\n ) -> Any: ...\n @overload\n def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> Any: ...\n\nclass ClassType: ...\n\nclass UnboundMethodType:\n im_class: type = ...\n im_func: FunctionType = ...\n im_self: object = ...\n __name__: str\n __func__ = im_func\n __self__ = im_self\n def __init__(self, func: Callable[..., Any], obj: object) -> None: ...\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n\nclass InstanceType(object): ...\n\nMethodType = UnboundMethodType\n\nclass BuiltinFunctionType:\n __self__: Optional[object]\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n\nBuiltinMethodType = BuiltinFunctionType\n\nclass ModuleType:\n __doc__: Optional[str]\n __file__: Optional[str]\n __name__: str\n __package__: Optional[str]\n __path__: Optional[Iterable[str]]\n __dict__: Dict[str, Any]\n def __init__(self, name: str, doc: Optional[str] = ...) -> None: ...\n\nFileType = file\nXRangeType = xrange\n\nclass TracebackType:\n tb_frame: FrameType\n tb_lasti: int\n tb_lineno: int\n tb_next: TracebackType\n\nclass FrameType:\n f_back: FrameType\n f_builtins: Dict[str, Any]\n f_code: CodeType\n f_exc_type: None\n f_exc_value: None\n f_exc_traceback: None\n f_globals: Dict[str, Any]\n f_lasti: int\n f_lineno: int\n f_locals: Dict[str, Any]\n f_restricted: bool\n f_trace: Callable[[], None]\n def clear(self) -> None: ...\n\nSliceType = slice\n\nclass EllipsisType: ...\n\nclass DictProxyType:\n # TODO is it possible to have non-string keys?\n # no __init__\n def copy(self) -> Dict[Any, Any]: ...\n def get(self, key: str, default: _T = ...) -> Union[Any, _T]: ...\n def has_key(self, key: str) -> bool: ...\n def items(self) -> List[Tuple[str, Any]]: ...\n def iteritems(self) -> Iterator[Tuple[str, Any]]: ...\n def iterkeys(self) -> Iterator[str]: ...\n def itervalues(self) -> Iterator[Any]: ...\n def keys(self) -> List[str]: ...\n def values(self) -> List[Any]: ...\n def __contains__(self, key: str) -> bool: ...\n def __getitem__(self, key: str) -> Any: ...\n def __iter__(self) -> Iterator[str]: ...\n def __len__(self) -> int: ...\n\nclass NotImplementedType: ...\n\nclass GetSetDescriptorType:\n __name__: str\n __objclass__: type\n def __get__(self, obj: Any, type: type = ...) -> Any: ...\n def __set__(self, obj: Any) -> None: ...\n def __delete__(self, obj: Any) -> None: ...\n\n# Same type on Jython, different on CPython and PyPy, unknown on IronPython.\nclass MemberDescriptorType:\n __name__: str\n __objclass__: type\n def __get__(self, obj: Any, type: type = ...) -> Any: ...\n def __set__(self, obj: Any) -> None: ...\n def __delete__(self, obj: Any) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\types.pyi
types.pyi
Other
5,465
0.95
0.261538
0.023669
python-kit
837
2024-04-28T11:28:52.655453
Apache-2.0
false
eb1fea74b69142da1a43bba5eb8842cb
import collections # Needed by aliases like DefaultDict, see mypy issue 2986\nfrom abc import ABCMeta, abstractmethod\nfrom types import CodeType, FrameType, TracebackType\n\n# Definitions of special type checking related constructs. Their definitions\n# are not used, so their value does not matter.\n\noverload = object()\nAny = object()\n\nclass TypeVar:\n __name__: str\n __bound__: Optional[Type[Any]]\n __constraints__: Tuple[Type[Any], ...]\n __covariant__: bool\n __contravariant__: bool\n def __init__(\n self,\n name: str,\n *constraints: Type[Any],\n bound: Optional[Type[Any]] = ...,\n covariant: bool = ...,\n contravariant: bool = ...,\n ) -> None: ...\n\n_promote = object()\n\nclass _SpecialForm(object):\n def __getitem__(self, typeargs: Any) -> object: ...\n\nUnion: _SpecialForm = ...\nOptional: _SpecialForm = ...\nTuple: _SpecialForm = ...\nGeneric: _SpecialForm = ...\nProtocol: _SpecialForm = ...\nCallable: _SpecialForm = ...\nType: _SpecialForm = ...\nClassVar: _SpecialForm = ...\nFinal: _SpecialForm = ...\n_F = TypeVar("_F", bound=Callable[..., Any])\n\ndef final(f: _F) -> _F: ...\n\nLiteral: _SpecialForm = ...\n# TypedDict is a (non-subscriptable) special form.\nTypedDict: object = ...\n\nclass GenericMeta(type): ...\n\n# Return type that indicates a function does not return.\n# This type is equivalent to the None type, but the no-op Union is necessary to\n# distinguish the None type from the None value.\nNoReturn = Union[None]\n\n# These type variables are used by the container types.\n_T = TypeVar("_T")\n_S = TypeVar("_S")\n_KT = TypeVar("_KT") # Key type.\n_VT = TypeVar("_VT") # Value type.\n_T_co = TypeVar("_T_co", covariant=True) # Any type covariant containers.\n_V_co = TypeVar("_V_co", covariant=True) # Any type covariant containers.\n_KT_co = TypeVar("_KT_co", covariant=True) # Key type covariant containers.\n_VT_co = TypeVar("_VT_co", covariant=True) # Value type covariant containers.\n_T_contra = TypeVar("_T_contra", contravariant=True) # Ditto contravariant.\n_TC = TypeVar("_TC", bound=Type[object])\n_C = TypeVar("_C", bound=Callable[..., Any])\n\nno_type_check = object()\n\ndef no_type_check_decorator(decorator: _C) -> _C: ...\n\n# Type aliases and type constructors\n\nclass _Alias:\n # Class for defining generic aliases for library types.\n def __getitem__(self, typeargs: Any) -> Any: ...\n\nList = _Alias()\nDict = _Alias()\nDefaultDict = _Alias()\nSet = _Alias()\nFrozenSet = _Alias()\nCounter = _Alias()\nDeque = _Alias()\n\n# Predefined type variables.\nAnyStr = TypeVar("AnyStr", str, unicode)\n\n# Abstract base classes.\n\ndef runtime_checkable(cls: _TC) -> _TC: ...\n@runtime_checkable\nclass SupportsInt(Protocol, metaclass=ABCMeta):\n @abstractmethod\n def __int__(self) -> int: ...\n\n@runtime_checkable\nclass SupportsFloat(Protocol, metaclass=ABCMeta):\n @abstractmethod\n def __float__(self) -> float: ...\n\n@runtime_checkable\nclass SupportsComplex(Protocol, metaclass=ABCMeta):\n @abstractmethod\n def __complex__(self) -> complex: ...\n\n@runtime_checkable\nclass SupportsAbs(Protocol[_T_co]):\n @abstractmethod\n def __abs__(self) -> _T_co: ...\n\n@runtime_checkable\nclass Reversible(Protocol[_T_co]):\n @abstractmethod\n def __reversed__(self) -> Iterator[_T_co]: ...\n\n@runtime_checkable\nclass Sized(Protocol, metaclass=ABCMeta):\n @abstractmethod\n def __len__(self) -> int: ...\n\n@runtime_checkable\nclass Hashable(Protocol, metaclass=ABCMeta):\n # TODO: This is special, in that a subclass of a hashable class may not be hashable\n # (for example, list vs. object). It's not obvious how to represent this. This class\n # is currently mostly useless for static checking.\n @abstractmethod\n def __hash__(self) -> int: ...\n\n@runtime_checkable\nclass Iterable(Protocol[_T_co]):\n @abstractmethod\n def __iter__(self) -> Iterator[_T_co]: ...\n\n@runtime_checkable\nclass Iterator(Iterable[_T_co], Protocol[_T_co]):\n @abstractmethod\n def next(self) -> _T_co: ...\n def __iter__(self) -> Iterator[_T_co]: ...\n\nclass Generator(Iterator[_T_co], Generic[_T_co, _T_contra, _V_co]):\n @abstractmethod\n def next(self) -> _T_co: ...\n @abstractmethod\n def send(self, __value: _T_contra) -> _T_co: ...\n @overload\n @abstractmethod\n def throw(\n self, __typ: Type[BaseException], __val: Union[BaseException, object] = ..., __tb: Optional[TracebackType] = ...\n ) -> _T_co: ...\n @overload\n @abstractmethod\n def throw(self, __typ: BaseException, __val: None = ..., __tb: Optional[TracebackType] = ...) -> _T_co: ...\n @abstractmethod\n def close(self) -> None: ...\n @property\n def gi_code(self) -> CodeType: ...\n @property\n def gi_frame(self) -> FrameType: ...\n @property\n def gi_running(self) -> bool: ...\n\n@runtime_checkable\nclass Container(Protocol[_T_co]):\n @abstractmethod\n def __contains__(self, x: object) -> bool: ...\n\nclass Sequence(Iterable[_T_co], Container[_T_co], Reversible[_T_co], Generic[_T_co]):\n @overload\n @abstractmethod\n def __getitem__(self, i: int) -> _T_co: ...\n @overload\n @abstractmethod\n def __getitem__(self, s: slice) -> Sequence[_T_co]: ...\n # Mixin methods\n def index(self, x: Any) -> int: ...\n def count(self, x: Any) -> int: ...\n def __contains__(self, x: object) -> bool: ...\n def __iter__(self) -> Iterator[_T_co]: ...\n def __reversed__(self) -> Iterator[_T_co]: ...\n # Implement Sized (but don't have it as a base class).\n @abstractmethod\n def __len__(self) -> int: ...\n\nclass MutableSequence(Sequence[_T], Generic[_T]):\n @abstractmethod\n def insert(self, index: int, object: _T) -> None: ...\n @overload\n @abstractmethod\n def __getitem__(self, i: int) -> _T: ...\n @overload\n @abstractmethod\n def __getitem__(self, s: slice) -> MutableSequence[_T]: ...\n @overload\n @abstractmethod\n def __setitem__(self, i: int, o: _T) -> None: ...\n @overload\n @abstractmethod\n def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...\n @overload\n @abstractmethod\n def __delitem__(self, i: int) -> None: ...\n @overload\n @abstractmethod\n def __delitem__(self, i: slice) -> None: ...\n # Mixin methods\n def append(self, object: _T) -> None: ...\n def extend(self, iterable: Iterable[_T]) -> None: ...\n def reverse(self) -> None: ...\n def pop(self, index: int = ...) -> _T: ...\n def remove(self, object: _T) -> None: ...\n def __iadd__(self, x: Iterable[_T]) -> MutableSequence[_T]: ...\n\nclass AbstractSet(Iterable[_T_co], Container[_T_co], Generic[_T_co]):\n @abstractmethod\n def __contains__(self, x: object) -> bool: ...\n # Mixin methods\n def __le__(self, s: AbstractSet[Any]) -> bool: ...\n def __lt__(self, s: AbstractSet[Any]) -> bool: ...\n def __gt__(self, s: AbstractSet[Any]) -> bool: ...\n def __ge__(self, s: AbstractSet[Any]) -> bool: ...\n def __and__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ...\n def __or__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ...\n def __sub__(self, s: AbstractSet[Any]) -> AbstractSet[_T_co]: ...\n def __xor__(self, s: AbstractSet[_T]) -> AbstractSet[Union[_T_co, _T]]: ...\n # TODO: argument can be any container?\n def isdisjoint(self, s: AbstractSet[Any]) -> bool: ...\n # Implement Sized (but don't have it as a base class).\n @abstractmethod\n def __len__(self) -> int: ...\n\nclass MutableSet(AbstractSet[_T], Generic[_T]):\n @abstractmethod\n def add(self, x: _T) -> None: ...\n @abstractmethod\n def discard(self, x: _T) -> None: ...\n # Mixin methods\n def clear(self) -> None: ...\n def pop(self) -> _T: ...\n def remove(self, element: _T) -> None: ...\n def __ior__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ...\n def __iand__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ...\n def __ixor__(self, s: AbstractSet[_S]) -> MutableSet[Union[_T, _S]]: ...\n def __isub__(self, s: AbstractSet[Any]) -> MutableSet[_T]: ...\n\nclass MappingView(object):\n def __len__(self) -> int: ...\n\nclass ItemsView(MappingView, AbstractSet[Tuple[_KT_co, _VT_co]], Generic[_KT_co, _VT_co]):\n def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[Tuple[_KT_co, _VT_co]]: ...\n\nclass KeysView(MappingView, AbstractSet[_KT_co], Generic[_KT_co]):\n def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[_KT_co]: ...\n\nclass ValuesView(MappingView, Iterable[_VT_co], Generic[_VT_co]):\n def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[_VT_co]: ...\n\n@runtime_checkable\nclass ContextManager(Protocol[_T_co]):\n def __enter__(self) -> _T_co: ...\n def __exit__(\n self,\n __exc_type: Optional[Type[BaseException]],\n __exc_value: Optional[BaseException],\n __traceback: Optional[TracebackType],\n ) -> Optional[bool]: ...\n\nclass Mapping(Iterable[_KT], Container[_KT], Generic[_KT, _VT_co]):\n # TODO: We wish the key type could also be covariant, but that doesn't work,\n # see discussion in https: //github.com/python/typing/pull/273.\n @abstractmethod\n def __getitem__(self, k: _KT) -> _VT_co: ...\n # Mixin methods\n @overload\n def get(self, k: _KT) -> Optional[_VT_co]: ...\n @overload\n def get(self, k: _KT, default: Union[_VT_co, _T]) -> Union[_VT_co, _T]: ...\n def keys(self) -> list[_KT]: ...\n def values(self) -> list[_VT_co]: ...\n def items(self) -> list[Tuple[_KT, _VT_co]]: ...\n def iterkeys(self) -> Iterator[_KT]: ...\n def itervalues(self) -> Iterator[_VT_co]: ...\n def iteritems(self) -> Iterator[Tuple[_KT, _VT_co]]: ...\n def __contains__(self, o: object) -> bool: ...\n # Implement Sized (but don't have it as a base class).\n @abstractmethod\n def __len__(self) -> int: ...\n\nclass MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]):\n @abstractmethod\n def __setitem__(self, k: _KT, v: _VT) -> None: ...\n @abstractmethod\n def __delitem__(self, v: _KT) -> None: ...\n def clear(self) -> None: ...\n @overload\n def pop(self, k: _KT) -> _VT: ...\n @overload\n def pop(self, k: _KT, default: Union[_VT, _T] = ...) -> Union[_VT, _T]: ...\n def popitem(self) -> Tuple[_KT, _VT]: ...\n def setdefault(self, k: _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\nText = unicode\n\nTYPE_CHECKING = True\n\nclass IO(Iterator[AnyStr], Generic[AnyStr]):\n # TODO detach\n # TODO use abstract properties\n @property\n def mode(self) -> str: ...\n @property\n def name(self) -> str: ...\n @abstractmethod\n def close(self) -> None: ...\n @property\n def closed(self) -> bool: ...\n @abstractmethod\n def fileno(self) -> int: ...\n @abstractmethod\n def flush(self) -> None: ...\n @abstractmethod\n def isatty(self) -> bool: ...\n # TODO what if n is None?\n @abstractmethod\n def read(self, n: int = ...) -> AnyStr: ...\n @abstractmethod\n def readable(self) -> bool: ...\n @abstractmethod\n def readline(self, limit: int = ...) -> AnyStr: ...\n @abstractmethod\n def readlines(self, hint: int = ...) -> list[AnyStr]: ...\n @abstractmethod\n def seek(self, offset: int, whence: int = ...) -> int: ...\n @abstractmethod\n def seekable(self) -> bool: ...\n @abstractmethod\n def tell(self) -> int: ...\n @abstractmethod\n def truncate(self, size: Optional[int] = ...) -> int: ...\n @abstractmethod\n def writable(self) -> bool: ...\n # TODO buffer objects\n @abstractmethod\n def write(self, s: AnyStr) -> int: ...\n @abstractmethod\n def writelines(self, lines: Iterable[AnyStr]) -> None: ...\n @abstractmethod\n def next(self) -> AnyStr: ...\n @abstractmethod\n def __iter__(self) -> Iterator[AnyStr]: ...\n @abstractmethod\n def __enter__(self) -> IO[AnyStr]: ...\n @abstractmethod\n def __exit__(\n self, t: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]\n ) -> Optional[bool]: ...\n\nclass BinaryIO(IO[str]):\n # TODO readinto\n # TODO read1?\n # TODO peek?\n @abstractmethod\n def __enter__(self) -> BinaryIO: ...\n\nclass TextIO(IO[unicode]):\n # TODO use abstractproperty\n @property\n def buffer(self) -> BinaryIO: ...\n @property\n def encoding(self) -> str: ...\n @property\n def errors(self) -> Optional[str]: ...\n @property\n def line_buffering(self) -> bool: ...\n @property\n def newlines(self) -> Any: ... # None, str or tuple\n @abstractmethod\n def __enter__(self) -> TextIO: ...\n\nclass ByteString(Sequence[int], metaclass=ABCMeta): ...\n\nclass Match(Generic[AnyStr]):\n pos: int\n endpos: int\n lastindex: Optional[int]\n string: AnyStr\n\n # The regular expression object whose match() or search() method produced\n # this match instance. This should not be Pattern[AnyStr] because the type\n # of the pattern is independent of the type of the matched string in\n # Python 2. Strictly speaking Match should be generic over AnyStr twice:\n # once for the type of the pattern and once for the type of the matched\n # string.\n re: Pattern[Any]\n # Can be None if there are no groups or if the last group was unnamed;\n # otherwise matches the type of the pattern.\n lastgroup: Optional[Any]\n def expand(self, template: Union[str, Text]) -> Any: ...\n @overload\n def group(self, group1: int = ...) -> AnyStr: ...\n @overload\n def group(self, group1: str) -> AnyStr: ...\n @overload\n def group(self, group1: int, group2: int, *groups: int) -> Tuple[AnyStr, ...]: ...\n @overload\n def group(self, group1: str, group2: str, *groups: str) -> Tuple[AnyStr, ...]: ...\n def groups(self, default: AnyStr = ...) -> Tuple[AnyStr, ...]: ...\n def groupdict(self, default: AnyStr = ...) -> Dict[str, AnyStr]: ...\n def start(self, __group: Union[int, str] = ...) -> int: ...\n def end(self, __group: Union[int, str] = ...) -> int: ...\n def span(self, __group: Union[int, str] = ...) -> Tuple[int, int]: ...\n @property\n def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented\n\n# We need a second TypeVar with the same definition as AnyStr, because\n# Pattern is generic over AnyStr (determining the type of its .pattern\n# attribute), but at the same time its methods take either bytes or\n# Text and return the same type, regardless of the type of the pattern.\n_AnyStr2 = TypeVar("_AnyStr2", bytes, Text)\n\nclass Pattern(Generic[AnyStr]):\n flags: int\n groupindex: Dict[AnyStr, int]\n groups: int\n pattern: AnyStr\n def search(self, string: _AnyStr2, pos: int = ..., endpos: int = ...) -> Optional[Match[_AnyStr2]]: ...\n def match(self, string: _AnyStr2, pos: int = ..., endpos: int = ...) -> Optional[Match[_AnyStr2]]: ...\n def split(self, string: _AnyStr2, maxsplit: int = ...) -> List[_AnyStr2]: ...\n # Returns either a list of _AnyStr2 or a list of tuples, depending on\n # whether there are groups in the pattern.\n def findall(self, string: Union[bytes, Text], pos: int = ..., endpos: int = ...) -> List[Any]: ...\n def finditer(self, string: _AnyStr2, pos: int = ..., endpos: int = ...) -> Iterator[Match[_AnyStr2]]: ...\n @overload\n def sub(self, repl: _AnyStr2, string: _AnyStr2, count: int = ...) -> _AnyStr2: ...\n @overload\n def sub(self, repl: Callable[[Match[_AnyStr2]], _AnyStr2], string: _AnyStr2, count: int = ...) -> _AnyStr2: ...\n @overload\n def subn(self, repl: _AnyStr2, string: _AnyStr2, count: int = ...) -> Tuple[_AnyStr2, int]: ...\n @overload\n def subn(self, repl: Callable[[Match[_AnyStr2]], _AnyStr2], string: _AnyStr2, count: int = ...) -> Tuple[_AnyStr2, int]: ...\n\n# Functions\n\ndef get_type_hints(\n obj: Callable[..., Any], globalns: Optional[Dict[Text, Any]] = ..., localns: Optional[Dict[Text, Any]] = ...\n) -> None: ...\n@overload\ndef cast(tp: Type[_T], obj: Any) -> _T: ...\n@overload\ndef cast(tp: str, obj: Any) -> Any: ...\n@overload\ndef cast(tp: object, obj: Any) -> Any: ...\n\n# Type constructors\n\n# NamedTuple is special-cased in the type checker\nclass NamedTuple(Tuple[Any, ...]):\n _fields: Tuple[str, ...]\n def __init__(self, typename: Text, fields: Iterable[Tuple[Text, Any]] = ..., **kwargs: Any) -> None: ...\n @classmethod\n def _make(cls: Type[_T], iterable: Iterable[Any]) -> _T: ...\n def _asdict(self) -> Dict[str, Any]: ...\n def _replace(self: _T, **kwargs: Any) -> _T: ...\n\n# Internal mypy fallback type for all typed dicts (does not exist at runtime)\nclass _TypedDict(Mapping[str, object], metaclass=ABCMeta):\n def copy(self: _T) -> _T: ...\n # Using NoReturn so that only calls using mypy plugin hook that specialize the signature\n # can go through.\n def setdefault(self, k: NoReturn, default: object) -> object: ...\n # Mypy plugin hook for 'pop' expects that 'default' has a type variable type.\n def pop(self, k: NoReturn, default: _T = ...) -> object: ...\n def update(self: _T, __m: _T) -> None: ...\n def has_key(self, k: str) -> bool: ...\n def viewitems(self) -> ItemsView[str, object]: ...\n def viewkeys(self) -> KeysView[str]: ...\n def viewvalues(self) -> ValuesView[object]: ...\n def __delitem__(self, k: NoReturn) -> None: ...\n\ndef NewType(name: str, tp: Type[_T]) -> Type[_T]: ...\n\n# This itself is only available during type checking\ndef type_check_only(func_or_cls: _C) -> _C: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\typing.pyi
typing.pyi
Other
17,772
0.95
0.440404
0.127854
python-kit
437
2024-03-18T15:56:07.255567
GPL-3.0
false
11ff050a5d36476f98a7c8c7225c57cb
import datetime\nimport types\nfrom abc import ABCMeta, abstractmethod\nfrom typing import (\n Any,\n Callable,\n Dict,\n FrozenSet,\n Iterable,\n Iterator,\n List,\n Mapping,\n NoReturn,\n Optional,\n Pattern,\n Sequence,\n Set,\n Text,\n TextIO,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\n\n_T = TypeVar("_T")\n_FT = TypeVar("_FT")\n\n_ExceptionType = Union[Type[BaseException], Tuple[Type[BaseException], ...]]\n_Regexp = Union[Text, Pattern[Text]]\n\n_SysExcInfoType = Union[Tuple[Type[BaseException], BaseException, types.TracebackType], Tuple[None, None, None]]\n\nclass Testable(metaclass=ABCMeta):\n @abstractmethod\n def run(self, result: TestResult) -> None: ...\n @abstractmethod\n def debug(self) -> None: ...\n @abstractmethod\n def countTestCases(self) -> int: ...\n\n# TODO ABC for test runners?\n\nclass TestResult:\n errors: List[Tuple[TestCase, str]]\n failures: List[Tuple[TestCase, str]]\n skipped: List[Tuple[TestCase, str]]\n expectedFailures: List[Tuple[TestCase, str]]\n unexpectedSuccesses: List[TestCase]\n shouldStop: bool\n testsRun: int\n buffer: bool\n failfast: bool\n def wasSuccessful(self) -> bool: ...\n def stop(self) -> None: ...\n def startTest(self, test: TestCase) -> None: ...\n def stopTest(self, test: TestCase) -> None: ...\n def startTestRun(self) -> None: ...\n def stopTestRun(self) -> None: ...\n def addError(self, test: TestCase, err: _SysExcInfoType) -> None: ...\n def addFailure(self, test: TestCase, err: _SysExcInfoType) -> None: ...\n def addSuccess(self, test: TestCase) -> None: ...\n def addSkip(self, test: TestCase, reason: str) -> None: ...\n def addExpectedFailure(self, test: TestCase, err: str) -> None: ...\n def addUnexpectedSuccess(self, test: TestCase) -> None: ...\n\nclass _AssertRaisesBaseContext:\n expected: Any\n failureException: Type[BaseException]\n obj_name: str\n expected_regex: Pattern[str]\n\nclass _AssertRaisesContext(_AssertRaisesBaseContext):\n exception: Any\n def __enter__(self) -> _AssertRaisesContext: ...\n def __exit__(self, exc_type, exc_value, tb) -> bool: ...\n\nclass TestCase(Testable):\n failureException: Type[BaseException]\n longMessage: bool\n maxDiff: Optional[int]\n # undocumented\n _testMethodName: str\n def __init__(self, methodName: str = ...) -> None: ...\n def setUp(self) -> None: ...\n def tearDown(self) -> None: ...\n @classmethod\n def setUpClass(cls) -> None: ...\n @classmethod\n def tearDownClass(cls) -> None: ...\n def run(self, result: TestResult = ...) -> None: ...\n def debug(self) -> None: ...\n def assert_(self, expr: Any, msg: object = ...) -> None: ...\n def failUnless(self, expr: Any, msg: object = ...) -> None: ...\n def assertTrue(self, expr: Any, msg: object = ...) -> None: ...\n def assertEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...\n def assertEquals(self, first: Any, second: Any, msg: object = ...) -> None: ...\n def failUnlessEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...\n def assertNotEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...\n def assertNotEquals(self, first: Any, second: Any, msg: object = ...) -> None: ...\n def failIfEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...\n @overload\n def assertAlmostEqual(self, first: float, second: float, places: int = ..., msg: Any = ...) -> None: ...\n @overload\n def assertAlmostEqual(self, first: float, second: float, *, msg: Any = ..., delta: float = ...) -> None: ...\n @overload\n def assertAlmostEqual(\n self, first: datetime.datetime, second: datetime.datetime, *, msg: Any = ..., delta: datetime.timedelta = ...\n ) -> None: ...\n @overload\n def assertAlmostEquals(self, first: float, second: float, places: int = ..., msg: Any = ...) -> None: ...\n @overload\n def assertAlmostEquals(self, first: float, second: float, *, msg: Any = ..., delta: float = ...) -> None: ...\n @overload\n def assertAlmostEquals(\n self, first: datetime.datetime, second: datetime.datetime, *, msg: Any = ..., delta: datetime.timedelta = ...\n ) -> None: ...\n def failUnlessAlmostEqual(self, first: float, second: float, places: int = ..., msg: object = ...) -> None: ...\n @overload\n def assertNotAlmostEqual(self, first: float, second: float, places: int = ..., msg: Any = ...) -> None: ...\n @overload\n def assertNotAlmostEqual(self, first: float, second: float, *, msg: Any = ..., delta: float = ...) -> None: ...\n @overload\n def assertNotAlmostEqual(\n self, first: datetime.datetime, second: datetime.datetime, *, msg: Any = ..., delta: datetime.timedelta = ...\n ) -> None: ...\n @overload\n def assertNotAlmostEquals(self, first: float, second: float, places: int = ..., msg: Any = ...) -> None: ...\n @overload\n def assertNotAlmostEquals(self, first: float, second: float, *, msg: Any = ..., delta: float = ...) -> None: ...\n @overload\n def assertNotAlmostEquals(\n self, first: datetime.datetime, second: datetime.datetime, *, msg: Any = ..., delta: datetime.timedelta = ...\n ) -> None: ...\n def failIfAlmostEqual(\n self, first: float, second: float, places: int = ..., msg: object = ..., delta: float = ...\n ) -> None: ...\n def assertGreater(self, first: Any, second: Any, msg: object = ...) -> None: ...\n def assertGreaterEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...\n def assertMultiLineEqual(self, first: str, second: str, msg: object = ...) -> None: ...\n def assertSequenceEqual(\n self, first: Sequence[Any], second: Sequence[Any], msg: object = ..., seq_type: type = ...\n ) -> None: ...\n def assertListEqual(self, first: List[Any], second: List[Any], msg: object = ...) -> None: ...\n def assertTupleEqual(self, first: Tuple[Any, ...], second: Tuple[Any, ...], msg: object = ...) -> None: ...\n def assertSetEqual(\n self, first: Union[Set[Any], FrozenSet[Any]], second: Union[Set[Any], FrozenSet[Any]], msg: object = ...\n ) -> None: ...\n def assertDictEqual(self, first: Dict[Any, Any], second: Dict[Any, Any], msg: object = ...) -> None: ...\n def assertLess(self, first: Any, second: Any, msg: object = ...) -> None: ...\n def assertLessEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...\n @overload\n def assertRaises(self, exception: _ExceptionType, callable: Callable[..., Any], *args: Any, **kwargs: Any) -> None: ...\n @overload\n def assertRaises(self, exception: _ExceptionType) -> _AssertRaisesContext: ...\n @overload\n def assertRaisesRegexp(\n self, exception: _ExceptionType, regexp: _Regexp, callable: Callable[..., Any], *args: Any, **kwargs: Any\n ) -> None: ...\n @overload\n def assertRaisesRegexp(self, exception: _ExceptionType, regexp: _Regexp) -> _AssertRaisesContext: ...\n def assertRegexpMatches(self, text: Text, regexp: _Regexp, msg: object = ...) -> None: ...\n def assertNotRegexpMatches(self, text: Text, regexp: _Regexp, msg: object = ...) -> None: ...\n def assertItemsEqual(self, first: Iterable[Any], second: Iterable[Any], msg: object = ...) -> None: ...\n def assertDictContainsSubset(self, expected: Mapping[Any, Any], actual: Mapping[Any, Any], msg: object = ...) -> None: ...\n def addTypeEqualityFunc(self, typeobj: type, function: Callable[..., None]) -> None: ...\n @overload\n def failUnlessRaises(self, exception: _ExceptionType, callable: Callable[..., Any], *args: Any, **kwargs: Any) -> None: ...\n @overload\n def failUnlessRaises(self, exception: _ExceptionType) -> _AssertRaisesContext: ...\n def failIf(self, expr: Any, msg: object = ...) -> None: ...\n def assertFalse(self, expr: Any, msg: object = ...) -> None: ...\n def assertIs(self, first: object, second: object, msg: object = ...) -> None: ...\n def assertIsNot(self, first: object, second: object, msg: object = ...) -> None: ...\n def assertIsNone(self, expr: Any, msg: object = ...) -> None: ...\n def assertIsNotNone(self, expr: Any, msg: object = ...) -> None: ...\n def assertIn(self, first: _T, second: Iterable[_T], msg: object = ...) -> None: ...\n def assertNotIn(self, first: _T, second: Iterable[_T], msg: object = ...) -> None: ...\n def assertIsInstance(self, obj: Any, cls: Union[type, Tuple[type, ...]], msg: object = ...) -> None: ...\n def assertNotIsInstance(self, obj: Any, cls: Union[type, Tuple[type, ...]], msg: object = ...) -> None: ...\n def fail(self, msg: object = ...) -> NoReturn: ...\n def countTestCases(self) -> int: ...\n def defaultTestResult(self) -> TestResult: ...\n def id(self) -> str: ...\n def shortDescription(self) -> str: ... # May return None\n def addCleanup(self, function: Any, *args: Any, **kwargs: Any) -> None: ...\n def doCleanups(self) -> bool: ...\n def skipTest(self, reason: Any) -> None: ...\n def _formatMessage(self, msg: Optional[Text], standardMsg: Text) -> str: ... # undocumented\n def _getAssertEqualityFunc(self, first: Any, second: Any) -> Callable[..., None]: ... # undocumented\n\nclass FunctionTestCase(TestCase):\n def __init__(\n self,\n testFunc: Callable[[], None],\n setUp: Optional[Callable[[], None]] = ...,\n tearDown: Optional[Callable[[], None]] = ...,\n description: Optional[str] = ...,\n ) -> None: ...\n def debug(self) -> None: ...\n def countTestCases(self) -> int: ...\n\nclass TestSuite(Testable):\n def __init__(self, tests: Iterable[Testable] = ...) -> None: ...\n def addTest(self, test: Testable) -> None: ...\n def addTests(self, tests: Iterable[Testable]) -> None: ...\n def run(self, result: TestResult) -> None: ...\n def debug(self) -> None: ...\n def countTestCases(self) -> int: ...\n def __iter__(self) -> Iterator[Testable]: ...\n\nclass TestLoader:\n testMethodPrefix: str\n sortTestMethodsUsing: Optional[Callable[[str, str], int]]\n suiteClass: Callable[[List[TestCase]], TestSuite]\n def loadTestsFromTestCase(self, testCaseClass: Type[TestCase]) -> TestSuite: ...\n def loadTestsFromModule(self, module: types.ModuleType = ..., use_load_tests: bool = ...) -> TestSuite: ...\n def loadTestsFromName(self, name: str = ..., module: Optional[types.ModuleType] = ...) -> TestSuite: ...\n def loadTestsFromNames(self, names: List[str] = ..., module: Optional[types.ModuleType] = ...) -> TestSuite: ...\n def discover(self, start_dir: str, pattern: str = ..., top_level_dir: Optional[str] = ...) -> TestSuite: ...\n def getTestCaseNames(self, testCaseClass: Type[TestCase] = ...) -> List[str]: ...\n\ndefaultTestLoader: TestLoader\n\nclass TextTestResult(TestResult):\n def __init__(self, stream: TextIO, descriptions: bool, verbosity: int) -> None: ...\n def getDescription(self, test: TestCase) -> str: ... # undocumented\n def printErrors(self) -> None: ... # undocumented\n def printErrorList(self, flavour: str, errors: List[Tuple[TestCase, str]]) -> None: ... # undocumented\n\nclass TextTestRunner:\n def __init__(\n self,\n stream: Optional[TextIO] = ...,\n descriptions: bool = ...,\n verbosity: int = ...,\n failfast: bool = ...,\n buffer: bool = ...,\n resultclass: Optional[Type[TestResult]] = ...,\n ) -> None: ...\n def _makeResult(self) -> TestResult: ...\n def run(self, test: Testable) -> TestResult: ... # undocumented\n\nclass SkipTest(Exception): ...\n\n# TODO precise types\ndef skipUnless(condition: Any, reason: Union[str, unicode]) -> Any: ...\ndef skipIf(condition: Any, reason: Union[str, unicode]) -> Any: ...\ndef expectedFailure(func: _FT) -> _FT: ...\ndef skip(reason: Union[str, unicode]) -> Any: ...\n\n# not really documented\nclass TestProgram:\n result: TestResult\n def runTests(self) -> None: ... # undocumented\n\ndef main(\n module: Union[None, Text, types.ModuleType] = ...,\n defaultTest: Optional[str] = ...,\n argv: Optional[Sequence[str]] = ...,\n testRunner: Union[Type[TextTestRunner], TextTestRunner, None] = ...,\n testLoader: TestLoader = ...,\n exit: bool = ...,\n verbosity: int = ...,\n failfast: Optional[bool] = ...,\n catchbreak: Optional[bool] = ...,\n buffer: Optional[bool] = ...,\n) -> TestProgram: ...\ndef load_tests(loader: TestLoader, tests: TestSuite, pattern: Optional[Text]) -> TestSuite: ...\ndef installHandler() -> None: ...\ndef registerResult(result: TestResult) -> None: ...\ndef removeResult(result: TestResult) -> bool: ...\n@overload\ndef removeHandler() -> None: ...\n@overload\ndef removeHandler(function: Callable[..., Any]) -> Callable[..., Any]: ...\n\n# private but occasionally used\nutil: types.ModuleType\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\unittest.pyi
unittest.pyi
Other
12,726
0.95
0.496429
0.019231
awesome-app
249
2025-03-24T16:06:41.698498
Apache-2.0
true
41957564f364af08c661f8cdbb143bb7
from typing import IO, Any, AnyStr, List, Mapping, Sequence, Text, Tuple, TypeVar, Union\n\ndef url2pathname(pathname: AnyStr) -> AnyStr: ...\ndef pathname2url(pathname: AnyStr) -> AnyStr: ...\ndef urlopen(url: str, data=..., proxies: Mapping[str, str] = ..., context=...) -> IO[Any]: ...\ndef urlretrieve(url, filename=..., reporthook=..., data=..., context=...): ...\ndef urlcleanup() -> None: ...\n\nclass ContentTooShortError(IOError):\n content: Any\n def __init__(self, message, content) -> None: ...\n\nclass URLopener:\n version: Any\n proxies: Any\n key_file: Any\n cert_file: Any\n context: Any\n addheaders: Any\n tempcache: Any\n ftpcache: Any\n def __init__(self, proxies: Mapping[str, str] = ..., context=..., **x509) -> None: ...\n def __del__(self): ...\n def close(self): ...\n def cleanup(self): ...\n def addheader(self, *args): ...\n type: Any\n def open(self, fullurl: str, data=...): ...\n def open_unknown(self, fullurl, data=...): ...\n def open_unknown_proxy(self, proxy, fullurl, data=...): ...\n def retrieve(self, url, filename=..., reporthook=..., data=...): ...\n def open_http(self, url, data=...): ...\n def http_error(self, url, fp, errcode, errmsg, headers, data=...): ...\n def http_error_default(self, url, fp, errcode, errmsg, headers): ...\n def open_https(self, url, data=...): ...\n def open_file(self, url): ...\n def open_local_file(self, url): ...\n def open_ftp(self, url): ...\n def open_data(self, url, data=...): ...\n\nclass FancyURLopener(URLopener):\n auth_cache: Any\n tries: Any\n maxtries: Any\n def __init__(self, *args, **kwargs) -> None: ...\n def http_error_default(self, url, fp, errcode, errmsg, headers): ...\n def http_error_302(self, url, fp, errcode, errmsg, headers, data=...): ...\n def redirect_internal(self, url, fp, errcode, errmsg, headers, data): ...\n def http_error_301(self, url, fp, errcode, errmsg, headers, data=...): ...\n def http_error_303(self, url, fp, errcode, errmsg, headers, data=...): ...\n def http_error_307(self, url, fp, errcode, errmsg, headers, data=...): ...\n def http_error_401(self, url, fp, errcode, errmsg, headers, data=...): ...\n def http_error_407(self, url, fp, errcode, errmsg, headers, data=...): ...\n def retry_proxy_http_basic_auth(self, url, realm, data=...): ...\n def retry_proxy_https_basic_auth(self, url, realm, data=...): ...\n def retry_http_basic_auth(self, url, realm, data=...): ...\n def retry_https_basic_auth(self, url, realm, data=...): ...\n def get_user_passwd(self, host, realm, clear_cache=...): ...\n def prompt_user_passwd(self, host, realm): ...\n\nclass ftpwrapper:\n user: Any\n passwd: Any\n host: Any\n port: Any\n dirs: Any\n timeout: Any\n refcount: Any\n keepalive: Any\n def __init__(self, user, passwd, host, port, dirs, timeout=..., persistent=...) -> None: ...\n busy: Any\n ftp: Any\n def init(self): ...\n def retrfile(self, file, type): ...\n def endtransfer(self): ...\n def close(self): ...\n def file_close(self): ...\n def real_close(self): ...\n\n_AIUT = TypeVar("_AIUT", bound=addbase)\n\nclass addbase:\n fp: Any\n def read(self, n: int = ...) -> bytes: ...\n def readline(self, limit: int = ...) -> bytes: ...\n def readlines(self, hint: int = ...) -> List[bytes]: ...\n def fileno(self) -> int: ... # Optional[int], but that is rare\n def __iter__(self: _AIUT) -> _AIUT: ...\n def next(self) -> bytes: ...\n def __init__(self, fp) -> None: ...\n def close(self) -> None: ...\n\nclass addclosehook(addbase):\n closehook: Any\n hookargs: Any\n def __init__(self, fp, closehook, *hookargs) -> None: ...\n def close(self): ...\n\nclass addinfo(addbase):\n headers: Any\n def __init__(self, fp, headers) -> None: ...\n def info(self): ...\n\nclass addinfourl(addbase):\n headers: Any\n url: Any\n code: Any\n def __init__(self, fp, headers, url, code=...) -> None: ...\n def info(self): ...\n def getcode(self): ...\n def geturl(self): ...\n\ndef unwrap(url): ...\ndef splittype(url): ...\ndef splithost(url): ...\ndef splituser(host): ...\ndef splitpasswd(user): ...\ndef splitport(host): ...\ndef splitnport(host, defport=...): ...\ndef splitquery(url): ...\ndef splittag(url): ...\ndef splitattr(url): ...\ndef splitvalue(attr): ...\ndef unquote(s: AnyStr) -> AnyStr: ...\ndef unquote_plus(s: AnyStr) -> AnyStr: ...\ndef quote(s: AnyStr, safe: Text = ...) -> AnyStr: ...\ndef quote_plus(s: AnyStr, safe: Text = ...) -> AnyStr: ...\ndef urlencode(query: Union[Sequence[Tuple[Any, Any]], Mapping[Any, Any]], doseq=...) -> str: ...\ndef getproxies() -> Mapping[str, str]: ...\ndef proxy_bypass(host: str) -> Any: ... # Undocumented\n\n# Names in __all__ with no definition:\n# basejoin\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\urllib.pyi
urllib.pyi
Other
4,765
0.95
0.654135
0.016529
vue-tools
58
2023-12-24T01:29:11.879154
MIT
false
8a65aac0251b8254ed250b7394697a95
import ssl\nfrom httplib import HTTPConnectionProtocol, HTTPResponse\nfrom typing import Any, AnyStr, Callable, Dict, List, Mapping, Optional, Sequence, Text, Tuple, Type, Union\nfrom urllib import addinfourl\n\n_string = Union[str, unicode]\n\nclass URLError(IOError):\n reason: Union[str, BaseException]\n\nclass HTTPError(URLError, addinfourl):\n code: int\n headers: Mapping[str, str]\n def __init__(self, url, code: int, msg: str, hdrs: Mapping[str, str], fp: addinfourl) -> None: ...\n\nclass Request(object):\n host: str\n port: str\n data: str\n headers: Dict[str, str]\n unverifiable: bool\n type: Optional[str]\n origin_req_host = ...\n unredirected_hdrs: Dict[str, str]\n def __init__(\n self,\n url: str,\n data: Optional[str] = ...,\n headers: Dict[str, str] = ...,\n origin_req_host: Optional[str] = ...,\n unverifiable: bool = ...,\n ) -> None: ...\n def __getattr__(self, attr): ...\n def get_method(self) -> str: ...\n def add_data(self, data) -> None: ...\n def has_data(self) -> bool: ...\n def get_data(self) -> str: ...\n def get_full_url(self) -> str: ...\n def get_type(self): ...\n def get_host(self) -> str: ...\n def get_selector(self): ...\n def set_proxy(self, host, type) -> None: ...\n def has_proxy(self) -> bool: ...\n def get_origin_req_host(self) -> str: ...\n def is_unverifiable(self) -> bool: ...\n def add_header(self, key: str, val: str) -> None: ...\n def add_unredirected_header(self, key: str, val: str) -> None: ...\n def has_header(self, header_name: str) -> bool: ...\n def get_header(self, header_name: str, default: Optional[str] = ...) -> str: ...\n def header_items(self): ...\n\nclass OpenerDirector(object):\n addheaders: List[Tuple[str, str]]\n def add_handler(self, handler: BaseHandler) -> None: ...\n def open(\n self, fullurl: Union[Request, _string], data: Optional[_string] = ..., timeout: Optional[float] = ...\n ) -> Optional[addinfourl]: ...\n def error(self, proto: _string, *args: Any): ...\n\n# Note that this type is somewhat a lie. The return *can* be None if\n# a custom opener has been installed that fails to handle the request.\ndef urlopen(\n url: Union[Request, _string],\n data: Optional[_string] = ...,\n timeout: Optional[float] = ...,\n cafile: Optional[_string] = ...,\n capath: Optional[_string] = ...,\n cadefault: bool = ...,\n context: Optional[ssl.SSLContext] = ...,\n) -> addinfourl: ...\ndef install_opener(opener: OpenerDirector) -> None: ...\ndef build_opener(*handlers: Union[BaseHandler, Type[BaseHandler]]) -> OpenerDirector: ...\n\nclass BaseHandler:\n handler_order: int\n parent: OpenerDirector\n def add_parent(self, parent: OpenerDirector) -> None: ...\n def close(self) -> None: ...\n def __lt__(self, other: Any) -> bool: ...\n\nclass HTTPErrorProcessor(BaseHandler):\n def http_response(self, request, response): ...\n\nclass HTTPDefaultErrorHandler(BaseHandler):\n def http_error_default(self, req: Request, fp: addinfourl, code: int, msg: str, hdrs: Mapping[str, str]): ...\n\nclass HTTPRedirectHandler(BaseHandler):\n max_repeats: int\n max_redirections: int\n def redirect_request(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str], newurl): ...\n def http_error_301(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...\n def http_error_302(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...\n def http_error_303(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...\n def http_error_307(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...\n inf_msg: str\n\nclass ProxyHandler(BaseHandler):\n proxies: Mapping[str, str]\n def __init__(self, proxies: Optional[Mapping[str, str]] = ...): ...\n def proxy_open(self, req: Request, proxy, type): ...\n\nclass HTTPPasswordMgr:\n def __init__(self) -> None: ...\n def add_password(self, realm: Optional[Text], uri: Union[Text, Sequence[Text]], user: Text, passwd: Text) -> None: ...\n def find_user_password(self, realm: Optional[Text], authuri: Text) -> Tuple[Any, Any]: ...\n def reduce_uri(self, uri: _string, default_port: bool = ...) -> Tuple[Any, Any]: ...\n def is_suburi(self, base: _string, test: _string) -> bool: ...\n\nclass HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr): ...\n\nclass AbstractBasicAuthHandler:\n def __init__(self, password_mgr: Optional[HTTPPasswordMgr] = ...) -> None: ...\n def add_password(self, realm: Optional[Text], uri: Union[Text, Sequence[Text]], user: Text, passwd: Text) -> None: ...\n def http_error_auth_reqed(self, authreq, host, req: Request, headers: Mapping[str, str]): ...\n def retry_http_basic_auth(self, host, req: Request, realm): ...\n\nclass HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):\n auth_header: str\n def http_error_401(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...\n\nclass ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):\n auth_header: str\n def http_error_407(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...\n\nclass AbstractDigestAuthHandler:\n def __init__(self, passwd: Optional[HTTPPasswordMgr] = ...) -> None: ...\n def add_password(self, realm: Optional[Text], uri: Union[Text, Sequence[Text]], user: Text, passwd: Text) -> None: ...\n def reset_retry_count(self) -> None: ...\n def http_error_auth_reqed(self, auth_header: str, host: str, req: Request, headers: Mapping[str, str]) -> None: ...\n def retry_http_digest_auth(self, req: Request, auth: str) -> Optional[HTTPResponse]: ...\n def get_cnonce(self, nonce: str) -> str: ...\n def get_authorization(self, req: Request, chal: Mapping[str, str]) -> str: ...\n def get_algorithm_impls(self, algorithm: str) -> Tuple[Callable[[str], str], Callable[[str, str], str]]: ...\n def get_entity_digest(self, data: Optional[bytes], chal: Mapping[str, str]) -> Optional[str]: ...\n\nclass HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):\n auth_header: str\n handler_order: int\n def http_error_401(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...\n\nclass ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):\n auth_header: str\n handler_order: int\n def http_error_407(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...\n\nclass AbstractHTTPHandler(BaseHandler): # undocumented\n def __init__(self, debuglevel: int = ...) -> None: ...\n def set_http_debuglevel(self, level: int) -> None: ...\n def do_request_(self, request: Request) -> Request: ...\n def do_open(self, http_class: HTTPConnectionProtocol, req: Request, **http_conn_args: Optional[Any]) -> addinfourl: ...\n\nclass HTTPHandler(AbstractHTTPHandler):\n def http_open(self, req: Request) -> addinfourl: ...\n def http_request(self, request: Request) -> Request: ... # undocumented\n\nclass HTTPSHandler(AbstractHTTPHandler):\n def __init__(self, debuglevel: int = ..., context: Optional[ssl.SSLContext] = ...) -> None: ...\n def https_open(self, req: Request) -> addinfourl: ...\n def https_request(self, request: Request) -> Request: ... # undocumented\n\nclass HTTPCookieProcessor(BaseHandler):\n def __init__(self, cookiejar: Optional[Any] = ...): ...\n def http_request(self, request: Request): ...\n def http_response(self, request: Request, response): ...\n\nclass UnknownHandler(BaseHandler):\n def unknown_open(self, req: Request): ...\n\nclass FileHandler(BaseHandler):\n def file_open(self, req: Request): ...\n def get_names(self): ...\n def open_local_file(self, req: Request): ...\n\nclass FTPHandler(BaseHandler):\n def ftp_open(self, req: Request): ...\n def connect_ftp(self, user, passwd, host, port, dirs, timeout): ...\n\nclass CacheFTPHandler(FTPHandler):\n def __init__(self) -> None: ...\n def setTimeout(self, t: Optional[float]): ...\n def setMaxConns(self, m: int): ...\n def check_cache(self): ...\n def clear_cache(self): ...\n\ndef parse_http_list(s: AnyStr) -> List[AnyStr]: ...\ndef parse_keqv_list(l: List[AnyStr]) -> Dict[AnyStr, AnyStr]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\urllib2.pyi
urllib2.pyi
Other
8,312
0.95
0.596774
0.012658
python-kit
828
2025-06-21T12:16:05.399477
BSD-3-Clause
false
7976adccedaaa59418e5fcae2fdda64a
from typing import AnyStr, Dict, List, NamedTuple, Optional, Sequence, Tuple, Union, overload\n\n_String = Union[str, unicode]\n\nuses_relative: List[str]\nuses_netloc: List[str]\nuses_params: List[str]\nnon_hierarchical: List[str]\nuses_query: List[str]\nuses_fragment: List[str]\nscheme_chars: str\nMAX_CACHE_SIZE: int\n\ndef clear_cache() -> None: ...\n\nclass ResultMixin(object):\n @property\n def username(self) -> Optional[str]: ...\n @property\n def password(self) -> Optional[str]: ...\n @property\n def hostname(self) -> Optional[str]: ...\n @property\n def port(self) -> Optional[int]: ...\n\nclass _SplitResult(NamedTuple):\n scheme: str\n netloc: str\n path: str\n query: str\n fragment: str\n\nclass SplitResult(_SplitResult, ResultMixin):\n def geturl(self) -> str: ...\n\nclass _ParseResult(NamedTuple):\n scheme: str\n netloc: str\n path: str\n params: str\n query: str\n fragment: str\n\nclass ParseResult(_ParseResult, ResultMixin):\n def geturl(self) -> _String: ...\n\ndef urlparse(url: _String, scheme: _String = ..., allow_fragments: bool = ...) -> ParseResult: ...\ndef urlsplit(url: _String, scheme: _String = ..., allow_fragments: bool = ...) -> SplitResult: ...\n@overload\ndef urlunparse(data: Tuple[AnyStr, AnyStr, AnyStr, AnyStr, AnyStr, AnyStr]) -> AnyStr: ...\n@overload\ndef urlunparse(data: Sequence[AnyStr]) -> AnyStr: ...\n@overload\ndef urlunsplit(data: Tuple[AnyStr, AnyStr, AnyStr, AnyStr, AnyStr]) -> AnyStr: ...\n@overload\ndef urlunsplit(data: Sequence[AnyStr]) -> AnyStr: ...\ndef urljoin(base: AnyStr, url: AnyStr, allow_fragments: bool = ...) -> AnyStr: ...\ndef urldefrag(url: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\ndef unquote(s: AnyStr) -> AnyStr: ...\ndef parse_qs(qs: AnyStr, keep_blank_values: bool = ..., strict_parsing: bool = ...) -> Dict[AnyStr, List[AnyStr]]: ...\ndef parse_qsl(qs: AnyStr, keep_blank_values: int = ..., strict_parsing: bool = ...) -> List[Tuple[AnyStr, AnyStr]]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\urlparse.pyi
urlparse.pyi
Other
1,944
0.85
0.377049
0
node-utils
647
2023-11-14T15:55:30.237857
BSD-3-Clause
false
48bd75c9ee9b1a1cc15e393124b6f744
from typing import Any\n\ndef __getattr__(name) -> Any: ...\n\nhome: str\npythonrc: str\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\user.pyi
user.pyi
Other
83
0.65
0.166667
0
python-kit
292
2024-10-29T04:59:17.742887
Apache-2.0
false
c75df6c9dd9b29c894aa108bf19fd8df
from typing import (\n Any,\n Container,\n Dict,\n Generic,\n Iterable,\n Iterator,\n List,\n Mapping,\n Optional,\n Sized,\n Tuple,\n TypeVar,\n Union,\n overload,\n)\n\n_KT = TypeVar("_KT")\n_VT = TypeVar("_VT")\n_T = TypeVar("_T")\n\nclass UserDict(Dict[_KT, _VT], Generic[_KT, _VT]):\n data: Dict[_KT, _VT]\n def __init__(self, initialdata: Mapping[_KT, _VT] = ...) -> None: ...\n # TODO: __iter__ is not available for UserDict\n\nclass IterableUserDict(UserDict[_KT, _VT], Generic[_KT, _VT]): ...\n\nclass DictMixin(Iterable[_KT], Container[_KT], Sized, Generic[_KT, _VT]):\n def has_key(self, key: _KT) -> bool: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[_KT]: ...\n # From typing.Mapping[_KT, _VT]\n # (can't inherit because of keys())\n @overload\n def get(self, k: _KT) -> Optional[_VT]: ...\n @overload\n def get(self, k: _KT, default: Union[_VT, _T]) -> Union[_VT, _T]: ...\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 __contains__(self, o: Any) -> bool: ...\n # From typing.MutableMapping[_KT, _VT]\n def clear(self) -> None: ...\n def pop(self, k: _KT, default: _VT = ...) -> _VT: ...\n def popitem(self) -> Tuple[_KT, _VT]: ...\n def setdefault(self, k: _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
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\UserDict.pyi
UserDict.pyi
Other
1,663
0.95
0.415094
0.081633
react-lib
353
2024-12-26T18:48:04.630253
MIT
false
fa47b59c12cc030ea00dc3ac6f42411e
from typing import Iterable, List, MutableSequence, TypeVar, Union, overload\n\n_T = TypeVar("_T")\n_S = TypeVar("_S")\n\nclass UserList(MutableSequence[_T]):\n data: List[_T]\n def insert(self, index: int, object: _T) -> None: ...\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 __len__(self) -> int: ...\n @overload\n def __getitem__(self, i: int) -> _T: ...\n @overload\n def __getitem__(self: _S, s: slice) -> _S: ...\n def sort(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\UserList.pyi
UserList.pyi
Other
630
0.85
0.473684
0
react-lib
674
2025-03-28T14:29:52.328968
Apache-2.0
false
96e05ab1dbd17fbbcda4ab826c09d1e2
import collections\nfrom typing import Any, Iterable, List, MutableSequence, Optional, Sequence, Text, Tuple, TypeVar, Union, overload\n\n_UST = TypeVar("_UST", bound=UserString)\n_MST = TypeVar("_MST", bound=MutableString)\n\nclass UserString(Sequence[UserString]):\n data: unicode\n def __init__(self, seq: object) -> None: ...\n def __int__(self) -> int: ...\n def __long__(self) -> long: ...\n def __float__(self) -> float: ...\n def __complex__(self) -> complex: ...\n def __hash__(self) -> int: ...\n def __len__(self) -> int: ...\n @overload\n def __getitem__(self: _UST, i: int) -> _UST: ...\n @overload\n def __getitem__(self: _UST, s: slice) -> _UST: ...\n def __add__(self: _UST, other: Any) -> _UST: ...\n def __radd__(self: _UST, other: Any) -> _UST: ...\n def __mul__(self: _UST, other: int) -> _UST: ...\n def __rmul__(self: _UST, other: int) -> _UST: ...\n def __mod__(self: _UST, args: Any) -> _UST: ...\n def capitalize(self: _UST) -> _UST: ...\n def center(self: _UST, width: int, *args: Any) -> _UST: ...\n def count(self, sub: int, start: int = ..., end: int = ...) -> int: ...\n def decode(self: _UST, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> _UST: ...\n def encode(self: _UST, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> _UST: ...\n def endswith(self, suffix: Text, start: int = ..., end: int = ...) -> bool: ...\n def expandtabs(self: _UST, tabsize: int = ...) -> _UST: ...\n def find(self, sub: Text, start: int = ..., end: int = ...) -> int: ...\n def index(self, sub: Text, start: int = ..., end: int = ...) -> int: ...\n def isalpha(self) -> bool: ...\n def isalnum(self) -> bool: ...\n def isdecimal(self) -> bool: ...\n def isdigit(self) -> bool: ...\n def islower(self) -> bool: ...\n def isnumeric(self) -> bool: ...\n def isspace(self) -> bool: ...\n def istitle(self) -> bool: ...\n def isupper(self) -> bool: ...\n def join(self, seq: Iterable[Text]) -> Text: ...\n def ljust(self: _UST, width: int, *args: Any) -> _UST: ...\n def lower(self: _UST) -> _UST: ...\n def lstrip(self: _UST, chars: Optional[Text] = ...) -> _UST: ...\n def partition(self, sep: Text) -> Tuple[Text, Text, Text]: ...\n def replace(self: _UST, old: Text, new: Text, maxsplit: int = ...) -> _UST: ...\n def rfind(self, sub: Text, start: int = ..., end: int = ...) -> int: ...\n def rindex(self, sub: Text, start: int = ..., end: int = ...) -> int: ...\n def rjust(self: _UST, width: int, *args: Any) -> _UST: ...\n def rpartition(self, sep: Text) -> Tuple[Text, Text, Text]: ...\n def rstrip(self: _UST, chars: Optional[Text] = ...) -> _UST: ...\n def split(self, sep: Optional[Text] = ..., maxsplit: int = ...) -> List[Text]: ...\n def rsplit(self, sep: Optional[Text] = ..., maxsplit: int = ...) -> List[Text]: ...\n def splitlines(self, keepends: int = ...) -> List[Text]: ...\n def startswith(self, suffix: Text, start: int = ..., end: int = ...) -> bool: ...\n def strip(self: _UST, chars: Optional[Text] = ...) -> _UST: ...\n def swapcase(self: _UST) -> _UST: ...\n def title(self: _UST) -> _UST: ...\n def translate(self: _UST, *args: Any) -> _UST: ...\n def upper(self: _UST) -> _UST: ...\n def zfill(self: _UST, width: int) -> _UST: ...\n\nclass MutableString(UserString, MutableSequence[MutableString]):\n @overload\n def __getitem__(self: _MST, i: int) -> _MST: ...\n @overload\n def __getitem__(self: _MST, s: slice) -> _MST: ...\n def __setitem__(self, index: Union[int, slice], sub: Any) -> None: ...\n def __delitem__(self, index: Union[int, slice]) -> None: ...\n def immutable(self) -> UserString: ...\n def __iadd__(self: _MST, other: Any) -> _MST: ...\n def __imul__(self, n: int) -> _MST: ...\n def insert(self, index: int, value: Any) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\UserString.pyi
UserString.pyi
Other
3,844
0.85
0.84
0
vue-tools
962
2024-03-21T19:47:01.922497
BSD-3-Clause
false
063965d9c5bbb1ce355e3f4c0636ca69
from typing import Optional, Text\n\ndef whichdb(filename: Text) -> Optional[str]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\whichdb.pyi
whichdb.pyi
Other
85
0.65
0.333333
0
python-kit
934
2023-10-09T09:05:44.187009
MIT
false
7429a3f9e4f9670d3dd27a2645b34c0d
from datetime import datetime\nfrom gzip import GzipFile\nfrom httplib import HTTPConnection, HTTPResponse, HTTPSConnection\nfrom ssl import SSLContext\nfrom StringIO import StringIO\nfrom time import struct_time\nfrom types import InstanceType\nfrom typing import IO, Any, AnyStr, Callable, Iterable, List, Mapping, MutableMapping, Optional, Tuple, Type, TypeVar, Union\n\n_Unmarshaller = Any\n_timeTuple = Tuple[int, int, int, int, int, int, int, int, int]\n# Represents types that can be compared against a DateTime object\n_dateTimeComp = Union[unicode, DateTime, datetime]\n# A "host description" used by Transport factories\n_hostDesc = Union[str, Tuple[str, Mapping[Any, Any]]]\n\ndef escape(s: AnyStr, replace: Callable[[AnyStr, AnyStr, AnyStr], AnyStr] = ...) -> AnyStr: ...\n\nMAXINT: int\nMININT: int\nPARSE_ERROR: int\nSERVER_ERROR: int\nAPPLICATION_ERROR: int\nSYSTEM_ERROR: int\nTRANSPORT_ERROR: int\nNOT_WELLFORMED_ERROR: int\nUNSUPPORTED_ENCODING: int\nINVALID_ENCODING_CHAR: int\nINVALID_XMLRPC: int\nMETHOD_NOT_FOUND: int\nINVALID_METHOD_PARAMS: int\nINTERNAL_ERROR: int\n\nclass Error(Exception): ...\n\nclass ProtocolError(Error):\n url: str\n errcode: int\n errmsg: str\n headers: Any\n def __init__(self, url: str, errcode: int, errmsg: str, headers: Any) -> None: ...\n\nclass ResponseError(Error): ...\n\nclass Fault(Error):\n faultCode: Any\n faultString: str\n def __init__(self, faultCode: Any, faultString: str, **extra: Any) -> None: ...\n\nboolean: Type[bool]\nBoolean: Type[bool]\n\nclass DateTime:\n value: str\n def __init__(self, value: Union[str, unicode, datetime, float, int, _timeTuple, struct_time] = ...) -> None: ...\n def make_comparable(self, other: _dateTimeComp) -> Tuple[unicode, unicode]: ...\n def __lt__(self, other: _dateTimeComp) -> bool: ...\n def __le__(self, other: _dateTimeComp) -> bool: ...\n def __gt__(self, other: _dateTimeComp) -> bool: ...\n def __ge__(self, other: _dateTimeComp) -> bool: ...\n def __eq__(self, other: _dateTimeComp) -> bool: ... # type: ignore\n def __ne__(self, other: _dateTimeComp) -> bool: ... # type: ignore\n def timetuple(self) -> struct_time: ...\n def __cmp__(self, other: _dateTimeComp) -> int: ...\n def decode(self, data: Any) -> None: ...\n def encode(self, out: IO[str]) -> None: ...\n\nclass Binary:\n data: str\n def __init__(self, data: Optional[str] = ...) -> None: ...\n def __cmp__(self, other: Any) -> int: ...\n def decode(self, data: str) -> None: ...\n def encode(self, out: IO[str]) -> None: ...\n\nWRAPPERS: Tuple[Type[Any], ...]\n\n# Still part of the public API, but see http://bugs.python.org/issue1773632\nFastParser: None\nFastUnmarshaller: None\nFastMarshaller: None\n\n# xmlrpclib.py will leave ExpatParser undefined if it can't import expat from\n# xml.parsers. Because this is Python 2.7, the import will succeed.\nclass ExpatParser:\n def __init__(self, target: _Unmarshaller) -> None: ...\n def feed(self, data: str): ...\n def close(self): ...\n\n# TODO: Add xmllib.XMLParser as base class\nclass SlowParser:\n handle_xml: Callable[[str, bool], None]\n unknown_starttag: Callable[[str, Any], None]\n handle_data: Callable[[str], None]\n handle_cdata: Callable[[str], None]\n unknown_endtag: Callable[[str, Callable[[Iterable[str], str], str]], None]\n def __init__(self, target: _Unmarshaller) -> None: ...\n\nclass Marshaller:\n memo: MutableMapping[int, Any]\n data: Optional[str]\n encoding: Optional[str]\n allow_none: bool\n def __init__(self, encoding: Optional[str] = ..., allow_none: bool = ...) -> None: ...\n dispatch: Mapping[type, Callable[[Marshaller, str, Callable[[str], None]], None]]\n def dumps(\n self,\n values: Union[\n Iterable[\n Union[\n None,\n int,\n bool,\n long,\n float,\n str,\n unicode,\n List[Any],\n Tuple[Any, ...],\n Mapping[Any, Any],\n datetime,\n InstanceType,\n ]\n ],\n Fault,\n ],\n ) -> str: ...\n def dump_nil(self, value: None, write: Callable[[str], None]) -> None: ...\n def dump_int(self, value: int, write: Callable[[str], None]) -> None: ...\n def dump_bool(self, value: bool, write: Callable[[str], None]) -> None: ...\n def dump_long(self, value: long, write: Callable[[str], None]) -> None: ...\n def dump_double(self, value: float, write: Callable[[str], None]) -> None: ...\n def dump_string(\n self,\n value: str,\n write: Callable[[str], None],\n escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ...,\n ) -> None: ...\n def dump_unicode(\n self,\n value: unicode,\n write: Callable[[str], None],\n escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ...,\n ) -> None: ...\n def dump_array(self, value: Iterable[Any], write: Callable[[str], None]) -> None: ...\n def dump_struct(\n self,\n value: Mapping[unicode, Any],\n write: Callable[[str], None],\n escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ...,\n ) -> None: ...\n def dump_datetime(self, value: datetime, write: Callable[[str], None]) -> None: ...\n def dump_instance(self, value: InstanceType, write: Callable[[str], None]) -> None: ...\n\nclass Unmarshaller:\n def append(self, object: Any) -> None: ...\n def __init__(self, use_datetime: bool = ...) -> None: ...\n def close(self) -> Tuple[Any, ...]: ...\n def getmethodname(self) -> Optional[str]: ...\n def xml(self, encoding: str, standalone: bool) -> None: ...\n def start(self, tag: str, attrs: Any) -> None: ...\n def data(self, text: str) -> None: ...\n def end(self, tag: str, join: Callable[[Iterable[str], str], str] = ...) -> None: ...\n def end_dispatch(self, tag: str, data: str) -> None: ...\n dispatch: Mapping[str, Callable[[Unmarshaller, str], None]]\n def end_nil(self, data: str): ...\n def end_boolean(self, data: str) -> None: ...\n def end_int(self, data: str) -> None: ...\n def end_double(self, data: str) -> None: ...\n def end_string(self, data: str) -> None: ...\n def end_array(self, data: str) -> None: ...\n def end_struct(self, data: str) -> None: ...\n def end_base64(self, data: str) -> None: ...\n def end_dateTime(self, data: str) -> None: ...\n def end_value(self, data: str) -> None: ...\n def end_params(self, data: str) -> None: ...\n def end_fault(self, data: str) -> None: ...\n def end_methodName(self, data: str) -> None: ...\n\nclass _MultiCallMethod:\n def __init__(self, call_list: List[Tuple[str, Tuple[Any, ...]]], name: str) -> None: ...\n\nclass MultiCallIterator:\n def __init__(self, results: List[Any]) -> None: ...\n\nclass MultiCall:\n def __init__(self, server: ServerProxy) -> None: ...\n def __getattr__(self, name: str) -> _MultiCallMethod: ...\n def __call__(self) -> MultiCallIterator: ...\n\ndef getparser(use_datetime: bool = ...) -> Tuple[Union[ExpatParser, SlowParser], Unmarshaller]: ...\ndef dumps(\n params: Union[Tuple[Any, ...], Fault],\n methodname: Optional[str] = ...,\n methodresponse: Optional[bool] = ...,\n encoding: Optional[str] = ...,\n allow_none: bool = ...,\n) -> str: ...\ndef loads(data: str, use_datetime: bool = ...) -> Tuple[Tuple[Any, ...], Optional[str]]: ...\ndef gzip_encode(data: str) -> str: ...\ndef gzip_decode(data: str, max_decode: int = ...) -> str: ...\n\nclass GzipDecodedResponse(GzipFile):\n stringio: StringIO[Any]\n def __init__(self, response: HTTPResponse) -> None: ...\n def close(self): ...\n\nclass _Method:\n def __init__(self, send: Callable[[str, Tuple[Any, ...]], Any], name: str) -> None: ...\n def __getattr__(self, name: str) -> _Method: ...\n def __call__(self, *args: Any) -> Any: ...\n\nclass Transport:\n user_agent: str\n accept_gzip_encoding: bool\n encode_threshold: Optional[int]\n def __init__(self, use_datetime: bool = ...) -> None: ...\n def request(self, host: _hostDesc, handler: str, request_body: str, verbose: bool = ...) -> Tuple[Any, ...]: ...\n verbose: bool\n def single_request(self, host: _hostDesc, handler: str, request_body: str, verbose: bool = ...) -> Tuple[Any, ...]: ...\n def getparser(self) -> Tuple[Union[ExpatParser, SlowParser], Unmarshaller]: ...\n def get_host_info(self, host: _hostDesc) -> Tuple[str, Optional[List[Tuple[str, str]]], Optional[Mapping[Any, Any]]]: ...\n def make_connection(self, host: _hostDesc) -> HTTPConnection: ...\n def close(self) -> None: ...\n def send_request(self, connection: HTTPConnection, handler: str, request_body: str) -> None: ...\n def send_host(self, connection: HTTPConnection, host: str) -> None: ...\n def send_user_agent(self, connection: HTTPConnection) -> None: ...\n def send_content(self, connection: HTTPConnection, request_body: str) -> None: ...\n def parse_response(self, response: HTTPResponse) -> Tuple[Any, ...]: ...\n\nclass SafeTransport(Transport):\n def __init__(self, use_datetime: bool = ..., context: Optional[SSLContext] = ...) -> None: ...\n def make_connection(self, host: _hostDesc) -> HTTPSConnection: ...\n\nclass ServerProxy:\n def __init__(\n self,\n uri: str,\n transport: Optional[Transport] = ...,\n encoding: Optional[str] = ...,\n verbose: bool = ...,\n allow_none: bool = ...,\n use_datetime: bool = ...,\n context: Optional[SSLContext] = ...,\n ) -> None: ...\n def __getattr__(self, name: str) -> _Method: ...\n def __call__(self, attr: str) -> Optional[Transport]: ...\n\nServer = ServerProxy\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\xmlrpclib.pyi
xmlrpclib.pyi
Other
9,769
0.95
0.443548
0.027027
node-utils
88
2024-07-23T20:49:32.466891
BSD-3-Clause
false
aec27259f3190345927346a2b01d9a94
import typing\nfrom typing import Optional\n\n__version__: str\nPyCF_ONLY_AST: int\n_identifier = str\n\nclass AST:\n _attributes: typing.Tuple[str, ...]\n _fields: typing.Tuple[str, ...]\n def __init__(self, *args, **kwargs) -> None: ...\n\nclass mod(AST): ...\n\nclass Module(mod):\n body: typing.List[stmt]\n\nclass Interactive(mod):\n body: typing.List[stmt]\n\nclass Expression(mod):\n body: expr\n\nclass Suite(mod):\n body: typing.List[stmt]\n\nclass stmt(AST):\n lineno: int\n col_offset: int\n\nclass FunctionDef(stmt):\n name: _identifier\n args: arguments\n body: typing.List[stmt]\n decorator_list: typing.List[expr]\n\nclass ClassDef(stmt):\n name: _identifier\n bases: typing.List[expr]\n body: typing.List[stmt]\n decorator_list: typing.List[expr]\n\nclass Return(stmt):\n value: Optional[expr]\n\nclass Delete(stmt):\n targets: typing.List[expr]\n\nclass Assign(stmt):\n targets: typing.List[expr]\n value: expr\n\nclass AugAssign(stmt):\n target: expr\n op: operator\n value: expr\n\nclass Print(stmt):\n dest: Optional[expr]\n values: typing.List[expr]\n nl: bool\n\nclass For(stmt):\n target: expr\n iter: expr\n body: typing.List[stmt]\n orelse: typing.List[stmt]\n\nclass While(stmt):\n test: expr\n body: typing.List[stmt]\n orelse: typing.List[stmt]\n\nclass If(stmt):\n test: expr\n body: typing.List[stmt]\n orelse: typing.List[stmt]\n\nclass With(stmt):\n context_expr: expr\n optional_vars: Optional[expr]\n body: typing.List[stmt]\n\nclass Raise(stmt):\n type: Optional[expr]\n inst: Optional[expr]\n tback: Optional[expr]\n\nclass TryExcept(stmt):\n body: typing.List[stmt]\n handlers: typing.List[ExceptHandler]\n orelse: typing.List[stmt]\n\nclass TryFinally(stmt):\n body: typing.List[stmt]\n finalbody: typing.List[stmt]\n\nclass Assert(stmt):\n test: expr\n msg: Optional[expr]\n\nclass Import(stmt):\n names: typing.List[alias]\n\nclass ImportFrom(stmt):\n module: Optional[_identifier]\n names: typing.List[alias]\n level: Optional[int]\n\nclass Exec(stmt):\n body: expr\n globals: Optional[expr]\n locals: Optional[expr]\n\nclass Global(stmt):\n names: typing.List[_identifier]\n\nclass Expr(stmt):\n value: expr\n\nclass Pass(stmt): ...\nclass Break(stmt): ...\nclass Continue(stmt): ...\nclass slice(AST): ...\n\n_slice = slice # this lets us type the variable named 'slice' below\n\nclass Slice(slice):\n lower: Optional[expr]\n upper: Optional[expr]\n step: Optional[expr]\n\nclass ExtSlice(slice):\n dims: typing.List[slice]\n\nclass Index(slice):\n value: expr\n\nclass Ellipsis(slice): ...\n\nclass expr(AST):\n lineno: int\n col_offset: int\n\nclass BoolOp(expr):\n op: boolop\n values: typing.List[expr]\n\nclass BinOp(expr):\n left: expr\n op: operator\n right: expr\n\nclass UnaryOp(expr):\n op: unaryop\n operand: expr\n\nclass Lambda(expr):\n args: arguments\n body: expr\n\nclass IfExp(expr):\n test: expr\n body: expr\n orelse: expr\n\nclass Dict(expr):\n keys: typing.List[expr]\n values: typing.List[expr]\n\nclass Set(expr):\n elts: typing.List[expr]\n\nclass ListComp(expr):\n elt: expr\n generators: typing.List[comprehension]\n\nclass SetComp(expr):\n elt: expr\n generators: typing.List[comprehension]\n\nclass DictComp(expr):\n key: expr\n value: expr\n generators: typing.List[comprehension]\n\nclass GeneratorExp(expr):\n elt: expr\n generators: typing.List[comprehension]\n\nclass Yield(expr):\n value: Optional[expr]\n\nclass Compare(expr):\n left: expr\n ops: typing.List[cmpop]\n comparators: typing.List[expr]\n\nclass Call(expr):\n func: expr\n args: typing.List[expr]\n keywords: typing.List[keyword]\n starargs: Optional[expr]\n kwargs: Optional[expr]\n\nclass Repr(expr):\n value: expr\n\nclass Num(expr):\n n: float\n\nclass Str(expr):\n s: str\n\nclass Attribute(expr):\n value: expr\n attr: _identifier\n ctx: expr_context\n\nclass Subscript(expr):\n value: expr\n slice: _slice\n ctx: expr_context\n\nclass Name(expr):\n id: _identifier\n ctx: expr_context\n\nclass List(expr):\n elts: typing.List[expr]\n ctx: expr_context\n\nclass Tuple(expr):\n elts: typing.List[expr]\n ctx: expr_context\n\nclass expr_context(AST): ...\nclass AugLoad(expr_context): ...\nclass AugStore(expr_context): ...\nclass Del(expr_context): ...\nclass Load(expr_context): ...\nclass Param(expr_context): ...\nclass Store(expr_context): ...\nclass boolop(AST): ...\nclass And(boolop): ...\nclass Or(boolop): ...\nclass operator(AST): ...\nclass Add(operator): ...\nclass BitAnd(operator): ...\nclass BitOr(operator): ...\nclass BitXor(operator): ...\nclass Div(operator): ...\nclass FloorDiv(operator): ...\nclass LShift(operator): ...\nclass Mod(operator): ...\nclass Mult(operator): ...\nclass Pow(operator): ...\nclass RShift(operator): ...\nclass Sub(operator): ...\nclass unaryop(AST): ...\nclass Invert(unaryop): ...\nclass Not(unaryop): ...\nclass UAdd(unaryop): ...\nclass USub(unaryop): ...\nclass cmpop(AST): ...\nclass Eq(cmpop): ...\nclass Gt(cmpop): ...\nclass GtE(cmpop): ...\nclass In(cmpop): ...\nclass Is(cmpop): ...\nclass IsNot(cmpop): ...\nclass Lt(cmpop): ...\nclass LtE(cmpop): ...\nclass NotEq(cmpop): ...\nclass NotIn(cmpop): ...\n\nclass comprehension(AST):\n target: expr\n iter: expr\n ifs: typing.List[expr]\n\nclass excepthandler(AST): ...\n\nclass ExceptHandler(excepthandler):\n type: Optional[expr]\n name: Optional[expr]\n body: typing.List[stmt]\n lineno: int\n col_offset: int\n\nclass arguments(AST):\n args: typing.List[expr]\n vararg: Optional[_identifier]\n kwarg: Optional[_identifier]\n defaults: typing.List[expr]\n\nclass keyword(AST):\n arg: _identifier\n value: expr\n\nclass alias(AST):\n name: _identifier\n asname: Optional[_identifier]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_ast.pyi
_ast.pyi
Other
5,726
0.95
0.343234
0
node-utils
103
2024-05-04T11:50:57.303198
MIT
false
11f1ef7e16cf666bca1a0a3e0cbc5bce
from typing import Any, Callable, Dict, Generic, Iterator, Optional, TypeVar, Union\n\n_K = TypeVar("_K")\n_V = TypeVar("_V")\n_T = TypeVar("_T")\n_T2 = TypeVar("_T2")\n\nclass defaultdict(Dict[_K, _V]):\n default_factory: None\n def __init__(self, __default_factory: Callable[[], _V] = ..., init: Any = ...) -> None: ...\n def __missing__(self, key: _K) -> _V: ...\n def __copy__(self: _T) -> _T: ...\n def copy(self: _T) -> _T: ...\n\nclass deque(Generic[_T]):\n maxlen: Optional[int]\n def __init__(self, iterable: Iterator[_T] = ..., maxlen: int = ...) -> None: ...\n def append(self, x: _T) -> None: ...\n def appendleft(self, x: _T) -> None: ...\n def clear(self) -> None: ...\n def count(self, x: Any) -> int: ...\n def extend(self, iterable: Iterator[_T]) -> None: ...\n def extendleft(self, iterable: Iterator[_T]) -> None: ...\n def pop(self) -> _T: ...\n def popleft(self) -> _T: ...\n def remove(self, value: _T) -> None: ...\n def reverse(self) -> None: ...\n def rotate(self, n: int = ...) -> None: ...\n def __contains__(self, o: Any) -> bool: ...\n def __copy__(self) -> deque[_T]: ...\n def __getitem__(self, i: int) -> _T: ...\n def __iadd__(self, other: deque[_T2]) -> deque[Union[_T, _T2]]: ...\n def __iter__(self) -> Iterator[_T]: ...\n def __len__(self) -> int: ...\n def __reversed__(self) -> Iterator[_T]: ...\n def __setitem__(self, i: int, x: _T) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_collections.pyi
_collections.pyi
Other
1,430
0.85
0.722222
0
python-kit
367
2025-03-22T07:06:46.748433
Apache-2.0
false
02d6d40ab1ab8804e9c6d9f20e5c3ff9
from typing import Any, Callable, Dict, Iterable, Optional, Tuple, TypeVar, overload\n\n_T = TypeVar("_T")\n_S = TypeVar("_S")\n@overload\ndef reduce(function: Callable[[_T, _T], _T], sequence: Iterable[_T]) -> _T: ...\n@overload\ndef reduce(function: Callable[[_T, _S], _T], sequence: Iterable[_S], initial: _T) -> _T: ...\n\nclass partial(object):\n func: Callable[..., Any]\n args: Tuple[Any, ...]\n keywords: Dict[str, Any]\n def __init__(self, func: Callable[..., Any], *args: Any, **kwargs: Any) -> None: ...\n def __call__(self, *args: Any, **kwargs: Any) -> Any: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_functools.pyi
_functools.pyi
Other
576
0.85
0.466667
0
vue-tools
257
2024-02-27T17:49:24.293734
BSD-3-Clause
false
26dbd56420ab6f669de6aaee8f300431
from typing import Any, Dict, Generic, List, Tuple\n\ndef coverage(a: str) -> Any: ...\ndef logreader(a: str) -> LogReaderType: ...\ndef profiler(a: str, *args, **kwargs) -> Any: ...\ndef resolution() -> Tuple[Any, ...]: ...\n\nclass LogReaderType(object):\n def close(self) -> None: ...\n def fileno(self) -> int: ...\n\nclass ProfilerType(object):\n def addinfo(self, a: str, b: str) -> None: ...\n def close(self) -> None: ...\n def fileno(self) -> int: ...\n def runcall(self, *args, **kwargs) -> Any: ...\n def runcode(self, a, b, *args, **kwargs) -> Any: ...\n def start(self) -> None: ...\n def stop(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_hotshot.pyi
_hotshot.pyi
Other
635
0.85
0.789474
0
python-kit
533
2023-08-03T02:34:10.306804
BSD-3-Clause
false
6bb36118016317dbeee95908a9e5c8b1
from mmap import mmap\nfrom types import TracebackType\nfrom typing import IO, Any, AnyStr, BinaryIO, Iterable, Iterator, List, Optional, Text, TextIO, Tuple, Type, TypeVar, Union\n\n_bytearray_like = Union[bytearray, mmap]\n\nDEFAULT_BUFFER_SIZE: int\n\nclass BlockingIOError(IOError):\n characters_written: int\n\nclass UnsupportedOperation(ValueError, IOError): ...\n\n_T = TypeVar("_T")\n\nclass _IOBase(BinaryIO):\n @property\n def closed(self) -> bool: ...\n def _checkClosed(self, msg: Optional[str] = ...) -> None: ... # undocumented\n def _checkReadable(self) -> None: ...\n def _checkSeekable(self) -> None: ...\n def _checkWritable(self) -> None: ...\n # All these methods are concrete here (you can instantiate this)\n def close(self) -> None: ...\n def fileno(self) -> int: ...\n def flush(self) -> None: ...\n def isatty(self) -> bool: ...\n def readable(self) -> bool: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def seekable(self) -> bool: ...\n def tell(self) -> int: ...\n def truncate(self, size: Optional[int] = ...) -> int: ...\n def writable(self) -> bool: ...\n def __enter__(self: _T) -> _T: ...\n def __exit__(\n self, t: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[Any]\n ) -> Optional[bool]: ...\n def __iter__(self: _T) -> _T: ...\n # The parameter type of writelines[s]() is determined by that of write():\n def writelines(self, lines: Iterable[bytes]) -> None: ...\n # The return type of readline[s]() and next() is determined by that of read():\n def readline(self, limit: int = ...) -> bytes: ...\n def readlines(self, hint: int = ...) -> List[bytes]: ...\n def next(self) -> bytes: ...\n # These don't actually exist but we need to pretend that it does\n # so that this class is concrete.\n def write(self, s: bytes) -> int: ...\n def read(self, n: int = ...) -> bytes: ...\n\nclass _BufferedIOBase(_IOBase):\n def read1(self, n: int) -> bytes: ...\n def read(self, size: int = ...) -> bytes: ...\n def readinto(self, buffer: _bytearray_like) -> int: ...\n def write(self, s: bytes) -> int: ...\n def detach(self) -> _IOBase: ...\n\nclass BufferedRWPair(_BufferedIOBase):\n def __init__(self, reader: _RawIOBase, writer: _RawIOBase, buffer_size: int = ..., max_buffer_size: int = ...) -> None: ...\n def peek(self, n: int = ...) -> bytes: ...\n def __enter__(self) -> BufferedRWPair: ...\n\nclass BufferedRandom(_BufferedIOBase):\n mode: str\n name: str\n raw: _IOBase\n def __init__(self, raw: _IOBase, buffer_size: int = ..., max_buffer_size: int = ...) -> None: ...\n def peek(self, n: int = ...) -> bytes: ...\n\nclass BufferedReader(_BufferedIOBase):\n mode: str\n name: str\n raw: _IOBase\n def __init__(self, raw: _IOBase, buffer_size: int = ...) -> None: ...\n def peek(self, n: int = ...) -> bytes: ...\n\nclass BufferedWriter(_BufferedIOBase):\n name: str\n raw: _IOBase\n mode: str\n def __init__(self, raw: _IOBase, buffer_size: int = ..., max_buffer_size: int = ...) -> None: ...\n\nclass BytesIO(_BufferedIOBase):\n def __init__(self, initial_bytes: bytes = ...) -> None: ...\n def __setstate__(self, state: Tuple[Any, ...]) -> None: ...\n def __getstate__(self) -> Tuple[Any, ...]: ...\n # BytesIO does not contain a "name" field. This workaround is necessary\n # to allow BytesIO sub-classes to add this field, as it is defined\n # as a read-only property on IO[].\n name: Any\n def getvalue(self) -> bytes: ...\n def write(self, s: bytes) -> int: ...\n def writelines(self, lines: Iterable[bytes]) -> None: ...\n def read1(self, size: int) -> bytes: ...\n def next(self) -> bytes: ...\n\nclass _RawIOBase(_IOBase):\n def readall(self) -> str: ...\n def read(self, n: int = ...) -> str: ...\n\nclass FileIO(_RawIOBase, BytesIO):\n mode: str\n closefd: bool\n def __init__(self, file: Union[str, int], mode: str = ..., closefd: bool = ...) -> None: ...\n def readinto(self, buffer: _bytearray_like) -> int: ...\n def write(self, pbuf: str) -> int: ...\n\nclass IncrementalNewlineDecoder(object):\n newlines: Union[str, unicode]\n def __init__(self, decoder, translate, z=...) -> None: ...\n def decode(self, input, final) -> Any: ...\n def getstate(self) -> Tuple[Any, int]: ...\n def setstate(self, state: Tuple[Any, int]) -> None: ...\n def reset(self) -> None: ...\n\n# Note: In the actual _io.py, _TextIOBase inherits from _IOBase.\nclass _TextIOBase(TextIO):\n errors: Optional[str]\n # TODO: On _TextIOBase, this is always None. But it's unicode/bytes in subclasses.\n newlines: Union[None, unicode, bytes]\n encoding: str\n @property\n def closed(self) -> bool: ...\n def _checkClosed(self) -> None: ...\n def _checkReadable(self) -> None: ...\n def _checkSeekable(self) -> None: ...\n def _checkWritable(self) -> None: ...\n def close(self) -> None: ...\n def detach(self) -> IO[Any]: ...\n def fileno(self) -> int: ...\n def flush(self) -> None: ...\n def isatty(self) -> bool: ...\n def next(self) -> unicode: ...\n def read(self, size: int = ...) -> unicode: ...\n def readable(self) -> bool: ...\n def readline(self, limit: int = ...) -> unicode: ...\n def readlines(self, hint: int = ...) -> list[unicode]: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def seekable(self) -> bool: ...\n def tell(self) -> int: ...\n def truncate(self, size: Optional[int] = ...) -> int: ...\n def writable(self) -> bool: ...\n def write(self, pbuf: unicode) -> int: ...\n def writelines(self, lines: Iterable[unicode]) -> None: ...\n def __enter__(self: _T) -> _T: ...\n def __exit__(\n self, t: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[Any]\n ) -> Optional[bool]: ...\n def __iter__(self: _T) -> _T: ...\n\nclass StringIO(_TextIOBase):\n line_buffering: bool\n def __init__(self, initial_value: Optional[unicode] = ..., newline: Optional[unicode] = ...) -> None: ...\n def __setstate__(self, state: Tuple[Any, ...]) -> None: ...\n def __getstate__(self) -> Tuple[Any, ...]: ...\n # StringIO does not contain a "name" field. This workaround is necessary\n # to allow StringIO sub-classes to add this field, as it is defined\n # as a read-only property on IO[].\n name: Any\n def getvalue(self) -> unicode: ...\n\nclass TextIOWrapper(_TextIOBase):\n name: str\n line_buffering: bool\n buffer: BinaryIO\n _CHUNK_SIZE: int\n def __init__(\n self,\n buffer: IO[Any],\n encoding: Optional[Text] = ...,\n errors: Optional[Text] = ...,\n newline: Optional[Text] = ...,\n line_buffering: bool = ...,\n write_through: bool = ...,\n ) -> None: ...\n\ndef open(\n file: Union[str, unicode, int],\n mode: Text = ...,\n buffering: int = ...,\n encoding: Optional[Text] = ...,\n errors: Optional[Text] = ...,\n newline: Optional[Text] = ...,\n closefd: bool = ...,\n) -> IO[Any]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_io.pyi
_io.pyi
Other
7,016
0.95
0.554348
0.078788
node-utils
923
2024-03-20T21:47:35.471734
Apache-2.0
false
b4eba0a7039a5a0114b78f752ff84b73
from typing import Any, Dict, Generic, List, Tuple\n\ndef encode_basestring_ascii(*args, **kwargs) -> str: ...\ndef scanstring(a, b, *args, **kwargs) -> Tuple[Any, ...]: ...\n\nclass Encoder(object): ...\nclass Scanner(object): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_json.pyi
_json.pyi
Other
226
0.85
0.571429
0
node-utils
978
2024-03-23T19:23:31.038031
BSD-3-Clause
false
e760b5c0c3c58f8d13245870f3f69e07
blocksize: int\ndigest_size: int\n\nclass MD5Type(object):\n name: str\n block_size: int\n digest_size: int\n def copy(self) -> MD5Type: ...\n def digest(self) -> str: ...\n def hexdigest(self) -> str: ...\n def update(self, arg: str) -> None: ...\n\ndef new(arg: str = ...) -> MD5Type: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_md5.pyi
_md5.pyi
Other
300
0.85
0.461538
0
awesome-app
442
2023-09-19T14:26:05.875600
Apache-2.0
false
9fb24c507c9862b4cae4f9c98ed35071
blocksize: int\nblock_size: int\ndigest_size: int\n\nclass sha(object): # not actually exposed\n name: str\n block_size: int\n digest_size: int\n digestsize: int\n def copy(self) -> sha: ...\n def digest(self) -> str: ...\n def hexdigest(self) -> str: ...\n def update(self, arg: str) -> None: ...\n\ndef new(arg: str = ...) -> sha: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_sha.pyi
_sha.pyi
Other
348
0.95
0.4
0
node-utils
419
2023-12-26T22:17:25.655214
MIT
false
e9095164924629887f8dd383390affc9
from typing import Optional\n\nclass sha224(object):\n name: str\n block_size: int\n digest_size: int\n digestsize: int\n def __init__(self, init: Optional[str]) -> None: ...\n def copy(self) -> sha224: ...\n def digest(self) -> str: ...\n def hexdigest(self) -> str: ...\n def update(self, arg: str) -> None: ...\n\nclass sha256(object):\n name: str\n block_size: int\n digest_size: int\n digestsize: int\n def __init__(self, init: Optional[str]) -> None: ...\n def copy(self) -> sha256: ...\n def digest(self) -> str: ...\n def hexdigest(self) -> str: ...\n def update(self, arg: str) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_sha256.pyi
_sha256.pyi
Other
632
0.85
0.521739
0
python-kit
649
2025-02-21T20:06:17.027181
MIT
false
b22edc7f34bfa38a7e7401b55e209174
from typing import Optional\n\nclass sha384(object):\n name: str\n block_size: int\n digest_size: int\n digestsize: int\n def __init__(self, init: Optional[str]) -> None: ...\n def copy(self) -> sha384: ...\n def digest(self) -> str: ...\n def hexdigest(self) -> str: ...\n def update(self, arg: str) -> None: ...\n\nclass sha512(object):\n name: str\n block_size: int\n digest_size: int\n digestsize: int\n def __init__(self, init: Optional[str]) -> None: ...\n def copy(self) -> sha512: ...\n def digest(self) -> str: ...\n def hexdigest(self) -> str: ...\n def update(self, arg: str) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_sha512.pyi
_sha512.pyi
Other
632
0.85
0.521739
0
vue-tools
661
2024-10-08T07:37:25.547007
Apache-2.0
false
33559a70e5c57474d4315a7e41fd1525
from typing import IO, Any, Optional, Tuple, Union, overload\n\nAF_APPLETALK: int\nAF_ASH: int\nAF_ATMPVC: int\nAF_ATMSVC: int\nAF_AX25: int\nAF_BLUETOOTH: int\nAF_BRIDGE: int\nAF_DECnet: int\nAF_ECONET: int\nAF_INET: int\nAF_INET6: int\nAF_IPX: int\nAF_IRDA: int\nAF_KEY: int\nAF_LLC: int\nAF_NETBEUI: int\nAF_NETLINK: int\nAF_NETROM: int\nAF_PACKET: int\nAF_PPPOX: int\nAF_ROSE: int\nAF_ROUTE: int\nAF_SECURITY: int\nAF_SNA: int\nAF_TIPC: int\nAF_UNIX: int\nAF_UNSPEC: int\nAF_WANPIPE: int\nAF_X25: int\nAI_ADDRCONFIG: int\nAI_ALL: int\nAI_CANONNAME: int\nAI_NUMERICHOST: int\nAI_NUMERICSERV: int\nAI_PASSIVE: int\nAI_V4MAPPED: int\nBDADDR_ANY: str\nBDADDR_LOCAL: str\nBTPROTO_HCI: int\nBTPROTO_L2CAP: int\nBTPROTO_RFCOMM: int\nBTPROTO_SCO: int\nEAI_ADDRFAMILY: int\nEAI_AGAIN: int\nEAI_BADFLAGS: int\nEAI_FAIL: int\nEAI_FAMILY: int\nEAI_MEMORY: int\nEAI_NODATA: int\nEAI_NONAME: int\nEAI_OVERFLOW: int\nEAI_SERVICE: int\nEAI_SOCKTYPE: int\nEAI_SYSTEM: int\nEBADF: int\nEINTR: int\nHCI_DATA_DIR: int\nHCI_FILTER: int\nHCI_TIME_STAMP: int\nINADDR_ALLHOSTS_GROUP: int\nINADDR_ANY: int\nINADDR_BROADCAST: int\nINADDR_LOOPBACK: int\nINADDR_MAX_LOCAL_GROUP: int\nINADDR_NONE: int\nINADDR_UNSPEC_GROUP: int\nIPPORT_RESERVED: int\nIPPORT_USERRESERVED: int\nIPPROTO_AH: int\nIPPROTO_DSTOPTS: int\nIPPROTO_EGP: int\nIPPROTO_ESP: int\nIPPROTO_FRAGMENT: int\nIPPROTO_GRE: int\nIPPROTO_HOPOPTS: int\nIPPROTO_ICMP: int\nIPPROTO_ICMPV6: int\nIPPROTO_IDP: int\nIPPROTO_IGMP: int\nIPPROTO_IP: int\nIPPROTO_IPIP: int\nIPPROTO_IPV6: int\nIPPROTO_NONE: int\nIPPROTO_PIM: int\nIPPROTO_PUP: int\nIPPROTO_RAW: int\nIPPROTO_ROUTING: int\nIPPROTO_RSVP: int\nIPPROTO_TCP: int\nIPPROTO_TP: int\nIPPROTO_UDP: int\nIPV6_CHECKSUM: int\nIPV6_DSTOPTS: int\nIPV6_HOPLIMIT: int\nIPV6_HOPOPTS: int\nIPV6_JOIN_GROUP: int\nIPV6_LEAVE_GROUP: int\nIPV6_MULTICAST_HOPS: int\nIPV6_MULTICAST_IF: int\nIPV6_MULTICAST_LOOP: int\nIPV6_NEXTHOP: int\nIPV6_PKTINFO: int\nIPV6_RECVDSTOPTS: int\nIPV6_RECVHOPLIMIT: int\nIPV6_RECVHOPOPTS: int\nIPV6_RECVPKTINFO: int\nIPV6_RECVRTHDR: int\nIPV6_RECVTCLASS: int\nIPV6_RTHDR: int\nIPV6_RTHDRDSTOPTS: int\nIPV6_RTHDR_TYPE_0: int\nIPV6_TCLASS: int\nIPV6_UNICAST_HOPS: int\nIPV6_V6ONLY: int\nIP_ADD_MEMBERSHIP: int\nIP_DEFAULT_MULTICAST_LOOP: int\nIP_DEFAULT_MULTICAST_TTL: int\nIP_DROP_MEMBERSHIP: int\nIP_HDRINCL: int\nIP_MAX_MEMBERSHIPS: int\nIP_MULTICAST_IF: int\nIP_MULTICAST_LOOP: int\nIP_MULTICAST_TTL: int\nIP_OPTIONS: int\nIP_RECVOPTS: int\nIP_RECVRETOPTS: int\nIP_RETOPTS: int\nIP_TOS: int\nIP_TTL: int\nMSG_CTRUNC: int\nMSG_DONTROUTE: int\nMSG_DONTWAIT: int\nMSG_EOR: int\nMSG_OOB: int\nMSG_PEEK: int\nMSG_TRUNC: int\nMSG_WAITALL: int\nMethodType: type\nNETLINK_DNRTMSG: int\nNETLINK_FIREWALL: int\nNETLINK_IP6_FW: int\nNETLINK_NFLOG: int\nNETLINK_ROUTE: int\nNETLINK_USERSOCK: int\nNETLINK_XFRM: int\nNI_DGRAM: int\nNI_MAXHOST: int\nNI_MAXSERV: int\nNI_NAMEREQD: int\nNI_NOFQDN: int\nNI_NUMERICHOST: int\nNI_NUMERICSERV: int\nPACKET_BROADCAST: int\nPACKET_FASTROUTE: int\nPACKET_HOST: int\nPACKET_LOOPBACK: int\nPACKET_MULTICAST: int\nPACKET_OTHERHOST: int\nPACKET_OUTGOING: int\nPF_PACKET: int\nSHUT_RD: int\nSHUT_RDWR: int\nSHUT_WR: int\nSOCK_DGRAM: int\nSOCK_RAW: int\nSOCK_RDM: int\nSOCK_SEQPACKET: int\nSOCK_STREAM: int\nSOL_HCI: int\nSOL_IP: int\nSOL_SOCKET: int\nSOL_TCP: int\nSOL_TIPC: int\nSOL_UDP: int\nSOMAXCONN: int\nSO_ACCEPTCONN: int\nSO_BROADCAST: int\nSO_DEBUG: int\nSO_DONTROUTE: int\nSO_ERROR: int\nSO_KEEPALIVE: int\nSO_LINGER: int\nSO_OOBINLINE: int\nSO_RCVBUF: int\nSO_RCVLOWAT: int\nSO_RCVTIMEO: int\nSO_REUSEADDR: int\nSO_REUSEPORT: int\nSO_SNDBUF: int\nSO_SNDLOWAT: int\nSO_SNDTIMEO: int\nSO_TYPE: int\nSSL_ERROR_EOF: int\nSSL_ERROR_INVALID_ERROR_CODE: int\nSSL_ERROR_SSL: int\nSSL_ERROR_SYSCALL: int\nSSL_ERROR_WANT_CONNECT: int\nSSL_ERROR_WANT_READ: int\nSSL_ERROR_WANT_WRITE: int\nSSL_ERROR_WANT_X509_LOOKUP: int\nSSL_ERROR_ZERO_RETURN: int\nTCP_CORK: int\nTCP_DEFER_ACCEPT: int\nTCP_INFO: int\nTCP_KEEPCNT: int\nTCP_KEEPIDLE: int\nTCP_KEEPINTVL: int\nTCP_LINGER2: int\nTCP_MAXSEG: int\nTCP_NODELAY: int\nTCP_QUICKACK: int\nTCP_SYNCNT: int\nTCP_WINDOW_CLAMP: int\nTIPC_ADDR_ID: int\nTIPC_ADDR_NAME: int\nTIPC_ADDR_NAMESEQ: int\nTIPC_CFG_SRV: int\nTIPC_CLUSTER_SCOPE: int\nTIPC_CONN_TIMEOUT: int\nTIPC_CRITICAL_IMPORTANCE: int\nTIPC_DEST_DROPPABLE: int\nTIPC_HIGH_IMPORTANCE: int\nTIPC_IMPORTANCE: int\nTIPC_LOW_IMPORTANCE: int\nTIPC_MEDIUM_IMPORTANCE: int\nTIPC_NODE_SCOPE: int\nTIPC_PUBLISHED: int\nTIPC_SRC_DROPPABLE: int\nTIPC_SUBSCR_TIMEOUT: int\nTIPC_SUB_CANCEL: int\nTIPC_SUB_PORTS: int\nTIPC_SUB_SERVICE: int\nTIPC_TOP_SRV: int\nTIPC_WAIT_FOREVER: int\nTIPC_WITHDRAWN: int\nTIPC_ZONE_SCOPE: int\n\n# PyCapsule\nCAPI: Any\n\nhas_ipv6: bool\n\nclass error(IOError): ...\nclass gaierror(error): ...\nclass timeout(error): ...\n\nclass SocketType(object):\n family: int\n type: int\n proto: int\n timeout: float\n def __init__(self, family: int = ..., type: int = ..., proto: int = ...) -> None: ...\n def accept(self) -> Tuple[SocketType, Tuple[Any, ...]]: ...\n def bind(self, address: Tuple[Any, ...]) -> None: ...\n def close(self) -> None: ...\n def connect(self, address: Tuple[Any, ...]) -> None: ...\n def connect_ex(self, address: Tuple[Any, ...]) -> int: ...\n def dup(self) -> SocketType: ...\n def fileno(self) -> int: ...\n def getpeername(self) -> Tuple[Any, ...]: ...\n def getsockname(self) -> Tuple[Any, ...]: ...\n def getsockopt(self, level: int, option: int, buffersize: int = ...) -> str: ...\n def gettimeout(self) -> float: ...\n def listen(self, backlog: int) -> None: ...\n def makefile(self, mode: str = ..., buffersize: int = ...) -> IO[Any]: ...\n def recv(self, buffersize: int, flags: int = ...) -> str: ...\n def recv_into(self, buffer: bytearray, nbytes: int = ..., flags: int = ...) -> int: ...\n def recvfrom(self, buffersize: int, flags: int = ...) -> Tuple[Any, ...]: ...\n def recvfrom_into(self, buffer: bytearray, nbytes: int = ..., flags: int = ...) -> int: ...\n def send(self, data: str, flags: int = ...) -> int: ...\n def sendall(self, data: str, flags: int = ...) -> None: ...\n @overload\n def sendto(self, data: str, address: Tuple[Any, ...]) -> int: ...\n @overload\n def sendto(self, data: str, flags: int, address: Tuple[Any, ...]) -> int: ...\n def setblocking(self, flag: bool) -> None: ...\n def setsockopt(self, level: int, option: int, value: Union[int, str]) -> None: ...\n def settimeout(self, value: Optional[float]) -> None: ...\n def shutdown(self, flag: int) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_socket.pyi
_socket.pyi
Other
6,286
0.95
0.106762
0.003623
vue-tools
181
2024-05-14T12:40:44.608708
MIT
false
bf247063e72e78ac8a10611c6d2b14e6
from typing import Any, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union, overload\n\nCODESIZE: int\nMAGIC: int\nMAXREPEAT: long\ncopyright: str\n\nclass SRE_Match(object):\n def start(self, group: int = ...) -> int: ...\n def end(self, group: int = ...) -> int: ...\n def expand(self, s: str) -> Any: ...\n @overload\n def group(self) -> str: ...\n @overload\n def group(self, group: int = ...) -> Optional[str]: ...\n def groupdict(self) -> Dict[int, Optional[str]]: ...\n def groups(self) -> Tuple[Optional[str], ...]: ...\n def span(self) -> Tuple[int, int]: ...\n @property\n def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented\n\nclass SRE_Scanner(object):\n pattern: str\n def match(self) -> SRE_Match: ...\n def search(self) -> SRE_Match: ...\n\nclass SRE_Pattern(object):\n pattern: str\n flags: int\n groups: int\n groupindex: Mapping[str, int]\n indexgroup: Sequence[int]\n def findall(self, source: str, pos: int = ..., endpos: int = ...) -> List[Union[Tuple[Any, ...], str]]: ...\n def finditer(self, source: str, pos: int = ..., endpos: int = ...) -> Iterable[Union[Tuple[Any, ...], str]]: ...\n def match(self, pattern, pos: int = ..., endpos: int = ...) -> SRE_Match: ...\n def scanner(self, s: str, start: int = ..., end: int = ...) -> SRE_Scanner: ...\n def search(self, pattern, pos: int = ..., endpos: int = ...) -> SRE_Match: ...\n def split(self, source: str, maxsplit: int = ...) -> List[Optional[str]]: ...\n def sub(self, repl: str, string: str, count: int = ...) -> Tuple[Any, ...]: ...\n def subn(self, repl: str, string: str, count: int = ...) -> Tuple[Any, ...]: ...\n\ndef compile(\n pattern: str,\n flags: int,\n code: List[int],\n groups: int = ...,\n groupindex: Mapping[str, int] = ...,\n indexgroup: Sequence[int] = ...,\n) -> SRE_Pattern: ...\ndef getcodesize() -> int: ...\ndef getlower(a: int, b: int) -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_sre.pyi
_sre.pyi
Other
1,934
0.95
0.490196
0
python-kit
469
2025-05-01T23:13:02.454970
MIT
false
cd56b88393bf014f6450a32c78bc518a
from typing import Any, AnyStr, Tuple\n\nclass error(Exception): ...\n\nclass Struct(object):\n size: int\n format: str\n def __init__(self, fmt: str) -> None: ...\n def pack_into(self, buffer: bytearray, offset: int, obj: Any) -> None: ...\n def pack(self, *args) -> str: ...\n def unpack(self, s: str) -> Tuple[Any, ...]: ...\n def unpack_from(self, buffer: bytearray, offset: int = ...) -> Tuple[Any, ...]: ...\n\ndef _clearcache() -> None: ...\ndef calcsize(fmt: str) -> int: ...\ndef pack(fmt: AnyStr, obj: Any) -> str: ...\ndef pack_into(fmt: AnyStr, buffer: bytearray, offset: int, obj: Any) -> None: ...\ndef unpack(fmt: AnyStr, data: str) -> Tuple[Any, ...]: ...\ndef unpack_from(fmt: AnyStr, buffer: bytearray, offset: int = ...) -> Tuple[Any, ...]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_struct.pyi
_struct.pyi
Other
767
0.85
0.684211
0
python-kit
933
2025-04-12T21:28:10.954942
GPL-3.0
false
79e993653afbb466a84f1598a9b799ae
from typing import Dict, List\n\nCELL: int\nDEF_BOUND: int\nDEF_FREE: int\nDEF_FREE_CLASS: int\nDEF_GLOBAL: int\nDEF_IMPORT: int\nDEF_LOCAL: int\nDEF_PARAM: int\nFREE: int\nGLOBAL_EXPLICIT: int\nGLOBAL_IMPLICIT: int\nLOCAL: int\nOPT_BARE_EXEC: int\nOPT_EXEC: int\nOPT_IMPORT_STAR: int\nSCOPE_MASK: int\nSCOPE_OFF: int\nTYPE_CLASS: int\nTYPE_FUNCTION: int\nTYPE_MODULE: int\nUSE: int\n\nclass _symtable_entry(object): ...\n\nclass symtable(object):\n children: List[_symtable_entry]\n id: int\n lineno: int\n name: str\n nested: int\n optimized: int\n symbols: Dict[str, int]\n type: int\n varnames: List[str]\n def __init__(self, src: str, filename: str, startstr: str) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_symtable.pyi
_symtable.pyi
Other
677
0.85
0.081081
0
python-kit
928
2023-12-15T16:12:01.475922
Apache-2.0
false
ddd09388840f736d569cd143863c46a3
from typing import Any\n\nclass _localbase(object): ...\n\nclass local(_localbase):\n def __getattribute__(self, name: str) -> Any: ...\n def __setattr__(self, name: str, value: Any) -> None: ...\n def __delattr__(self, name: str) -> None: ...\n def __del__(self) -> None: ...\n\ndef _patch(self: local) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_threading_local.pyi
_threading_local.pyi
Other
319
0.85
0.636364
0
python-kit
849
2023-08-07T12:05:57.917291
BSD-3-Clause
false
ddcaf9b74a0c93dd60179a20afe1740e
import sys\nfrom types import TracebackType\nfrom typing import Any, Optional, Tuple, Type, Union\n\n_KeyType = Union[HKEYType, int]\n\ndef CloseKey(__hkey: _KeyType) -> None: ...\ndef ConnectRegistry(__computer_name: Optional[str], __key: _KeyType) -> HKEYType: ...\ndef CreateKey(__key: _KeyType, __sub_key: Optional[str]) -> HKEYType: ...\ndef CreateKeyEx(key: _KeyType, sub_key: Optional[str], reserved: int = ..., access: int = ...) -> HKEYType: ...\ndef DeleteKey(__key: _KeyType, __sub_key: str) -> None: ...\ndef DeleteKeyEx(key: _KeyType, sub_key: str, access: int = ..., reserved: int = ...) -> None: ...\ndef DeleteValue(__key: _KeyType, __value: str) -> None: ...\ndef EnumKey(__key: _KeyType, __index: int) -> str: ...\ndef EnumValue(__key: _KeyType, __index: int) -> Tuple[str, Any, int]: ...\ndef ExpandEnvironmentStrings(__str: str) -> str: ...\ndef FlushKey(__key: _KeyType) -> None: ...\ndef LoadKey(__key: _KeyType, __sub_key: str, __file_name: str) -> None: ...\ndef OpenKey(key: _KeyType, sub_key: str, reserved: int = ..., access: int = ...) -> HKEYType: ...\ndef OpenKeyEx(key: _KeyType, sub_key: str, reserved: int = ..., access: int = ...) -> HKEYType: ...\ndef QueryInfoKey(__key: _KeyType) -> Tuple[int, int, int]: ...\ndef QueryValue(__key: _KeyType, __sub_key: Optional[str]) -> str: ...\ndef QueryValueEx(__key: _KeyType, __name: str) -> Tuple[Any, int]: ...\ndef SaveKey(__key: _KeyType, __file_name: str) -> None: ...\ndef SetValue(__key: _KeyType, __sub_key: str, __type: int, __value: str) -> None: ...\ndef SetValueEx(\n __key: _KeyType, __value_name: Optional[str], __reserved: Any, __type: int, __value: Union[str, int]\n) -> None: ... # reserved is ignored\ndef DisableReflectionKey(__key: _KeyType) -> None: ...\ndef EnableReflectionKey(__key: _KeyType) -> None: ...\ndef QueryReflectionKey(__key: _KeyType) -> bool: ...\n\nHKEY_CLASSES_ROOT: int\nHKEY_CURRENT_USER: int\nHKEY_LOCAL_MACHINE: int\nHKEY_USERS: int\nHKEY_PERFORMANCE_DATA: int\nHKEY_CURRENT_CONFIG: int\nHKEY_DYN_DATA: int\n\nKEY_ALL_ACCESS: int\nKEY_WRITE: int\nKEY_READ: int\nKEY_EXECUTE: int\nKEY_QUERY_VALUE: int\nKEY_SET_VALUE: int\nKEY_CREATE_SUB_KEY: int\nKEY_ENUMERATE_SUB_KEYS: int\nKEY_NOTIFY: int\nKEY_CREATE_LINK: int\n\nKEY_WOW64_64KEY: int\nKEY_WOW64_32KEY: int\n\nREG_BINARY: int\nREG_DWORD: int\nREG_DWORD_LITTLE_ENDIAN: int\nREG_DWORD_BIG_ENDIAN: int\nREG_EXPAND_SZ: int\nREG_LINK: int\nREG_MULTI_SZ: int\nREG_NONE: int\nREG_RESOURCE_LIST: int\nREG_FULL_RESOURCE_DESCRIPTOR: int\nREG_RESOURCE_REQUIREMENTS_LIST: int\nREG_SZ: int\n\nREG_CREATED_NEW_KEY: int # undocumented\nREG_LEGAL_CHANGE_FILTER: int # undocumented\nREG_LEGAL_OPTION: int # undocumented\nREG_NOTIFY_CHANGE_ATTRIBUTES: int # undocumented\nREG_NOTIFY_CHANGE_LAST_SET: int # undocumented\nREG_NOTIFY_CHANGE_NAME: int # undocumented\nREG_NOTIFY_CHANGE_SECURITY: int # undocumented\nREG_NO_LAZY_FLUSH: int # undocumented\nREG_OPENED_EXISTING_KEY: int # undocumented\nREG_OPTION_BACKUP_RESTORE: int # undocumented\nREG_OPTION_CREATE_LINK: int # undocumented\nREG_OPTION_NON_VOLATILE: int # undocumented\nREG_OPTION_OPEN_LINK: int # undocumented\nREG_OPTION_RESERVED: int # undocumented\nREG_OPTION_VOLATILE: int # undocumented\nREG_REFRESH_HIVE: int # undocumented\nREG_WHOLE_HIVE_VOLATILE: int # undocumented\n\nerror = OSError\n\n# Though this class has a __name__ of PyHKEY, it's exposed as HKEYType for some reason\nclass HKEYType:\n def __bool__(self) -> bool: ...\n def __int__(self) -> int: ...\n def __enter__(self) -> HKEYType: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> Optional[bool]: ...\n def Close(self) -> None: ...\n def Detach(self) -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\_winreg.pyi
_winreg.pyi
Other
3,696
0.95
0.329897
0.011364
python-kit
991
2024-01-02T04:26:32.071392
Apache-2.0
false
84a9d98074ffb8ad8e5448e9c448c9f2
# True and False are deliberately omitted because they are keywords in\n# Python 3, and stub files conform to Python 3 syntax.\n\nfrom _typeshed import ReadableBuffer, SupportsKeysAndGetItem, SupportsWrite\nfrom abc import ABCMeta\nfrom ast import mod\nfrom types import CodeType\nfrom typing import (\n AbstractSet,\n Any,\n AnyStr,\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 SupportsComplex,\n SupportsFloat,\n SupportsInt,\n Text,\n Tuple,\n Type,\n TypeVar,\n Union,\n ValuesView,\n overload,\n runtime_checkable,\n)\nfrom typing_extensions import Literal\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[Text, Iterable[Text]]\n __module__: str\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\nclass staticmethod(object): # Special, only valid as a decorator.\n __func__: Callable[..., Any]\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 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 __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\nclass super(object):\n @overload\n def __init__(self, t: Any, obj: Any) -> None: ...\n @overload\n def __init__(self, t: Any) -> None: ...\n\nclass int:\n @overload\n def __new__(cls: Type[_T], x: Union[Text, bytes, SupportsInt, _SupportsIndex, _SupportsTrunc] = ...) -> _T: ...\n @overload\n def __new__(cls: Type[_T], x: Union[Text, bytes, bytearray], base: int) -> _T: ...\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 __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 __div__(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 __rdiv__(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 __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 __nonzero__(self) -> bool: ...\n def __index__(self) -> int: ...\n\nclass float:\n def __new__(cls: Type[_T], x: Union[SupportsFloat, _SupportsIndex, Text, 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 __div__(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 __rdiv__(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 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 __nonzero__(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 __div__(self, x: complex) -> 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 __rdiv__(self, x: complex) -> 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 __nonzero__(self) -> bool: ...\n\nclass basestring(metaclass=ABCMeta): ...\n\nclass unicode(basestring, Sequence[unicode]):\n @overload\n def __init__(self) -> None: ...\n @overload\n def __init__(self, o: object) -> None: ...\n @overload\n def __init__(self, o: str, encoding: unicode = ..., errors: unicode = ...) -> None: ...\n def capitalize(self) -> unicode: ...\n def center(self, width: int, fillchar: unicode = ...) -> unicode: ...\n def count(self, x: unicode) -> int: ...\n def decode(self, encoding: unicode = ..., errors: unicode = ...) -> unicode: ...\n def encode(self, encoding: unicode = ..., errors: unicode = ...) -> str: ...\n def endswith(self, suffix: Union[unicode, Tuple[unicode, ...]], start: int = ..., end: int = ...) -> bool: ...\n def expandtabs(self, tabsize: int = ...) -> unicode: ...\n def find(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...\n def format(self, *args: object, **kwargs: object) -> unicode: ...\n def index(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...\n def isalnum(self) -> bool: ...\n def isalpha(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[unicode]) -> unicode: ...\n def ljust(self, width: int, fillchar: unicode = ...) -> unicode: ...\n def lower(self) -> unicode: ...\n def lstrip(self, chars: unicode = ...) -> unicode: ...\n def partition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ...\n def replace(self, old: unicode, new: unicode, count: int = ...) -> unicode: ...\n def rfind(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...\n def rindex(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...\n def rjust(self, width: int, fillchar: unicode = ...) -> unicode: ...\n def rpartition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ...\n def rsplit(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ...\n def rstrip(self, chars: unicode = ...) -> unicode: ...\n def split(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ...\n def splitlines(self, keepends: bool = ...) -> List[unicode]: ...\n def startswith(self, prefix: Union[unicode, Tuple[unicode, ...]], start: int = ..., end: int = ...) -> bool: ...\n def strip(self, chars: unicode = ...) -> unicode: ...\n def swapcase(self) -> unicode: ...\n def title(self) -> unicode: ...\n def translate(self, table: Union[Dict[int, Any], unicode]) -> unicode: ...\n def upper(self) -> unicode: ...\n def zfill(self, width: int) -> unicode: ...\n @overload\n def __getitem__(self, i: int) -> unicode: ...\n @overload\n def __getitem__(self, s: slice) -> unicode: ...\n def __getslice__(self, start: int, stop: int) -> unicode: ...\n def __add__(self, s: unicode) -> unicode: ...\n def __mul__(self, n: int) -> unicode: ...\n def __rmul__(self, n: int) -> unicode: ...\n def __mod__(self, x: Any) -> unicode: ...\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __lt__(self, x: unicode) -> bool: ...\n def __le__(self, x: unicode) -> bool: ...\n def __gt__(self, x: unicode) -> bool: ...\n def __ge__(self, x: unicode) -> bool: ...\n def __len__(self) -> int: ...\n # The argument type is incompatible with Sequence\n def __contains__(self, s: Union[unicode, bytes]) -> bool: ... # type: ignore\n def __iter__(self) -> Iterator[unicode]: ...\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 def __getnewargs__(self) -> Tuple[unicode]: ...\n\nclass _FormatMapMapping(Protocol):\n def __getitem__(self, __key: str) -> Any: ...\n\nclass str(Sequence[str], basestring):\n def __init__(self, o: object = ...) -> None: ...\n def capitalize(self) -> str: ...\n def center(self, __width: int, __fillchar: str = ...) -> str: ...\n def count(self, x: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def decode(self, encoding: Text = ..., errors: Text = ...) -> unicode: ...\n def encode(self, encoding: Text = ..., errors: Text = ...) -> bytes: ...\n def endswith(self, suffix: Union[Text, Tuple[Text, ...]]) -> bool: ...\n def expandtabs(self, tabsize: int = ...) -> str: ...\n def find(self, sub: Text, __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: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def isalnum(self) -> bool: ...\n def isalpha(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: Iterable[AnyStr]) -> AnyStr: ...\n def ljust(self, __width: int, __fillchar: str = ...) -> str: ...\n def lower(self) -> str: ...\n @overload\n def lstrip(self, __chars: str = ...) -> str: ...\n @overload\n def lstrip(self, __chars: unicode) -> unicode: ...\n @overload\n def partition(self, __sep: bytearray) -> Tuple[str, bytearray, str]: ...\n @overload\n def partition(self, __sep: str) -> Tuple[str, str, str]: ...\n @overload\n def partition(self, __sep: unicode) -> Tuple[unicode, unicode, unicode]: ...\n def replace(self, __old: AnyStr, __new: AnyStr, __count: int = ...) -> AnyStr: ...\n def rfind(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def rindex(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def rjust(self, __width: int, __fillchar: str = ...) -> str: ...\n @overload\n def rpartition(self, __sep: bytearray) -> Tuple[str, bytearray, str]: ...\n @overload\n def rpartition(self, __sep: str) -> Tuple[str, str, str]: ...\n @overload\n def rpartition(self, __sep: unicode) -> Tuple[unicode, unicode, unicode]: ...\n @overload\n def rsplit(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...\n @overload\n def rsplit(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...\n @overload\n def rstrip(self, __chars: str = ...) -> str: ...\n @overload\n def rstrip(self, __chars: unicode) -> unicode: ...\n @overload\n def split(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...\n @overload\n def split(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...\n def splitlines(self, keepends: bool = ...) -> List[str]: ...\n def startswith(self, prefix: Union[Text, Tuple[Text, ...]]) -> bool: ...\n @overload\n def strip(self, __chars: str = ...) -> str: ...\n @overload\n def strip(self, chars: unicode) -> unicode: ...\n def swapcase(self) -> str: ...\n def title(self) -> str: ...\n def translate(self, __table: Optional[AnyStr], deletechars: AnyStr = ...) -> AnyStr: ...\n def upper(self) -> str: ...\n def zfill(self, __width: int) -> str: ...\n def __add__(self, s: AnyStr) -> AnyStr: ...\n # Incompatible with Sequence.__contains__\n def __contains__(self, o: Union[str, Text]) -> bool: ... # type: ignore\n def __eq__(self, x: object) -> bool: ...\n def __ge__(self, x: Text) -> bool: ...\n def __getitem__(self, i: Union[int, slice]) -> str: ...\n def __gt__(self, x: Text) -> bool: ...\n def __hash__(self) -> int: ...\n def __iter__(self) -> Iterator[str]: ...\n def __le__(self, x: Text) -> bool: ...\n def __len__(self) -> int: ...\n def __lt__(self, x: Text) -> 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 def __getslice__(self, start: int, stop: int) -> str: ...\n def __float__(self) -> float: ...\n def __int__(self) -> int: ...\n\nbytes = str\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) -> None: ...\n @overload\n def __init__(self, string: Text, encoding: Text, errors: Text = ...) -> 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: str) -> int: ...\n def decode(self, encoding: Text = ..., errors: Text = ...) -> str: ...\n def endswith(self, __suffix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...\n def expandtabs(self, tabsize: int = ...) -> bytearray: ...\n def extend(self, iterable: Union[str, Iterable[int]]) -> None: ...\n def find(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...\n def index(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...\n def insert(self, __index: int, __item: int) -> None: ...\n def isalnum(self) -> bool: ...\n def isalpha(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: Iterable[str]) -> bytearray: ...\n def ljust(self, __width: int, __fillchar: str = ...) -> 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 def replace(self, __old: bytes, __new: bytes, __count: int = ...) -> bytearray: ...\n def rfind(self, __sub: bytes, __start: int = ..., __end: int = ...) -> int: ...\n def rindex(self, __sub: bytes, __start: int = ..., __end: 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: str) -> bytearray: ...\n def upper(self) -> bytearray: ...\n def zfill(self, __width: int) -> bytearray: ...\n @classmethod\n def fromhex(cls, __string: str) -> bytearray: ...\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 __getslice__(self, start: int, stop: int) -> bytearray: ...\n def __setslice__(self, start: int, stop: int, x: Union[Sequence[int], str]) -> None: ...\n def __delslice__(self, start: int, stop: int) -> None: ...\n def __add__(self, s: bytes) -> bytearray: ...\n def __mul__(self, n: int) -> bytearray: ...\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[str]):\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 def __init__(self, obj: ReadableBuffer) -> None: ...\n @overload\n def __getitem__(self, i: int) -> str: ...\n @overload\n def __getitem__(self, s: slice) -> memoryview: ...\n def __contains__(self, x: object) -> bool: ...\n def __iter__(self) -> Iterator[str]: ...\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 def tobytes(self) -> bytes: ...\n def tolist(self) -> List[int]: ...\n\nclass bool(int):\n def __new__(cls: Type[_T], __o: object = ...) -> _T: ...\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 __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) -> int: ...\n\nclass function:\n # TODO not defined in builtins!\n __name__: str\n __module__: str\n __code__: CodeType\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 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 def sort(self, cmp: Callable[[_T, _T], Any] = ..., key: Callable[[_T], Any] = ..., 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 __getslice__(self, start: int, stop: int) -> List[_T]: ...\n def __setslice__(self, start: int, stop: int, o: Sequence[_T]) -> None: ...\n def __delslice__(self, start: int, stop: int) -> 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 __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\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: SupportsKeysAndGetItem[_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 has_key(self, k: _KT) -> bool: ...\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 iterkeys(self) -> Iterator[_KT]: ...\n def itervalues(self) -> Iterator[_VT]: ...\n def iteritems(self) -> Iterator[Tuple[_KT, _VT]]: ...\n def viewkeys(self) -> KeysView[_KT]: ...\n def viewvalues(self) -> ValuesView[_VT]: ...\n def viewitems(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 def __str__(self) -> str: ...\n __hash__: None # type: ignore\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 @overload\n def __sub__(self: Set[str], s: AbstractSet[Optional[Text]]) -> Set[_T]: ...\n @overload\n def __sub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...\n @overload # type: ignore\n def __isub__(self: Set[str], s: AbstractSet[Optional[Text]]) -> Set[_T]: ...\n @overload\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\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\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\nclass xrange(Sized, Iterable[int], Reversible[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 __len__(self) -> int: ...\n def __iter__(self) -> Iterator[int]: ...\n def __getitem__(self, i: int) -> int: ...\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\nlong = int\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 __call__: NotImplemented # type: ignore\n\nNotImplemented: _NotImplementedType\n\ndef abs(__x: SupportsAbs[_T]) -> _T: ...\ndef all(__iterable: Iterable[object]) -> bool: ...\ndef any(__iterable: Iterable[object]) -> bool: ...\ndef apply(__func: Callable[..., _T], __args: Optional[Sequence[Any]] = ..., __kwds: Optional[Mapping[str, Any]] = ...) -> _T: ...\ndef bin(__number: Union[int, _SupportsIndex]) -> str: ...\ndef callable(__obj: object) -> bool: ...\ndef chr(__i: int) -> str: ...\ndef cmp(__x: Any, __y: Any) -> int: ...\n\n_N1 = TypeVar("_N1", bool, int, float, complex)\n\ndef coerce(__x: _N1, __y: _N1) -> Tuple[_N1, _N1]: ...\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\ndef compile(source: Union[Text, mod], filename: Text, mode: Text, flags: int = ..., dont_inherit: int = ...) -> Any: ...\ndef delattr(__obj: Any, __name: Text) -> 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[Text, bytes, CodeType], __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Mapping[str, Any]] = ...\n) -> Any: ...\ndef execfile(__filename: str, __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Dict[str, Any]] = ...) -> None: ...\ndef exit(code: object = ...) -> NoReturn: ...\n@overload\ndef filter(__function: Callable[[AnyStr], Any], __iterable: AnyStr) -> AnyStr: ... # type: ignore\n@overload\ndef filter(__function: None, __iterable: Tuple[Optional[_T], ...]) -> Tuple[_T, ...]: ... # type: ignore\n@overload\ndef filter(__function: Callable[[_T], Any], __iterable: Tuple[_T, ...]) -> Tuple[_T, ...]: ... # type: ignore\n@overload\ndef filter(__function: None, __iterable: Iterable[Optional[_T]]) -> List[_T]: ...\n@overload\ndef filter(__function: Callable[[_T], Any], __iterable: Iterable[_T]) -> List[_T]: ...\ndef format(__value: object, __format_spec: str = ...) -> str: ... # TODO unicode\ndef getattr(__o: Any, name: Text, __default: Any = ...) -> Any: ...\ndef globals() -> Dict[str, Any]: ...\ndef hasattr(__obj: Any, __name: Text) -> bool: ...\ndef hash(__obj: object) -> int: ...\ndef hex(__number: Union[int, _SupportsIndex]) -> str: ...\ndef id(__obj: object) -> int: ...\ndef input(__prompt: Any = ...) -> Any: ...\ndef intern(__string: str) -> 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 locals() -> Dict[str, Any]: ...\n@overload\ndef map(__func: None, __iter1: Iterable[_T1]) -> List[_T1]: ...\n@overload\ndef map(__func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[Tuple[_T1, _T2]]: ...\n@overload\ndef map(__func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]) -> List[Tuple[_T1, _T2, _T3]]: ...\n@overload\ndef map(\n __func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4]\n) -> List[Tuple[_T1, _T2, _T3, _T4]]: ...\n@overload\ndef map(\n __func: None,\n __iter1: Iterable[_T1],\n __iter2: Iterable[_T2],\n __iter3: Iterable[_T3],\n __iter4: Iterable[_T4],\n __iter5: Iterable[_T5],\n) -> List[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...\n@overload\ndef map(\n __func: None,\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) -> List[Tuple[Any, ...]]: ...\n@overload\ndef map(__func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> List[_S]: ...\n@overload\ndef map(__func: Callable[[_T1, _T2], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[_S]: ...\n@overload\ndef map(\n __func: Callable[[_T1, _T2, _T3], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]\n) -> List[_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) -> List[_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) -> List[_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) -> List[_S]: ...\n@overload\ndef max(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], Any] = ...) -> _T: ...\n@overload\ndef max(__iterable: Iterable[_T], *, key: Callable[[_T], Any] = ...) -> _T: ...\n@overload\ndef min(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], Any] = ...) -> _T: ...\n@overload\ndef min(__iterable: Iterable[_T], *, key: Callable[[_T], Any] = ...) -> _T: ...\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: ...\ndef open(name: Union[unicode, int], mode: unicode = ..., buffering: int = ...) -> BinaryIO: ...\ndef ord(__c: Union[Text, bytes]) -> int: ...\n\n# This is only available after from __future__ import print_function.\ndef print(\n *values: object, sep: Optional[Text] = ..., end: Optional[Text] = ..., file: Optional[SupportsWrite[Any]] = ...\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\n@overload\ndef pow(__base: int, __exp: int, __mod: None = ...) -> Any: ... # returns int or float depending on whether exp is non-negative\n@overload\ndef pow(__base: int, __exp: int, __mod: int) -> int: ...\n@overload\ndef pow(__base: float, __exp: float, __mod: None = ...) -> float: ...\n@overload\ndef pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ...\n@overload\ndef pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ...\ndef quit(code: object = ...) -> NoReturn: ...\ndef range(__x: int, __y: int = ..., __step: int = ...) -> List[int]: ... # noqa: F811\ndef raw_input(__prompt: Any = ...) -> str: ...\n@overload\ndef reduce(__function: Callable[[_T, _S], _T], __iterable: Iterable[_S], __initializer: _T) -> _T: ...\n@overload\ndef reduce(__function: Callable[[_T, _T], _T], __iterable: Iterable[_T]) -> _T: ...\ndef reload(__module: Any) -> Any: ...\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) -> float: ...\n@overload\ndef round(number: float, ndigits: int) -> float: ...\n@overload\ndef round(number: SupportsFloat) -> float: ...\n@overload\ndef round(number: SupportsFloat, ndigits: int) -> float: ...\ndef setattr(__obj: Any, __name: Text, __value: Any) -> None: ...\ndef sorted(\n __iterable: Iterable[_T],\n *,\n cmp: Callable[[_T, _T], int] = ...,\n key: Optional[Callable[[_T], Any]] = ...,\n reverse: bool = ...,\n) -> List[_T]: ...\n@overload\ndef sum(__iterable: Iterable[_T]) -> Union[_T, int]: ...\n@overload\ndef sum(__iterable: Iterable[_T], __start: _S) -> Union[_T, _S]: ...\ndef unichr(__i: int) -> unicode: ...\ndef vars(__object: Any = ...) -> Dict[str, Any]: ...\n@overload\ndef zip(__iter1: Iterable[_T1]) -> List[Tuple[_T1]]: ...\n@overload\ndef zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[Tuple[_T1, _T2]]: ...\n@overload\ndef zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]) -> List[Tuple[_T1, _T2, _T3]]: ...\n@overload\ndef zip(\n __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4]\n) -> List[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) -> List[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) -> List[Tuple[Any, ...]]: ...\ndef __import__(\n name: Text,\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\n# TODO: buffer support is incomplete; e.g. some_string.startswith(some_buffer) doesn't type check.\n_AnyBuffer = TypeVar("_AnyBuffer", str, unicode, bytearray, buffer)\n\nclass buffer(Sized):\n def __init__(self, object: _AnyBuffer, offset: int = ..., size: int = ...) -> None: ...\n def __add__(self, other: _AnyBuffer) -> str: ...\n def __cmp__(self, other: _AnyBuffer) -> bool: ...\n def __getitem__(self, key: Union[int, slice]) -> str: ...\n def __getslice__(self, i: int, j: int) -> str: ...\n def __len__(self) -> int: ...\n def __mul__(self, x: int) -> str: ...\n\nclass BaseException(object):\n args: Tuple[Any, ...]\n message: Any\n def __init__(self, *args: object) -> None: ...\n def __str__(self) -> str: ...\n def __repr__(self) -> str: ...\n def __getitem__(self, i: int) -> Any: ...\n def __getslice__(self, start: int, stop: int) -> Tuple[Any, ...]: ...\n\nclass GeneratorExit(BaseException): ...\nclass KeyboardInterrupt(BaseException): ...\n\nclass SystemExit(BaseException):\n code: int\n\nclass Exception(BaseException): ...\nclass StopIteration(Exception): ...\nclass StandardError(Exception): ...\n\n_StandardError = StandardError\n\nclass EnvironmentError(StandardError):\n errno: int\n strerror: str\n # TODO can this be unicode?\n filename: str\n\nclass OSError(EnvironmentError): ...\nclass IOError(EnvironmentError): ...\nclass ArithmeticError(_StandardError): ...\nclass AssertionError(_StandardError): ...\nclass AttributeError(_StandardError): ...\nclass BufferError(_StandardError): ...\nclass EOFError(_StandardError): ...\nclass ImportError(_StandardError): ...\nclass LookupError(_StandardError): ...\nclass MemoryError(_StandardError): ...\nclass NameError(_StandardError): ...\nclass ReferenceError(_StandardError): ...\nclass RuntimeError(_StandardError): ...\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 IndexError(LookupError): ...\nclass KeyError(LookupError): ...\nclass UnboundLocalError(NameError): ...\n\nclass WindowsError(OSError):\n winerror: int\n\nclass NotImplementedError(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: Text\n start: int\n end: int\n reason: str\n def __init__(self, __encoding: str, __object: Text, __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): ...\n\nclass file(BinaryIO):\n @overload\n def __init__(self, file: str, mode: str = ..., buffering: int = ...) -> None: ...\n @overload\n def __init__(self, file: unicode, mode: str = ..., buffering: int = ...) -> None: ...\n @overload\n def __init__(self, file: int, mode: str = ..., buffering: int = ...) -> None: ...\n def __iter__(self) -> Iterator[str]: ...\n def next(self) -> str: ...\n def read(self, n: int = ...) -> str: ...\n def __enter__(self) -> BinaryIO: ...\n def __exit__(\n self, t: Optional[type] = ..., exc: Optional[BaseException] = ..., tb: Optional[Any] = ...\n ) -> Optional[bool]: ...\n def flush(self) -> None: ...\n def fileno(self) -> int: ...\n def isatty(self) -> bool: ...\n def close(self) -> None: ...\n def readable(self) -> bool: ...\n def writable(self) -> bool: ...\n def seekable(self) -> bool: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def tell(self) -> int: ...\n def readline(self, limit: int = ...) -> str: ...\n def readlines(self, hint: int = ...) -> List[str]: ...\n def write(self, data: str) -> int: ...\n def writelines(self, data: Iterable[str]) -> None: ...\n def truncate(self, pos: Optional[int] = ...) -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\__builtin__.pyi
__builtin__.pyi
Other
48,853
0.95
0.633473
0.022104
node-utils
545
2024-02-09T04:13:33.336367
GPL-3.0
false
13102b31bcdba8a358df481109038432
from typing import Optional\n\ndef make_archive(\n base_name: str,\n format: str,\n root_dir: Optional[str] = ...,\n base_dir: Optional[str] = ...,\n verbose: int = ...,\n dry_run: int = ...,\n) -> str: ...\ndef make_tarball(base_name: str, base_dir: str, compress: Optional[str] = ..., verbose: int = ..., dry_run: int = ...) -> str: ...\ndef make_zipfile(base_name: str, base_dir: str, verbose: int = ..., dry_run: int = ...) -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\archive_util.pyi
archive_util.pyi
Other
447
0.85
0.25
0
python-kit
96
2024-08-15T05:26:19.834846
BSD-3-Clause
false
5e64278ca21ab8b45daed5a7445deebe
from distutils.ccompiler import CCompiler\n\nclass BCPPCompiler(CCompiler): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\bcppcompiler.pyi
bcppcompiler.pyi
Other
78
0.65
0.333333
0
awesome-app
402
2024-06-14T13:41:11.752262
MIT
false
2a60cff066cbc75d6c4c28772c48eb73
from typing import Any, Callable, List, Optional, Tuple, Union\n\n_Macro = Union[Tuple[str], Tuple[str, Optional[str]]]\n\ndef gen_lib_options(\n compiler: CCompiler, library_dirs: List[str], runtime_library_dirs: List[str], libraries: List[str]\n) -> List[str]: ...\ndef gen_preprocess_options(macros: List[_Macro], include_dirs: List[str]) -> List[str]: ...\ndef get_default_compiler(osname: Optional[str] = ..., platform: Optional[str] = ...) -> str: ...\ndef new_compiler(\n plat: Optional[str] = ..., compiler: Optional[str] = ..., verbose: int = ..., dry_run: int = ..., force: int = ...\n) -> CCompiler: ...\ndef show_compilers() -> None: ...\n\nclass CCompiler:\n dry_run: bool\n force: bool\n verbose: bool\n output_dir: Optional[str]\n macros: List[_Macro]\n include_dirs: List[str]\n libraries: List[str]\n library_dirs: List[str]\n runtime_library_dirs: List[str]\n objects: List[str]\n def __init__(self, verbose: int = ..., dry_run: int = ..., force: int = ...) -> None: ...\n def add_include_dir(self, dir: str) -> None: ...\n def set_include_dirs(self, dirs: List[str]) -> None: ...\n def add_library(self, libname: str) -> None: ...\n def set_libraries(self, libnames: List[str]) -> None: ...\n def add_library_dir(self, dir: str) -> None: ...\n def set_library_dirs(self, dirs: List[str]) -> None: ...\n def add_runtime_library_dir(self, dir: str) -> None: ...\n def set_runtime_library_dirs(self, dirs: List[str]) -> None: ...\n def define_macro(self, name: str, value: Optional[str] = ...) -> None: ...\n def undefine_macro(self, name: str) -> None: ...\n def add_link_object(self, object: str) -> None: ...\n def set_link_objects(self, objects: List[str]) -> None: ...\n def detect_language(self, sources: Union[str, List[str]]) -> Optional[str]: ...\n def find_library_file(self, dirs: List[str], lib: str, debug: bool = ...) -> Optional[str]: ...\n def has_function(\n self,\n funcname: str,\n includes: Optional[List[str]] = ...,\n include_dirs: Optional[List[str]] = ...,\n libraries: Optional[List[str]] = ...,\n library_dirs: Optional[List[str]] = ...,\n ) -> bool: ...\n def library_dir_option(self, dir: str) -> str: ...\n def library_option(self, lib: str) -> str: ...\n def runtime_library_dir_option(self, dir: str) -> str: ...\n def set_executables(self, **args: str) -> None: ...\n def compile(\n self,\n sources: List[str],\n output_dir: Optional[str] = ...,\n macros: Optional[_Macro] = ...,\n include_dirs: Optional[List[str]] = ...,\n debug: bool = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n depends: Optional[List[str]] = ...,\n ) -> List[str]: ...\n def create_static_lib(\n self,\n objects: List[str],\n output_libname: str,\n output_dir: Optional[str] = ...,\n debug: bool = ...,\n target_lang: Optional[str] = ...,\n ) -> None: ...\n def link(\n self,\n target_desc: str,\n objects: List[str],\n output_filename: str,\n output_dir: Optional[str] = ...,\n libraries: Optional[List[str]] = ...,\n library_dirs: Optional[List[str]] = ...,\n runtime_library_dirs: Optional[List[str]] = ...,\n export_symbols: Optional[List[str]] = ...,\n debug: bool = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n build_temp: Optional[str] = ...,\n target_lang: Optional[str] = ...,\n ) -> None: ...\n def link_executable(\n self,\n objects: List[str],\n output_progname: str,\n output_dir: Optional[str] = ...,\n libraries: Optional[List[str]] = ...,\n library_dirs: Optional[List[str]] = ...,\n runtime_library_dirs: Optional[List[str]] = ...,\n debug: bool = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n target_lang: Optional[str] = ...,\n ) -> None: ...\n def link_shared_lib(\n self,\n objects: List[str],\n output_libname: str,\n output_dir: Optional[str] = ...,\n libraries: Optional[List[str]] = ...,\n library_dirs: Optional[List[str]] = ...,\n runtime_library_dirs: Optional[List[str]] = ...,\n export_symbols: Optional[List[str]] = ...,\n debug: bool = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n build_temp: Optional[str] = ...,\n target_lang: Optional[str] = ...,\n ) -> None: ...\n def link_shared_object(\n self,\n objects: List[str],\n output_filename: str,\n output_dir: Optional[str] = ...,\n libraries: Optional[List[str]] = ...,\n library_dirs: Optional[List[str]] = ...,\n runtime_library_dirs: Optional[List[str]] = ...,\n export_symbols: Optional[List[str]] = ...,\n debug: bool = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n build_temp: Optional[str] = ...,\n target_lang: Optional[str] = ...,\n ) -> None: ...\n def preprocess(\n self,\n source: str,\n output_file: Optional[str] = ...,\n macros: Optional[List[_Macro]] = ...,\n include_dirs: Optional[List[str]] = ...,\n extra_preargs: Optional[List[str]] = ...,\n extra_postargs: Optional[List[str]] = ...,\n ) -> None: ...\n def executable_filename(self, basename: str, strip_dir: int = ..., output_dir: str = ...) -> str: ...\n def library_filename(self, libname: str, lib_type: str = ..., strip_dir: int = ..., output_dir: str = ...) -> str: ...\n def object_filenames(self, source_filenames: List[str], strip_dir: int = ..., output_dir: str = ...) -> List[str]: ...\n def shared_object_filename(self, basename: str, strip_dir: int = ..., output_dir: str = ...) -> str: ...\n def execute(self, func: Callable[..., None], args: Tuple[Any, ...], msg: Optional[str] = ..., level: int = ...) -> None: ...\n def spawn(self, cmd: List[str]) -> None: ...\n def mkpath(self, name: str, mode: int = ...) -> None: ...\n def move_file(self, src: str, dst: str) -> str: ...\n def announce(self, msg: str, level: int = ...) -> None: ...\n def warn(self, msg: str) -> None: ...\n def debug_print(self, msg: str) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\ccompiler.pyi
ccompiler.pyi
Other
6,449
0.85
0.293333
0
react-lib
926
2023-12-13T01:20:33.066477
Apache-2.0
false
9824fd2ab84bb4503078da4e9c354a6a
from abc import abstractmethod\nfrom distutils.dist import Distribution\nfrom typing import Any, Callable, Iterable, List, Optional, Text, Tuple, Union\n\nclass Command:\n sub_commands: List[Tuple[str, Optional[Callable[[Command], bool]]]]\n def __init__(self, dist: Distribution) -> None: ...\n @abstractmethod\n def initialize_options(self) -> None: ...\n @abstractmethod\n def finalize_options(self) -> None: ...\n @abstractmethod\n def run(self) -> None: ...\n def announce(self, msg: Text, level: int = ...) -> None: ...\n def debug_print(self, msg: Text) -> None: ...\n def ensure_string(self, option: str, default: Optional[str] = ...) -> None: ...\n def ensure_string_list(self, option: Union[str, List[str]]) -> None: ...\n def ensure_filename(self, option: str) -> None: ...\n def ensure_dirname(self, option: str) -> None: ...\n def get_command_name(self) -> str: ...\n def set_undefined_options(self, src_cmd: Text, *option_pairs: Tuple[str, str]) -> None: ...\n def get_finalized_command(self, command: Text, create: int = ...) -> Command: ...\n def reinitialize_command(self, command: Union[Command, Text], reinit_subcommands: int = ...) -> Command: ...\n def run_command(self, command: Text) -> None: ...\n def get_sub_commands(self) -> List[str]: ...\n def warn(self, msg: Text) -> None: ...\n def execute(self, func: Callable[..., Any], args: Iterable[Any], msg: Optional[Text] = ..., level: int = ...) -> None: ...\n def mkpath(self, name: str, mode: int = ...) -> None: ...\n def copy_file(\n self,\n infile: str,\n outfile: str,\n preserve_mode: int = ...,\n preserve_times: int = ...,\n link: Optional[str] = ...,\n level: Any = ...,\n ) -> Tuple[str, bool]: ... # level is not used\n def copy_tree(\n self,\n infile: str,\n outfile: str,\n preserve_mode: int = ...,\n preserve_times: int = ...,\n preserve_symlinks: int = ...,\n level: Any = ...,\n ) -> List[str]: ... # level is not used\n def move_file(self, src: str, dst: str, level: Any = ...) -> str: ... # level is not used\n def spawn(self, cmd: Iterable[str], search_path: int = ..., level: Any = ...) -> None: ... # level is not used\n def make_archive(\n self,\n base_name: str,\n format: str,\n root_dir: Optional[str] = ...,\n base_dir: Optional[str] = ...,\n owner: Optional[str] = ...,\n group: Optional[str] = ...,\n ) -> str: ...\n def make_file(\n self,\n infiles: Union[str, List[str], Tuple[str]],\n outfile: str,\n func: Callable[..., Any],\n args: List[Any],\n exec_msg: Optional[str] = ...,\n skip_msg: Optional[str] = ...,\n level: Any = ...,\n ) -> None: ... # level is not used\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\cmd.pyi
cmd.pyi
Other
2,817
0.95
0.38806
0
vue-tools
427
2024-03-29T15:30:49.022925
GPL-3.0
false
29df5dfc3ba356b2f63403a579e79e68
from abc import abstractmethod\nfrom distutils.cmd import Command\nfrom typing import ClassVar, List, Optional, Tuple\n\nDEFAULT_PYPIRC: str\n\nclass PyPIRCCommand(Command):\n DEFAULT_REPOSITORY: ClassVar[str]\n DEFAULT_REALM: ClassVar[str]\n repository: None\n realm: None\n user_options: ClassVar[List[Tuple[str, Optional[str], str]]]\n boolean_options: ClassVar[List[str]]\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n @abstractmethod\n def run(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\config.pyi
config.pyi
Other
523
0.85
0.235294
0
react-lib
310
2024-08-13T20:01:24.322466
GPL-3.0
false
508ad042ac8ee5319ddedf363c001b20
from distutils.cmd import Command as Command\nfrom distutils.dist import Distribution as Distribution\nfrom distutils.extension import Extension as Extension\nfrom typing import Any, List, Mapping, Optional, Tuple, Type, Union\n\ndef setup(\n *,\n name: str = ...,\n version: str = ...,\n description: str = ...,\n long_description: str = ...,\n author: str = ...,\n author_email: str = ...,\n maintainer: str = ...,\n maintainer_email: str = ...,\n url: str = ...,\n download_url: str = ...,\n packages: List[str] = ...,\n py_modules: List[str] = ...,\n scripts: List[str] = ...,\n ext_modules: List[Extension] = ...,\n classifiers: List[str] = ...,\n distclass: Type[Distribution] = ...,\n script_name: str = ...,\n script_args: List[str] = ...,\n options: Mapping[str, Any] = ...,\n license: str = ...,\n keywords: Union[List[str], str] = ...,\n platforms: Union[List[str], str] = ...,\n cmdclass: Mapping[str, Type[Command]] = ...,\n data_files: List[Tuple[str, List[str]]] = ...,\n package_dir: Mapping[str, str] = ...,\n obsoletes: List[str] = ...,\n provides: List[str] = ...,\n requires: List[str] = ...,\n command_packages: List[str] = ...,\n command_options: Mapping[str, Mapping[str, Tuple[Any, Any]]] = ...,\n package_data: Mapping[str, List[str]] = ...,\n include_package_data: bool = ...,\n libraries: List[str] = ...,\n headers: List[str] = ...,\n ext_package: str = ...,\n include_dirs: List[str] = ...,\n password: str = ...,\n fullname: str = ...,\n **attrs: Any,\n) -> None: ...\ndef run_setup(script_name: str, script_args: Optional[List[str]] = ..., stop_after: str = ...) -> Distribution: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\core.pyi
core.pyi
Other
1,688
0.85
0.041667
0.042553
react-lib
120
2025-01-26T09:13:25.419406
GPL-3.0
false
5ebf2a0fd94f96e724b4975128a75e8d
from distutils.unixccompiler import UnixCCompiler\n\nclass CygwinCCompiler(UnixCCompiler): ...\nclass Mingw32CCompiler(CygwinCCompiler): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\cygwinccompiler.pyi
cygwinccompiler.pyi
Other
138
0.85
0.5
0
awesome-app
732
2024-02-19T03:45:47.513300
MIT
false
91a1a907420cee7cc73f9bb2e3444568
DEBUG: bool\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\debug.pyi
debug.pyi
Other
12
0.5
0
0
python-kit
976
2024-01-07T01:55:07.645182
GPL-3.0
false
bef743d2755e113e8611711f6e4a8957
from typing import List, Tuple\n\ndef newer(source: str, target: str) -> bool: ...\ndef newer_pairwise(sources: List[str], targets: List[str]) -> List[Tuple[str, str]]: ...\ndef newer_group(sources: List[str], target: str, missing: str = ...) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\dep_util.pyi
dep_util.pyi
Other
252
0.85
0.6
0
vue-tools
21
2024-01-31T08:50:24.023675
Apache-2.0
false
cec5dcf775edfa6ad62e6c89c85592d1
from typing import List\n\ndef mkpath(name: str, mode: int = ..., verbose: int = ..., dry_run: int = ...) -> List[str]: ...\ndef create_tree(base_dir: str, files: List[str], mode: int = ..., verbose: int = ..., dry_run: int = ...) -> None: ...\ndef copy_tree(\n src: str,\n dst: str,\n preserve_mode: int = ...,\n preserve_times: int = ...,\n preserve_symlinks: int = ...,\n update: int = ...,\n verbose: int = ...,\n dry_run: int = ...,\n) -> List[str]: ...\ndef remove_tree(directory: str, verbose: int = ..., dry_run: int = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\dir_util.pyi
dir_util.pyi
Other
555
0.85
0.266667
0
awesome-app
738
2023-12-04T17:18:27.427828
MIT
false
263006a82147f248c9d80f64968b12d9
from distutils.cmd import Command\nfrom typing import Any, Dict, Iterable, Mapping, Optional, Text, Tuple, Type\n\nclass Distribution:\n cmdclass: Dict[str, Type[Command]]\n def __init__(self, attrs: Optional[Mapping[str, Any]] = ...) -> None: ...\n def get_option_dict(self, command: str) -> Dict[str, Tuple[str, Text]]: ...\n def parse_config_files(self, filenames: Optional[Iterable[Text]] = ...) -> None: ...\n def get_command_obj(self, command: str, create: bool = ...) -> Optional[Command]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\dist.pyi
dist.pyi
Other
508
0.85
0.555556
0
vue-tools
980
2024-07-17T20:52:09.404196
GPL-3.0
false
7a55e26eca5483add3f7abb189e6c6a4
from distutils.unixccompiler import UnixCCompiler\n\nclass EMXCCompiler(UnixCCompiler): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\emxccompiler.pyi
emxccompiler.pyi
Other
90
0.65
0.333333
0
node-utils
513
2024-11-12T05:09:33.051929
Apache-2.0
false
34acb07cf58d57e175a3d601349e7a80
class DistutilsError(Exception): ...\nclass DistutilsModuleError(DistutilsError): ...\nclass DistutilsClassError(DistutilsError): ...\nclass DistutilsGetoptError(DistutilsError): ...\nclass DistutilsArgError(DistutilsError): ...\nclass DistutilsFileError(DistutilsError): ...\nclass DistutilsOptionError(DistutilsError): ...\nclass DistutilsSetupError(DistutilsError): ...\nclass DistutilsPlatformError(DistutilsError): ...\nclass DistutilsExecError(DistutilsError): ...\nclass DistutilsInternalError(DistutilsError): ...\nclass DistutilsTemplateError(DistutilsError): ...\nclass DistutilsByteCompileError(DistutilsError): ...\nclass CCompilerError(Exception): ...\nclass PreprocessError(CCompilerError): ...\nclass CompileError(CCompilerError): ...\nclass LibError(CCompilerError): ...\nclass LinkError(CCompilerError): ...\nclass UnknownFileError(CCompilerError): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\errors.pyi
errors.pyi
Other
852
0.85
1
0
vue-tools
353
2024-10-31T12:59:04.427028
GPL-3.0
false
6154dd026e95cba1e698bb40b50bc850
from typing import List, Optional, Tuple\n\nclass Extension:\n def __init__(\n self,\n name: str,\n sources: List[str],\n include_dirs: List[str] = ...,\n define_macros: List[Tuple[str, Optional[str]]] = ...,\n undef_macros: List[str] = ...,\n library_dirs: List[str] = ...,\n libraries: List[str] = ...,\n runtime_library_dirs: List[str] = ...,\n extra_objects: List[str] = ...,\n extra_compile_args: List[str] = ...,\n extra_link_args: List[str] = ...,\n export_symbols: List[str] = ...,\n swig_opts: Optional[str] = ..., # undocumented\n depends: List[str] = ...,\n language: str = ...,\n ) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\extension.pyi
extension.pyi
Other
706
0.95
0.095238
0
awesome-app
47
2025-03-15T02:42:06.181998
GPL-3.0
false
39e05659576bf8b075d2af8ff04d8f3d
from typing import Any, List, Mapping, Optional, Tuple, Union, overload\n\n_Option = Tuple[str, Optional[str], str]\n_GR = Tuple[List[str], OptionDummy]\n\ndef fancy_getopt(\n options: List[_Option], negative_opt: Mapping[_Option, _Option], object: Any, args: Optional[List[str]]\n) -> Union[List[str], _GR]: ...\ndef wrap_text(text: str, width: int) -> List[str]: ...\n\nclass FancyGetopt:\n def __init__(self, option_table: Optional[List[_Option]] = ...) -> None: ...\n # TODO kinda wrong, `getopt(object=object())` is invalid\n @overload\n def getopt(self, args: Optional[List[str]] = ...) -> _GR: ...\n @overload\n def getopt(self, args: Optional[List[str]], object: Any) -> List[str]: ...\n def get_option_order(self) -> List[Tuple[str, str]]: ...\n def generate_help(self, header: Optional[str] = ...) -> List[str]: ...\n\nclass OptionDummy: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\fancy_getopt.pyi
fancy_getopt.pyi
Other
859
0.95
0.428571
0.058824
vue-tools
598
2023-10-11T22:36:25.464494
MIT
false
0feac67fe905821bf6efbb51f4e65130
class FileList: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\filelist.pyi
filelist.pyi
Other
20
0.65
1
0
react-lib
609
2024-06-11T15:01:18.949997
MIT
false
7e231e1d0ec92241b7b535063264e52f
from typing import Optional, Sequence, Tuple\n\ndef copy_file(\n src: str,\n dst: str,\n preserve_mode: bool = ...,\n preserve_times: bool = ...,\n update: bool = ...,\n link: Optional[str] = ...,\n verbose: bool = ...,\n dry_run: bool = ...,\n) -> Tuple[str, str]: ...\ndef move_file(src: str, dst: str, verbose: bool = ..., dry_run: bool = ...) -> str: ...\ndef write_file(filename: str, contents: Sequence[str]) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\file_util.pyi
file_util.pyi
Other
439
0.85
0.214286
0
node-utils
177
2023-12-06T14:38:25.529141
MIT
false
e8e94788d3442d535c6bfb54e6c067cb
from typing import Any, Text\n\nDEBUG: int\nINFO: int\nWARN: int\nERROR: int\nFATAL: int\n\nclass Log:\n def __init__(self, threshold: int = ...) -> None: ...\n def log(self, level: int, msg: Text, *args: Any) -> None: ...\n def debug(self, msg: Text, *args: Any) -> None: ...\n def info(self, msg: Text, *args: Any) -> None: ...\n def warn(self, msg: Text, *args: Any) -> None: ...\n def error(self, msg: Text, *args: Any) -> None: ...\n def fatal(self, msg: Text, *args: Any) -> None: ...\n\ndef log(level: int, msg: Text, *args: Any) -> None: ...\ndef debug(msg: Text, *args: Any) -> None: ...\ndef info(msg: Text, *args: Any) -> None: ...\ndef warn(msg: Text, *args: Any) -> None: ...\ndef error(msg: Text, *args: Any) -> None: ...\ndef fatal(msg: Text, *args: Any) -> None: ...\ndef set_threshold(level: int) -> int: ...\ndef set_verbosity(v: int) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\log.pyi
log.pyi
Other
863
0.85
0.64
0
react-lib
300
2023-08-11T05:03:59.653082
Apache-2.0
false
ecb0834e84d3fe37cbd9c59871719156
from distutils.ccompiler import CCompiler\n\nclass MSVCCompiler(CCompiler): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\msvccompiler.pyi
msvccompiler.pyi
Other
78
0.65
0.333333
0
awesome-app
745
2024-03-31T01:48:41.170557
Apache-2.0
false
580235ee88a5ebdfc9e67864d2a7c5bc
from typing import List, Optional\n\ndef spawn(cmd: List[str], search_path: bool = ..., verbose: bool = ..., dry_run: bool = ...) -> None: ...\ndef find_executable(executable: str, path: Optional[str] = ...) -> Optional[str]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\spawn.pyi
spawn.pyi
Other
227
0.85
0.5
0
awesome-app
180
2023-12-31T11:21:59.621597
GPL-3.0
false
cbb2893490d76fa4430905f7a966dbd1
from distutils.ccompiler import CCompiler\nfrom typing import Mapping, Optional, Union\n\nPREFIX: str\nEXEC_PREFIX: str\n\ndef get_config_var(name: str) -> Union[int, str, None]: ...\ndef get_config_vars(*args: str) -> Mapping[str, Union[int, str]]: ...\ndef get_config_h_filename() -> str: ...\ndef get_makefile_filename() -> str: ...\ndef get_python_inc(plat_specific: bool = ..., prefix: Optional[str] = ...) -> str: ...\ndef get_python_lib(plat_specific: bool = ..., standard_lib: bool = ..., prefix: Optional[str] = ...) -> str: ...\ndef customize_compiler(compiler: CCompiler) -> None: ...\ndef set_python_build() -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\sysconfig.pyi
sysconfig.pyi
Other
620
0.85
0.571429
0
node-utils
925
2024-05-08T01:10:48.415349
BSD-3-Clause
false
6432d17b3d24267613cce0b0c703ccd4
from typing import IO, List, Optional, Tuple, Union\n\nclass TextFile:\n def __init__(\n self,\n filename: Optional[str] = ...,\n file: Optional[IO[str]] = ...,\n *,\n strip_comments: bool = ...,\n lstrip_ws: bool = ...,\n rstrip_ws: bool = ...,\n skip_blanks: bool = ...,\n join_lines: bool = ...,\n collapse_join: bool = ...,\n ) -> None: ...\n def open(self, filename: str) -> None: ...\n def close(self) -> None: ...\n def warn(self, msg: str, line: Union[List[int], Tuple[int, int], int] = ...) -> None: ...\n def readline(self) -> Optional[str]: ...\n def readlines(self) -> List[str]: ...\n def unreadline(self, line: str) -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\text_file.pyi
text_file.pyi
Other
716
0.85
0.380952
0.05
python-kit
440
2024-12-02T20:08:05.054632
GPL-3.0
false
603cdd1839e391a9f4d7675a810ed38d
from distutils.ccompiler import CCompiler\n\nclass UnixCCompiler(CCompiler): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\unixccompiler.pyi
unixccompiler.pyi
Other
79
0.65
0.333333
0
vue-tools
654
2025-04-24T13:46:43.079112
BSD-3-Clause
false
8f017fb674af90b3ef426ca13571ca07
from typing import Any, Callable, List, Mapping, Optional, Tuple\n\ndef get_platform() -> str: ...\ndef convert_path(pathname: str) -> str: ...\ndef change_root(new_root: str, pathname: str) -> str: ...\ndef check_environ() -> None: ...\ndef subst_vars(s: str, local_vars: Mapping[str, str]) -> None: ...\ndef split_quoted(s: str) -> List[str]: ...\ndef execute(\n func: Callable[..., None], args: Tuple[Any, ...], msg: Optional[str] = ..., verbose: bool = ..., dry_run: bool = ...\n) -> None: ...\ndef strtobool(val: str) -> bool: ...\ndef byte_compile(\n py_files: List[str],\n optimize: int = ...,\n force: bool = ...,\n prefix: Optional[str] = ...,\n base_dir: Optional[str] = ...,\n verbose: bool = ...,\n dry_run: bool = ...,\n direct: Optional[bool] = ...,\n) -> None: ...\ndef rfc822_escape(header: str) -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\util.pyi
util.pyi
Other
829
0.85
0.434783
0
vue-tools
785
2023-10-08T08:27:03.884962
Apache-2.0
false
dd8ad279f04ba11e9fe2f5252713084a
from abc import abstractmethod\nfrom typing import Optional, Pattern, Text, Tuple, TypeVar, Union\n\n_T = TypeVar("_T", bound=Version)\n\nclass Version:\n def __repr__(self) -> str: ...\n @abstractmethod\n def __init__(self, vstring: Optional[Text] = ...) -> None: ...\n @abstractmethod\n def parse(self: _T, vstring: Text) -> _T: ...\n @abstractmethod\n def __str__(self) -> str: ...\n @abstractmethod\n def __cmp__(self: _T, other: Union[_T, str]) -> bool: ...\n\nclass StrictVersion(Version):\n version_re: Pattern[str]\n version: Tuple[int, int, int]\n prerelease: Optional[Tuple[Text, int]]\n def __init__(self, vstring: Optional[Text] = ...) -> None: ...\n def parse(self: _T, vstring: Text) -> _T: ...\n def __str__(self) -> str: ...\n def __cmp__(self: _T, other: Union[_T, str]) -> bool: ...\n\nclass LooseVersion(Version):\n component_re: Pattern[str]\n vstring: Text\n version: Tuple[Union[Text, int], ...]\n def __init__(self, vstring: Optional[Text] = ...) -> None: ...\n def parse(self: _T, vstring: Text) -> _T: ...\n def __str__(self) -> str: ...\n def __cmp__(self: _T, other: Union[_T, str]) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\version.pyi
version.pyi
Other
1,160
0.85
0.484848
0
python-kit
526
2025-07-02T20:46:09.067743
MIT
false
97290c59b79644af2e8ab8a123c3db0f
from distutils.cmd import Command\n\nclass bdist_msi(Command):\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n def run(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\command\bdist_msi.pyi
bdist_msi.pyi
Other
182
0.85
0.666667
0
vue-tools
507
2025-02-11T01:00:38.173552
BSD-3-Clause
false
9e7983accd4965cad41f9465b79b8948
from distutils.cmd import Command\n\nclass build_py(Command):\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n def run(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\command\build_py.pyi
build_py.pyi
Other
181
0.85
0.666667
0
awesome-app
206
2023-12-10T18:22:24.819376
BSD-3-Clause
false
1c38e7d1dfd94d22c6e97ee494437d7e
from distutils import log as log\nfrom distutils.ccompiler import CCompiler\nfrom distutils.core import Command as Command\nfrom distutils.errors import DistutilsExecError as DistutilsExecError\nfrom distutils.sysconfig import customize_compiler as customize_compiler\nfrom typing import Dict, List, Optional, Pattern, Sequence, Tuple, Union\n\nLANG_EXT: Dict[str, str]\n\nclass config(Command):\n description: str = ...\n # Tuple is full name, short name, description\n user_options: Sequence[Tuple[str, Optional[str], str]] = ...\n compiler: Optional[Union[str, CCompiler]] = ...\n cc: Optional[str] = ...\n include_dirs: Optional[Sequence[str]] = ...\n libraries: Optional[Sequence[str]] = ...\n library_dirs: Optional[Sequence[str]] = ...\n noisy: int = ...\n dump_source: int = ...\n temp_files: Sequence[str] = ...\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n def run(self) -> None: ...\n def try_cpp(\n self,\n body: Optional[str] = ...,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n lang: str = ...,\n ) -> bool: ...\n def search_cpp(\n self,\n pattern: Union[Pattern[str], str],\n body: Optional[str] = ...,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n lang: str = ...,\n ) -> bool: ...\n def try_compile(\n self, body: str, headers: Optional[Sequence[str]] = ..., include_dirs: Optional[Sequence[str]] = ..., lang: str = ...\n ) -> bool: ...\n def try_link(\n self,\n body: str,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n libraries: Optional[Sequence[str]] = ...,\n library_dirs: Optional[Sequence[str]] = ...,\n lang: str = ...,\n ) -> bool: ...\n def try_run(\n self,\n body: str,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n libraries: Optional[Sequence[str]] = ...,\n library_dirs: Optional[Sequence[str]] = ...,\n lang: str = ...,\n ) -> bool: ...\n def check_func(\n self,\n func: str,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n libraries: Optional[Sequence[str]] = ...,\n library_dirs: Optional[Sequence[str]] = ...,\n decl: int = ...,\n call: int = ...,\n ) -> bool: ...\n def check_lib(\n self,\n library: str,\n library_dirs: Optional[Sequence[str]] = ...,\n headers: Optional[Sequence[str]] = ...,\n include_dirs: Optional[Sequence[str]] = ...,\n other_libraries: List[str] = ...,\n ) -> bool: ...\n def check_header(\n self,\n header: str,\n include_dirs: Optional[Sequence[str]] = ...,\n library_dirs: Optional[Sequence[str]] = ...,\n lang: str = ...,\n ) -> bool: ...\n\ndef dump_file(filename: str, head: Optional[str] = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\command\config.pyi
config.pyi
Other
3,059
0.95
0.149425
0.011905
python-kit
318
2024-03-20T14:31:37.803655
GPL-3.0
false
756e02f310cfcee2bf530fc01e0f5ec1
from distutils.cmd import Command\nfrom typing import Optional, Text\n\nclass install(Command):\n user: bool\n prefix: Optional[Text]\n home: Optional[Text]\n root: Optional[Text]\n install_lib: Optional[Text]\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n def run(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\command\install.pyi
install.pyi
Other
338
0.85
0.333333
0
node-utils
810
2025-02-10T04:45:37.746823
Apache-2.0
false
d9e8cc5158f6ed04288f37223ac6bf13
from distutils.cmd import Command\nfrom typing import ClassVar, List, Optional, Tuple\n\nclass install_egg_info(Command):\n description: ClassVar[str]\n user_options: ClassVar[List[Tuple[str, Optional[str], str]]]\n def initialize_options(self) -> None: ...\n def finalize_options(self) -> None: ...\n def run(self) -> None: ...\n def get_outputs(self) -> List[str]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\command\install_egg_info.pyi
install_egg_info.pyi
Other
380
0.85
0.5
0
vue-tools
477
2024-05-07T21:45:44.250558
BSD-3-Clause
false
b8e3a53331ced6a6f136d790963b6723
from distutils.config import PyPIRCCommand\nfrom typing import ClassVar, List, Optional, Tuple\n\nclass upload(PyPIRCCommand):\n description: ClassVar[str]\n boolean_options: ClassVar[List[str]]\n def run(self) -> None: ...\n def upload_file(self, command, pyversion, filename) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\distutils\command\upload.pyi
upload.pyi
Other
296
0.85
0.375
0
awesome-app
168
2024-07-10T14:31:34.926272
MIT
false
9ff11a0717ca87a1bd6757ce6db3e238
def base64_len(s: bytes) -> int: ...\ndef header_encode(header, charset=..., keep_eols=..., maxlinelen=..., eol=...): ...\ndef encode(s, binary=..., maxlinelen=..., eol=...): ...\n\nbody_encode = encode\nencodestring = encode\n\ndef decode(s, convert_eols=...): ...\n\nbody_decode = decode\ndecodestring = decode\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\base64mime.pyi
base64mime.pyi
Other
303
0.85
0.363636
0
node-utils
920
2024-05-14T17:58:30.519525
BSD-3-Clause
false
e616c544ae3aff1335b9df40c57612ff
def add_charset(charset, header_enc=..., body_enc=..., output_charset=...) -> None: ...\ndef add_alias(alias, canonical) -> None: ...\ndef add_codec(charset, codecname) -> None: ...\n\nQP: int # undocumented\nBASE64: int # undocumented\nSHORTEST: int # undocumented\n\nclass Charset:\n input_charset = ...\n header_encoding = ...\n body_encoding = ...\n output_charset = ...\n input_codec = ...\n output_codec = ...\n def __init__(self, input_charset=...) -> None: ...\n def __eq__(self, other): ...\n def __ne__(self, other): ...\n def get_body_encoding(self): ...\n def convert(self, s): ...\n def to_splittable(self, s): ...\n def from_splittable(self, ustr, to_output: bool = ...): ...\n def get_output_charset(self): ...\n def encoded_header_len(self, s): ...\n def header_encode(self, s, convert: bool = ...): ...\n def body_encode(self, s, convert: bool = ...): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\charset.pyi
charset.pyi
Other
902
0.95
0.576923
0
python-kit
434
2024-05-26T01:12:52.243382
Apache-2.0
false
63453472d91cba45f409e4c34e74a374
def encode_base64(msg) -> None: ...\ndef encode_quopri(msg) -> None: ...\ndef encode_7or8bit(msg) -> None: ...\ndef encode_noop(msg) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\encoders.pyi
encoders.pyi
Other
143
0.85
1
0
awesome-app
188
2024-07-11T21:06:29.242440
BSD-3-Clause
false
8894dc38b5966e429e4cab767bbb1d78
class BufferedSubFile:\n def __init__(self) -> None: ...\n def push_eof_matcher(self, pred) -> None: ...\n def pop_eof_matcher(self): ...\n def close(self) -> None: ...\n def readline(self): ...\n def unreadline(self, line) -> None: ...\n def push(self, data): ...\n def pushlines(self, lines) -> None: ...\n def is_closed(self): ...\n def __iter__(self): ...\n def next(self): ...\n\nclass FeedParser:\n def __init__(self, _factory=...) -> None: ...\n def feed(self, data) -> None: ...\n def close(self): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\feedparser.pyi
feedparser.pyi
Other
536
0.85
0.941176
0
awesome-app
881
2025-02-19T21:38:17.551812
MIT
false
dcbc1965d5127f4f039034b50c57ab78
class Generator:\n def __init__(self, outfp, mangle_from_: bool = ..., maxheaderlen: int = ...) -> None: ...\n def write(self, s) -> None: ...\n def flatten(self, msg, unixfrom: bool = ...) -> None: ...\n def clone(self, fp): ...\n\nclass DecodedGenerator(Generator):\n def __init__(self, outfp, mangle_from_: bool = ..., maxheaderlen: int = ..., fmt=...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\generator.pyi
generator.pyi
Other
377
0.85
0.875
0
python-kit
855
2025-04-04T17:15:00.231040
MIT
false
f95e07ebda2fcc56b36c1868ba956c71
def decode_header(header): ...\ndef make_header(decoded_seq, maxlinelen=..., header_name=..., continuation_ws=...): ...\n\nclass Header:\n def __init__(self, s=..., charset=..., maxlinelen=..., header_name=..., continuation_ws=..., errors=...) -> None: ...\n def __unicode__(self): ...\n def __eq__(self, other): ...\n def __ne__(self, other): ...\n def append(self, s, charset=..., errors=...) -> None: ...\n def encode(self, splitchars=...): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\header.pyi
header.pyi
Other
457
0.85
0.9
0
python-kit
741
2023-12-31T07:58:43.179806
Apache-2.0
false
af7abed5378cf501571a1db48a0e6601
from typing import Any, Generator\n\ndef walk(self) -> Generator[Any, Any, Any]: ...\ndef body_line_iterator(msg, decode: bool = ...) -> Generator[Any, Any, Any]: ...\ndef typed_subpart_iterator(msg, maintype=..., subtype=...) -> Generator[Any, Any, Any]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\iterators.pyi
iterators.pyi
Other
256
0.85
0.6
0
awesome-app
934
2025-07-05T19:23:44.214065
GPL-3.0
false
1d3e5f28ee4a167e96805371cab63395
from typing import Any, Generator\n\nclass Message:\n preamble = ...\n epilogue = ...\n defects = ...\n def __init__(self): ...\n def as_string(self, unixfrom=...): ...\n def is_multipart(self) -> bool: ...\n def set_unixfrom(self, unixfrom) -> None: ...\n def get_unixfrom(self): ...\n def attach(self, payload) -> None: ...\n def get_payload(self, i=..., decode: bool = ...): ...\n def set_payload(self, payload, charset=...) -> None: ...\n def set_charset(self, charset): ...\n def get_charset(self): ...\n def __len__(self): ...\n def __getitem__(self, name): ...\n def __setitem__(self, name, val) -> None: ...\n def __delitem__(self, name) -> None: ...\n def __contains__(self, name): ...\n def has_key(self, name) -> bool: ...\n def keys(self): ...\n def values(self): ...\n def items(self): ...\n def get(self, name, failobj=...): ...\n def get_all(self, name, failobj=...): ...\n def add_header(self, _name, _value, **_params) -> None: ...\n def replace_header(self, _name, _value) -> None: ...\n def get_content_type(self): ...\n def get_content_maintype(self): ...\n def get_content_subtype(self): ...\n def get_default_type(self): ...\n def set_default_type(self, ctype) -> None: ...\n def get_params(self, failobj=..., header=..., unquote: bool = ...): ...\n def get_param(self, param, failobj=..., header=..., unquote: bool = ...): ...\n def set_param(self, param, value, header=..., requote: bool = ..., charset=..., language=...) -> None: ...\n def del_param(self, param, header=..., requote: bool = ...): ...\n def set_type(self, type, header=..., requote: bool = ...): ...\n def get_filename(self, failobj=...): ...\n def get_boundary(self, failobj=...): ...\n def set_boundary(self, boundary) -> None: ...\n def get_content_charset(self, failobj=...): ...\n def get_charsets(self, failobj=...): ...\n def walk(self) -> Generator[Any, Any, Any]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\message.pyi
message.pyi
Other
1,950
0.85
0.888889
0
node-utils
642
2024-07-07T18:06:06.877071
Apache-2.0
false
b95a506408934cead8e8f8675ac9fd33
from email.mime.nonmultipart import MIMENonMultipart\n\nclass MIMEText(MIMENonMultipart):\n def __init__(self, _text, _subtype=..., _charset=...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\MIMEText.pyi
MIMEText.pyi
Other
159
0.85
0.5
0
vue-tools
705
2023-11-20T05:39:56.852449
GPL-3.0
false
adefb748c40add66ba27ab423aca1268
from .feedparser import FeedParser as FeedParser # not in __all__ but listed in documentation\n\nclass Parser:\n def __init__(self, *args, **kws) -> None: ...\n def parse(self, fp, headersonly: bool = ...): ...\n def parsestr(self, text, headersonly: bool = ...): ...\n\nclass HeaderParser(Parser):\n def parse(self, fp, headersonly: bool = ...): ...\n def parsestr(self, text, headersonly: bool = ...): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\parser.pyi
parser.pyi
Other
415
0.95
0.7
0
react-lib
530
2024-11-29T06:26:46.566703
MIT
false
0e9f3e062f4af85c627e9c86d356abeb
def header_quopri_check(c): ...\ndef body_quopri_check(c): ...\ndef header_quopri_len(s): ...\ndef body_quopri_len(str): ...\ndef unquote(s): ...\ndef quote(c): ...\ndef header_encode(header, charset: str = ..., keep_eols: bool = ..., maxlinelen: int = ..., eol=...): ...\ndef encode(body, binary: bool = ..., maxlinelen: int = ..., eol=...): ...\n\nbody_encode = encode\nencodestring = encode\n\ndef decode(encoded, eol=...): ...\n\nbody_decode = decode\ndecodestring = decode\n\ndef header_decode(s): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\quoprimime.pyi
quoprimime.pyi
Other
490
0.85
0.555556
0
awesome-app
363
2024-08-05T14:51:16.552306
BSD-3-Clause
false
c2b3a319d9c4a085128fe82900a44f4d
from email._parseaddr import (\n AddressList as _AddressList,\n mktime_tz as mktime_tz,\n parsedate as _parsedate,\n parsedate_tz as _parsedate_tz,\n)\nfrom quopri import decodestring as _qdecode\nfrom typing import Any, Optional\n\ndef formataddr(pair): ...\ndef getaddresses(fieldvalues): ...\ndef formatdate(timeval: Optional[Any] = ..., localtime: bool = ..., usegmt: bool = ...): ...\ndef make_msgid(idstring: Optional[Any] = ...): ...\ndef parsedate(data): ...\ndef parsedate_tz(data): ...\ndef parseaddr(addr): ...\ndef unquote(str): ...\ndef decode_rfc2231(s): ...\ndef encode_rfc2231(s, charset: Optional[Any] = ..., language: Optional[Any] = ...): ...\ndef decode_params(params): ...\ndef collapse_rfc2231_value(value, errors=..., fallback_charset=...): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\utils.pyi
utils.pyi
Other
760
0.85
0.571429
0
react-lib
821
2023-08-05T15:07:10.817216
BSD-3-Clause
false
2031e3d55c02bc6d26f5b9ad8198ba14
from typing import Any, Optional\n\ndef parsedate_tz(data): ...\ndef parsedate(data): ...\ndef mktime_tz(data): ...\ndef quote(str): ...\n\nclass AddrlistClass:\n specials: Any\n pos: Any\n LWS: Any\n CR: Any\n FWS: Any\n atomends: Any\n phraseends: Any\n field: Any\n commentlist: Any\n def __init__(self, field): ...\n def gotonext(self): ...\n def getaddrlist(self): ...\n def getaddress(self): ...\n def getrouteaddr(self): ...\n def getaddrspec(self): ...\n def getdomain(self): ...\n def getdelimited(self, beginchar, endchars, allowcomments: bool = ...): ...\n def getquote(self): ...\n def getcomment(self): ...\n def getdomainliteral(self): ...\n def getatom(self, atomends: Optional[Any] = ...): ...\n def getphraselist(self): ...\n\nclass AddressList(AddrlistClass):\n addresslist: Any\n def __init__(self, field): ...\n def __len__(self): ...\n def __add__(self, other): ...\n def __iadd__(self, other): ...\n def __sub__(self, other): ...\n def __isub__(self, other): ...\n def __getitem__(self, index): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\_parseaddr.pyi
_parseaddr.pyi
Other
1,072
0.85
0.65
0
react-lib
323
2024-11-01T06:42:42.314711
Apache-2.0
false
8415f6a2447c2f4e6b0f2c212f13930b
from typing import IO, Any, AnyStr\n\ndef message_from_string(s: AnyStr, *args, **kwargs): ...\ndef message_from_bytes(s: str, *args, **kwargs): ...\ndef message_from_file(fp: IO[AnyStr], *args, **kwargs): ...\ndef message_from_binary_file(fp: IO[str], *args, **kwargs): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\__init__.pyi
__init__.pyi
Other
270
0.85
0.666667
0
react-lib
402
2024-02-01T03:19:50.043644
MIT
false
655bce0768f49619ba79dd487973e77a
from email.mime.nonmultipart import MIMENonMultipart\nfrom typing import Callable, Optional, Tuple, Union\n\n_ParamsType = Union[str, None, Tuple[str, Optional[str], str]]\n\nclass MIMEApplication(MIMENonMultipart):\n def __init__(\n self, _data: bytes, _subtype: str = ..., _encoder: Callable[[MIMEApplication], None] = ..., **_params: _ParamsType\n ) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\mime\application.pyi
application.pyi
Other
371
0.85
0.222222
0
python-kit
429
2023-07-30T05:42:50.211742
GPL-3.0
false
8a96867ff46d85ebf0858d82f8745dad
from email.mime.nonmultipart import MIMENonMultipart\n\nclass MIMEAudio(MIMENonMultipart):\n def __init__(self, _audiodata, _subtype=..., _encoder=..., **_params) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\mime\audio.pyi
audio.pyi
Other
176
0.85
0.5
0
node-utils
115
2023-11-08T10:44:19.056881
Apache-2.0
false
2b0148f6d51cbc40e66f000bd91ceb8e
from email import message\n\nclass MIMEBase(message.Message):\n def __init__(self, _maintype, _subtype, **_params) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\mime\base.pyi
base.pyi
Other
128
0.85
0.5
0
python-kit
965
2025-05-08T01:34:47.631127
MIT
false
d46fc959f216559715da073d7f718b9c
from email.mime.nonmultipart import MIMENonMultipart\n\nclass MIMEImage(MIMENonMultipart):\n def __init__(self, _imagedata, _subtype=..., _encoder=..., **_params) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\mime\image.pyi
image.pyi
Other
176
0.85
0.5
0
vue-tools
609
2025-04-25T20:50:30.499338
MIT
false
cba7f680c30f73f048c59480083a90ca
from email.mime.nonmultipart import MIMENonMultipart\n\nclass MIMEMessage(MIMENonMultipart):\n def __init__(self, _msg, _subtype=...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\mime\message.pyi
message.pyi
Other
147
0.85
0.5
0
python-kit
649
2023-12-28T01:43:24.038292
Apache-2.0
false
a0efda2663f9949216ea2ace09852edb
from email.mime.base import MIMEBase\n\nclass MIMEMultipart(MIMEBase):\n def __init__(self, _subtype=..., boundary=..., _subparts=..., **_params) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\mime\multipart.pyi
multipart.pyi
Other
159
0.85
0.5
0
python-kit
968
2025-02-03T08:30:17.433919
GPL-3.0
false
703921286b4357440fbfd518ae21c20d
from email.mime.base import MIMEBase\n\nclass MIMENonMultipart(MIMEBase):\n def attach(self, payload): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\mime\nonmultipart.pyi
nonmultipart.pyi
Other
107
0.85
0.5
0
vue-tools
619
2025-03-03T17:11:38.725491
Apache-2.0
false
fbc79cf5908f24a0664a19883501941f
from email.mime.nonmultipart import MIMENonMultipart\n\nclass MIMEText(MIMENonMultipart):\n def __init__(self, _text, _subtype=..., _charset=...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\email\mime\text.pyi
text.pyi
Other
159
0.85
0.5
0
python-kit
607
2025-04-28T21:14:36.045934
MIT
false
adefb748c40add66ba27ab423aca1268
import codecs\nfrom typing import Text, Tuple\n\nclass IncrementalEncoder(codecs.IncrementalEncoder):\n def encode(self, input: Text, final: bool = ...) -> bytes: ...\n\nclass IncrementalDecoder(codecs.BufferedIncrementalDecoder):\n def _buffer_decode(self, input: bytes, errors: str, final: bool) -> Tuple[Text, int]: ...\n\nclass StreamWriter(codecs.StreamWriter): ...\nclass StreamReader(codecs.StreamReader): ...\n\ndef getregentry() -> codecs.CodecInfo: ...\ndef encode(input: Text, errors: Text = ...) -> bytes: ...\ndef decode(input: bytes, errors: Text = ...) -> Text: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\encodings\utf_8.pyi
utf_8.pyi
Other
573
0.85
0.6
0
awesome-app
437
2024-03-06T16:41:03.363145
GPL-3.0
false
aee7de48ca6697e70b4e7ddbb67587f3
import codecs\nfrom typing import Any\n\ndef search_function(encoding: str) -> codecs.CodecInfo: ...\n\n# Explicitly mark this package as incomplete.\ndef __getattr__(name: str) -> Any: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\encodings\__init__.pyi
__init__.pyi
Other
184
0.95
0.285714
0.2
python-kit
610
2023-09-24T00:56:51.408884
GPL-3.0
false
685d06f21a8a8fafb1d610a6f88b1970
from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, TypeVar\n\n_T = TypeVar("_T", bound=Pool)\n\nclass AsyncResult:\n def get(self, timeout: Optional[float] = ...) -> Any: ...\n def wait(self, timeout: Optional[float] = ...) -> None: ...\n def ready(self) -> bool: ...\n def successful(self) -> bool: ...\n\nclass IMapIterator(Iterator[Any]):\n def __iter__(self) -> Iterator[Any]: ...\n def next(self, timeout: Optional[float] = ...) -> Any: ...\n\nclass IMapUnorderedIterator(IMapIterator): ...\n\nclass Pool(object):\n def __init__(\n self,\n processes: Optional[int] = ...,\n initializer: Optional[Callable[..., None]] = ...,\n initargs: Iterable[Any] = ...,\n maxtasksperchild: Optional[int] = ...,\n ) -> None: ...\n def apply(self, func: Callable[..., Any], args: Iterable[Any] = ..., kwds: Dict[str, Any] = ...) -> Any: ...\n def apply_async(\n self,\n func: Callable[..., Any],\n args: Iterable[Any] = ...,\n kwds: Dict[str, Any] = ...,\n callback: Optional[Callable[..., None]] = ...,\n ) -> AsyncResult: ...\n def map(self, func: Callable[..., Any], iterable: Iterable[Any] = ..., chunksize: Optional[int] = ...) -> List[Any]: ...\n def map_async(\n self,\n func: Callable[..., Any],\n iterable: Iterable[Any] = ...,\n chunksize: Optional[int] = ...,\n callback: Optional[Callable[..., None]] = ...,\n ) -> AsyncResult: ...\n def imap(self, func: Callable[..., Any], iterable: Iterable[Any] = ..., chunksize: Optional[int] = ...) -> IMapIterator: ...\n def imap_unordered(\n self, func: Callable[..., Any], iterable: Iterable[Any] = ..., chunksize: Optional[int] = ...\n ) -> IMapIterator: ...\n def close(self) -> None: ...\n def terminate(self) -> None: ...\n def join(self) -> None: ...\n\nclass ThreadPool(Pool):\n def __init__(\n self, processes: Optional[int] = ..., initializer: Optional[Callable[..., Any]] = ..., initargs: Iterable[Any] = ...\n ) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\multiprocessing\pool.pyi
pool.pyi
Other
2,038
0.85
0.423077
0
python-kit
376
2024-05-20T11:38:33.380312
BSD-3-Clause
false
7af2d62526f4c48d2d14d047befaea83
from typing import Any, Optional\n\ndef current_process(): ...\ndef active_children(): ...\n\nclass Process:\n def __init__(\n self, group: Optional[Any] = ..., target: Optional[Any] = ..., name: Optional[Any] = ..., args=..., kwargs=...\n ): ...\n def run(self): ...\n def start(self): ...\n def terminate(self): ...\n def join(self, timeout: Optional[Any] = ...): ...\n def is_alive(self): ...\n @property\n def name(self): ...\n @name.setter\n def name(self, name): ...\n @property\n def daemon(self): ...\n @daemon.setter\n def daemon(self, daemonic): ...\n @property\n def authkey(self): ...\n @authkey.setter\n def authkey(self, authkey): ...\n @property\n def exitcode(self): ...\n @property\n def ident(self): ...\n pid: Any\n\nclass AuthenticationString(bytes):\n def __reduce__(self): ...\n\nclass _MainProcess(Process):\n def __init__(self): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\multiprocessing\process.pyi
process.pyi
Other
906
0.85
0.567568
0
awesome-app
455
2024-09-19T09:16:37.175902
MIT
false
9581492ece4bcd63bd71672b78b4b107
import threading\nfrom typing import Any, Optional\n\nSUBDEBUG: Any\nSUBWARNING: Any\n\ndef sub_debug(msg, *args): ...\ndef debug(msg, *args): ...\ndef info(msg, *args): ...\ndef sub_warning(msg, *args): ...\ndef get_logger(): ...\ndef log_to_stderr(level: Optional[Any] = ...): ...\ndef get_temp_dir(): ...\ndef register_after_fork(obj, func): ...\n\nclass Finalize:\n def __init__(self, obj, callback, args=..., kwargs: Optional[Any] = ..., exitpriority: Optional[Any] = ...): ...\n def __call__(self, wr: Optional[Any] = ...): ...\n def cancel(self): ...\n def still_active(self): ...\n\ndef is_exiting(): ...\n\nclass ForkAwareThreadLock:\n def __init__(self): ...\n\nclass ForkAwareLocal(threading.local):\n def __init__(self): ...\n def __reduce__(self): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\multiprocessing\util.pyi
util.pyi
Other
758
0.85
0.655172
0
vue-tools
221
2023-07-12T06:35:51.560842
GPL-3.0
false
a61286bd1f06f9abe32d05807e4ea129
from multiprocessing import pool\nfrom multiprocessing.process import Process as Process, active_children as active_children, current_process as current_process\nfrom multiprocessing.util import SUBDEBUG as SUBDEBUG, SUBWARNING as SUBWARNING\nfrom Queue import Queue as _BaseQueue\nfrom typing import Any, Callable, Iterable, Optional, TypeVar\n\nclass ProcessError(Exception): ...\nclass BufferTooShort(ProcessError): ...\nclass TimeoutError(ProcessError): ...\nclass AuthenticationError(ProcessError): ...\n\n_T = TypeVar("_T")\n\nclass Queue(_BaseQueue[_T]):\n def __init__(self, maxsize: int = ...) -> None: ...\n def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...\n def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...\n def qsize(self) -> int: ...\n def empty(self) -> bool: ...\n def full(self) -> bool: ...\n def put_nowait(self, item: _T) -> None: ...\n def get_nowait(self) -> _T: ...\n def close(self) -> None: ...\n def join_thread(self) -> None: ...\n def cancel_join_thread(self) -> None: ...\n\ndef Manager(): ...\ndef Pipe(duplex: bool = ...): ...\ndef cpu_count() -> int: ...\ndef freeze_support(): ...\ndef get_logger(): ...\ndef log_to_stderr(level: Optional[Any] = ...): ...\ndef allow_connection_pickling(): ...\ndef Lock(): ...\ndef RLock(): ...\ndef Condition(lock: Optional[Any] = ...): ...\ndef Semaphore(value: int = ...): ...\ndef BoundedSemaphore(value: int = ...): ...\ndef Event(): ...\ndef JoinableQueue(maxsize: int = ...): ...\ndef RawValue(typecode_or_type, *args): ...\ndef RawArray(typecode_or_type, size_or_initializer): ...\ndef Value(typecode_or_type, *args, **kwds): ...\ndef Array(typecode_or_type, size_or_initializer, **kwds): ...\ndef Pool(\n processes: Optional[int] = ...,\n initializer: Optional[Callable[..., Any]] = ...,\n initargs: Iterable[Any] = ...,\n maxtasksperchild: Optional[int] = ...,\n) -> pool.Pool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\multiprocessing\__init__.pyi
__init__.pyi
Other
1,921
0.85
0.7
0
awesome-app
631
2024-02-16T03:10:58.561315
Apache-2.0
false
b9c49a1327d8901cd8a6f1d899c2c1b4
from Queue import Queue\nfrom typing import Any, List, Optional, Tuple, Type\n\nfamilies: List[None]\n\nclass Connection(object):\n _in: Any\n _out: Any\n recv: Any\n recv_bytes: Any\n send: Any\n send_bytes: Any\n def __init__(self, _in, _out) -> None: ...\n def close(self) -> None: ...\n def poll(self, timeout=...) -> Any: ...\n\nclass Listener(object):\n _backlog_queue: Optional[Queue[Any]]\n address: Any\n def __init__(self, address=..., family=..., backlog=...) -> None: ...\n def accept(self) -> Connection: ...\n def close(self) -> None: ...\n\ndef Client(address) -> Connection: ...\ndef Pipe(duplex=...) -> Tuple[Connection, Connection]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\multiprocessing\dummy\connection.pyi
connection.pyi
Other
673
0.85
0.4
0
python-kit
48
2024-04-15T23:28:55.292588
BSD-3-Clause
false
768183db20ed86d6996c18f7980ea43b
import array\nimport itertools\nimport sys\nimport threading\nimport weakref\nfrom multiprocessing import TimeoutError, cpu_count\nfrom multiprocessing.dummy.connection import Pipe\nfrom Queue import Queue\nfrom threading import BoundedSemaphore, Event, Lock, RLock, Semaphore\nfrom typing import Any, List, Optional, Type\n\nclass DummyProcess(threading.Thread):\n _children: weakref.WeakKeyDictionary[Any, Any]\n _parent: threading.Thread\n _pid: None\n _start_called: bool\n def __init__(self, group=..., target=..., name=..., args=..., kwargs=...) -> None: ...\n @property\n def exitcode(self) -> Optional[int]: ...\n\nProcess = DummyProcess\n\n# This should be threading._Condition but threading.pyi exports it as Condition\nclass Condition(threading.Condition):\n notify_all: Any\n\nclass Namespace(object):\n def __init__(self, **kwds) -> None: ...\n\nclass Value(object):\n _typecode: Any\n _value: Any\n value: Any\n def __init__(self, typecode, value, lock=...) -> None: ...\n def _get(self) -> Any: ...\n def _set(self, value) -> None: ...\n\nJoinableQueue = Queue\n\ndef Array(typecode, sequence, lock=...) -> array.array[Any]: ...\ndef Manager() -> Any: ...\ndef Pool(processes=..., initializer=..., initargs=...) -> Any: ...\ndef active_children() -> List[Any]: ...\ndef current_process() -> threading.Thread: ...\ndef freeze_support() -> None: ...\ndef shutdown() -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\multiprocessing\dummy\__init__.pyi
__init__.pyi
Other
1,392
0.95
0.369565
0.025641
vue-tools
236
2025-06-08T11:31:08.660073
GPL-3.0
false
46940d232c6f79acb3f2cd5d07e37158
import os\nimport sys\nfrom _typeshed import AnyPath, BytesPath, StrPath\nfrom genericpath import exists as exists\nfrom typing import Any, AnyStr, Callable, List, Optional, Sequence, Text, Tuple, TypeVar, overload\n\n_T = TypeVar("_T")\n\n# ----- os.path variables -----\nsupports_unicode_filenames: bool\n# aliases (also in os)\ncurdir: str\npardir: str\nsep: str\nif sys.platform == "win32":\n altsep: str\nelse:\n altsep: Optional[str]\nextsep: str\npathsep: str\ndefpath: str\ndevnull: str\n\n# ----- os.path function stubs -----\ndef abspath(path: AnyStr) -> AnyStr: ...\ndef basename(p: AnyStr) -> AnyStr: ...\ndef dirname(p: AnyStr) -> AnyStr: ...\ndef expanduser(path: AnyStr) -> AnyStr: ...\ndef expandvars(path: AnyStr) -> AnyStr: ...\ndef normcase(s: AnyStr) -> AnyStr: ...\ndef normpath(path: AnyStr) -> AnyStr: ...\n\nif sys.platform == "win32":\n def realpath(path: AnyStr) -> AnyStr: ...\n\nelse:\n def realpath(filename: AnyStr) -> AnyStr: ...\n\n# NOTE: Empty lists results in '' (str) regardless of contained type.\n# Also, in Python 2 mixed sequences of Text and bytes results in either Text or bytes\n# So, fall back to Any\ndef commonprefix(m: Sequence[AnyPath]) -> Any: ...\ndef lexists(path: AnyPath) -> bool: ...\n\n# These return float if os.stat_float_times() == True,\n# but int is a subclass of float.\ndef getatime(filename: AnyPath) -> float: ...\ndef getmtime(filename: AnyPath) -> float: ...\ndef getctime(filename: AnyPath) -> float: ...\ndef getsize(filename: AnyPath) -> int: ...\ndef isabs(s: AnyPath) -> bool: ...\ndef isfile(path: AnyPath) -> bool: ...\ndef isdir(s: AnyPath) -> bool: ...\ndef islink(path: AnyPath) -> bool: ...\ndef ismount(path: AnyPath) -> bool: ...\n\n# Make sure signatures are disjunct, and allow combinations of bytes and unicode.\n# (Since Python 2 allows that, too)\n# Note that e.g. os.path.join("a", "b", "c", "d", u"e") will still result in\n# a type error.\n@overload\ndef join(__p1: bytes, *p: bytes) -> bytes: ...\n@overload\ndef join(__p1: bytes, __p2: bytes, __p3: bytes, __p4: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: bytes, __p2: bytes, __p3: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: bytes, __p2: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: Text, *p: AnyPath) -> Text: ...\n@overload\ndef relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...\n@overload\ndef relpath(path: StrPath, start: Optional[StrPath] = ...) -> Text: ...\ndef samefile(f1: AnyPath, f2: AnyPath) -> bool: ...\ndef sameopenfile(fp1: int, fp2: int) -> bool: ...\ndef samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...\ndef split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\ndef splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\ndef splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n\nif sys.platform == "win32":\n def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated\n\ndef walk(path: AnyStr, visit: Callable[[_T, AnyStr, List[AnyStr]], Any], arg: _T) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\os\path.pyi
path.pyi
Other
2,937
0.95
0.470588
0.16
node-utils
663
2025-03-27T09:05:50.022495
MIT
false
85d6a21f1a4f58f9e3ffbeb89cf82345
import sys\nfrom _typeshed import AnyPath, FileDescriptorLike\nfrom builtins import OSError\nfrom io import TextIOWrapper as _TextIOWrapper\nfrom posix import listdir as listdir, stat_result as stat_result # TODO: use this, see https://github.com/python/mypy/issues/3078\nfrom typing import (\n IO,\n Any,\n AnyStr,\n Callable,\n Dict,\n Generic,\n Iterator,\n List,\n Mapping,\n MutableMapping,\n NamedTuple,\n NoReturn,\n Optional,\n Sequence,\n Set,\n Text,\n Tuple,\n TypeVar,\n Union,\n overload,\n)\n\nfrom . import path as path\n\n# We need to use something from path, or flake8 and pytype get unhappy\n_supports_unicode_filenames = path.supports_unicode_filenames\n\n_T = TypeVar("_T")\n\n# ----- os variables -----\n\nerror = OSError\n\nif sys.version_info >= (3, 2):\n supports_bytes_environ: bool\n\nif sys.version_info >= (3, 3):\n supports_dir_fd: Set[Callable[..., Any]]\n supports_fd: Set[Callable[..., Any]]\n supports_effective_ids: Set[Callable[..., Any]]\n supports_follow_symlinks: Set[Callable[..., Any]]\n\nSEEK_SET: int\nSEEK_CUR: int\nSEEK_END: int\n\nO_RDONLY: int\nO_WRONLY: int\nO_RDWR: int\nO_APPEND: int\nO_CREAT: int\nO_EXCL: int\nO_TRUNC: int\n# We don't use sys.platform for O_* flags to denote platform-dependent APIs because some codes,\n# including tests for mypy, use a more finer way than sys.platform before using these APIs\n# See https://github.com/python/typeshed/pull/2286 for discussions\nO_DSYNC: int # Unix only\nO_RSYNC: int # Unix only\nO_SYNC: int # Unix only\nO_NDELAY: int # Unix only\nO_NONBLOCK: int # Unix only\nO_NOCTTY: int # Unix only\nO_SHLOCK: int # Unix only\nO_EXLOCK: int # Unix only\nO_BINARY: int # Windows only\nO_NOINHERIT: int # Windows only\nO_SHORT_LIVED: int # Windows only\nO_TEMPORARY: int # Windows only\nO_RANDOM: int # Windows only\nO_SEQUENTIAL: int # Windows only\nO_TEXT: int # Windows only\nO_ASYNC: int # Gnu extension if in C library\nO_DIRECT: int # Gnu extension if in C library\nO_DIRECTORY: int # Gnu extension if in C library\nO_NOFOLLOW: int # Gnu extension if in C library\nO_NOATIME: int # Gnu extension if in C library\nO_LARGEFILE: int # Gnu extension if in C library\n\ncurdir: str\npardir: str\nsep: str\nif sys.platform == "win32":\n altsep: str\nelse:\n altsep: Optional[str]\nextsep: str\npathsep: str\ndefpath: str\nlinesep: str\ndevnull: str\nname: str\n\nF_OK: int\nR_OK: int\nW_OK: int\nX_OK: int\n\nclass _Environ(MutableMapping[AnyStr, AnyStr], Generic[AnyStr]):\n def copy(self) -> Dict[AnyStr, AnyStr]: ...\n def __delitem__(self, key: AnyStr) -> None: ...\n def __getitem__(self, key: AnyStr) -> AnyStr: ...\n def __setitem__(self, key: AnyStr, value: AnyStr) -> None: ...\n def __iter__(self) -> Iterator[AnyStr]: ...\n def __len__(self) -> int: ...\n\nenviron: _Environ[str]\nif sys.version_info >= (3, 2):\n environb: _Environ[bytes]\n\nif sys.platform != "win32":\n # Unix only\n confstr_names: Dict[str, int]\n pathconf_names: Dict[str, int]\n sysconf_names: Dict[str, int]\n\n EX_OK: int\n EX_USAGE: int\n EX_DATAERR: int\n EX_NOINPUT: int\n EX_NOUSER: int\n EX_NOHOST: int\n EX_UNAVAILABLE: int\n EX_SOFTWARE: int\n EX_OSERR: int\n EX_OSFILE: int\n EX_CANTCREAT: int\n EX_IOERR: int\n EX_TEMPFAIL: int\n EX_PROTOCOL: int\n EX_NOPERM: int\n EX_CONFIG: int\n EX_NOTFOUND: int\n\nP_NOWAIT: int\nP_NOWAITO: int\nP_WAIT: int\nif sys.platform == "win32":\n P_DETACH: int\n P_OVERLAY: int\n\n# wait()/waitpid() options\nif sys.platform != "win32":\n WNOHANG: int # Unix only\n WCONTINUED: int # some Unix systems\n WUNTRACED: int # Unix only\n\nTMP_MAX: int # Undocumented, but used by tempfile\n\n# ----- os classes (structures) -----\nif sys.version_info >= (3, 6):\n from builtins import _PathLike\n\n PathLike = _PathLike # See comment in builtins\n\nclass _StatVFS(NamedTuple):\n f_bsize: int\n f_frsize: int\n f_blocks: int\n f_bfree: int\n f_bavail: int\n f_files: int\n f_ffree: int\n f_favail: int\n f_flag: int\n f_namemax: int\n\ndef getlogin() -> str: ...\ndef getpid() -> int: ...\ndef getppid() -> int: ...\ndef strerror(code: int) -> str: ...\ndef umask(mask: int) -> int: ...\n\nif sys.platform != "win32":\n def ctermid() -> str: ...\n def getegid() -> int: ...\n def geteuid() -> int: ...\n def getgid() -> int: ...\n def getgroups() -> List[int]: ... # Unix only, behaves differently on Mac\n def initgroups(username: str, gid: int) -> None: ...\n def getpgid(pid: int) -> int: ...\n def getpgrp() -> int: ...\n def getresuid() -> Tuple[int, int, int]: ...\n def getresgid() -> Tuple[int, int, int]: ...\n def getuid() -> int: ...\n def setegid(egid: int) -> None: ...\n def seteuid(euid: int) -> None: ...\n def setgid(gid: int) -> None: ...\n def setgroups(groups: Sequence[int]) -> None: ...\n def setpgrp() -> None: ...\n def setpgid(pid: int, pgrp: int) -> None: ...\n def setregid(rgid: int, egid: int) -> None: ...\n def setresgid(rgid: int, egid: int, sgid: int) -> None: ...\n def setresuid(ruid: int, euid: int, suid: int) -> None: ...\n def setreuid(ruid: int, euid: int) -> None: ...\n def getsid(pid: int) -> int: ...\n def setsid() -> None: ...\n def setuid(uid: int) -> None: ...\n def uname() -> Tuple[str, str, str, str, str]: ...\n\n@overload\ndef getenv(key: Text) -> Optional[str]: ...\n@overload\ndef getenv(key: Text, default: _T) -> Union[str, _T]: ...\ndef putenv(key: Union[bytes, Text], value: Union[bytes, Text]) -> None: ...\ndef unsetenv(key: Union[bytes, Text]) -> None: ...\ndef fdopen(fd: int, *args, **kwargs) -> IO[Any]: ...\ndef close(fd: int) -> None: ...\ndef closerange(fd_low: int, fd_high: int) -> None: ...\ndef dup(fd: int) -> int: ...\ndef dup2(fd: int, fd2: int) -> None: ...\ndef fstat(fd: int) -> Any: ...\ndef fsync(fd: FileDescriptorLike) -> None: ...\ndef lseek(fd: int, pos: int, how: int) -> int: ...\ndef open(file: AnyPath, flags: int, mode: int = ...) -> int: ...\ndef pipe() -> Tuple[int, int]: ...\ndef read(fd: int, n: int) -> bytes: ...\ndef write(fd: int, string: Union[bytes, buffer]) -> int: ...\ndef access(path: AnyPath, mode: int) -> bool: ...\ndef chdir(path: AnyPath) -> None: ...\ndef fchdir(fd: FileDescriptorLike) -> None: ...\ndef getcwd() -> str: ...\ndef getcwdu() -> unicode: ...\ndef chmod(path: AnyPath, mode: int) -> None: ...\ndef link(src: AnyPath, link_name: AnyPath) -> None: ...\ndef lstat(path: AnyPath) -> Any: ...\ndef mknod(filename: AnyPath, mode: int = ..., device: int = ...) -> None: ...\ndef major(device: int) -> int: ...\ndef minor(device: int) -> int: ...\ndef makedev(major: int, minor: int) -> int: ...\ndef mkdir(path: AnyPath, mode: int = ...) -> None: ...\ndef makedirs(path: AnyPath, mode: int = ...) -> None: ...\ndef readlink(path: AnyStr) -> AnyStr: ...\ndef remove(path: AnyPath) -> None: ...\ndef removedirs(path: AnyPath) -> None: ...\ndef rename(src: AnyPath, dst: AnyPath) -> None: ...\ndef renames(old: AnyPath, new: AnyPath) -> None: ...\ndef rmdir(path: AnyPath) -> None: ...\ndef stat(path: AnyPath) -> Any: ...\n@overload\ndef stat_float_times() -> bool: ...\n@overload\ndef stat_float_times(newvalue: bool) -> None: ...\ndef symlink(source: AnyPath, link_name: AnyPath) -> None: ...\ndef unlink(path: AnyPath) -> None: ...\n\n# TODO: add ns, dir_fd, follow_symlinks argument\nif sys.version_info >= (3, 0):\n def utime(path: AnyPath, times: Optional[Tuple[float, float]] = ...) -> None: ...\n\nelse:\n def utime(path: AnyPath, times: Optional[Tuple[float, float]]) -> None: ...\n\nif sys.platform != "win32":\n # Unix only\n def fchmod(fd: int, mode: int) -> None: ...\n def fchown(fd: int, uid: int, gid: int) -> None: ...\n if sys.platform != "darwin":\n def fdatasync(fd: FileDescriptorLike) -> None: ... # Unix only, not Mac\n def fpathconf(fd: int, name: Union[str, int]) -> int: ...\n def fstatvfs(fd: int) -> _StatVFS: ...\n def ftruncate(fd: int, length: int) -> None: ...\n def isatty(fd: int) -> bool: ...\n def openpty() -> Tuple[int, int]: ... # some flavors of Unix\n def tcgetpgrp(fd: int) -> int: ...\n def tcsetpgrp(fd: int, pg: int) -> None: ...\n def ttyname(fd: int) -> str: ...\n def chflags(path: AnyPath, flags: int) -> None: ...\n def chroot(path: AnyPath) -> None: ...\n def chown(path: AnyPath, uid: int, gid: int) -> None: ...\n def lchflags(path: AnyPath, flags: int) -> None: ...\n def lchmod(path: AnyPath, mode: int) -> None: ...\n def lchown(path: AnyPath, uid: int, gid: int) -> None: ...\n def mkfifo(path: AnyPath, mode: int = ...) -> None: ...\n def pathconf(path: AnyPath, name: Union[str, int]) -> int: ...\n def statvfs(path: AnyPath) -> _StatVFS: ...\n\nif sys.version_info >= (3, 6):\n def walk(\n top: Union[AnyStr, PathLike[AnyStr]],\n topdown: bool = ...,\n onerror: Optional[Callable[[OSError], Any]] = ...,\n followlinks: bool = ...,\n ) -> Iterator[Tuple[AnyStr, List[AnyStr], List[AnyStr]]]: ...\n\nelse:\n def walk(\n top: AnyStr, topdown: bool = ..., onerror: Optional[Callable[[OSError], Any]] = ..., followlinks: bool = ...\n ) -> Iterator[Tuple[AnyStr, List[AnyStr], List[AnyStr]]]: ...\n\ndef abort() -> NoReturn: ...\n\n# These are defined as execl(file, *args) but the first *arg is mandatory.\ndef execl(file: AnyPath, __arg0: Union[bytes, Text], *args: Union[bytes, Text]) -> NoReturn: ...\ndef execlp(file: AnyPath, __arg0: Union[bytes, Text], *args: Union[bytes, Text]) -> NoReturn: ...\n\n# These are: execle(file, *args, env) but env is pulled from the last element of the args.\ndef execle(file: AnyPath, __arg0: Union[bytes, Text], *args: Any) -> NoReturn: ...\ndef execlpe(file: AnyPath, __arg0: Union[bytes, Text], *args: Any) -> NoReturn: ...\n\n# The docs say `args: tuple or list of strings`\n# The implementation enforces tuple or list so we can't use Sequence.\n_ExecVArgs = Union[Tuple[Union[bytes, Text], ...], List[bytes], List[Text], List[Union[bytes, Text]]]\n\ndef execv(path: AnyPath, args: _ExecVArgs) -> NoReturn: ...\ndef execve(path: AnyPath, args: _ExecVArgs, env: Mapping[str, str]) -> NoReturn: ...\ndef execvp(file: AnyPath, args: _ExecVArgs) -> NoReturn: ...\ndef execvpe(file: AnyPath, args: _ExecVArgs, env: Mapping[str, str]) -> NoReturn: ...\ndef _exit(n: int) -> NoReturn: ...\ndef kill(pid: int, sig: int) -> None: ...\n\nif sys.platform != "win32":\n # Unix only\n def fork() -> int: ...\n def forkpty() -> Tuple[int, int]: ... # some flavors of Unix\n def killpg(__pgid: int, __signal: int) -> None: ...\n def nice(increment: int) -> int: ...\n def plock(op: int) -> None: ... # ???op is int?\n\nif sys.version_info >= (3, 0):\n class popen(_TextIOWrapper):\n # TODO 'b' modes or bytes command not accepted?\n def __init__(self, command: str, mode: str = ..., bufsize: int = ...) -> None: ...\n def close(self) -> Any: ... # may return int\n\nelse:\n def popen(command: str, *args, **kwargs) -> IO[Any]: ...\n def popen2(cmd: str, *args, **kwargs) -> Tuple[IO[Any], IO[Any]]: ...\n def popen3(cmd: str, *args, **kwargs) -> Tuple[IO[Any], IO[Any], IO[Any]]: ...\n def popen4(cmd: str, *args, **kwargs) -> Tuple[IO[Any], IO[Any]]: ...\n\ndef spawnl(mode: int, path: AnyPath, arg0: Union[bytes, Text], *args: Union[bytes, Text]) -> int: ...\ndef spawnle(mode: int, path: AnyPath, arg0: Union[bytes, Text], *args: Any) -> int: ... # Imprecise sig\ndef spawnv(mode: int, path: AnyPath, args: List[Union[bytes, Text]]) -> int: ...\ndef spawnve(mode: int, path: AnyPath, args: List[Union[bytes, Text]], env: Mapping[str, str]) -> int: ...\ndef system(command: AnyPath) -> int: ...\ndef times() -> Tuple[float, float, float, float, float]: ...\ndef waitpid(pid: int, options: int) -> Tuple[int, int]: ...\ndef urandom(n: int) -> bytes: ...\n\nif sys.platform == "win32":\n def startfile(path: AnyPath, operation: Optional[str] = ...) -> None: ...\n\nelse:\n # Unix only\n def spawnlp(mode: int, file: AnyPath, arg0: Union[bytes, Text], *args: Union[bytes, Text]) -> int: ...\n def spawnlpe(mode: int, file: AnyPath, arg0: Union[bytes, Text], *args: Any) -> int: ... # Imprecise signature\n def spawnvp(mode: int, file: AnyPath, args: List[Union[bytes, Text]]) -> int: ...\n def spawnvpe(mode: int, file: AnyPath, args: List[Union[bytes, Text]], env: Mapping[str, str]) -> int: ...\n def wait() -> Tuple[int, int]: ...\n def wait3(options: int) -> Tuple[int, int, Any]: ...\n def wait4(pid: int, options: int) -> Tuple[int, int, Any]: ...\n def WCOREDUMP(status: int) -> bool: ...\n def WIFCONTINUED(status: int) -> bool: ...\n def WIFSTOPPED(status: int) -> bool: ...\n def WIFSIGNALED(status: int) -> bool: ...\n def WIFEXITED(status: int) -> bool: ...\n def WEXITSTATUS(status: int) -> int: ...\n def WSTOPSIG(status: int) -> int: ...\n def WTERMSIG(status: int) -> int: ...\n def confstr(name: Union[str, int]) -> Optional[str]: ...\n def getloadavg() -> Tuple[float, float, float]: ...\n def sysconf(name: Union[str, int]) -> int: ...\n\nif sys.version_info >= (3, 0):\n def sched_getaffinity(id: int) -> Set[int]: ...\n\nif sys.version_info >= (3, 3):\n class waitresult:\n si_pid: int\n def waitid(idtype: int, id: int, options: int) -> waitresult: ...\n\nif sys.version_info < (3, 0):\n def tmpfile() -> IO[Any]: ...\n def tmpnam() -> str: ...\n def tempnam(dir: str = ..., prefix: str = ...) -> str: ...\n\nP_ALL: int\nWEXITED: int\nWNOWAIT: int\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\os\__init__.pyi
__init__.pyi
Other
13,380
0.95
0.485714
0.049853
python-kit
26
2023-10-21T03:08:16.673818
GPL-3.0
false
4c36bc6cd13a3ad9a09d09b75a2ecdf8