content
stringlengths
1
103k
path
stringlengths
8
216
filename
stringlengths
2
179
language
stringclasses
15 values
size_bytes
int64
2
189k
quality_score
float64
0.5
0.95
complexity
float64
0
1
documentation_ratio
float64
0
1
repository
stringclasses
5 values
stars
int64
0
1k
created_date
stringdate
2023-07-10 19:21:08
2025-07-09 19:11:45
license
stringclasses
4 values
is_test
bool
2 classes
file_hash
stringlengths
32
32
import sys\nfrom types import TracebackType\nfrom typing import IO, Any, List, NamedTuple, Optional, Text, Tuple, Type, Union, overload\nfrom typing_extensions import Literal\n\nclass Error(Exception): ...\n\nclass _aifc_params(NamedTuple):\n nchannels: int\n sampwidth: int\n framerate: int\n nframes: int\n comptype: bytes\n compname: bytes\n\n_File = Union[Text, IO[bytes]]\n_Marker = Tuple[int, int, bytes]\n\nclass Aifc_read:\n def __init__(self, f: _File) -> None: ...\n if sys.version_info >= (3, 4):\n def __enter__(self) -> Aifc_read: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n def initfp(self, file: IO[bytes]) -> None: ...\n def getfp(self) -> IO[bytes]: ...\n def rewind(self) -> None: ...\n def close(self) -> None: ...\n def tell(self) -> int: ...\n def getnchannels(self) -> int: ...\n def getnframes(self) -> int: ...\n def getsampwidth(self) -> int: ...\n def getframerate(self) -> int: ...\n def getcomptype(self) -> bytes: ...\n def getcompname(self) -> bytes: ...\n def getparams(self) -> _aifc_params: ...\n def getmarkers(self) -> Optional[List[_Marker]]: ...\n def getmark(self, id: int) -> _Marker: ...\n def setpos(self, pos: int) -> None: ...\n def readframes(self, nframes: int) -> bytes: ...\n\nclass Aifc_write:\n def __init__(self, f: _File) -> None: ...\n def __del__(self) -> None: ...\n if sys.version_info >= (3, 4):\n def __enter__(self) -> Aifc_write: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n def initfp(self, file: IO[bytes]) -> None: ...\n def aiff(self) -> None: ...\n def aifc(self) -> None: ...\n def setnchannels(self, nchannels: int) -> None: ...\n def getnchannels(self) -> int: ...\n def setsampwidth(self, sampwidth: int) -> None: ...\n def getsampwidth(self) -> int: ...\n def setframerate(self, framerate: int) -> None: ...\n def getframerate(self) -> int: ...\n def setnframes(self, nframes: int) -> None: ...\n def getnframes(self) -> int: ...\n def setcomptype(self, comptype: bytes, compname: bytes) -> None: ...\n def getcomptype(self) -> bytes: ...\n def getcompname(self) -> bytes: ...\n def setparams(self, params: Tuple[int, int, int, int, bytes, bytes]) -> None: ...\n def getparams(self) -> _aifc_params: ...\n def setmark(self, id: int, pos: int, name: bytes) -> None: ...\n def getmark(self, id: int) -> _Marker: ...\n def getmarkers(self) -> Optional[List[_Marker]]: ...\n def tell(self) -> int: ...\n def writeframesraw(self, data: Any) -> None: ... # Actual type for data is Buffer Protocol\n def writeframes(self, data: Any) -> None: ...\n def close(self) -> None: ...\n\n@overload\ndef open(f: _File, mode: Literal["r", "rb"]) -> Aifc_read: ...\n@overload\ndef open(f: _File, mode: Literal["w", "wb"]) -> Aifc_write: ...\n@overload\ndef open(f: _File, mode: Optional[str] = ...) -> Any: ...\n\nif sys.version_info < (3, 9):\n @overload\n def openfp(f: _File, mode: Literal["r", "rb"]) -> Aifc_read: ...\n @overload\n def openfp(f: _File, mode: Literal["w", "wb"]) -> Aifc_write: ...\n @overload\n def openfp(f: _File, mode: Optional[str] = ...) -> Any: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\aifc.pyi
aifc.pyi
Other
3,393
0.95
0.681818
0
vue-tools
212
2025-06-17T02:54:52.545404
GPL-3.0
false
be377bee94801244037735657528f465
import sys\n\nif sys.version_info >= (3, 0):\n def geohash(latitude: float, longitude: float, datedow: bytes) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\antigravity.pyi
antigravity.pyi
Other
123
0.85
0.5
0
react-lib
669
2025-04-15T00:21:07.073797
GPL-3.0
false
06b98ebb09eeb78806854c67c2f2ed2f
import sys\nfrom typing import (\n IO,\n Any,\n Callable,\n Dict,\n Generator,\n Iterable,\n List,\n NoReturn,\n Optional,\n Pattern,\n Protocol,\n Sequence,\n Text,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\n\n_T = TypeVar("_T")\n_ActionT = TypeVar("_ActionT", bound=Action)\n_N = TypeVar("_N")\n\nif sys.version_info >= (3,):\n _Text = str\nelse:\n _Text = Union[str, unicode]\n\nONE_OR_MORE: str\nOPTIONAL: str\nPARSER: str\nREMAINDER: str\nSUPPRESS: str\nZERO_OR_MORE: str\n_UNRECOGNIZED_ARGS_ATTR: str # undocumented\n\nclass ArgumentError(Exception):\n argument_name: Optional[str]\n message: str\n def __init__(self, argument: Optional[Action], message: str) -> None: ...\n\n# undocumented\nclass _AttributeHolder:\n def _get_kwargs(self) -> List[Tuple[str, Any]]: ...\n def _get_args(self) -> List[Any]: ...\n\n# undocumented\nclass _ActionsContainer:\n description: Optional[_Text]\n prefix_chars: _Text\n argument_default: Any\n conflict_handler: _Text\n\n _registries: Dict[_Text, Dict[Any, Any]]\n _actions: List[Action]\n _option_string_actions: Dict[_Text, Action]\n _action_groups: List[_ArgumentGroup]\n _mutually_exclusive_groups: List[_MutuallyExclusiveGroup]\n _defaults: Dict[str, Any]\n _negative_number_matcher: Pattern[str]\n _has_negative_number_optionals: List[bool]\n def __init__(\n self, description: Optional[Text], prefix_chars: Text, argument_default: Any, conflict_handler: Text\n ) -> None: ...\n def register(self, registry_name: Text, value: Any, object: Any) -> None: ...\n def _registry_get(self, registry_name: Text, value: Any, default: Any = ...) -> Any: ...\n def set_defaults(self, **kwargs: Any) -> None: ...\n def get_default(self, dest: Text) -> Any: ...\n def add_argument(\n self,\n *name_or_flags: Text,\n action: Union[Text, Type[Action]] = ...,\n nargs: Union[int, Text] = ...,\n const: Any = ...,\n default: Any = ...,\n type: Union[Callable[[Text], _T], Callable[[str], _T], FileType] = ...,\n choices: Iterable[_T] = ...,\n required: bool = ...,\n help: Optional[Text] = ...,\n metavar: Optional[Union[Text, Tuple[Text, ...]]] = ...,\n dest: Optional[Text] = ...,\n version: Text = ...,\n **kwargs: Any,\n ) -> Action: ...\n def add_argument_group(self, *args: Any, **kwargs: Any) -> _ArgumentGroup: ...\n def add_mutually_exclusive_group(self, **kwargs: Any) -> _MutuallyExclusiveGroup: ...\n def _add_action(self, action: _ActionT) -> _ActionT: ...\n def _remove_action(self, action: Action) -> None: ...\n def _add_container_actions(self, container: _ActionsContainer) -> None: ...\n def _get_positional_kwargs(self, dest: Text, **kwargs: Any) -> Dict[str, Any]: ...\n def _get_optional_kwargs(self, *args: Any, **kwargs: Any) -> Dict[str, Any]: ...\n def _pop_action_class(self, kwargs: Any, default: Optional[Type[Action]] = ...) -> Type[Action]: ...\n def _get_handler(self) -> Callable[[Action, Iterable[Tuple[Text, Action]]], Any]: ...\n def _check_conflict(self, action: Action) -> None: ...\n def _handle_conflict_error(self, action: Action, conflicting_actions: Iterable[Tuple[Text, Action]]) -> NoReturn: ...\n def _handle_conflict_resolve(self, action: Action, conflicting_actions: Iterable[Tuple[Text, Action]]) -> None: ...\n\nclass _FormatterClass(Protocol):\n def __call__(self, prog: str) -> HelpFormatter: ...\n\nclass ArgumentParser(_AttributeHolder, _ActionsContainer):\n prog: _Text\n usage: Optional[_Text]\n epilog: Optional[_Text]\n formatter_class: _FormatterClass\n fromfile_prefix_chars: Optional[_Text]\n add_help: bool\n\n if sys.version_info >= (3, 5):\n allow_abbrev: bool\n\n # undocumented\n _positionals: _ArgumentGroup\n _optionals: _ArgumentGroup\n _subparsers: Optional[_ArgumentGroup]\n\n if sys.version_info >= (3, 9):\n def __init__(\n self,\n prog: Optional[str] = ...,\n usage: Optional[str] = ...,\n description: Optional[str] = ...,\n epilog: Optional[str] = ...,\n parents: Sequence[ArgumentParser] = ...,\n formatter_class: _FormatterClass = ...,\n prefix_chars: str = ...,\n fromfile_prefix_chars: Optional[str] = ...,\n argument_default: Any = ...,\n conflict_handler: str = ...,\n add_help: bool = ...,\n allow_abbrev: bool = ...,\n exit_on_error: bool = ...,\n ) -> None: ...\n elif sys.version_info >= (3, 5):\n def __init__(\n self,\n prog: Optional[str] = ...,\n usage: Optional[str] = ...,\n description: Optional[str] = ...,\n epilog: Optional[str] = ...,\n parents: Sequence[ArgumentParser] = ...,\n formatter_class: _FormatterClass = ...,\n prefix_chars: str = ...,\n fromfile_prefix_chars: Optional[str] = ...,\n argument_default: Any = ...,\n conflict_handler: str = ...,\n add_help: bool = ...,\n allow_abbrev: bool = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n prog: Optional[Text] = ...,\n usage: Optional[Text] = ...,\n description: Optional[Text] = ...,\n epilog: Optional[Text] = ...,\n parents: Sequence[ArgumentParser] = ...,\n formatter_class: _FormatterClass = ...,\n prefix_chars: Text = ...,\n fromfile_prefix_chars: Optional[Text] = ...,\n argument_default: Any = ...,\n conflict_handler: Text = ...,\n add_help: bool = ...,\n ) -> None: ...\n # The type-ignores in these overloads should be temporary. See:\n # https://github.com/python/typeshed/pull/2643#issuecomment-442280277\n @overload\n def parse_args(self, args: Optional[Sequence[Text]] = ...) -> Namespace: ...\n @overload\n def parse_args(self, args: Optional[Sequence[Text]], namespace: None) -> Namespace: ... # type: ignore\n @overload\n def parse_args(self, args: Optional[Sequence[Text]], namespace: _N) -> _N: ...\n @overload\n def parse_args(self, *, namespace: None) -> Namespace: ... # type: ignore\n @overload\n def parse_args(self, *, namespace: _N) -> _N: ...\n if sys.version_info >= (3, 7):\n def add_subparsers(\n self,\n *,\n title: str = ...,\n description: Optional[str] = ...,\n prog: str = ...,\n parser_class: Type[ArgumentParser] = ...,\n action: Type[Action] = ...,\n option_string: str = ...,\n dest: Optional[str] = ...,\n required: bool = ...,\n help: Optional[str] = ...,\n metavar: Optional[str] = ...,\n ) -> _SubParsersAction: ...\n else:\n def add_subparsers(\n self,\n *,\n title: Text = ...,\n description: Optional[Text] = ...,\n prog: Text = ...,\n parser_class: Type[ArgumentParser] = ...,\n action: Type[Action] = ...,\n option_string: Text = ...,\n dest: Optional[Text] = ...,\n help: Optional[Text] = ...,\n metavar: Optional[Text] = ...,\n ) -> _SubParsersAction: ...\n def print_usage(self, file: Optional[IO[str]] = ...) -> None: ...\n def print_help(self, file: Optional[IO[str]] = ...) -> None: ...\n def format_usage(self) -> str: ...\n def format_help(self) -> str: ...\n def parse_known_args(\n self, args: Optional[Sequence[Text]] = ..., namespace: Optional[Namespace] = ...\n ) -> Tuple[Namespace, List[str]]: ...\n def convert_arg_line_to_args(self, arg_line: Text) -> List[str]: ...\n def exit(self, status: int = ..., message: Optional[Text] = ...) -> NoReturn: ...\n def error(self, message: Text) -> NoReturn: ...\n if sys.version_info >= (3, 7):\n def parse_intermixed_args(\n self, args: Optional[Sequence[str]] = ..., namespace: Optional[Namespace] = ...\n ) -> Namespace: ...\n def parse_known_intermixed_args(\n self, args: Optional[Sequence[str]] = ..., namespace: Optional[Namespace] = ...\n ) -> Tuple[Namespace, List[str]]: ...\n # undocumented\n def _get_optional_actions(self) -> List[Action]: ...\n def _get_positional_actions(self) -> List[Action]: ...\n def _parse_known_args(self, arg_strings: List[Text], namespace: Namespace) -> Tuple[Namespace, List[str]]: ...\n def _read_args_from_files(self, arg_strings: List[Text]) -> List[Text]: ...\n def _match_argument(self, action: Action, arg_strings_pattern: Text) -> int: ...\n def _match_arguments_partial(self, actions: Sequence[Action], arg_strings_pattern: Text) -> List[int]: ...\n def _parse_optional(self, arg_string: Text) -> Optional[Tuple[Optional[Action], Text, Optional[Text]]]: ...\n def _get_option_tuples(self, option_string: Text) -> List[Tuple[Action, Text, Optional[Text]]]: ...\n def _get_nargs_pattern(self, action: Action) -> _Text: ...\n def _get_values(self, action: Action, arg_strings: List[Text]) -> Any: ...\n def _get_value(self, action: Action, arg_string: Text) -> Any: ...\n def _check_value(self, action: Action, value: Any) -> None: ...\n def _get_formatter(self) -> HelpFormatter: ...\n def _print_message(self, message: str, file: Optional[IO[str]] = ...) -> None: ...\n\nclass HelpFormatter:\n # undocumented\n _prog: _Text\n _indent_increment: int\n _max_help_position: int\n _width: int\n _current_indent: int\n _level: int\n _action_max_length: int\n _root_section: Any\n _current_section: Any\n _whitespace_matcher: Pattern[str]\n _long_break_matcher: Pattern[str]\n _Section: Type[Any] # Nested class\n def __init__(\n self, prog: Text, indent_increment: int = ..., max_help_position: int = ..., width: Optional[int] = ...\n ) -> None: ...\n def _indent(self) -> None: ...\n def _dedent(self) -> None: ...\n def _add_item(self, func: Callable[..., _Text], args: Iterable[Any]) -> None: ...\n def start_section(self, heading: Optional[Text]) -> None: ...\n def end_section(self) -> None: ...\n def add_text(self, text: Optional[Text]) -> None: ...\n def add_usage(\n self, usage: Text, actions: Iterable[Action], groups: Iterable[_ArgumentGroup], prefix: Optional[Text] = ...\n ) -> None: ...\n def add_argument(self, action: Action) -> None: ...\n def add_arguments(self, actions: Iterable[Action]) -> None: ...\n def format_help(self) -> _Text: ...\n def _join_parts(self, part_strings: Iterable[Text]) -> _Text: ...\n def _format_usage(\n self, usage: Text, actions: Iterable[Action], groups: Iterable[_ArgumentGroup], prefix: Optional[Text]\n ) -> _Text: ...\n def _format_actions_usage(self, actions: Iterable[Action], groups: Iterable[_ArgumentGroup]) -> _Text: ...\n def _format_text(self, text: Text) -> _Text: ...\n def _format_action(self, action: Action) -> _Text: ...\n def _format_action_invocation(self, action: Action) -> _Text: ...\n def _metavar_formatter(self, action: Action, default_metavar: Text) -> Callable[[int], Tuple[_Text, ...]]: ...\n def _format_args(self, action: Action, default_metavar: Text) -> _Text: ...\n def _expand_help(self, action: Action) -> _Text: ...\n def _iter_indented_subactions(self, action: Action) -> Generator[Action, None, None]: ...\n def _split_lines(self, text: Text, width: int) -> List[_Text]: ...\n def _fill_text(self, text: Text, width: int, indent: Text) -> _Text: ...\n def _get_help_string(self, action: Action) -> Optional[_Text]: ...\n def _get_default_metavar_for_optional(self, action: Action) -> _Text: ...\n def _get_default_metavar_for_positional(self, action: Action) -> _Text: ...\n\nclass RawDescriptionHelpFormatter(HelpFormatter): ...\nclass RawTextHelpFormatter(RawDescriptionHelpFormatter): ...\nclass ArgumentDefaultsHelpFormatter(HelpFormatter): ...\n\nif sys.version_info >= (3,):\n class MetavarTypeHelpFormatter(HelpFormatter): ...\n\nclass Action(_AttributeHolder):\n option_strings: Sequence[_Text]\n dest: _Text\n nargs: Optional[Union[int, _Text]]\n const: Any\n default: Any\n type: Union[Callable[[str], Any], FileType, None]\n choices: Optional[Iterable[Any]]\n required: bool\n help: Optional[_Text]\n metavar: Optional[Union[_Text, Tuple[_Text, ...]]]\n def __init__(\n self,\n option_strings: Sequence[Text],\n dest: Text,\n nargs: Optional[Union[int, Text]] = ...,\n const: Optional[_T] = ...,\n default: Union[_T, str, None] = ...,\n type: Optional[Union[Callable[[Text], _T], Callable[[str], _T], FileType]] = ...,\n choices: Optional[Iterable[_T]] = ...,\n required: bool = ...,\n help: Optional[Text] = ...,\n metavar: Optional[Union[Text, Tuple[Text, ...]]] = ...,\n ) -> None: ...\n def __call__(\n self,\n parser: ArgumentParser,\n namespace: Namespace,\n values: Union[Text, Sequence[Any], None],\n option_string: Optional[Text] = ...,\n ) -> None: ...\n if sys.version_info >= (3, 9):\n def format_usage(self) -> str: ...\n\nif sys.version_info >= (3, 9):\n class BooleanOptionalAction(Action):\n def __init__(\n self,\n option_strings: Sequence[str],\n dest: str,\n default: Union[_T, str, None] = ...,\n type: Optional[Union[Callable[[Text], _T], Callable[[str], _T], FileType]] = ...,\n choices: Optional[Iterable[_T]] = ...,\n required: bool = ...,\n help: Optional[Text] = ...,\n metavar: Optional[Union[Text, Tuple[Text, ...]]] = ...,\n ) -> None: ...\n\nclass Namespace(_AttributeHolder):\n def __init__(self, **kwargs: Any) -> None: ...\n def __getattr__(self, name: Text) -> Any: ...\n def __setattr__(self, name: Text, value: Any) -> None: ...\n def __contains__(self, key: str) -> bool: ...\n\nclass FileType:\n # undocumented\n _mode: _Text\n _bufsize: int\n if sys.version_info >= (3,):\n _encoding: Optional[str]\n _errors: Optional[str]\n def __init__(\n self, mode: str = ..., bufsize: int = ..., encoding: Optional[str] = ..., errors: Optional[str] = ...\n ) -> None: ...\n else:\n def __init__(self, mode: Text = ..., bufsize: Optional[int] = ...) -> None: ...\n def __call__(self, string: Text) -> IO[Any]: ...\n\n# undocumented\nclass _ArgumentGroup(_ActionsContainer):\n title: Optional[_Text]\n _group_actions: List[Action]\n def __init__(\n self, container: _ActionsContainer, title: Optional[Text] = ..., description: Optional[Text] = ..., **kwargs: Any\n ) -> None: ...\n\n# undocumented\nclass _MutuallyExclusiveGroup(_ArgumentGroup):\n required: bool\n _container: _ActionsContainer\n def __init__(self, container: _ActionsContainer, required: bool = ...) -> None: ...\n\n# undocumented\nclass _StoreAction(Action): ...\n\n# undocumented\nclass _StoreConstAction(Action):\n def __init__(\n self,\n option_strings: Sequence[Text],\n dest: Text,\n const: Any,\n default: Any = ...,\n required: bool = ...,\n help: Optional[Text] = ...,\n metavar: Optional[Union[Text, Tuple[Text, ...]]] = ...,\n ) -> None: ...\n\n# undocumented\nclass _StoreTrueAction(_StoreConstAction):\n def __init__(\n self, option_strings: Sequence[Text], dest: Text, default: bool = ..., required: bool = ..., help: Optional[Text] = ...\n ) -> None: ...\n\n# undocumented\nclass _StoreFalseAction(_StoreConstAction):\n def __init__(\n self, option_strings: Sequence[Text], dest: Text, default: bool = ..., required: bool = ..., help: Optional[Text] = ...\n ) -> None: ...\n\n# undocumented\nclass _AppendAction(Action): ...\n\n# undocumented\nclass _AppendConstAction(Action):\n def __init__(\n self,\n option_strings: Sequence[Text],\n dest: Text,\n const: Any,\n default: Any = ...,\n required: bool = ...,\n help: Optional[Text] = ...,\n metavar: Optional[Union[Text, Tuple[Text, ...]]] = ...,\n ) -> None: ...\n\n# undocumented\nclass _CountAction(Action):\n def __init__(\n self, option_strings: Sequence[Text], dest: Text, default: Any = ..., required: bool = ..., help: Optional[Text] = ...\n ) -> None: ...\n\n# undocumented\nclass _HelpAction(Action):\n def __init__(\n self, option_strings: Sequence[Text], dest: Text = ..., default: Text = ..., help: Optional[Text] = ...\n ) -> None: ...\n\n# undocumented\nclass _VersionAction(Action):\n version: Optional[_Text]\n def __init__(\n self,\n option_strings: Sequence[Text],\n version: Optional[Text] = ...,\n dest: Text = ...,\n default: Text = ...,\n help: Text = ...,\n ) -> None: ...\n\n# undocumented\nclass _SubParsersAction(Action):\n _ChoicesPseudoAction: Type[Any] # nested class\n _prog_prefix: _Text\n _parser_class: Type[ArgumentParser]\n _name_parser_map: Dict[_Text, ArgumentParser]\n choices: Dict[_Text, ArgumentParser]\n _choices_actions: List[Action]\n if sys.version_info >= (3, 7):\n def __init__(\n self,\n option_strings: Sequence[Text],\n prog: Text,\n parser_class: Type[ArgumentParser],\n dest: Text = ...,\n required: bool = ...,\n help: Optional[Text] = ...,\n metavar: Optional[Union[Text, Tuple[Text, ...]]] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n option_strings: Sequence[Text],\n prog: Text,\n parser_class: Type[ArgumentParser],\n dest: Text = ...,\n help: Optional[Text] = ...,\n metavar: Optional[Union[Text, Tuple[Text, ...]]] = ...,\n ) -> None: ...\n # TODO: Type keyword args properly.\n def add_parser(self, name: Text, **kwargs: Any) -> ArgumentParser: ...\n def _get_subactions(self) -> List[Action]: ...\n\n# undocumented\nclass ArgumentTypeError(Exception): ...\n\nif sys.version_info < (3, 7):\n # undocumented\n def _ensure_value(namespace: Namespace, name: Text, value: Any) -> Any: ...\n\n# undocumented\ndef _get_action_name(argument: Optional[Action]) -> Optional[str]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\argparse.pyi
argparse.pyi
Other
18,335
0.95
0.303901
0.06181
react-lib
808
2023-09-17T23:42:46.566800
MIT
false
2de54e504d07cb613cc9b43a86bf5351
import sys\nfrom typing import Any, BinaryIO, Generic, Iterable, List, MutableSequence, Text, Tuple, TypeVar, Union, overload\nfrom typing_extensions import Literal\n\n_IntTypeCode = Literal["b", "B", "h", "H", "i", "I", "l", "L", "q", "Q"]\n_FloatTypeCode = Literal["f", "d"]\n_UnicodeTypeCode = Literal["u"]\n_TypeCode = Union[_IntTypeCode, _FloatTypeCode, _UnicodeTypeCode]\n\n_T = TypeVar("_T", int, float, Text)\n\nif sys.version_info >= (3,):\n typecodes: str\n\nclass array(MutableSequence[_T], Generic[_T]):\n typecode: _TypeCode\n itemsize: int\n @overload\n def __init__(self: array[int], typecode: _IntTypeCode, __initializer: Union[bytes, Iterable[_T]] = ...) -> None: ...\n @overload\n def __init__(self: array[float], typecode: _FloatTypeCode, __initializer: Union[bytes, Iterable[_T]] = ...) -> None: ...\n @overload\n def __init__(self: array[Text], typecode: _UnicodeTypeCode, __initializer: Union[bytes, Iterable[_T]] = ...) -> None: ...\n @overload\n def __init__(self, typecode: str, __initializer: Union[bytes, Iterable[_T]] = ...) -> None: ...\n def append(self, __v: _T) -> None: ...\n def buffer_info(self) -> Tuple[int, int]: ...\n def byteswap(self) -> None: ...\n def count(self, __v: Any) -> int: ...\n def extend(self, __bb: Iterable[_T]) -> None: ...\n if sys.version_info >= (3, 2):\n def frombytes(self, __buffer: bytes) -> None: ...\n def fromfile(self, __f: BinaryIO, __n: int) -> None: ...\n def fromlist(self, __list: List[_T]) -> None: ...\n def fromunicode(self, __ustr: str) -> None: ...\n def index(self, __v: _T) -> int: ... # type: ignore # Overrides Sequence\n def insert(self, __i: int, __v: _T) -> None: ...\n def pop(self, __i: int = ...) -> _T: ...\n if sys.version_info < (3,):\n def read(self, f: BinaryIO, n: int) -> None: ...\n def remove(self, __v: Any) -> None: ...\n def reverse(self) -> None: ...\n if sys.version_info >= (3, 2):\n def tobytes(self) -> bytes: ...\n def tofile(self, __f: BinaryIO) -> None: ...\n def tolist(self) -> List[_T]: ...\n def tounicode(self) -> str: ...\n if sys.version_info < (3,):\n def write(self, f: BinaryIO) -> None: ...\n if sys.version_info < (3, 9):\n def fromstring(self, __buffer: bytes) -> None: ...\n def tostring(self) -> bytes: ...\n def __len__(self) -> int: ...\n @overload\n def __getitem__(self, i: int) -> _T: ...\n @overload\n def __getitem__(self, s: slice) -> array[_T]: ...\n @overload # type: ignore # Overrides MutableSequence\n def __setitem__(self, i: int, o: _T) -> None: ...\n @overload\n def __setitem__(self, s: slice, o: array[_T]) -> None: ...\n def __delitem__(self, i: Union[int, slice]) -> None: ...\n def __add__(self, x: array[_T]) -> array[_T]: ...\n def __ge__(self, other: array[_T]) -> bool: ...\n def __gt__(self, other: array[_T]) -> bool: ...\n def __iadd__(self, x: array[_T]) -> array[_T]: ... # type: ignore # Overrides MutableSequence\n def __imul__(self, n: int) -> array[_T]: ...\n def __le__(self, other: array[_T]) -> bool: ...\n def __lt__(self, other: array[_T]) -> bool: ...\n def __mul__(self, n: int) -> array[_T]: ...\n def __rmul__(self, n: int) -> array[_T]: ...\n if sys.version_info < (3,):\n def __delslice__(self, i: int, j: int) -> None: ...\n def __getslice__(self, i: int, j: int) -> array[_T]: ...\n def __setslice__(self, i: int, j: int, y: array[_T]) -> None: ...\n\nArrayType = array\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\array.pyi
array.pyi
Other
3,489
0.95
0.675325
0
node-utils
320
2023-07-30T19:25:49.252266
GPL-3.0
false
365da528e3b6df2d91f4f21995f513df
import asyncore\nimport socket\nimport sys\nfrom abc import abstractmethod\nfrom typing import Optional, Sequence, Tuple, Union\n\nclass simple_producer:\n def __init__(self, data: bytes, buffer_size: int = ...) -> None: ...\n def more(self) -> bytes: ...\n\nclass async_chat(asyncore.dispatcher):\n ac_in_buffer_size: int\n ac_out_buffer_size: int\n def __init__(self, sock: Optional[socket.socket] = ..., map: Optional[asyncore._maptype] = ...) -> None: ...\n @abstractmethod\n def collect_incoming_data(self, data: bytes) -> None: ...\n @abstractmethod\n def found_terminator(self) -> None: ...\n def set_terminator(self, term: Union[bytes, int, None]) -> None: ...\n def get_terminator(self) -> Union[bytes, int, None]: ...\n def handle_read(self) -> None: ...\n def handle_write(self) -> None: ...\n def handle_close(self) -> None: ...\n def push(self, data: bytes) -> None: ...\n def push_with_producer(self, producer: simple_producer) -> None: ...\n def readable(self) -> bool: ...\n def writable(self) -> bool: ...\n def close_when_done(self) -> None: ...\n def initiate_send(self) -> None: ...\n def discard_buffers(self) -> None: ...\n\nif sys.version_info < (3, 0):\n class fifo:\n def __init__(self, list: Sequence[Union[bytes, simple_producer]] = ...) -> None: ...\n def __len__(self) -> int: ...\n def is_empty(self) -> bool: ...\n def first(self) -> bytes: ...\n def push(self, data: Union[bytes, simple_producer]) -> None: ...\n def pop(self) -> Tuple[int, bytes]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\asynchat.pyi
asynchat.pyi
Other
1,555
0.85
0.692308
0
awesome-app
113
2024-06-10T23:18:46.891350
MIT
false
23ba72df7e592eeb5684bb62abcd6373
import sys\nfrom _typeshed import FileDescriptorLike\nfrom socket import SocketType\nfrom typing import Any, Dict, Optional, Tuple, Union, overload\n\n# cyclic dependence with asynchat\n_maptype = Dict[int, Any]\n\nsocket_map: _maptype = ... # Undocumented\n\nclass ExitNow(Exception): ...\n\ndef read(obj: Any) -> None: ...\ndef write(obj: Any) -> None: ...\ndef readwrite(obj: Any, flags: int) -> None: ...\ndef poll(timeout: float = ..., map: Optional[_maptype] = ...) -> None: ...\ndef poll2(timeout: float = ..., map: Optional[_maptype] = ...) -> None: ...\n\npoll3 = poll2\n\ndef loop(timeout: float = ..., use_poll: bool = ..., map: Optional[_maptype] = ..., count: Optional[int] = ...) -> None: ...\n\n# Not really subclass of socket.socket; it's only delegation.\n# It is not covariant to it.\nclass dispatcher:\n\n debug: bool\n connected: bool\n accepting: bool\n connecting: bool\n closing: bool\n ignore_log_types: frozenset[str]\n socket: Optional[SocketType]\n def __init__(self, sock: Optional[SocketType] = ..., map: Optional[_maptype] = ...) -> None: ...\n def add_channel(self, map: Optional[_maptype] = ...) -> None: ...\n def del_channel(self, map: Optional[_maptype] = ...) -> None: ...\n def create_socket(self, family: int = ..., type: int = ...) -> None: ...\n def set_socket(self, sock: SocketType, map: Optional[_maptype] = ...) -> None: ...\n def set_reuse_addr(self) -> None: ...\n def readable(self) -> bool: ...\n def writable(self) -> bool: ...\n def listen(self, num: int) -> None: ...\n def bind(self, addr: Union[Tuple[Any, ...], str]) -> None: ...\n def connect(self, address: Union[Tuple[Any, ...], str]) -> None: ...\n def accept(self) -> Optional[Tuple[SocketType, Any]]: ...\n def send(self, data: bytes) -> int: ...\n def recv(self, buffer_size: int) -> bytes: ...\n def close(self) -> None: ...\n def log(self, message: Any) -> None: ...\n def log_info(self, message: Any, type: str = ...) -> None: ...\n def handle_read_event(self) -> None: ...\n def handle_connect_event(self) -> None: ...\n def handle_write_event(self) -> None: ...\n def handle_expt_event(self) -> None: ...\n def handle_error(self) -> None: ...\n def handle_expt(self) -> None: ...\n def handle_read(self) -> None: ...\n def handle_write(self) -> None: ...\n def handle_connect(self) -> None: ...\n def handle_accept(self) -> None: ...\n def handle_close(self) -> None: ...\n if sys.version_info < (3, 5):\n # Historically, some methods were "imported" from `self.socket` by\n # means of `__getattr__`. This was long deprecated, and as of Python\n # 3.5 has been removed; simply call the relevant methods directly on\n # self.socket if necessary.\n def detach(self) -> int: ...\n def fileno(self) -> int: ...\n # return value is an address\n def getpeername(self) -> Any: ...\n def getsockname(self) -> Any: ...\n @overload\n def getsockopt(self, level: int, optname: int, buflen: None = ...) -> int: ...\n @overload\n def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ...\n def gettimeout(self) -> float: ...\n def ioctl(self, control: object, option: Tuple[int, int, int]) -> None: ...\n # TODO the return value may be BinaryIO or TextIO, depending on mode\n def makefile(\n self, mode: str = ..., buffering: int = ..., encoding: str = ..., errors: str = ..., newline: str = ...\n ) -> Any: ...\n # return type is an address\n def recvfrom(self, bufsize: int, flags: int = ...) -> Any: ...\n def recvfrom_into(self, buffer: bytes, nbytes: int, flags: int = ...) -> Any: ...\n def recv_into(self, buffer: bytes, nbytes: int, flags: int = ...) -> Any: ...\n def sendall(self, data: bytes, flags: int = ...) -> None: ...\n def sendto(self, data: bytes, address: Union[Tuple[str, int], str], flags: int = ...) -> int: ...\n def setblocking(self, flag: bool) -> None: ...\n def settimeout(self, value: Union[float, None]) -> None: ...\n def setsockopt(self, level: int, optname: int, value: Union[int, bytes]) -> None: ...\n def shutdown(self, how: int) -> None: ...\n\nclass dispatcher_with_send(dispatcher):\n def __init__(self, sock: SocketType = ..., map: Optional[_maptype] = ...) -> None: ...\n def initiate_send(self) -> None: ...\n def handle_write(self) -> None: ...\n # incompatible signature:\n # def send(self, data: bytes) -> Optional[int]: ...\n\ndef compact_traceback() -> Tuple[Tuple[str, str, str], type, type, str]: ...\ndef close_all(map: Optional[_maptype] = ..., ignore_all: bool = ...) -> None: ...\n\nif sys.platform != "win32":\n class file_wrapper:\n fd: int\n def __init__(self, fd: int) -> None: ...\n def recv(self, bufsize: int, flags: int = ...) -> bytes: ...\n def send(self, data: bytes, flags: int = ...) -> int: ...\n @overload\n def getsockopt(self, level: int, optname: int, buflen: None = ...) -> int: ...\n @overload\n def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ...\n def read(self, bufsize: int, flags: int = ...) -> bytes: ...\n def write(self, data: bytes, flags: int = ...) -> int: ...\n def close(self) -> None: ...\n def fileno(self) -> int: ...\n class file_dispatcher(dispatcher):\n def __init__(self, fd: FileDescriptorLike, map: Optional[_maptype] = ...) -> None: ...\n def set_file(self, fd: int) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\asyncore.pyi
asyncore.pyi
Other
5,534
0.95
0.647059
0.111111
react-lib
437
2024-12-19T08:21:32.456732
Apache-2.0
false
3e6cd1328b2d2a416ec151211bc76d2f
from typing import Optional, Tuple\n\nAdpcmState = Tuple[int, int]\nRatecvState = Tuple[int, Tuple[Tuple[int, int], ...]]\n\nclass error(Exception): ...\n\ndef add(__fragment1: bytes, __fragment2: bytes, __width: int) -> bytes: ...\ndef adpcm2lin(__fragment: bytes, __width: int, __state: Optional[AdpcmState]) -> Tuple[bytes, AdpcmState]: ...\ndef alaw2lin(__fragment: bytes, __width: int) -> bytes: ...\ndef avg(__fragment: bytes, __width: int) -> int: ...\ndef avgpp(__fragment: bytes, __width: int) -> int: ...\ndef bias(__fragment: bytes, __width: int, __bias: int) -> bytes: ...\ndef byteswap(__fragment: bytes, __width: int) -> bytes: ...\ndef cross(__fragment: bytes, __width: int) -> int: ...\ndef findfactor(__fragment: bytes, __reference: bytes) -> float: ...\ndef findfit(__fragment: bytes, __reference: bytes) -> Tuple[int, float]: ...\ndef findmax(__fragment: bytes, __length: int) -> int: ...\ndef getsample(__fragment: bytes, __width: int, __index: int) -> int: ...\ndef lin2adpcm(__fragment: bytes, __width: int, __state: Optional[AdpcmState]) -> Tuple[bytes, AdpcmState]: ...\ndef lin2alaw(__fragment: bytes, __width: int) -> bytes: ...\ndef lin2lin(__fragment: bytes, __width: int, __newwidth: int) -> bytes: ...\ndef lin2ulaw(__fragment: bytes, __width: int) -> bytes: ...\ndef max(__fragment: bytes, __width: int) -> int: ...\ndef maxpp(__fragment: bytes, __width: int) -> int: ...\ndef minmax(__fragment: bytes, __width: int) -> Tuple[int, int]: ...\ndef mul(__fragment: bytes, __width: int, __factor: float) -> bytes: ...\ndef ratecv(\n __fragment: bytes,\n __width: int,\n __nchannels: int,\n __inrate: int,\n __outrate: int,\n __state: Optional[RatecvState],\n __weightA: int = ...,\n __weightB: int = ...,\n) -> Tuple[bytes, RatecvState]: ...\ndef reverse(__fragment: bytes, __width: int) -> bytes: ...\ndef rms(__fragment: bytes, __width: int) -> int: ...\ndef tomono(__fragment: bytes, __width: int, __lfactor: float, __rfactor: float) -> bytes: ...\ndef tostereo(__fragment: bytes, __width: int, __lfactor: float, __rfactor: float) -> bytes: ...\ndef ulaw2lin(__fragment: bytes, __width: int) -> bytes: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\audioop.pyi
audioop.pyi
Other
2,119
0.85
0.642857
0
react-lib
256
2025-04-24T00:03:05.424335
BSD-3-Clause
false
4fcb4099b7b87e2d9cab61a6daed9765
import sys\nfrom typing import IO, Optional, Union\n\nif sys.version_info < (3,):\n _encodable = Union[bytes, unicode]\n _decodable = Union[bytes, unicode]\nelse:\n _encodable = bytes\n _decodable = Union[bytes, str]\n\ndef b64encode(s: _encodable, altchars: Optional[bytes] = ...) -> bytes: ...\ndef b64decode(s: _decodable, altchars: Optional[bytes] = ..., validate: bool = ...) -> bytes: ...\ndef standard_b64encode(s: _encodable) -> bytes: ...\ndef standard_b64decode(s: _decodable) -> bytes: ...\ndef urlsafe_b64encode(s: _encodable) -> bytes: ...\ndef urlsafe_b64decode(s: _decodable) -> bytes: ...\ndef b32encode(s: _encodable) -> bytes: ...\ndef b32decode(s: _decodable, casefold: bool = ..., map01: Optional[bytes] = ...) -> bytes: ...\ndef b16encode(s: _encodable) -> bytes: ...\ndef b16decode(s: _decodable, casefold: bool = ...) -> bytes: ...\n\nif sys.version_info >= (3, 4):\n def a85encode(b: _encodable, *, foldspaces: bool = ..., wrapcol: int = ..., pad: bool = ..., adobe: bool = ...) -> bytes: ...\n def a85decode(b: _decodable, *, foldspaces: bool = ..., adobe: bool = ..., ignorechars: Union[str, bytes] = ...) -> bytes: ...\n def b85encode(b: _encodable, pad: bool = ...) -> bytes: ...\n def b85decode(b: _decodable) -> bytes: ...\n\ndef decode(input: IO[bytes], output: IO[bytes]) -> None: ...\ndef encode(input: IO[bytes], output: IO[bytes]) -> None: ...\n\nif sys.version_info >= (3,):\n def encodebytes(s: bytes) -> bytes: ...\n def decodebytes(s: bytes) -> bytes: ...\n\nif sys.version_info < (3, 9):\n def encodestring(s: bytes) -> bytes: ...\n def decodestring(s: bytes) -> bytes: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\base64.pyi
base64.pyi
Other
1,614
0.85
0.648649
0
python-kit
504
2023-12-18T07:26:43.126778
GPL-3.0
false
929492210110f3d3b1514fbdacffd754
from types import CodeType, FrameType, TracebackType\nfrom typing import IO, Any, Callable, Dict, Iterable, List, Mapping, Optional, Set, SupportsInt, Tuple, Type, TypeVar, Union\n\n_T = TypeVar("_T")\n_TraceDispatch = Callable[[FrameType, str, Any], Any] # TODO: Recursive type\n_ExcInfo = Tuple[Type[BaseException], BaseException, FrameType]\n\nGENERATOR_AND_COROUTINE_FLAGS: int = ...\n\nclass BdbQuit(Exception): ...\n\nclass Bdb:\n\n skip: Optional[Set[str]]\n breaks: Dict[str, List[int]]\n fncache: Dict[str, str]\n frame_returning: Optional[FrameType]\n botframe: Optional[FrameType]\n quitting: bool\n stopframe: Optional[FrameType]\n returnframe: Optional[FrameType]\n stoplineno: int\n def __init__(self, skip: Optional[Iterable[str]] = ...) -> None: ...\n def canonic(self, filename: str) -> str: ...\n def reset(self) -> None: ...\n def trace_dispatch(self, frame: FrameType, event: str, arg: Any) -> _TraceDispatch: ...\n def dispatch_line(self, frame: FrameType) -> _TraceDispatch: ...\n def dispatch_call(self, frame: FrameType, arg: None) -> _TraceDispatch: ...\n def dispatch_return(self, frame: FrameType, arg: Any) -> _TraceDispatch: ...\n def dispatch_exception(self, frame: FrameType, arg: _ExcInfo) -> _TraceDispatch: ...\n def is_skipped_module(self, module_name: str) -> bool: ...\n def stop_here(self, frame: FrameType) -> bool: ...\n def break_here(self, frame: FrameType) -> bool: ...\n def do_clear(self, arg: Any) -> Optional[bool]: ...\n def break_anywhere(self, frame: FrameType) -> bool: ...\n def user_call(self, frame: FrameType, argument_list: None) -> None: ...\n def user_line(self, frame: FrameType) -> None: ...\n def user_return(self, frame: FrameType, return_value: Any) -> None: ...\n def user_exception(self, frame: FrameType, exc_info: _ExcInfo) -> None: ...\n def set_until(self, frame: FrameType, lineno: Optional[int] = ...) -> None: ...\n def set_step(self) -> None: ...\n def set_next(self, frame: FrameType) -> None: ...\n def set_return(self, frame: FrameType) -> None: ...\n def set_trace(self, frame: Optional[FrameType] = ...) -> None: ...\n def set_continue(self) -> None: ...\n def set_quit(self) -> None: ...\n def set_break(\n self, filename: str, lineno: int, temporary: bool = ..., cond: Optional[str] = ..., funcname: Optional[str] = ...\n ) -> None: ...\n def clear_break(self, filename: str, lineno: int) -> None: ...\n def clear_bpbynumber(self, arg: SupportsInt) -> None: ...\n def clear_all_file_breaks(self, filename: str) -> None: ...\n def clear_all_breaks(self) -> None: ...\n def get_bpbynumber(self, arg: SupportsInt) -> Breakpoint: ...\n def get_break(self, filename: str, lineno: int) -> bool: ...\n def get_breaks(self, filename: str, lineno: int) -> List[Breakpoint]: ...\n def get_file_breaks(self, filename: str) -> List[Breakpoint]: ...\n def get_all_breaks(self) -> List[Breakpoint]: ...\n def get_stack(self, f: Optional[FrameType], t: Optional[TracebackType]) -> Tuple[List[Tuple[FrameType, int]], int]: ...\n def format_stack_entry(self, frame_lineno: int, lprefix: str = ...) -> str: ...\n def run(\n self, cmd: Union[str, CodeType], globals: Optional[Dict[str, Any]] = ..., locals: Optional[Mapping[str, Any]] = ...\n ) -> None: ...\n def runeval(self, expr: str, globals: Optional[Dict[str, Any]] = ..., locals: Optional[Mapping[str, Any]] = ...) -> None: ...\n def runctx(\n self, cmd: Union[str, CodeType], globals: Optional[Dict[str, Any]], locals: Optional[Mapping[str, Any]]\n ) -> None: ...\n def runcall(self, __func: Callable[..., _T], *args: Any, **kwds: Any) -> Optional[_T]: ...\n\nclass Breakpoint:\n\n next: int = ...\n bplist: Dict[Tuple[str, int], List[Breakpoint]] = ...\n bpbynumber: List[Optional[Breakpoint]] = ...\n\n funcname: Optional[str]\n func_first_executable_line: Optional[int]\n file: str\n line: int\n temporary: bool\n cond: Optional[str]\n enabled: bool\n ignore: int\n hits: int\n number: int\n def __init__(\n self, file: str, line: int, temporary: bool = ..., cond: Optional[str] = ..., funcname: Optional[str] = ...\n ) -> None: ...\n def deleteMe(self) -> None: ...\n def enable(self) -> None: ...\n def disable(self) -> None: ...\n def bpprint(self, out: Optional[IO[str]] = ...) -> None: ...\n def bpformat(self) -> str: ...\n def __str__(self) -> str: ...\n\ndef checkfuncname(b: Breakpoint, frame: FrameType) -> bool: ...\ndef effective(file: str, line: int, frame: FrameType) -> Union[Tuple[Breakpoint, bool], Tuple[None, None]]: ...\ndef set_trace() -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\bdb.pyi
bdb.pyi
Other
4,644
0.95
0.540816
0
awesome-app
740
2023-12-09T20:27:14.329155
MIT
false
bb1b3506997b8f696b12a5694d6b85c2
import sys\nfrom typing import Text, Union\n\nif sys.version_info < (3,):\n # Python 2 accepts unicode ascii pretty much everywhere.\n _Bytes = Text\n _Ascii = Text\nelse:\n # But since Python 3.3 ASCII-only unicode strings are accepted by the\n # a2b_* functions.\n _Bytes = bytes\n _Ascii = Union[bytes, str]\n\ndef a2b_uu(__data: _Ascii) -> bytes: ...\n\nif sys.version_info >= (3, 7):\n def b2a_uu(__data: _Bytes, *, backtick: bool = ...) -> bytes: ...\n\nelse:\n def b2a_uu(__data: _Bytes) -> bytes: ...\n\ndef a2b_base64(__data: _Ascii) -> bytes: ...\n\nif sys.version_info >= (3, 6):\n def b2a_base64(__data: _Bytes, *, newline: bool = ...) -> bytes: ...\n\nelse:\n def b2a_base64(__data: _Bytes) -> bytes: ...\n\ndef a2b_qp(data: _Ascii, header: bool = ...) -> bytes: ...\ndef b2a_qp(data: _Bytes, quotetabs: bool = ..., istext: bool = ..., header: bool = ...) -> bytes: ...\ndef a2b_hqx(__data: _Ascii) -> bytes: ...\ndef rledecode_hqx(__data: _Bytes) -> bytes: ...\ndef rlecode_hqx(__data: _Bytes) -> bytes: ...\ndef b2a_hqx(__data: _Bytes) -> bytes: ...\ndef crc_hqx(__data: _Bytes, __crc: int) -> int: ...\ndef crc32(__data: _Bytes, __crc: int = ...) -> int: ...\ndef b2a_hex(__data: _Bytes) -> bytes: ...\n\nif sys.version_info >= (3, 8):\n def hexlify(data: bytes, sep: Union[str, bytes] = ..., bytes_per_sep: int = ...) -> bytes: ...\n\nelse:\n def hexlify(__data: _Bytes) -> bytes: ...\n\ndef a2b_hex(__hexstr: _Ascii) -> bytes: ...\ndef unhexlify(__hexstr: _Ascii) -> bytes: ...\n\nclass Error(ValueError): ...\nclass Incomplete(Exception): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\binascii.pyi
binascii.pyi
Other
1,552
0.95
0.5
0.078947
node-utils
195
2025-05-16T00:41:43.601451
MIT
false
521ba35d270f9ce99853f9deb48a49f9
from typing import IO, Any, Tuple, Union\n\nclass Error(Exception): ...\n\nREASONABLY_LARGE: int\nLINELEN: int\nRUNCHAR: bytes\n\nclass FInfo:\n def __init__(self) -> None: ...\n Type: str\n Creator: str\n Flags: int\n\n_FileInfoTuple = Tuple[str, FInfo, int, int]\n_FileHandleUnion = Union[str, IO[bytes]]\n\ndef getfileinfo(name: str) -> _FileInfoTuple: ...\n\nclass openrsrc:\n def __init__(self, *args: Any) -> None: ...\n def read(self, *args: Any) -> bytes: ...\n def write(self, *args: Any) -> None: ...\n def close(self) -> None: ...\n\nclass BinHex:\n def __init__(self, name_finfo_dlen_rlen: _FileInfoTuple, ofp: _FileHandleUnion) -> None: ...\n def write(self, data: bytes) -> None: ...\n def close_data(self) -> None: ...\n def write_rsrc(self, data: bytes) -> None: ...\n def close(self) -> None: ...\n\ndef binhex(inp: str, out: str) -> None: ...\n\nclass HexBin:\n def __init__(self, ifp: _FileHandleUnion) -> None: ...\n def read(self, *n: int) -> bytes: ...\n def close_data(self) -> None: ...\n def read_rsrc(self, *n: int) -> bytes: ...\n def close(self) -> None: ...\n\ndef hexbin(inp: str, out: str) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\binhex.pyi
binhex.pyi
Other
1,147
0.85
0.547619
0
vue-tools
498
2025-03-08T06:09:36.834886
GPL-3.0
false
8e2502b3958a8251712ca3d4e0a741cd
from _bisect import *\n\nbisect = bisect_right\ninsort = insort_right\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\bisect.pyi
bisect.pyi
Other
67
0.65
0
0
awesome-app
911
2024-08-24T10:37:13.543061
GPL-3.0
false
80959ce036102548d6e712db1d926d4a
import io\nimport sys\nfrom _typeshed import AnyPath\nfrom typing import IO, Any, Optional, TextIO, TypeVar, Union, overload\nfrom typing_extensions import Literal\n\n_PathOrFile = Union[AnyPath, IO[bytes]]\n_T = TypeVar("_T")\n\ndef compress(data: bytes, compresslevel: int = ...) -> bytes: ...\ndef decompress(data: bytes) -> bytes: ...\n\nif sys.version_info >= (3, 3):\n _OpenBinaryMode = Literal["r", "rb", "w", "wb", "x", "xb", "a", "ab"]\n _OpenTextMode = Literal["rt", "wt", "xt", "at"]\n @overload\n def open(\n filename: _PathOrFile,\n mode: _OpenBinaryMode = ...,\n compresslevel: int = ...,\n encoding: None = ...,\n errors: None = ...,\n newline: None = ...,\n ) -> BZ2File: ...\n @overload\n def open(\n filename: AnyPath,\n mode: _OpenTextMode,\n compresslevel: int = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n ) -> TextIO: ...\n @overload\n def open(\n filename: _PathOrFile,\n mode: str,\n compresslevel: int = ...,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n ) -> Union[BZ2File, TextIO]: ...\n\nclass BZ2File(io.BufferedIOBase, IO[bytes]):\n def __enter__(self: _T) -> _T: ...\n if sys.version_info >= (3, 9):\n def __init__(self, filename: _PathOrFile, mode: str = ..., *, compresslevel: int = ...) -> None: ...\n else:\n def __init__(\n self, filename: _PathOrFile, mode: str = ..., buffering: Optional[Any] = ..., compresslevel: int = ...\n ) -> None: ...\n\nclass BZ2Compressor(object):\n def __init__(self, compresslevel: int = ...) -> None: ...\n def compress(self, data: bytes) -> bytes: ...\n def flush(self) -> bytes: ...\n\nclass BZ2Decompressor(object):\n if sys.version_info >= (3, 5):\n def decompress(self, data: bytes, max_length: int = ...) -> bytes: ...\n else:\n def decompress(self, data: bytes) -> bytes: ...\n if sys.version_info >= (3, 3):\n @property\n def eof(self) -> bool: ...\n if sys.version_info >= (3, 5):\n @property\n def needs_input(self) -> bool: ...\n @property\n def unused_data(self) -> bytes: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\bz2.pyi
bz2.pyi
Other
2,267
0.85
0.342857
0
react-lib
641
2024-12-06T19:06:34.824255
GPL-3.0
false
1311156f1f0683ff4a395417c80c0699
import datetime\nimport sys\nfrom time import struct_time\nfrom typing import Any, Iterable, List, Optional, Sequence, Tuple, Union\n\n_LocaleType = Tuple[Optional[str], Optional[str]]\n\nclass IllegalMonthError(ValueError):\n def __init__(self, month: int) -> None: ...\n def __str__(self) -> str: ...\n\nclass IllegalWeekdayError(ValueError):\n def __init__(self, weekday: int) -> None: ...\n def __str__(self) -> str: ...\n\ndef isleap(year: int) -> bool: ...\ndef leapdays(y1: int, y2: int) -> int: ...\ndef weekday(year: int, month: int, day: int) -> int: ...\ndef monthrange(year: int, month: int) -> Tuple[int, int]: ...\n\nclass Calendar:\n def __init__(self, firstweekday: int = ...) -> None: ...\n def getfirstweekday(self) -> int: ...\n def setfirstweekday(self, firstweekday: int) -> None: ...\n def iterweekdays(self) -> Iterable[int]: ...\n def itermonthdates(self, year: int, month: int) -> Iterable[datetime.date]: ...\n def itermonthdays2(self, year: int, month: int) -> Iterable[Tuple[int, int]]: ...\n def itermonthdays(self, year: int, month: int) -> Iterable[int]: ...\n def monthdatescalendar(self, year: int, month: int) -> List[List[datetime.date]]: ...\n def monthdays2calendar(self, year: int, month: int) -> List[List[Tuple[int, int]]]: ...\n def monthdayscalendar(self, year: int, month: int) -> List[List[int]]: ...\n def yeardatescalendar(self, year: int, width: int = ...) -> List[List[int]]: ...\n def yeardays2calendar(self, year: int, width: int = ...) -> List[List[Tuple[int, int]]]: ...\n def yeardayscalendar(self, year: int, width: int = ...) -> List[List[int]]: ...\n if sys.version_info >= (3, 7):\n def itermonthdays3(self, year: int, month: int) -> Iterable[Tuple[int, int, int]]: ...\n def itermonthdays4(self, year: int, month: int) -> Iterable[Tuple[int, int, int, int]]: ...\n\nclass TextCalendar(Calendar):\n def prweek(self, theweek: int, width: int) -> None: ...\n def formatday(self, day: int, weekday: int, width: int) -> str: ...\n def formatweek(self, theweek: int, width: int) -> str: ...\n def formatweekday(self, day: int, width: int) -> str: ...\n def formatweekheader(self, width: int) -> str: ...\n def formatmonthname(self, theyear: int, themonth: int, width: int, withyear: bool = ...) -> str: ...\n def prmonth(self, theyear: int, themonth: int, w: int = ..., l: int = ...) -> None: ...\n def formatmonth(self, theyear: int, themonth: int, w: int = ..., l: int = ...) -> str: ...\n def formatyear(self, theyear: int, w: int = ..., l: int = ..., c: int = ..., m: int = ...) -> str: ...\n def pryear(self, theyear: int, w: int = ..., l: int = ..., c: int = ..., m: int = ...) -> None: ...\n\ndef firstweekday() -> int: ...\ndef monthcalendar(year: int, month: int) -> List[List[int]]: ...\ndef prweek(theweek: int, width: int) -> None: ...\ndef week(theweek: int, width: int) -> str: ...\ndef weekheader(width: int) -> str: ...\ndef prmonth(theyear: int, themonth: int, w: int = ..., l: int = ...) -> None: ...\ndef month(theyear: int, themonth: int, w: int = ..., l: int = ...) -> str: ...\ndef calendar(theyear: int, w: int = ..., l: int = ..., c: int = ..., m: int = ...) -> str: ...\ndef prcal(theyear: int, w: int = ..., l: int = ..., c: int = ..., m: int = ...) -> None: ...\n\nclass HTMLCalendar(Calendar):\n def formatday(self, day: int, weekday: int) -> str: ...\n def formatweek(self, theweek: int) -> str: ...\n def formatweekday(self, day: int) -> str: ...\n def formatweekheader(self) -> str: ...\n def formatmonthname(self, theyear: int, themonth: int, withyear: bool = ...) -> str: ...\n def formatmonth(self, theyear: int, themonth: int, withyear: bool = ...) -> str: ...\n def formatyear(self, theyear: int, width: int = ...) -> str: ...\n def formatyearpage(self, theyear: int, width: int = ..., css: Optional[str] = ..., encoding: Optional[str] = ...) -> str: ...\n if sys.version_info >= (3, 7):\n cssclasses: List[str]\n cssclass_noday: str\n cssclasses_weekday_head: List[str]\n cssclass_month_head: str\n cssclass_month: str\n cssclass_year: str\n cssclass_year_head: str\n\nif sys.version_info < (3, 0):\n class TimeEncoding:\n def __init__(self, locale: _LocaleType) -> None: ...\n def __enter__(self) -> _LocaleType: ...\n def __exit__(self, *args: Any) -> None: ...\n\nelse:\n class different_locale:\n def __init__(self, locale: _LocaleType) -> None: ...\n def __enter__(self) -> _LocaleType: ...\n def __exit__(self, *args: Any) -> None: ...\n\nclass LocaleTextCalendar(TextCalendar):\n def __init__(self, firstweekday: int = ..., locale: Optional[_LocaleType] = ...) -> None: ...\n def formatweekday(self, day: int, width: int) -> str: ...\n def formatmonthname(self, theyear: int, themonth: int, width: int, withyear: bool = ...) -> str: ...\n\nclass LocaleHTMLCalendar(HTMLCalendar):\n def __init__(self, firstweekday: int = ..., locale: Optional[_LocaleType] = ...) -> None: ...\n def formatweekday(self, day: int) -> str: ...\n def formatmonthname(self, theyear: int, themonth: int, withyear: bool = ...) -> str: ...\n\nc: TextCalendar\n\ndef setfirstweekday(firstweekday: int) -> None: ...\ndef format(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...\ndef formatstring(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...\ndef timegm(tuple: Union[Tuple[int, ...], struct_time]) -> int: ...\n\n# Data attributes\nday_name: Sequence[str]\nday_abbr: Sequence[str]\nmonth_name: Sequence[str]\nmonth_abbr: Sequence[str]\n\n# Below constants are not in docs or __all__, but enough people have used them\n# they are now effectively public.\n\nMONDAY: int\nTUESDAY: int\nWEDNESDAY: int\nTHURSDAY: int\nFRIDAY: int\nSATURDAY: int\nSUNDAY: int\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\calendar.pyi
calendar.pyi
Other
5,773
0.95
0.634146
0.028302
react-lib
934
2025-05-28T00:59:45.767044
BSD-3-Clause
false
8c6bdbbc4c5f0cfec99eace82e967bea
import sys\nfrom _typeshed import SupportsGetItem, SupportsItemAccess\nfrom builtins import type as _type\nfrom typing import IO, Any, AnyStr, Dict, Iterable, Iterator, List, Mapping, Optional, Protocol, Tuple, TypeVar, Union\n\n_T = TypeVar("_T", bound=FieldStorage)\n\ndef parse(\n fp: Optional[IO[Any]] = ...,\n environ: SupportsItemAccess[str, str] = ...,\n keep_blank_values: bool = ...,\n strict_parsing: bool = ...,\n) -> Dict[str, List[str]]: ...\n\nif sys.version_info < (3, 8):\n def parse_qs(qs: str, keep_blank_values: bool = ..., strict_parsing: bool = ...) -> Dict[str, List[str]]: ...\n def parse_qsl(qs: str, keep_blank_values: bool = ..., strict_parsing: bool = ...) -> List[Tuple[str, str]]: ...\n\nif sys.version_info >= (3, 7):\n def parse_multipart(\n fp: IO[Any], pdict: SupportsGetItem[str, bytes], encoding: str = ..., errors: str = ...\n ) -> Dict[str, List[Any]]: ...\n\nelse:\n def parse_multipart(fp: IO[Any], pdict: SupportsGetItem[str, bytes]) -> Dict[str, List[bytes]]: ...\n\nclass _Environ(Protocol):\n def __getitem__(self, __k: str) -> str: ...\n def keys(self) -> Iterable[str]: ...\n\ndef parse_header(line: str) -> Tuple[str, Dict[str, str]]: ...\ndef test(environ: _Environ = ...) -> None: ...\ndef print_environ(environ: _Environ = ...) -> None: ...\ndef print_form(form: Dict[str, Any]) -> None: ...\ndef print_directory() -> None: ...\ndef print_environ_usage() -> None: ...\n\nif sys.version_info < (3,):\n def escape(s: AnyStr, quote: bool = ...) -> AnyStr: ...\n\nelif sys.version_info < (3, 8):\n def escape(s: str, quote: Optional[bool] = ...) -> str: ...\n\nclass MiniFieldStorage:\n # The first five "Any" attributes here are always None, but mypy doesn't support that\n filename: Any\n list: Any\n type: Any\n file: Optional[IO[bytes]]\n type_options: Dict[Any, Any]\n disposition: Any\n disposition_options: Dict[Any, Any]\n headers: Dict[Any, Any]\n name: Any\n value: Any\n def __init__(self, name: Any, value: Any) -> None: ...\n def __repr__(self) -> str: ...\n\nclass FieldStorage(object):\n FieldStorageClass: Optional[_type]\n keep_blank_values: int\n strict_parsing: int\n qs_on_post: Optional[str]\n headers: Mapping[str, str]\n fp: IO[bytes]\n encoding: str\n errors: str\n outerboundary: bytes\n bytes_read: int\n limit: Optional[int]\n disposition: str\n disposition_options: Dict[str, str]\n filename: Optional[str]\n file: Optional[IO[bytes]]\n type: str\n type_options: Dict[str, str]\n innerboundary: bytes\n length: int\n done: int\n list: Optional[List[Any]]\n value: Union[None, bytes, List[Any]]\n\n if sys.version_info >= (3, 6):\n def __init__(\n self,\n fp: Optional[IO[Any]] = ...,\n headers: Optional[Mapping[str, str]] = ...,\n outerboundary: bytes = ...,\n environ: SupportsGetItem[str, str] = ...,\n keep_blank_values: int = ...,\n strict_parsing: int = ...,\n limit: Optional[int] = ...,\n encoding: str = ...,\n errors: str = ...,\n max_num_fields: Optional[int] = ...,\n ) -> None: ...\n elif sys.version_info >= (3, 0):\n def __init__(\n self,\n fp: Optional[IO[Any]] = ...,\n headers: Optional[Mapping[str, str]] = ...,\n outerboundary: bytes = ...,\n environ: SupportsGetItem[str, str] = ...,\n keep_blank_values: int = ...,\n strict_parsing: int = ...,\n limit: Optional[int] = ...,\n encoding: str = ...,\n errors: str = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n fp: IO[Any] = ...,\n headers: Mapping[str, str] = ...,\n outerboundary: bytes = ...,\n environ: SupportsGetItem[str, str] = ...,\n keep_blank_values: int = ...,\n strict_parsing: int = ...,\n ) -> None: ...\n if sys.version_info >= (3, 0):\n def __enter__(self: _T) -> _T: ...\n def __exit__(self, *args: Any) -> None: ...\n def __repr__(self) -> str: ...\n def __iter__(self) -> Iterator[str]: ...\n def __getitem__(self, key: str) -> Any: ...\n def getvalue(self, key: str, default: Any = ...) -> Any: ...\n def getfirst(self, key: str, default: Any = ...) -> Any: ...\n def getlist(self, key: str) -> List[Any]: ...\n def keys(self) -> List[str]: ...\n if sys.version_info < (3, 0):\n def has_key(self, key: str) -> bool: ...\n def __contains__(self, key: str) -> bool: ...\n def __len__(self) -> int: ...\n if sys.version_info >= (3, 0):\n def __bool__(self) -> bool: ...\n else:\n def __nonzero__(self) -> bool: ...\n if sys.version_info >= (3, 0):\n # In Python 3 it returns bytes or str IO depending on an internal flag\n def make_file(self) -> IO[Any]: ...\n else:\n # In Python 2 it always returns bytes and ignores the "binary" flag\n def make_file(self, binary: Any = ...) -> IO[bytes]: ...\n\nif sys.version_info < (3, 0):\n from UserDict import UserDict\n class FormContentDict(UserDict[str, List[str]]):\n query_string: str\n def __init__(self, environ: Mapping[str, str] = ..., keep_blank_values: int = ..., strict_parsing: int = ...) -> None: ...\n class SvFormContentDict(FormContentDict):\n def getlist(self, key: Any) -> Any: ...\n class InterpFormContentDict(SvFormContentDict): ...\n class FormContent(FormContentDict):\n # TODO this should have\n # def values(self, key: Any) -> Any: ...\n # but this is incompatible with the supertype, and adding '# type: ignore' triggers\n # a parse error in pytype (https://github.com/google/pytype/issues/53)\n def indexed_value(self, key: Any, location: int) -> Any: ...\n def value(self, key: Any) -> Any: ...\n def length(self, key: Any) -> int: ...\n def stripped(self, key: Any) -> Any: ...\n def pars(self) -> Dict[Any, Any]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\cgi.pyi
cgi.pyi
Other
6,016
0.95
0.37037
0.04698
react-lib
571
2023-11-24T09:46:19.200796
BSD-3-Clause
false
8d43be82253fd2edc4a697f5ff4d6813
from _typeshed import AnyPath\nfrom types import FrameType, TracebackType\nfrom typing import IO, Any, Callable, Dict, List, Optional, Tuple, Type\n\n_ExcInfo = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]\n\ndef reset() -> str: ... # undocumented\ndef small(text: str) -> str: ... # undocumented\ndef strong(text: str) -> str: ... # undocumented\ndef grey(text: str) -> str: ... # undocumented\ndef lookup(name: str, frame: FrameType, locals: Dict[str, Any]) -> Tuple[Optional[str], Any]: ... # undocumented\ndef scanvars(\n reader: Callable[[], bytes], frame: FrameType, locals: Dict[str, Any]\n) -> List[Tuple[str, Optional[str], Any]]: ... # undocumented\ndef html(einfo: _ExcInfo, context: int = ...) -> str: ...\ndef text(einfo: _ExcInfo, context: int = ...) -> str: ...\n\nclass Hook: # undocumented\n def __init__(\n self,\n display: int = ...,\n logdir: Optional[AnyPath] = ...,\n context: int = ...,\n file: Optional[IO[str]] = ...,\n format: str = ...,\n ) -> None: ...\n def __call__(\n self, etype: Optional[Type[BaseException]], evalue: Optional[BaseException], etb: Optional[TracebackType]\n ) -> None: ...\n def handle(self, info: Optional[_ExcInfo] = ...) -> None: ...\n\ndef handler(info: Optional[_ExcInfo] = ...) -> None: ...\ndef enable(display: int = ..., logdir: Optional[AnyPath] = ..., context: int = ..., format: str = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\cgitb.pyi
cgitb.pyi
Other
1,447
0.95
0.424242
0
python-kit
734
2025-01-06T23:06:53.980627
MIT
false
af07693a86de4b83bce7c7aa8c879192
from typing import IO\n\nclass Chunk:\n closed: bool\n align: bool\n file: IO[bytes]\n chunkname: bytes\n chunksize: int\n size_read: int\n offset: int\n seekable: bool\n def __init__(self, file: IO[bytes], align: bool = ..., bigendian: bool = ..., inclheader: bool = ...) -> None: ...\n def getname(self) -> bytes: ...\n def getsize(self) -> int: ...\n def close(self) -> None: ...\n def isatty(self) -> bool: ...\n def seek(self, pos: int, whence: int = ...) -> None: ...\n def tell(self) -> int: ...\n def read(self, size: int = ...) -> bytes: ...\n def skip(self) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\chunk.pyi
chunk.pyi
Other
613
0.85
0.5
0
vue-tools
351
2024-12-03T18:37:30.864553
MIT
false
cfe1f63e789faeefbc0aa9ddbefb6232
import sys\nfrom typing import SupportsComplex, SupportsFloat, Tuple, Union\n\ne: float\npi: float\nif sys.version_info >= (3, 6):\n inf: float\n infj: complex\n nan: float\n nanj: complex\n tau: float\n\n_C = Union[SupportsFloat, SupportsComplex]\n\ndef acos(__z: _C) -> complex: ...\ndef acosh(__z: _C) -> complex: ...\ndef asin(__z: _C) -> complex: ...\ndef asinh(__z: _C) -> complex: ...\ndef atan(__z: _C) -> complex: ...\ndef atanh(__z: _C) -> complex: ...\ndef cos(__z: _C) -> complex: ...\ndef cosh(__z: _C) -> complex: ...\ndef exp(__z: _C) -> complex: ...\n\nif sys.version_info >= (3, 5):\n def isclose(a: _C, b: _C, *, rel_tol: SupportsFloat = ..., abs_tol: SupportsFloat = ...) -> bool: ...\n\ndef isinf(__z: _C) -> bool: ...\ndef isnan(__z: _C) -> bool: ...\ndef log(__x: _C, __y_obj: _C = ...) -> complex: ...\ndef log10(__z: _C) -> complex: ...\ndef phase(__z: _C) -> float: ...\ndef polar(__z: _C) -> Tuple[float, float]: ...\ndef rect(__r: float, __phi: float) -> complex: ...\ndef sin(__z: _C) -> complex: ...\ndef sinh(__z: _C) -> complex: ...\ndef sqrt(__z: _C) -> complex: ...\ndef tan(__z: _C) -> complex: ...\ndef tanh(__z: _C) -> complex: ...\n\nif sys.version_info >= (3,):\n def isfinite(__z: _C) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\cmath.pyi
cmath.pyi
Other
1,217
0.85
0.619048
0
react-lib
575
2025-01-09T05:55:49.020333
Apache-2.0
false
60762d3f9e41b0fe4aa6bb2381d86a92
from typing import IO, Any, Callable, List, Optional, Tuple\n\nclass Cmd:\n prompt: str\n identchars: str\n ruler: str\n lastcmd: str\n intro: Optional[Any]\n doc_leader: str\n doc_header: str\n misc_header: str\n undoc_header: str\n nohelp: str\n use_rawinput: bool\n stdin: IO[str]\n stdout: IO[str]\n cmdqueue: List[str]\n completekey: str\n def __init__(self, completekey: str = ..., stdin: Optional[IO[str]] = ..., stdout: Optional[IO[str]] = ...) -> None: ...\n old_completer: Optional[Callable[[str, int], Optional[str]]]\n def cmdloop(self, intro: Optional[Any] = ...) -> None: ...\n def precmd(self, line: str) -> str: ...\n def postcmd(self, stop: bool, line: str) -> bool: ...\n def preloop(self) -> None: ...\n def postloop(self) -> None: ...\n def parseline(self, line: str) -> Tuple[Optional[str], Optional[str], str]: ...\n def onecmd(self, line: str) -> bool: ...\n def emptyline(self) -> bool: ...\n def default(self, line: str) -> bool: ...\n def completedefault(self, *ignored: Any) -> List[str]: ...\n def completenames(self, text: str, *ignored: Any) -> List[str]: ...\n completion_matches: Optional[List[str]]\n def complete(self, text: str, state: int) -> Optional[List[str]]: ...\n def get_names(self) -> List[str]: ...\n # Only the first element of args matters.\n def complete_help(self, *args: Any) -> List[str]: ...\n def do_help(self, arg: str) -> Optional[bool]: ...\n def print_topics(self, header: str, cmds: Optional[List[str]], cmdlen: Any, maxcol: int) -> None: ...\n def columnize(self, list: Optional[List[str]], displaywidth: int = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\cmd.pyi
cmd.pyi
Other
1,658
0.95
0.487179
0.026316
awesome-app
876
2023-07-22T23:31:42.966657
MIT
false
9b983cf8d2123ea9098348ddc12bb03e
import sys\nfrom types import CodeType\nfrom typing import Any, Callable, Mapping, Optional\n\nclass InteractiveInterpreter:\n def __init__(self, locals: Optional[Mapping[str, Any]] = ...) -> None: ...\n def runsource(self, source: str, filename: str = ..., symbol: str = ...) -> bool: ...\n def runcode(self, code: CodeType) -> None: ...\n def showsyntaxerror(self, filename: Optional[str] = ...) -> None: ...\n def showtraceback(self) -> None: ...\n def write(self, data: str) -> None: ...\n\nclass InteractiveConsole(InteractiveInterpreter):\n def __init__(self, locals: Optional[Mapping[str, Any]] = ..., filename: str = ...) -> None: ...\n if sys.version_info >= (3, 6):\n def interact(self, banner: Optional[str] = ..., exitmsg: Optional[str] = ...) -> None: ...\n else:\n def interact(self, banner: Optional[str] = ...) -> None: ...\n def push(self, line: str) -> bool: ...\n def resetbuffer(self) -> None: ...\n def raw_input(self, prompt: str = ...) -> str: ...\n\nif sys.version_info >= (3, 6):\n def interact(\n banner: Optional[str] = ...,\n readfunc: Optional[Callable[[str], str]] = ...,\n local: Optional[Mapping[str, Any]] = ...,\n exitmsg: Optional[str] = ...,\n ) -> None: ...\n\nelse:\n def interact(\n banner: Optional[str] = ..., readfunc: Optional[Callable[[str], str]] = ..., local: Optional[Mapping[str, Any]] = ...\n ) -> None: ...\n\ndef compile_command(source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\code.pyi
code.pyi
Other
1,522
0.85
0.527778
0
vue-tools
265
2025-02-01T04:02:24.275613
MIT
false
42cbca7b3c232985405b52596a287f60
import sys\nimport types\nfrom abc import abstractmethod\nfrom typing import (\n IO,\n Any,\n BinaryIO,\n Callable,\n Generator,\n Iterable,\n Iterator,\n List,\n Optional,\n Protocol,\n Text,\n TextIO,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\nfrom typing_extensions import Literal\n\n# TODO: this only satisfies the most common interface, where\n# bytes (py2 str) is the raw form and str (py2 unicode) is the cooked form.\n# In the long run, both should become template parameters maybe?\n# There *are* bytes->bytes and str->str encodings in the standard library.\n# They are much more common in Python 2 than in Python 3.\n\n_Decoded = Text\n_Encoded = bytes\n\nclass _Encoder(Protocol):\n def __call__(self, input: _Decoded, errors: str = ...) -> Tuple[_Encoded, int]: ... # signature of Codec().encode\n\nclass _Decoder(Protocol):\n def __call__(self, input: _Encoded, errors: str = ...) -> Tuple[_Decoded, int]: ... # signature of Codec().decode\n\nclass _StreamReader(Protocol):\n def __call__(self, stream: IO[_Encoded], errors: str = ...) -> StreamReader: ...\n\nclass _StreamWriter(Protocol):\n def __call__(self, stream: IO[_Encoded], errors: str = ...) -> StreamWriter: ...\n\nclass _IncrementalEncoder(Protocol):\n def __call__(self, errors: str = ...) -> IncrementalEncoder: ...\n\nclass _IncrementalDecoder(Protocol):\n def __call__(self, errors: str = ...) -> IncrementalDecoder: ...\n\n# The type ignore on `encode` and `decode` is to avoid issues with overlapping overloads, for more details, see #300\n# mypy and pytype disagree about where the type ignore can and cannot go, so alias the long type\n_BytesToBytesEncodingT = Literal[\n "base64",\n "base_64",\n "base64_codec",\n "bz2",\n "bz2_codec",\n "hex",\n "hex_codec",\n "quopri",\n "quotedprintable",\n "quoted_printable",\n "quopri_codec",\n "uu",\n "uu_codec",\n "zip",\n "zlib",\n "zlib_codec",\n]\n@overload\ndef encode(obj: bytes, encoding: _BytesToBytesEncodingT, errors: str = ...) -> bytes: ...\n@overload\ndef encode(obj: str, encoding: Literal["rot13", "rot_13"] = ..., errors: str = ...) -> str: ... # type: ignore\n@overload\ndef encode(obj: _Decoded, encoding: str = ..., errors: str = ...) -> _Encoded: ...\n@overload\ndef decode(obj: bytes, encoding: _BytesToBytesEncodingT, errors: str = ...) -> bytes: ... # type: ignore\n@overload\ndef decode(obj: str, encoding: Literal["rot13", "rot_13"] = ..., errors: str = ...) -> Text: ...\n@overload\ndef decode(obj: _Encoded, encoding: str = ..., errors: str = ...) -> _Decoded: ...\ndef lookup(__encoding: str) -> CodecInfo: ...\ndef utf_16_be_decode(__obj: _Encoded, __errors: str = ..., __final: bool = ...) -> Tuple[_Decoded, int]: ... # undocumented\ndef utf_16_be_encode(__obj: _Decoded, __errors: str = ...) -> Tuple[_Encoded, int]: ... # undocumented\n\nclass CodecInfo(Tuple[_Encoder, _Decoder, _StreamReader, _StreamWriter]):\n @property\n def encode(self) -> _Encoder: ...\n @property\n def decode(self) -> _Decoder: ...\n @property\n def streamreader(self) -> _StreamReader: ...\n @property\n def streamwriter(self) -> _StreamWriter: ...\n @property\n def incrementalencoder(self) -> _IncrementalEncoder: ...\n @property\n def incrementaldecoder(self) -> _IncrementalDecoder: ...\n name: str\n def __new__(\n cls,\n encode: _Encoder,\n decode: _Decoder,\n streamreader: Optional[_StreamReader] = ...,\n streamwriter: Optional[_StreamWriter] = ...,\n incrementalencoder: Optional[_IncrementalEncoder] = ...,\n incrementaldecoder: Optional[_IncrementalDecoder] = ...,\n name: Optional[str] = ...,\n *,\n _is_text_encoding: Optional[bool] = ...,\n ) -> CodecInfo: ...\n\ndef getencoder(encoding: str) -> _Encoder: ...\ndef getdecoder(encoding: str) -> _Decoder: ...\ndef getincrementalencoder(encoding: str) -> _IncrementalEncoder: ...\ndef getincrementaldecoder(encoding: str) -> _IncrementalDecoder: ...\ndef getreader(encoding: str) -> _StreamReader: ...\ndef getwriter(encoding: str) -> _StreamWriter: ...\ndef register(__search_function: Callable[[str], Optional[CodecInfo]]) -> None: ...\ndef open(\n filename: str, mode: str = ..., encoding: Optional[str] = ..., errors: str = ..., buffering: int = ...\n) -> StreamReaderWriter: ...\ndef EncodedFile(\n file: IO[_Encoded], data_encoding: str, file_encoding: Optional[str] = ..., errors: str = ...\n) -> StreamRecoder: ...\ndef iterencode(iterator: Iterable[_Decoded], encoding: str, errors: str = ...) -> Generator[_Encoded, None, None]: ...\ndef iterdecode(iterator: Iterable[_Encoded], encoding: str, errors: str = ...) -> Generator[_Decoded, None, None]: ...\n\nBOM: bytes\nBOM_BE: bytes\nBOM_LE: bytes\nBOM_UTF8: bytes\nBOM_UTF16: bytes\nBOM_UTF16_BE: bytes\nBOM_UTF16_LE: bytes\nBOM_UTF32: bytes\nBOM_UTF32_BE: bytes\nBOM_UTF32_LE: bytes\n\n# It is expected that different actions be taken depending on which of the\n# three subclasses of `UnicodeError` is actually ...ed. However, the Union\n# is still needed for at least one of the cases.\ndef register_error(__errors: str, __handler: Callable[[UnicodeError], Tuple[Union[str, bytes], int]]) -> None: ...\ndef lookup_error(__name: str) -> Callable[[UnicodeError], Tuple[Union[str, bytes], int]]: ...\ndef strict_errors(exception: UnicodeError) -> Tuple[Union[str, bytes], int]: ...\ndef replace_errors(exception: UnicodeError) -> Tuple[Union[str, bytes], int]: ...\ndef ignore_errors(exception: UnicodeError) -> Tuple[Union[str, bytes], int]: ...\ndef xmlcharrefreplace_errors(exception: UnicodeError) -> Tuple[Union[str, bytes], int]: ...\ndef backslashreplace_errors(exception: UnicodeError) -> Tuple[Union[str, bytes], int]: ...\n\nclass Codec:\n # These are sort of @abstractmethod but sort of not.\n # The StreamReader and StreamWriter subclasses only implement one.\n def encode(self, input: _Decoded, errors: str = ...) -> Tuple[_Encoded, int]: ...\n def decode(self, input: _Encoded, errors: str = ...) -> Tuple[_Decoded, int]: ...\n\nclass IncrementalEncoder:\n errors: str\n def __init__(self, errors: str = ...) -> None: ...\n @abstractmethod\n def encode(self, object: _Decoded, final: bool = ...) -> _Encoded: ...\n def reset(self) -> None: ...\n # documentation says int but str is needed for the subclass.\n def getstate(self) -> Union[int, _Decoded]: ...\n def setstate(self, state: Union[int, _Decoded]) -> None: ...\n\nclass IncrementalDecoder:\n errors: str\n def __init__(self, errors: str = ...) -> None: ...\n @abstractmethod\n def decode(self, input: _Encoded, final: bool = ...) -> _Decoded: ...\n def reset(self) -> None: ...\n def getstate(self) -> Tuple[_Encoded, int]: ...\n def setstate(self, state: Tuple[_Encoded, int]) -> None: ...\n\n# These are not documented but used in encodings/*.py implementations.\nclass BufferedIncrementalEncoder(IncrementalEncoder):\n buffer: str\n def __init__(self, errors: str = ...) -> None: ...\n @abstractmethod\n def _buffer_encode(self, input: _Decoded, errors: str, final: bool) -> _Encoded: ...\n def encode(self, input: _Decoded, final: bool = ...) -> _Encoded: ...\n\nclass BufferedIncrementalDecoder(IncrementalDecoder):\n buffer: bytes\n def __init__(self, errors: str = ...) -> None: ...\n @abstractmethod\n def _buffer_decode(self, input: _Encoded, errors: str, final: bool) -> Tuple[_Decoded, int]: ...\n def decode(self, object: _Encoded, final: bool = ...) -> _Decoded: ...\n\n_SW = TypeVar("_SW", bound=StreamWriter)\n\n# TODO: it is not possible to specify the requirement that all other\n# attributes and methods are passed-through from the stream.\nclass StreamWriter(Codec):\n errors: str\n def __init__(self, stream: IO[_Encoded], errors: str = ...) -> None: ...\n def write(self, obj: _Decoded) -> None: ...\n def writelines(self, list: Iterable[_Decoded]) -> None: ...\n def reset(self) -> None: ...\n def __enter__(self: _SW) -> _SW: ...\n def __exit__(\n self, typ: Optional[Type[BaseException]], exc: Optional[BaseException], tb: Optional[types.TracebackType]\n ) -> None: ...\n def __getattr__(self, name: str) -> Any: ...\n\n_SR = TypeVar("_SR", bound=StreamReader)\n\nclass StreamReader(Codec):\n errors: str\n def __init__(self, stream: IO[_Encoded], errors: str = ...) -> None: ...\n def read(self, size: int = ..., chars: int = ..., firstline: bool = ...) -> _Decoded: ...\n def readline(self, size: int = ..., keepends: bool = ...) -> _Decoded: ...\n def readlines(self, sizehint: int = ..., keepends: bool = ...) -> List[_Decoded]: ...\n def reset(self) -> None: ...\n def __enter__(self: _SR) -> _SR: ...\n def __exit__(\n self, typ: Optional[Type[BaseException]], exc: Optional[BaseException], tb: Optional[types.TracebackType]\n ) -> None: ...\n def __iter__(self) -> Iterator[_Decoded]: ...\n def __getattr__(self, name: str) -> Any: ...\n\n_T = TypeVar("_T", bound=StreamReaderWriter)\n\n# Doesn't actually inherit from TextIO, but wraps a BinaryIO to provide text reading and writing\n# and delegates attributes to the underlying binary stream with __getattr__.\nclass StreamReaderWriter(TextIO):\n def __init__(self, stream: IO[_Encoded], Reader: _StreamReader, Writer: _StreamWriter, errors: str = ...) -> None: ...\n def read(self, size: int = ...) -> _Decoded: ...\n def readline(self, size: Optional[int] = ...) -> _Decoded: ...\n def readlines(self, sizehint: Optional[int] = ...) -> List[_Decoded]: ...\n if sys.version_info >= (3,):\n def __next__(self) -> Text: ...\n else:\n def next(self) -> Text: ...\n def __iter__(self: _T) -> _T: ...\n # This actually returns None, but that's incompatible with the supertype\n def write(self, data: _Decoded) -> int: ...\n def writelines(self, list: Iterable[_Decoded]) -> None: ...\n def reset(self) -> None: ...\n # Same as write()\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def __enter__(self: _T) -> _T: ...\n def __exit__(\n self, typ: Optional[Type[BaseException]], exc: Optional[BaseException], tb: Optional[types.TracebackType]\n ) -> None: ...\n def __getattr__(self, name: str) -> Any: ...\n # These methods don't actually exist directly, but they are needed to satisfy the TextIO\n # interface. At runtime, they are delegated through __getattr__.\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 truncate(self, size: Optional[int] = ...) -> int: ...\n def seekable(self) -> bool: ...\n def tell(self) -> int: ...\n def writable(self) -> bool: ...\n\n_SRT = TypeVar("_SRT", bound=StreamRecoder)\n\nclass StreamRecoder(BinaryIO):\n def __init__(\n self,\n stream: IO[_Encoded],\n encode: _Encoder,\n decode: _Decoder,\n Reader: _StreamReader,\n Writer: _StreamWriter,\n errors: str = ...,\n ) -> None: ...\n def read(self, size: int = ...) -> bytes: ...\n def readline(self, size: Optional[int] = ...) -> bytes: ...\n def readlines(self, sizehint: Optional[int] = ...) -> List[bytes]: ...\n if sys.version_info >= (3,):\n def __next__(self) -> bytes: ...\n else:\n def next(self) -> bytes: ...\n def __iter__(self: _SRT) -> _SRT: ...\n def write(self, data: bytes) -> int: ...\n def writelines(self, list: Iterable[bytes]) -> int: ... # type: ignore # it's supposed to return None\n def reset(self) -> None: ...\n def __getattr__(self, name: str) -> Any: ...\n def __enter__(self: _SRT) -> _SRT: ...\n def __exit__(\n self, type: Optional[Type[BaseException]], value: Optional[BaseException], tb: Optional[types.TracebackType]\n ) -> None: ...\n # These methods don't actually exist directly, but they are needed to satisfy the BinaryIO\n # interface. At runtime, they are delegated through __getattr__.\n def seek(self, offset: int, whence: int = ...) -> int: ...\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 truncate(self, size: Optional[int] = ...) -> int: ...\n def seekable(self) -> bool: ...\n def tell(self) -> int: ...\n def writable(self) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\codecs.pyi
codecs.pyi
Other
12,312
0.95
0.468439
0.090909
node-utils
677
2024-08-11T18:17:15.108792
BSD-3-Clause
false
8bddac043084ee942e10d5c53a1f8d4f
from types import CodeType\nfrom typing import Optional\n\ndef compile_command(source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...\n\nclass Compile:\n flags: int\n def __init__(self) -> None: ...\n def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...\n\nclass CommandCompiler:\n compiler: Compile\n def __init__(self) -> None: ...\n def __call__(self, source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\codeop.pyi
codeop.pyi
Other
489
0.85
0.5
0
react-lib
986
2024-11-08T03:48:03.780604
GPL-3.0
false
3342724b4a0c50710e5801bbd0e0be3d
from typing import Tuple\n\ndef rgb_to_yiq(r: float, g: float, b: float) -> Tuple[float, float, float]: ...\ndef yiq_to_rgb(y: float, i: float, q: float) -> Tuple[float, float, float]: ...\ndef rgb_to_hls(r: float, g: float, b: float) -> Tuple[float, float, float]: ...\ndef hls_to_rgb(h: float, l: float, s: float) -> Tuple[float, float, float]: ...\ndef rgb_to_hsv(r: float, g: float, b: float) -> Tuple[float, float, float]: ...\ndef hsv_to_rgb(h: float, s: float, v: float) -> Tuple[float, float, float]: ...\n\n# TODO undocumented\nONE_SIXTH: float\nONE_THIRD: float\nTWO_THIRD: float\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\colorsys.pyi
colorsys.pyi
Other
578
0.95
0.461538
0.090909
node-utils
577
2023-09-23T02:16:20.222119
Apache-2.0
false
76d9fae168d60552faaba0195e9d58e4
import sys\nfrom types import TracebackType\nfrom typing import IO, Any, Callable, ContextManager, Iterable, Iterator, Optional, Type, TypeVar, overload\n\nif sys.version_info >= (3, 5):\n from typing import AsyncContextManager, AsyncIterator\n\nif sys.version_info >= (3, 6):\n AbstractContextManager = ContextManager\nif sys.version_info >= (3, 7):\n AbstractAsyncContextManager = AsyncContextManager\n\n_T = TypeVar("_T")\n_T_co = TypeVar("_T_co", covariant=True)\n_T_io = TypeVar("_T_io", bound=Optional[IO[str]])\n_F = TypeVar("_F", bound=Callable[..., Any])\n\n_ExitFunc = Callable[[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]], bool]\n_CM_EF = TypeVar("_CM_EF", ContextManager[Any], _ExitFunc)\n\nif sys.version_info >= (3, 2):\n class _GeneratorContextManager(ContextManager[_T_co]):\n def __call__(self, func: _F) -> _F: ...\n def contextmanager(func: Callable[..., Iterator[_T]]) -> Callable[..., _GeneratorContextManager[_T]]: ...\n\nelse:\n class GeneratorContextManager(ContextManager[_T_co]):\n def __call__(self, func: _F) -> _F: ...\n def contextmanager(func: Callable[..., Iterator[_T]]) -> Callable[..., ContextManager[_T]]: ...\n\nif sys.version_info >= (3, 7):\n def asynccontextmanager(func: Callable[..., AsyncIterator[_T]]) -> Callable[..., AsyncContextManager[_T]]: ...\n\nif sys.version_info < (3,):\n def nested(*mgr: ContextManager[Any]) -> ContextManager[Iterable[Any]]: ...\n\nclass closing(ContextManager[_T]):\n def __init__(self, thing: _T) -> None: ...\n\nif sys.version_info >= (3, 4):\n class suppress(ContextManager[None]):\n def __init__(self, *exceptions: Type[BaseException]) -> None: ...\n def __exit__(\n self, exctype: Optional[Type[BaseException]], excinst: Optional[BaseException], exctb: Optional[TracebackType]\n ) -> bool: ...\n class redirect_stdout(ContextManager[_T_io]):\n def __init__(self, new_target: _T_io) -> None: ...\n\nif sys.version_info >= (3, 5):\n class redirect_stderr(ContextManager[_T_io]):\n def __init__(self, new_target: _T_io) -> None: ...\n\nif sys.version_info >= (3,):\n class ContextDecorator:\n def __call__(self, func: _F) -> _F: ...\n _U = TypeVar("_U", bound=ExitStack)\n class ExitStack(ContextManager[ExitStack]):\n def __init__(self) -> None: ...\n def enter_context(self, cm: ContextManager[_T]) -> _T: ...\n def push(self, exit: _CM_EF) -> _CM_EF: ...\n def callback(self, callback: Callable[..., Any], *args: Any, **kwds: Any) -> Callable[..., Any]: ...\n def pop_all(self: _U) -> _U: ...\n def close(self) -> None: ...\n def __enter__(self: _U) -> _U: ...\n def __exit__(\n self,\n __exc_type: Optional[Type[BaseException]],\n __exc_value: Optional[BaseException],\n __traceback: Optional[TracebackType],\n ) -> bool: ...\n\nif sys.version_info >= (3, 7):\n from typing import Awaitable\n\n _S = TypeVar("_S", bound=AsyncExitStack)\n\n _ExitCoroFunc = Callable[[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]], Awaitable[bool]]\n _CallbackCoroFunc = Callable[..., Awaitable[Any]]\n _ACM_EF = TypeVar("_ACM_EF", AsyncContextManager[Any], _ExitCoroFunc)\n class AsyncExitStack(AsyncContextManager[AsyncExitStack]):\n def __init__(self) -> None: ...\n def enter_context(self, cm: ContextManager[_T]) -> _T: ...\n def enter_async_context(self, cm: AsyncContextManager[_T]) -> Awaitable[_T]: ...\n def push(self, exit: _CM_EF) -> _CM_EF: ...\n def push_async_exit(self, exit: _ACM_EF) -> _ACM_EF: ...\n def callback(self, callback: Callable[..., Any], *args: Any, **kwds: Any) -> Callable[..., Any]: ...\n def push_async_callback(self, callback: _CallbackCoroFunc, *args: Any, **kwds: Any) -> _CallbackCoroFunc: ...\n def pop_all(self: _S) -> _S: ...\n def aclose(self) -> Awaitable[None]: ...\n def __aenter__(self: _S) -> Awaitable[_S]: ...\n def __aexit__(\n self,\n __exc_type: Optional[Type[BaseException]],\n __exc_value: Optional[BaseException],\n __traceback: Optional[TracebackType],\n ) -> Awaitable[bool]: ...\n\nif sys.version_info >= (3, 7):\n @overload\n def nullcontext(enter_result: _T) -> ContextManager[_T]: ...\n @overload\n def nullcontext() -> ContextManager[None]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\contextlib.pyi
contextlib.pyi
Other
4,419
0.85
0.519608
0
react-lib
541
2024-10-22T16:18:01.707700
MIT
false
b77f00eedf60d3e0e944be4455456f78
from typing import Any, Dict, Optional, TypeVar\n\n_T = TypeVar("_T")\n\n# None in CPython but non-None in Jython\nPyStringMap: Any\n\n# Note: memo and _nil are internal kwargs.\ndef deepcopy(x: _T, memo: Optional[Dict[int, Any]] = ..., _nil: Any = ...) -> _T: ...\ndef copy(x: _T) -> _T: ...\n\nclass Error(Exception): ...\n\nerror = Error\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\copy.pyi
copy.pyi
Other
328
0.95
0.214286
0.222222
vue-tools
363
2024-02-24T18:47:21.789861
MIT
false
ba70c068d9d13b76e238251b3ee4ea6e
import sys\nfrom _typeshed import AnyPath\nfrom typing import Any, Callable, Dict, Optional, TypeVar, Union\n\ndef run(statement: str, filename: Optional[str] = ..., sort: Union[str, int] = ...) -> None: ...\ndef runctx(\n statement: str, globals: Dict[str, Any], locals: Dict[str, Any], filename: Optional[str] = ..., sort: Union[str, int] = ...\n) -> None: ...\n\n_SelfT = TypeVar("_SelfT", bound=Profile)\n_T = TypeVar("_T")\n\nclass Profile:\n def __init__(\n self, timer: Callable[[], float] = ..., timeunit: float = ..., subcalls: bool = ..., builtins: bool = ...\n ) -> None: ...\n def enable(self) -> None: ...\n def disable(self) -> None: ...\n def print_stats(self, sort: Union[str, int] = ...) -> None: ...\n def dump_stats(self, file: AnyPath) -> None: ...\n def create_stats(self) -> None: ...\n def snapshot_stats(self) -> None: ...\n def run(self: _SelfT, cmd: str) -> _SelfT: ...\n def runctx(self: _SelfT, cmd: str, globals: Dict[str, Any], locals: Dict[str, Any]) -> _SelfT: ...\n def runcall(self, __func: Callable[..., _T], *args: Any, **kw: Any) -> _T: ...\n if sys.version_info >= (3, 8):\n def __enter__(self: _SelfT) -> _SelfT: ...\n def __exit__(self, *exc_info: Any) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\cProfile.pyi
cProfile.pyi
Other
1,239
0.85
0.571429
0
node-utils
341
2024-10-24T15:08:26.095325
BSD-3-Clause
false
816410f9d4243a24a4c38e922b12f7e9
import sys\nfrom typing import List, Optional, Union\n\nif sys.version_info >= (3, 3):\n class _Method: ...\n METHOD_CRYPT: _Method\n METHOD_MD5: _Method\n METHOD_SHA256: _Method\n METHOD_SHA512: _Method\n if sys.version_info >= (3, 7):\n METHOD_BLOWFISH: _Method\n\n methods: List[_Method]\n\n if sys.version_info >= (3, 7):\n def mksalt(method: Optional[_Method] = ..., *, rounds: Optional[int] = ...) -> str: ...\n else:\n def mksalt(method: Optional[_Method] = ...) -> str: ...\n def crypt(word: str, salt: Optional[Union[str, _Method]] = ...) -> str: ...\n\nelse:\n def crypt(word: str, salt: str) -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\crypt.pyi
crypt.pyi
Other
648
0.85
0.363636
0
vue-tools
809
2024-12-20T07:35:00.932699
BSD-3-Clause
false
3d992532730950f7febdf35fd882a316
import sys\nfrom _csv import (\n QUOTE_ALL as QUOTE_ALL,\n QUOTE_MINIMAL as QUOTE_MINIMAL,\n QUOTE_NONE as QUOTE_NONE,\n QUOTE_NONNUMERIC as QUOTE_NONNUMERIC,\n Dialect as Dialect,\n Error as Error,\n _DialectLike,\n _reader,\n _writer,\n field_size_limit as field_size_limit,\n get_dialect as get_dialect,\n list_dialects as list_dialects,\n reader as reader,\n register_dialect as register_dialect,\n unregister_dialect as unregister_dialect,\n writer as writer,\n)\nfrom collections import OrderedDict\nfrom typing import Any, Dict, Iterable, Iterator, List, Mapping, Optional, Sequence, Text, Type\n\n_DictRow = Mapping[str, Any]\n\nclass excel(Dialect):\n delimiter: str\n quotechar: str\n doublequote: bool\n skipinitialspace: bool\n lineterminator: str\n quoting: int\n\nclass excel_tab(excel):\n delimiter: str\n\nif sys.version_info >= (3,):\n class unix_dialect(Dialect):\n delimiter: str\n quotechar: str\n doublequote: bool\n skipinitialspace: bool\n lineterminator: str\n quoting: int\n\nif sys.version_info >= (3, 8):\n _DRMapping = Dict[str, str]\nelif sys.version_info >= (3, 6):\n _DRMapping = OrderedDict[str, str]\nelse:\n _DRMapping = Dict[str, str]\n\nclass DictReader(Iterator[_DRMapping]):\n restkey: Optional[str]\n restval: Optional[str]\n reader: _reader\n dialect: _DialectLike\n line_num: int\n fieldnames: Optional[Sequence[str]]\n def __init__(\n self,\n f: Iterable[Text],\n fieldnames: Optional[Sequence[str]] = ...,\n restkey: Optional[str] = ...,\n restval: Optional[str] = ...,\n dialect: _DialectLike = ...,\n *args: Any,\n **kwds: Any,\n ) -> None: ...\n def __iter__(self) -> DictReader: ...\n if sys.version_info >= (3,):\n def __next__(self) -> _DRMapping: ...\n else:\n def next(self) -> _DRMapping: ...\n\nclass DictWriter(object):\n fieldnames: Sequence[str]\n restval: Optional[Any]\n extrasaction: str\n writer: _writer\n def __init__(\n self,\n f: Any,\n fieldnames: Iterable[str],\n restval: Optional[Any] = ...,\n extrasaction: str = ...,\n dialect: _DialectLike = ...,\n *args: Any,\n **kwds: Any,\n ) -> None: ...\n if sys.version_info >= (3, 8):\n def writeheader(self) -> Any: ...\n else:\n def writeheader(self) -> None: ...\n def writerow(self, rowdict: _DictRow) -> Any: ...\n def writerows(self, rowdicts: Iterable[_DictRow]) -> None: ...\n\nclass Sniffer(object):\n preferred: List[str]\n def __init__(self) -> None: ...\n def sniff(self, sample: str, delimiters: Optional[str] = ...) -> Type[Dialect]: ...\n def has_header(self, sample: str) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\csv.pyi
csv.pyi
Other
2,751
0.85
0.217822
0.043011
python-kit
730
2024-02-16T14:40:13.574187
GPL-3.0
false
9ea17152f85dcb4f35361dd95212c600
import sys\nfrom time import struct_time\nfrom typing import AnyStr, ClassVar, Optional, SupportsAbs, Tuple, Type, TypeVar, Union, overload\n\n_S = TypeVar("_S")\n\nif sys.version_info >= (3,):\n _Text = str\nelse:\n _Text = Union[str, unicode]\n\nMINYEAR: int\nMAXYEAR: int\n\nclass tzinfo:\n def tzname(self, dt: Optional[datetime]) -> Optional[str]: ...\n def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ...\n def dst(self, dt: Optional[datetime]) -> Optional[timedelta]: ...\n def fromutc(self, dt: datetime) -> datetime: ...\n\nif sys.version_info >= (3, 2):\n class timezone(tzinfo):\n utc: ClassVar[timezone]\n min: ClassVar[timezone]\n max: ClassVar[timezone]\n def __init__(self, offset: timedelta, name: str = ...) -> None: ...\n def __hash__(self) -> int: ...\n\n_tzinfo = tzinfo\n\nclass date:\n min: ClassVar[date]\n max: ClassVar[date]\n resolution: ClassVar[timedelta]\n def __new__(cls: Type[_S], year: int, month: int, day: int) -> _S: ...\n @classmethod\n def fromtimestamp(cls: Type[_S], __timestamp: float) -> _S: ...\n @classmethod\n def today(cls: Type[_S]) -> _S: ...\n @classmethod\n def fromordinal(cls: Type[_S], n: int) -> _S: ...\n if sys.version_info >= (3, 7):\n @classmethod\n def fromisoformat(cls: Type[_S], date_string: str) -> _S: ...\n if sys.version_info >= (3, 8):\n @classmethod\n def fromisocalendar(cls: Type[_S], year: int, week: int, day: int) -> _S: ...\n @property\n def year(self) -> int: ...\n @property\n def month(self) -> int: ...\n @property\n def day(self) -> int: ...\n def ctime(self) -> str: ...\n def strftime(self, fmt: _Text) -> str: ...\n if sys.version_info >= (3,):\n def __format__(self, fmt: str) -> str: ...\n else:\n def __format__(self, fmt: AnyStr) -> AnyStr: ...\n def isoformat(self) -> str: ...\n def timetuple(self) -> struct_time: ...\n def toordinal(self) -> int: ...\n def replace(self, year: int = ..., month: int = ..., day: int = ...) -> date: ...\n def __le__(self, other: date) -> bool: ...\n def __lt__(self, other: date) -> bool: ...\n def __ge__(self, other: date) -> bool: ...\n def __gt__(self, other: date) -> bool: ...\n if sys.version_info >= (3, 8):\n def __add__(self: _S, other: timedelta) -> _S: ...\n def __radd__(self: _S, other: timedelta) -> _S: ...\n else:\n def __add__(self, other: timedelta) -> date: ...\n def __radd__(self, other: timedelta) -> date: ...\n @overload\n def __sub__(self, other: timedelta) -> date: ...\n @overload\n def __sub__(self, other: date) -> timedelta: ...\n def __hash__(self) -> int: ...\n def weekday(self) -> int: ...\n def isoweekday(self) -> int: ...\n def isocalendar(self) -> Tuple[int, int, int]: ...\n\nclass time:\n min: ClassVar[time]\n max: ClassVar[time]\n resolution: ClassVar[timedelta]\n\n if sys.version_info >= (3, 6):\n def __init__(\n self,\n hour: int = ...,\n minute: int = ...,\n second: int = ...,\n microsecond: int = ...,\n tzinfo: Optional[_tzinfo] = ...,\n *,\n fold: int = ...,\n ) -> None: ...\n else:\n def __init__(\n self, hour: int = ..., minute: int = ..., second: int = ..., microsecond: int = ..., tzinfo: Optional[_tzinfo] = ...\n ) -> None: ...\n @property\n def hour(self) -> int: ...\n @property\n def minute(self) -> int: ...\n @property\n def second(self) -> int: ...\n @property\n def microsecond(self) -> int: ...\n @property\n def tzinfo(self) -> Optional[_tzinfo]: ...\n if sys.version_info >= (3, 6):\n @property\n def fold(self) -> int: ...\n def __le__(self, other: time) -> bool: ...\n def __lt__(self, other: time) -> bool: ...\n def __ge__(self, other: time) -> bool: ...\n def __gt__(self, other: time) -> bool: ...\n def __hash__(self) -> int: ...\n if sys.version_info >= (3, 6):\n def isoformat(self, timespec: str = ...) -> str: ...\n else:\n def isoformat(self) -> str: ...\n if sys.version_info >= (3, 7):\n @classmethod\n def fromisoformat(cls: Type[_S], time_string: str) -> _S: ...\n def strftime(self, fmt: _Text) -> str: ...\n if sys.version_info >= (3,):\n def __format__(self, fmt: str) -> str: ...\n else:\n def __format__(self, fmt: AnyStr) -> AnyStr: ...\n def utcoffset(self) -> Optional[timedelta]: ...\n def tzname(self) -> Optional[str]: ...\n def dst(self) -> Optional[timedelta]: ...\n if sys.version_info >= (3, 6):\n def replace(\n self,\n hour: int = ...,\n minute: int = ...,\n second: int = ...,\n microsecond: int = ...,\n tzinfo: Optional[_tzinfo] = ...,\n *,\n fold: int = ...,\n ) -> time: ...\n else:\n def replace(\n self, hour: int = ..., minute: int = ..., second: int = ..., microsecond: int = ..., tzinfo: Optional[_tzinfo] = ...\n ) -> time: ...\n\n_date = date\n_time = time\n\nclass timedelta(SupportsAbs[timedelta]):\n min: ClassVar[timedelta]\n max: ClassVar[timedelta]\n resolution: ClassVar[timedelta]\n\n if sys.version_info >= (3, 6):\n def __init__(\n self,\n days: float = ...,\n seconds: float = ...,\n microseconds: float = ...,\n milliseconds: float = ...,\n minutes: float = ...,\n hours: float = ...,\n weeks: float = ...,\n *,\n fold: int = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n days: float = ...,\n seconds: float = ...,\n microseconds: float = ...,\n milliseconds: float = ...,\n minutes: float = ...,\n hours: float = ...,\n weeks: float = ...,\n ) -> None: ...\n @property\n def days(self) -> int: ...\n @property\n def seconds(self) -> int: ...\n @property\n def microseconds(self) -> int: ...\n def total_seconds(self) -> float: ...\n def __add__(self, other: timedelta) -> timedelta: ...\n def __radd__(self, other: timedelta) -> timedelta: ...\n def __sub__(self, other: timedelta) -> timedelta: ...\n def __rsub__(self, other: timedelta) -> timedelta: ...\n def __neg__(self) -> timedelta: ...\n def __pos__(self) -> timedelta: ...\n def __abs__(self) -> timedelta: ...\n def __mul__(self, other: float) -> timedelta: ...\n def __rmul__(self, other: float) -> timedelta: ...\n @overload\n def __floordiv__(self, other: timedelta) -> int: ...\n @overload\n def __floordiv__(self, other: int) -> timedelta: ...\n if sys.version_info >= (3,):\n @overload\n def __truediv__(self, other: timedelta) -> float: ...\n @overload\n def __truediv__(self, other: float) -> timedelta: ...\n def __mod__(self, other: timedelta) -> timedelta: ...\n def __divmod__(self, other: timedelta) -> Tuple[int, timedelta]: ...\n else:\n @overload\n def __div__(self, other: timedelta) -> float: ...\n @overload\n def __div__(self, other: float) -> timedelta: ...\n def __le__(self, other: timedelta) -> bool: ...\n def __lt__(self, other: timedelta) -> bool: ...\n def __ge__(self, other: timedelta) -> bool: ...\n def __gt__(self, other: timedelta) -> bool: ...\n def __hash__(self) -> int: ...\n\nclass datetime(date):\n min: ClassVar[datetime]\n max: ClassVar[datetime]\n resolution: ClassVar[timedelta]\n\n if sys.version_info >= (3, 6):\n def __new__(\n cls: Type[_S],\n year: int,\n month: int,\n day: int,\n hour: int = ...,\n minute: int = ...,\n second: int = ...,\n microsecond: int = ...,\n tzinfo: Optional[_tzinfo] = ...,\n *,\n fold: int = ...,\n ) -> _S: ...\n else:\n def __new__(\n cls: Type[_S],\n year: int,\n month: int,\n day: int,\n hour: int = ...,\n minute: int = ...,\n second: int = ...,\n microsecond: int = ...,\n tzinfo: Optional[_tzinfo] = ...,\n ) -> _S: ...\n @property\n def year(self) -> int: ...\n @property\n def month(self) -> int: ...\n @property\n def day(self) -> int: ...\n @property\n def hour(self) -> int: ...\n @property\n def minute(self) -> int: ...\n @property\n def second(self) -> int: ...\n @property\n def microsecond(self) -> int: ...\n @property\n def tzinfo(self) -> Optional[_tzinfo]: ...\n if sys.version_info >= (3, 6):\n @property\n def fold(self) -> int: ...\n @classmethod\n def fromtimestamp(cls: Type[_S], t: float, tz: Optional[_tzinfo] = ...) -> _S: ...\n @classmethod\n def utcfromtimestamp(cls: Type[_S], t: float) -> _S: ...\n @classmethod\n def today(cls: Type[_S]) -> _S: ...\n @classmethod\n def fromordinal(cls: Type[_S], n: int) -> _S: ...\n if sys.version_info >= (3, 8):\n @classmethod\n def now(cls: Type[_S], tz: Optional[_tzinfo] = ...) -> _S: ...\n else:\n @overload\n @classmethod\n def now(cls: Type[_S], tz: None = ...) -> _S: ...\n @overload\n @classmethod\n def now(cls, tz: _tzinfo) -> datetime: ...\n @classmethod\n def utcnow(cls: Type[_S]) -> _S: ...\n if sys.version_info >= (3, 6):\n @classmethod\n def combine(cls, date: _date, time: _time, tzinfo: Optional[_tzinfo] = ...) -> datetime: ...\n else:\n @classmethod\n def combine(cls, date: _date, time: _time) -> datetime: ...\n if sys.version_info >= (3, 7):\n @classmethod\n def fromisoformat(cls: Type[_S], date_string: str) -> _S: ...\n def strftime(self, fmt: _Text) -> str: ...\n if sys.version_info >= (3,):\n def __format__(self, fmt: str) -> str: ...\n else:\n def __format__(self, fmt: AnyStr) -> AnyStr: ...\n def toordinal(self) -> int: ...\n def timetuple(self) -> struct_time: ...\n if sys.version_info >= (3, 3):\n def timestamp(self) -> float: ...\n def utctimetuple(self) -> struct_time: ...\n def date(self) -> _date: ...\n def time(self) -> _time: ...\n def timetz(self) -> _time: ...\n if sys.version_info >= (3, 6):\n def replace(\n self,\n year: int = ...,\n month: int = ...,\n day: int = ...,\n hour: int = ...,\n minute: int = ...,\n second: int = ...,\n microsecond: int = ...,\n tzinfo: Optional[_tzinfo] = ...,\n *,\n fold: int = ...,\n ) -> datetime: ...\n else:\n def replace(\n self,\n year: int = ...,\n month: int = ...,\n day: int = ...,\n hour: int = ...,\n minute: int = ...,\n second: int = ...,\n microsecond: int = ...,\n tzinfo: Optional[_tzinfo] = ...,\n ) -> datetime: ...\n if sys.version_info >= (3, 8):\n def astimezone(self: _S, tz: Optional[_tzinfo] = ...) -> _S: ...\n elif sys.version_info >= (3, 3):\n def astimezone(self, tz: Optional[_tzinfo] = ...) -> datetime: ...\n else:\n def astimezone(self, tz: _tzinfo) -> datetime: ...\n def ctime(self) -> str: ...\n if sys.version_info >= (3, 6):\n def isoformat(self, sep: str = ..., timespec: str = ...) -> str: ...\n else:\n def isoformat(self, sep: str = ...) -> str: ...\n @classmethod\n def strptime(cls, date_string: _Text, format: _Text) -> datetime: ...\n def utcoffset(self) -> Optional[timedelta]: ...\n def tzname(self) -> Optional[str]: ...\n def dst(self) -> Optional[timedelta]: ...\n def __le__(self, other: datetime) -> bool: ... # type: ignore\n def __lt__(self, other: datetime) -> bool: ... # type: ignore\n def __ge__(self, other: datetime) -> bool: ... # type: ignore\n def __gt__(self, other: datetime) -> bool: ... # type: ignore\n if sys.version_info >= (3, 8):\n def __add__(self: _S, other: timedelta) -> _S: ...\n def __radd__(self: _S, other: timedelta) -> _S: ...\n else:\n def __add__(self, other: timedelta) -> datetime: ...\n def __radd__(self, other: timedelta) -> datetime: ...\n @overload # type: ignore\n def __sub__(self, other: datetime) -> timedelta: ...\n @overload\n def __sub__(self, other: timedelta) -> datetime: ...\n def __hash__(self) -> int: ...\n def weekday(self) -> int: ...\n def isoweekday(self) -> int: ...\n def isocalendar(self) -> Tuple[int, int, int]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\datetime.pyi
datetime.pyi
Other
12,699
0.95
0.477212
0.013928
vue-tools
244
2024-11-11T20:33:45.932775
BSD-3-Clause
false
144172b3b4b1a446f3e7fb6a06f79c3e
import numbers\nimport sys\nfrom types import TracebackType\nfrom typing import Any, Container, Dict, List, NamedTuple, Optional, Sequence, Text, Tuple, Type, TypeVar, Union, overload\n\n_Decimal = Union[Decimal, int]\n_DecimalNew = Union[Decimal, float, Text, Tuple[int, Sequence[int], int]]\nif sys.version_info >= (3,):\n _ComparableNum = Union[Decimal, float, numbers.Rational]\nelse:\n _ComparableNum = Union[Decimal, float]\n_DecimalT = TypeVar("_DecimalT", bound=Decimal)\n\nclass DecimalTuple(NamedTuple):\n sign: int\n digits: Tuple[int, ...]\n exponent: int\n\nROUND_DOWN: str\nROUND_HALF_UP: str\nROUND_HALF_EVEN: str\nROUND_CEILING: str\nROUND_FLOOR: str\nROUND_UP: str\nROUND_HALF_DOWN: str\nROUND_05UP: str\n\nif sys.version_info >= (3,):\n HAVE_THREADS: bool\n MAX_EMAX: int\n MAX_PREC: int\n MIN_EMIN: int\n MIN_ETINY: int\n\nclass DecimalException(ArithmeticError):\n if sys.version_info < (3,):\n def handle(self, context: Context, *args: Any) -> Optional[Decimal]: ...\n\nclass Clamped(DecimalException): ...\nclass InvalidOperation(DecimalException): ...\nclass ConversionSyntax(InvalidOperation): ...\nclass DivisionByZero(DecimalException, ZeroDivisionError): ...\nclass DivisionImpossible(InvalidOperation): ...\nclass DivisionUndefined(InvalidOperation, ZeroDivisionError): ...\nclass Inexact(DecimalException): ...\nclass InvalidContext(InvalidOperation): ...\nclass Rounded(DecimalException): ...\nclass Subnormal(DecimalException): ...\nclass Overflow(Inexact, Rounded): ...\nclass Underflow(Inexact, Rounded, Subnormal): ...\n\nif sys.version_info >= (3,):\n class FloatOperation(DecimalException, TypeError): ...\n\ndef setcontext(__context: Context) -> None: ...\ndef getcontext() -> Context: ...\ndef localcontext(ctx: Optional[Context] = ...) -> _ContextManager: ...\n\nclass Decimal(object):\n def __new__(cls: Type[_DecimalT], value: _DecimalNew = ..., context: Optional[Context] = ...) -> _DecimalT: ...\n @classmethod\n def from_float(cls, __f: float) -> Decimal: ...\n if sys.version_info >= (3,):\n def __bool__(self) -> bool: ...\n else:\n def __nonzero__(self) -> bool: ...\n def __div__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __rdiv__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __ne__(self, other: object, context: Optional[Context] = ...) -> bool: ...\n def compare(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __hash__(self) -> int: ...\n def as_tuple(self) -> DecimalTuple: ...\n if sys.version_info >= (3, 6):\n def as_integer_ratio(self) -> Tuple[int, int]: ...\n def to_eng_string(self, context: Optional[Context] = ...) -> str: ...\n if sys.version_info >= (3,):\n def __abs__(self) -> Decimal: ...\n def __add__(self, other: _Decimal) -> Decimal: ...\n def __divmod__(self, other: _Decimal) -> Tuple[Decimal, Decimal]: ...\n def __eq__(self, other: object) -> bool: ...\n def __floordiv__(self, other: _Decimal) -> Decimal: ...\n def __ge__(self, other: _ComparableNum) -> bool: ...\n def __gt__(self, other: _ComparableNum) -> bool: ...\n def __le__(self, other: _ComparableNum) -> bool: ...\n def __lt__(self, other: _ComparableNum) -> bool: ...\n def __mod__(self, other: _Decimal) -> Decimal: ...\n def __mul__(self, other: _Decimal) -> Decimal: ...\n def __neg__(self) -> Decimal: ...\n def __pos__(self) -> Decimal: ...\n def __pow__(self, other: _Decimal, modulo: Optional[_Decimal] = ...) -> Decimal: ...\n def __radd__(self, other: _Decimal) -> Decimal: ...\n def __rdivmod__(self, other: _Decimal) -> Tuple[Decimal, Decimal]: ...\n def __rfloordiv__(self, other: _Decimal) -> Decimal: ...\n def __rmod__(self, other: _Decimal) -> Decimal: ...\n def __rmul__(self, other: _Decimal) -> Decimal: ...\n def __rsub__(self, other: _Decimal) -> Decimal: ...\n def __rtruediv__(self, other: _Decimal) -> Decimal: ...\n def __str__(self) -> str: ...\n def __sub__(self, other: _Decimal) -> Decimal: ...\n def __truediv__(self, other: _Decimal) -> Decimal: ...\n else:\n def __abs__(self, round: bool = ..., context: Optional[Context] = ...) -> Decimal: ...\n def __add__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __divmod__(self, other: _Decimal, context: Optional[Context] = ...) -> Tuple[Decimal, Decimal]: ...\n def __eq__(self, other: object, context: Optional[Context] = ...) -> bool: ...\n def __floordiv__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __ge__(self, other: _ComparableNum, context: Optional[Context] = ...) -> bool: ...\n def __gt__(self, other: _ComparableNum, context: Optional[Context] = ...) -> bool: ...\n def __le__(self, other: _ComparableNum, context: Optional[Context] = ...) -> bool: ...\n def __lt__(self, other: _ComparableNum, context: Optional[Context] = ...) -> bool: ...\n def __mod__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __mul__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __neg__(self, context: Optional[Context] = ...) -> Decimal: ...\n def __pos__(self, context: Optional[Context] = ...) -> Decimal: ...\n def __pow__(self, other: _Decimal, modulo: Optional[_Decimal] = ..., context: Optional[Context] = ...) -> Decimal: ...\n def __radd__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __rdivmod__(self, other: _Decimal, context: Optional[Context] = ...) -> Tuple[Decimal, Decimal]: ...\n def __rfloordiv__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __rmod__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __rmul__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __rsub__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __rtruediv__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __str__(self, eng: bool = ..., context: Optional[Context] = ...) -> str: ...\n def __sub__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __truediv__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def remainder_near(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __float__(self) -> float: ...\n def __int__(self) -> int: ...\n def __trunc__(self) -> int: ...\n @property\n def real(self) -> Decimal: ...\n @property\n def imag(self) -> Decimal: ...\n def conjugate(self) -> Decimal: ...\n def __complex__(self) -> complex: ...\n if sys.version_info >= (3,):\n @overload\n def __round__(self) -> int: ...\n @overload\n def __round__(self, ndigits: int) -> Decimal: ...\n def __floor__(self) -> int: ...\n def __ceil__(self) -> int: ...\n else:\n def __long__(self) -> long: ...\n def fma(self, other: _Decimal, third: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __rpow__(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def normalize(self, context: Optional[Context] = ...) -> Decimal: ...\n if sys.version_info >= (3,):\n def quantize(self, exp: _Decimal, rounding: Optional[str] = ..., context: Optional[Context] = ...) -> Decimal: ...\n def same_quantum(self, other: _Decimal, context: Optional[Context] = ...) -> bool: ...\n else:\n def quantize(\n self, exp: _Decimal, rounding: Optional[str] = ..., context: Optional[Context] = ..., watchexp: bool = ...\n ) -> Decimal: ...\n def same_quantum(self, other: _Decimal) -> bool: ...\n def to_integral_exact(self, rounding: Optional[str] = ..., context: Optional[Context] = ...) -> Decimal: ...\n def to_integral_value(self, rounding: Optional[str] = ..., context: Optional[Context] = ...) -> Decimal: ...\n def to_integral(self, rounding: Optional[str] = ..., context: Optional[Context] = ...) -> Decimal: ...\n def sqrt(self, context: Optional[Context] = ...) -> Decimal: ...\n def max(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def min(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def adjusted(self) -> int: ...\n if sys.version_info >= (3,):\n def canonical(self) -> Decimal: ...\n else:\n def canonical(self, context: Optional[Context] = ...) -> Decimal: ...\n def compare_signal(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n if sys.version_info >= (3,):\n def compare_total(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def compare_total_mag(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n else:\n def compare_total(self, other: _Decimal) -> Decimal: ...\n def compare_total_mag(self, other: _Decimal) -> Decimal: ...\n def copy_abs(self) -> Decimal: ...\n def copy_negate(self) -> Decimal: ...\n if sys.version_info >= (3,):\n def copy_sign(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n else:\n def copy_sign(self, other: _Decimal) -> Decimal: ...\n def exp(self, context: Optional[Context] = ...) -> Decimal: ...\n def is_canonical(self) -> bool: ...\n def is_finite(self) -> bool: ...\n def is_infinite(self) -> bool: ...\n def is_nan(self) -> bool: ...\n def is_normal(self, context: Optional[Context] = ...) -> bool: ...\n def is_qnan(self) -> bool: ...\n def is_signed(self) -> bool: ...\n def is_snan(self) -> bool: ...\n def is_subnormal(self, context: Optional[Context] = ...) -> bool: ...\n def is_zero(self) -> bool: ...\n def ln(self, context: Optional[Context] = ...) -> Decimal: ...\n def log10(self, context: Optional[Context] = ...) -> Decimal: ...\n def logb(self, context: Optional[Context] = ...) -> Decimal: ...\n def logical_and(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def logical_invert(self, context: Optional[Context] = ...) -> Decimal: ...\n def logical_or(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def logical_xor(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def max_mag(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def min_mag(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def next_minus(self, context: Optional[Context] = ...) -> Decimal: ...\n def next_plus(self, context: Optional[Context] = ...) -> Decimal: ...\n def next_toward(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def number_class(self, context: Optional[Context] = ...) -> str: ...\n def radix(self) -> Decimal: ...\n def rotate(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def scaleb(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def shift(self, other: _Decimal, context: Optional[Context] = ...) -> Decimal: ...\n def __reduce__(self) -> Tuple[Type[Decimal], Tuple[str]]: ...\n def __copy__(self) -> Decimal: ...\n def __deepcopy__(self, memo: Any) -> Decimal: ...\n def __format__(self, specifier: str, context: Optional[Context] = ...) -> str: ...\n\nclass _ContextManager(object):\n new_context: Context\n saved_context: Context\n def __init__(self, new_context: Context) -> None: ...\n def __enter__(self) -> Context: ...\n def __exit__(self, t: Optional[Type[BaseException]], v: Optional[BaseException], tb: Optional[TracebackType]) -> None: ...\n\n_TrapType = Type[DecimalException]\n\nclass Context(object):\n prec: int\n rounding: str\n Emin: int\n Emax: int\n capitals: int\n if sys.version_info >= (3,):\n clamp: int\n else:\n _clamp: int\n traps: Dict[_TrapType, bool]\n flags: Dict[_TrapType, bool]\n if sys.version_info >= (3,):\n def __init__(\n self,\n prec: Optional[int] = ...,\n rounding: Optional[str] = ...,\n Emin: Optional[int] = ...,\n Emax: Optional[int] = ...,\n capitals: Optional[int] = ...,\n clamp: Optional[int] = ...,\n flags: Union[None, Dict[_TrapType, bool], Container[_TrapType]] = ...,\n traps: Union[None, Dict[_TrapType, bool], Container[_TrapType]] = ...,\n _ignored_flags: Optional[List[_TrapType]] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n prec: Optional[int] = ...,\n rounding: Optional[str] = ...,\n traps: Union[None, Dict[_TrapType, bool], Container[_TrapType]] = ...,\n flags: Union[None, Dict[_TrapType, bool], Container[_TrapType]] = ...,\n Emin: Optional[int] = ...,\n Emax: Optional[int] = ...,\n capitals: Optional[int] = ...,\n _clamp: Optional[int] = ...,\n _ignored_flags: Optional[List[_TrapType]] = ...,\n ) -> None: ...\n if sys.version_info >= (3,):\n # __setattr__() only allows to set a specific set of attributes,\n # already defined above.\n def __delattr__(self, name: str) -> None: ...\n def __reduce__(self) -> Tuple[Type[Context], Tuple[Any, ...]]: ...\n def clear_flags(self) -> None: ...\n if sys.version_info >= (3,):\n def clear_traps(self) -> None: ...\n def copy(self) -> Context: ...\n def __copy__(self) -> Context: ...\n __hash__: Any = ...\n def Etiny(self) -> int: ...\n def Etop(self) -> int: ...\n def create_decimal(self, __num: _DecimalNew = ...) -> Decimal: ...\n def create_decimal_from_float(self, __f: float) -> Decimal: ...\n def abs(self, __x: _Decimal) -> Decimal: ...\n def add(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def canonical(self, __x: Decimal) -> Decimal: ...\n def compare(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def compare_signal(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def compare_total(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def compare_total_mag(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def copy_abs(self, __x: _Decimal) -> Decimal: ...\n def copy_decimal(self, __x: _Decimal) -> Decimal: ...\n def copy_negate(self, __x: _Decimal) -> Decimal: ...\n def copy_sign(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def divide(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def divide_int(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def divmod(self, __x: _Decimal, __y: _Decimal) -> Tuple[Decimal, Decimal]: ...\n def exp(self, __x: _Decimal) -> Decimal: ...\n def fma(self, __x: _Decimal, __y: _Decimal, __z: _Decimal) -> Decimal: ...\n def is_canonical(self, __x: _Decimal) -> bool: ...\n def is_finite(self, __x: _Decimal) -> bool: ...\n def is_infinite(self, __x: _Decimal) -> bool: ...\n def is_nan(self, __x: _Decimal) -> bool: ...\n def is_normal(self, __x: _Decimal) -> bool: ...\n def is_qnan(self, __x: _Decimal) -> bool: ...\n def is_signed(self, __x: _Decimal) -> bool: ...\n def is_snan(self, __x: _Decimal) -> bool: ...\n def is_subnormal(self, __x: _Decimal) -> bool: ...\n def is_zero(self, __x: _Decimal) -> bool: ...\n def ln(self, __x: _Decimal) -> Decimal: ...\n def log10(self, __x: _Decimal) -> Decimal: ...\n def logb(self, __x: _Decimal) -> Decimal: ...\n def logical_and(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def logical_invert(self, __x: _Decimal) -> Decimal: ...\n def logical_or(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def logical_xor(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def max(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def max_mag(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def min(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def min_mag(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def minus(self, __x: _Decimal) -> Decimal: ...\n def multiply(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def next_minus(self, __x: _Decimal) -> Decimal: ...\n def next_plus(self, __x: _Decimal) -> Decimal: ...\n def next_toward(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def normalize(self, __x: _Decimal) -> Decimal: ...\n def number_class(self, __x: _Decimal) -> str: ...\n def plus(self, __x: _Decimal) -> Decimal: ...\n def power(self, a: _Decimal, b: _Decimal, modulo: Optional[_Decimal] = ...) -> Decimal: ...\n def quantize(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def radix(self) -> Decimal: ...\n def remainder(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def remainder_near(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def rotate(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def same_quantum(self, __x: _Decimal, __y: _Decimal) -> bool: ...\n def scaleb(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def shift(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def sqrt(self, __x: _Decimal) -> Decimal: ...\n def subtract(self, __x: _Decimal, __y: _Decimal) -> Decimal: ...\n def to_eng_string(self, __x: _Decimal) -> str: ...\n def to_sci_string(self, __x: _Decimal) -> str: ...\n def to_integral_exact(self, __x: _Decimal) -> Decimal: ...\n def to_integral_value(self, __x: _Decimal) -> Decimal: ...\n def to_integral(self, __x: _Decimal) -> Decimal: ...\n\nDefaultContext: Context\nBasicContext: Context\nExtendedContext: Context\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\decimal.pyi
decimal.pyi
Other
17,787
0.95
0.719764
0.006135
vue-tools
144
2024-08-01T14:38:14.239789
BSD-3-Clause
false
77fb954797b4d5e62f3f9da6ddfca37b
import sys\nfrom typing import (\n Any,\n AnyStr,\n Callable,\n Generic,\n Iterable,\n Iterator,\n List,\n NamedTuple,\n Optional,\n Sequence,\n Text,\n Tuple,\n TypeVar,\n Union,\n overload,\n)\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_T = TypeVar("_T")\n\nif sys.version_info >= (3,):\n _StrType = Text\nelse:\n # Aliases can't point to type vars, so we need to redeclare AnyStr\n _StrType = TypeVar("_StrType", Text, bytes)\n\n_JunkCallback = Union[Callable[[Text], bool], Callable[[str], bool]]\n\nclass Match(NamedTuple):\n a: int\n b: int\n size: int\n\nclass SequenceMatcher(Generic[_T]):\n def __init__(\n self, isjunk: Optional[Callable[[_T], bool]] = ..., a: Sequence[_T] = ..., b: Sequence[_T] = ..., autojunk: bool = ...\n ) -> None: ...\n def set_seqs(self, a: Sequence[_T], b: Sequence[_T]) -> None: ...\n def set_seq1(self, a: Sequence[_T]) -> None: ...\n def set_seq2(self, b: Sequence[_T]) -> None: ...\n if sys.version_info >= (3, 9):\n def find_longest_match(\n self, alo: int = ..., ahi: Optional[int] = ..., blo: int = ..., bhi: Optional[int] = ...\n ) -> Match: ...\n else:\n def find_longest_match(self, alo: int, ahi: int, blo: int, bhi: int) -> Match: ...\n def get_matching_blocks(self) -> List[Match]: ...\n def get_opcodes(self) -> List[Tuple[str, int, int, int, int]]: ...\n def get_grouped_opcodes(self, n: int = ...) -> Iterable[List[Tuple[str, int, int, int, int]]]: ...\n def ratio(self) -> float: ...\n def quick_ratio(self) -> float: ...\n def real_quick_ratio(self) -> float: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\n# mypy thinks the signatures of the overloads overlap, but the types still work fine\n@overload\ndef get_close_matches( # type: ignore\n word: AnyStr, possibilities: Iterable[AnyStr], n: int = ..., cutoff: float = ...\n) -> List[AnyStr]: ...\n@overload\ndef get_close_matches(\n word: Sequence[_T], possibilities: Iterable[Sequence[_T]], n: int = ..., cutoff: float = ...\n) -> List[Sequence[_T]]: ...\n\nclass Differ:\n def __init__(self, linejunk: Optional[_JunkCallback] = ..., charjunk: Optional[_JunkCallback] = ...) -> None: ...\n def compare(self, a: Sequence[_StrType], b: Sequence[_StrType]) -> Iterator[_StrType]: ...\n\ndef IS_LINE_JUNK(line: _StrType, pat: Any = ...) -> bool: ... # pat is undocumented\ndef IS_CHARACTER_JUNK(ch: _StrType, ws: _StrType = ...) -> bool: ... # ws is undocumented\ndef unified_diff(\n a: Sequence[_StrType],\n b: Sequence[_StrType],\n fromfile: _StrType = ...,\n tofile: _StrType = ...,\n fromfiledate: _StrType = ...,\n tofiledate: _StrType = ...,\n n: int = ...,\n lineterm: _StrType = ...,\n) -> Iterator[_StrType]: ...\ndef context_diff(\n a: Sequence[_StrType],\n b: Sequence[_StrType],\n fromfile: _StrType = ...,\n tofile: _StrType = ...,\n fromfiledate: _StrType = ...,\n tofiledate: _StrType = ...,\n n: int = ...,\n lineterm: _StrType = ...,\n) -> Iterator[_StrType]: ...\ndef ndiff(\n a: Sequence[_StrType], b: Sequence[_StrType], linejunk: Optional[_JunkCallback] = ..., charjunk: Optional[_JunkCallback] = ...\n) -> Iterator[_StrType]: ...\n\nclass HtmlDiff(object):\n def __init__(\n self,\n tabsize: int = ...,\n wrapcolumn: Optional[int] = ...,\n linejunk: Optional[_JunkCallback] = ...,\n charjunk: Optional[_JunkCallback] = ...,\n ) -> None: ...\n if sys.version_info >= (3, 5):\n def make_file(\n self,\n fromlines: Sequence[_StrType],\n tolines: Sequence[_StrType],\n fromdesc: _StrType = ...,\n todesc: _StrType = ...,\n context: bool = ...,\n numlines: int = ...,\n *,\n charset: str = ...,\n ) -> _StrType: ...\n else:\n def make_file(\n self,\n fromlines: Sequence[_StrType],\n tolines: Sequence[_StrType],\n fromdesc: _StrType = ...,\n todesc: _StrType = ...,\n context: bool = ...,\n numlines: int = ...,\n ) -> _StrType: ...\n def make_table(\n self,\n fromlines: Sequence[_StrType],\n tolines: Sequence[_StrType],\n fromdesc: _StrType = ...,\n todesc: _StrType = ...,\n context: bool = ...,\n numlines: int = ...,\n ) -> _StrType: ...\n\ndef restore(delta: Iterable[_StrType], which: int) -> Iterator[_StrType]: ...\n\nif sys.version_info >= (3, 5):\n def diff_bytes(\n dfunc: Callable[[Sequence[str], Sequence[str], str, str, str, str, int, str], Iterator[str]],\n a: Sequence[bytes],\n b: Sequence[bytes],\n fromfile: bytes = ...,\n tofile: bytes = ...,\n fromfiledate: bytes = ...,\n tofiledate: bytes = ...,\n n: int = ...,\n lineterm: bytes = ...,\n ) -> Iterator[bytes]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\difflib.pyi
difflib.pyi
Other
4,936
0.95
0.248366
0.021277
react-lib
297
2023-10-24T12:48:28.271824
Apache-2.0
false
166df5418b2e6eac06b14eecd4ff4fae
import sys\nimport types\nfrom opcode import (\n EXTENDED_ARG as EXTENDED_ARG,\n HAVE_ARGUMENT as HAVE_ARGUMENT,\n cmp_op as cmp_op,\n hascompare as hascompare,\n hasconst as hasconst,\n hasfree as hasfree,\n hasjabs as hasjabs,\n hasjrel as hasjrel,\n haslocal as haslocal,\n hasname as hasname,\n opmap as opmap,\n opname as opname,\n)\nfrom typing import IO, Any, Callable, Dict, Iterator, List, NamedTuple, Optional, Tuple, Union\n\nif sys.version_info >= (3, 4):\n from opcode import stack_effect as stack_effect\n\nif sys.version_info >= (3, 6):\n from opcode import hasnargs as hasnargs\n\n# Strictly this should not have to include Callable, but mypy doesn't use FunctionType\n# for functions (python/mypy#3171)\n_have_code = Union[types.MethodType, types.FunctionType, types.CodeType, type, Callable[..., Any]]\n_have_code_or_string = Union[_have_code, str, bytes]\n\nif sys.version_info >= (3, 4):\n class Instruction(NamedTuple):\n opname: str\n opcode: int\n arg: Optional[int]\n argval: Any\n argrepr: str\n offset: int\n starts_line: Optional[int]\n is_jump_target: bool\n class Bytecode:\n codeobj: types.CodeType\n first_line: int\n def __init__(\n self, x: _have_code_or_string, *, first_line: Optional[int] = ..., current_offset: Optional[int] = ...\n ) -> None: ...\n def __iter__(self) -> Iterator[Instruction]: ...\n def __repr__(self) -> str: ...\n def info(self) -> str: ...\n def dis(self) -> str: ...\n @classmethod\n def from_traceback(cls, tb: types.TracebackType) -> Bytecode: ...\n\nCOMPILER_FLAG_NAMES: Dict[int, str]\n\ndef findlabels(code: _have_code) -> List[int]: ...\ndef findlinestarts(code: _have_code) -> Iterator[Tuple[int, int]]: ...\n\nif sys.version_info >= (3, 0):\n def pretty_flags(flags: int) -> str: ...\n def code_info(x: _have_code_or_string) -> str: ...\n\nif sys.version_info >= (3, 7):\n def dis(x: Optional[_have_code_or_string] = ..., *, file: Optional[IO[str]] = ..., depth: Optional[int] = ...) -> None: ...\n\nelif sys.version_info >= (3, 4):\n def dis(x: Optional[_have_code_or_string] = ..., *, file: Optional[IO[str]] = ...) -> None: ...\n\nelse:\n def dis(x: _have_code_or_string = ...) -> None: ...\n\nif sys.version_info >= (3, 4):\n def distb(tb: Optional[types.TracebackType] = ..., *, file: Optional[IO[str]] = ...) -> None: ...\n def disassemble(co: _have_code, lasti: int = ..., *, file: Optional[IO[str]] = ...) -> None: ...\n def disco(co: _have_code, lasti: int = ..., *, file: Optional[IO[str]] = ...) -> None: ...\n def show_code(co: _have_code, *, file: Optional[IO[str]] = ...) -> None: ...\n def get_instructions(x: _have_code, *, first_line: Optional[int] = ...) -> Iterator[Instruction]: ...\n\nelse:\n def distb(tb: types.TracebackType = ...) -> None: ...\n def disassemble(co: _have_code, lasti: int = ...) -> None: ...\n def disco(co: _have_code, lasti: int = ...) -> None: ...\n if sys.version_info >= (3, 0):\n def show_code(co: _have_code) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\dis.pyi
dis.pyi
Other
3,089
0.95
0.385542
0.028169
vue-tools
170
2023-10-08T02:26:38.933620
Apache-2.0
false
6797231b518f386ecbe7dd0bcd20db04
import sys\nimport types\nimport unittest\nfrom typing import Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Type, Union\n\nclass TestResults(NamedTuple):\n failed: int\n attempted: int\n\nOPTIONFLAGS_BY_NAME: Dict[str, int]\n\ndef register_optionflag(name: str) -> int: ...\n\nDONT_ACCEPT_TRUE_FOR_1: int\nDONT_ACCEPT_BLANKLINE: int\nNORMALIZE_WHITESPACE: int\nELLIPSIS: int\nSKIP: int\nIGNORE_EXCEPTION_DETAIL: int\n\nCOMPARISON_FLAGS: int\n\nREPORT_UDIFF: int\nREPORT_CDIFF: int\nREPORT_NDIFF: int\nREPORT_ONLY_FIRST_FAILURE: int\nif sys.version_info >= (3, 4):\n FAIL_FAST: int\n\nREPORTING_FLAGS: int\n\nBLANKLINE_MARKER: str\nELLIPSIS_MARKER: str\n\nclass Example:\n source: str\n want: str\n exc_msg: Optional[str]\n lineno: int\n indent: int\n options: Dict[int, bool]\n def __init__(\n self,\n source: str,\n want: str,\n exc_msg: Optional[str] = ...,\n lineno: int = ...,\n indent: int = ...,\n options: Optional[Dict[int, bool]] = ...,\n ) -> None: ...\n def __hash__(self) -> int: ...\n\nclass DocTest:\n examples: List[Example]\n globs: Dict[str, Any]\n name: str\n filename: Optional[str]\n lineno: Optional[int]\n docstring: Optional[str]\n def __init__(\n self,\n examples: List[Example],\n globs: Dict[str, Any],\n name: str,\n filename: Optional[str],\n lineno: Optional[int],\n docstring: Optional[str],\n ) -> None: ...\n def __hash__(self) -> int: ...\n def __lt__(self, other: DocTest) -> bool: ...\n\nclass DocTestParser:\n def parse(self, string: str, name: str = ...) -> List[Union[str, Example]]: ...\n def get_doctest(\n self, string: str, globs: Dict[str, Any], name: str, filename: Optional[str], lineno: Optional[int]\n ) -> DocTest: ...\n def get_examples(self, string: str, name: str = ...) -> List[Example]: ...\n\nclass DocTestFinder:\n def __init__(\n self, verbose: bool = ..., parser: DocTestParser = ..., recurse: bool = ..., exclude_empty: bool = ...\n ) -> None: ...\n def find(\n self,\n obj: object,\n name: Optional[str] = ...,\n module: Union[None, bool, types.ModuleType] = ...,\n globs: Optional[Dict[str, Any]] = ...,\n extraglobs: Optional[Dict[str, Any]] = ...,\n ) -> List[DocTest]: ...\n\n_Out = Callable[[str], Any]\n_ExcInfo = Tuple[Type[BaseException], BaseException, types.TracebackType]\n\nclass DocTestRunner:\n DIVIDER: str\n optionflags: int\n original_optionflags: int\n tries: int\n failures: int\n test: DocTest\n def __init__(self, checker: Optional[OutputChecker] = ..., verbose: Optional[bool] = ..., optionflags: int = ...) -> None: ...\n def report_start(self, out: _Out, test: DocTest, example: Example) -> None: ...\n def report_success(self, out: _Out, test: DocTest, example: Example, got: str) -> None: ...\n def report_failure(self, out: _Out, test: DocTest, example: Example, got: str) -> None: ...\n def report_unexpected_exception(self, out: _Out, test: DocTest, example: Example, exc_info: _ExcInfo) -> None: ...\n def run(\n self, test: DocTest, compileflags: Optional[int] = ..., out: Optional[_Out] = ..., clear_globs: bool = ...\n ) -> TestResults: ...\n def summarize(self, verbose: Optional[bool] = ...) -> TestResults: ...\n def merge(self, other: DocTestRunner) -> None: ...\n\nclass OutputChecker:\n def check_output(self, want: str, got: str, optionflags: int) -> bool: ...\n def output_difference(self, example: Example, got: str, optionflags: int) -> str: ...\n\nclass DocTestFailure(Exception):\n test: DocTest\n example: Example\n got: str\n def __init__(self, test: DocTest, example: Example, got: str) -> None: ...\n\nclass UnexpectedException(Exception):\n test: DocTest\n example: Example\n exc_info: _ExcInfo\n def __init__(self, test: DocTest, example: Example, exc_info: _ExcInfo) -> None: ...\n\nclass DebugRunner(DocTestRunner): ...\n\nmaster: Optional[DocTestRunner]\n\ndef testmod(\n m: Optional[types.ModuleType] = ...,\n name: Optional[str] = ...,\n globs: Optional[Dict[str, Any]] = ...,\n verbose: Optional[bool] = ...,\n report: bool = ...,\n optionflags: int = ...,\n extraglobs: Optional[Dict[str, Any]] = ...,\n raise_on_error: bool = ...,\n exclude_empty: bool = ...,\n) -> TestResults: ...\ndef testfile(\n filename: str,\n module_relative: bool = ...,\n name: Optional[str] = ...,\n package: Union[None, str, types.ModuleType] = ...,\n globs: Optional[Dict[str, Any]] = ...,\n verbose: Optional[bool] = ...,\n report: bool = ...,\n optionflags: int = ...,\n extraglobs: Optional[Dict[str, Any]] = ...,\n raise_on_error: bool = ...,\n parser: DocTestParser = ...,\n encoding: Optional[str] = ...,\n) -> TestResults: ...\ndef run_docstring_examples(\n f: object,\n globs: Dict[str, Any],\n verbose: bool = ...,\n name: str = ...,\n compileflags: Optional[int] = ...,\n optionflags: int = ...,\n) -> None: ...\ndef set_unittest_reportflags(flags: int) -> int: ...\n\nclass DocTestCase(unittest.TestCase):\n def __init__(\n self,\n test: DocTest,\n optionflags: int = ...,\n setUp: Optional[Callable[[DocTest], Any]] = ...,\n tearDown: Optional[Callable[[DocTest], Any]] = ...,\n checker: Optional[OutputChecker] = ...,\n ) -> None: ...\n def setUp(self) -> None: ...\n def tearDown(self) -> None: ...\n def runTest(self) -> None: ...\n def format_failure(self, err: str) -> str: ...\n def debug(self) -> None: ...\n def id(self) -> str: ...\n def __hash__(self) -> int: ...\n def shortDescription(self) -> str: ...\n\nclass SkipDocTestCase(DocTestCase):\n def __init__(self, module: types.ModuleType) -> None: ...\n def setUp(self) -> None: ...\n def test_skip(self) -> None: ...\n def shortDescription(self) -> str: ...\n\nif sys.version_info >= (3, 4):\n class _DocTestSuite(unittest.TestSuite): ...\n\nelse:\n _DocTestSuite = unittest.TestSuite\n\ndef DocTestSuite(\n module: Union[None, str, types.ModuleType] = ...,\n globs: Optional[Dict[str, Any]] = ...,\n extraglobs: Optional[Dict[str, Any]] = ...,\n test_finder: Optional[DocTestFinder] = ...,\n **options: Any,\n) -> _DocTestSuite: ...\n\nclass DocFileCase(DocTestCase):\n def id(self) -> str: ...\n def format_failure(self, err: str) -> str: ...\n\ndef DocFileTest(\n path: str,\n module_relative: bool = ...,\n package: Union[None, str, types.ModuleType] = ...,\n globs: Optional[Dict[str, Any]] = ...,\n parser: DocTestParser = ...,\n encoding: Optional[str] = ...,\n **options: Any,\n) -> DocFileCase: ...\ndef DocFileSuite(*paths: str, **kw: Any) -> _DocTestSuite: ...\ndef script_from_examples(s: str) -> str: ...\ndef testsource(module: Union[None, str, types.ModuleType], name: str) -> str: ...\ndef debug_src(src: str, pm: bool = ..., globs: Optional[Dict[str, Any]] = ...) -> None: ...\ndef debug_script(src: str, pm: bool = ..., globs: Optional[Dict[str, Any]] = ...) -> None: ...\ndef debug(module: Union[None, str, types.ModuleType], name: str, pm: bool = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\doctest.pyi
doctest.pyi
Other
7,083
0.85
0.294643
0.010152
vue-tools
956
2023-11-18T16:24:15.456657
GPL-3.0
true
033c49f780ca1e9b91ca589568a5cb5a
from _dummy_threading import *\nfrom _dummy_threading import __all__ as __all__\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\dummy_threading.pyi
dummy_threading.pyi
Other
79
0.65
0
0
vue-tools
849
2024-02-02T07:39:17.206568
BSD-3-Clause
false
c24f4ea3dccfd1050aa29100627489d5
from typing import Mapping\n\nerrorcode: Mapping[int, str]\n\nEPERM: int\nENOENT: int\nESRCH: int\nEINTR: int\nEIO: int\nENXIO: int\nE2BIG: int\nENOEXEC: int\nEBADF: int\nECHILD: int\nEAGAIN: int\nENOMEM: int\nEACCES: int\nEFAULT: int\nENOTBLK: int\nEBUSY: int\nEEXIST: int\nEXDEV: int\nENODEV: int\nENOTDIR: int\nEISDIR: int\nEINVAL: int\nENFILE: int\nEMFILE: int\nENOTTY: int\nETXTBSY: int\nEFBIG: int\nENOSPC: int\nESPIPE: int\nEROFS: int\nEMLINK: int\nEPIPE: int\nEDOM: int\nERANGE: int\nEDEADLCK: int\nENAMETOOLONG: int\nENOLCK: int\nENOSYS: int\nENOTEMPTY: int\nELOOP: int\nEWOULDBLOCK: int\nENOMSG: int\nEIDRM: int\nECHRNG: int\nEL2NSYNC: int\nEL3HLT: int\nEL3RST: int\nELNRNG: int\nEUNATCH: int\nENOCSI: int\nEL2HLT: int\nEBADE: int\nEBADR: int\nEXFULL: int\nENOANO: int\nEBADRQC: int\nEBADSLT: int\nEDEADLOCK: int\nEBFONT: int\nENOSTR: int\nENODATA: int\nETIME: int\nENOSR: int\nENONET: int\nENOPKG: int\nEREMOTE: int\nENOLINK: int\nEADV: int\nESRMNT: int\nECOMM: int\nEPROTO: int\nEMULTIHOP: int\nEDOTDOT: int\nEBADMSG: int\nEOVERFLOW: int\nENOTUNIQ: int\nEBADFD: int\nEREMCHG: int\nELIBACC: int\nELIBBAD: int\nELIBSCN: int\nELIBMAX: int\nELIBEXEC: int\nEILSEQ: int\nERESTART: int\nESTRPIPE: int\nEUSERS: int\nENOTSOCK: int\nEDESTADDRREQ: int\nEMSGSIZE: int\nEPROTOTYPE: int\nENOPROTOOPT: int\nEPROTONOSUPPORT: int\nESOCKTNOSUPPORT: int\nENOTSUP: int\nEOPNOTSUPP: int\nEPFNOSUPPORT: int\nEAFNOSUPPORT: int\nEADDRINUSE: int\nEADDRNOTAVAIL: int\nENETDOWN: int\nENETUNREACH: int\nENETRESET: int\nECONNABORTED: int\nECONNRESET: int\nENOBUFS: int\nEISCONN: int\nENOTCONN: int\nESHUTDOWN: int\nETOOMANYREFS: int\nETIMEDOUT: int\nECONNREFUSED: int\nEHOSTDOWN: int\nEHOSTUNREACH: int\nEALREADY: int\nEINPROGRESS: int\nESTALE: int\nEUCLEAN: int\nENOTNAM: int\nENAVAIL: int\nEISNAM: int\nEREMOTEIO: int\nEDQUOT: int\nECANCELED: int # undocumented\nEKEYEXPIRED: int # undocumented\nEKEYREJECTED: int # undocumented\nEKEYREVOKED: int # undocumented\nEMEDIUMTYPE: int # undocumented\nENOKEY: int # undocumented\nENOMEDIUM: int # undocumented\nENOTRECOVERABLE: int # undocumented\nEOWNERDEAD: int # undocumented\nERFKILL: int # undocumented\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\errno.pyi
errno.pyi
Other
2,011
0.95
0
0
node-utils
742
2025-04-17T08:45:21.318535
MIT
false
3fbb7e763f0f27c0f3bf5d4795c2e1ae
import sys\nfrom typing import Any, AnyStr, Callable, Dict, Generic, Iterable, List, Optional, Sequence, Text, Tuple, Union\n\nif sys.version_info >= (3, 6):\n from os import PathLike\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\nDEFAULT_IGNORES: List[str]\n\nif sys.version_info >= (3, 6):\n def cmp(\n f1: Union[bytes, Text, PathLike[AnyStr]], f2: Union[bytes, Text, PathLike[AnyStr]], shallow: Union[int, bool] = ...\n ) -> bool: ...\n def cmpfiles(\n a: Union[AnyStr, PathLike[AnyStr]],\n b: Union[AnyStr, PathLike[AnyStr]],\n common: Iterable[AnyStr],\n shallow: Union[int, bool] = ...,\n ) -> Tuple[List[AnyStr], List[AnyStr], List[AnyStr]]: ...\n\nelse:\n def cmp(f1: Union[bytes, Text], f2: Union[bytes, Text], shallow: Union[int, bool] = ...) -> bool: ...\n def cmpfiles(\n a: AnyStr, b: AnyStr, common: Iterable[AnyStr], shallow: Union[int, bool] = ...\n ) -> Tuple[List[AnyStr], List[AnyStr], List[AnyStr]]: ...\n\nclass dircmp(Generic[AnyStr]):\n if sys.version_info >= (3, 6):\n def __init__(\n self,\n a: Union[AnyStr, PathLike[AnyStr]],\n b: Union[AnyStr, PathLike[AnyStr]],\n ignore: Optional[Sequence[AnyStr]] = ...,\n hide: Optional[Sequence[AnyStr]] = ...,\n ) -> None: ...\n else:\n def __init__(\n self, a: AnyStr, b: AnyStr, ignore: Optional[Sequence[AnyStr]] = ..., hide: Optional[Sequence[AnyStr]] = ...\n ) -> None: ...\n left: AnyStr\n right: AnyStr\n hide: Sequence[AnyStr]\n ignore: Sequence[AnyStr]\n # These properties are created at runtime by __getattr__\n subdirs: Dict[AnyStr, dircmp[AnyStr]]\n same_files: List[AnyStr]\n diff_files: List[AnyStr]\n funny_files: List[AnyStr]\n common_dirs: List[AnyStr]\n common_files: List[AnyStr]\n common_funny: List[AnyStr]\n common: List[AnyStr]\n left_only: List[AnyStr]\n right_only: List[AnyStr]\n left_list: List[AnyStr]\n right_list: List[AnyStr]\n def report(self) -> None: ...\n def report_partial_closure(self) -> None: ...\n def report_full_closure(self) -> None: ...\n methodmap: Dict[str, Callable[[], None]]\n def phase0(self) -> None: ...\n def phase1(self) -> None: ...\n def phase2(self) -> None: ...\n def phase3(self) -> None: ...\n def phase4(self) -> None: ...\n def phase4_closure(self) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nif sys.version_info >= (3,):\n def clear_cache() -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\filecmp.pyi
filecmp.pyi
Other
2,566
0.95
0.328767
0.015152
react-lib
141
2023-11-13T06:30:45.407986
BSD-3-Clause
false
b1c6bf84270f027cb658a017777f628c
import sys\nfrom _typeshed import AnyPath\nfrom typing import IO, Any, AnyStr, Callable, Generic, Iterable, Iterator, Optional, Union\n\nif sys.version_info >= (3, 8):\n def input(\n files: Union[AnyPath, Iterable[AnyPath], None] = ...,\n inplace: bool = ...,\n backup: str = ...,\n *,\n mode: str = ...,\n openhook: Callable[[AnyPath, str], IO[AnyStr]] = ...,\n ) -> FileInput[AnyStr]: ...\n\nelse:\n def input(\n files: Union[AnyPath, Iterable[AnyPath], None] = ...,\n inplace: bool = ...,\n backup: str = ...,\n bufsize: int = ...,\n mode: str = ...,\n openhook: Callable[[AnyPath, str], IO[AnyStr]] = ...,\n ) -> FileInput[AnyStr]: ...\n\ndef close() -> None: ...\ndef nextfile() -> None: ...\ndef filename() -> str: ...\ndef lineno() -> int: ...\ndef filelineno() -> int: ...\ndef fileno() -> int: ...\ndef isfirstline() -> bool: ...\ndef isstdin() -> bool: ...\n\nclass FileInput(Iterable[AnyStr], Generic[AnyStr]):\n if sys.version_info >= (3, 8):\n def __init__(\n self,\n files: Union[None, AnyPath, Iterable[AnyPath]] = ...,\n inplace: bool = ...,\n backup: str = ...,\n *,\n mode: str = ...,\n openhook: Callable[[AnyPath, str], IO[AnyStr]] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n files: Union[None, AnyPath, Iterable[AnyPath]] = ...,\n inplace: bool = ...,\n backup: str = ...,\n bufsize: int = ...,\n mode: str = ...,\n openhook: Callable[[AnyPath, str], IO[AnyStr]] = ...,\n ) -> None: ...\n def __del__(self) -> None: ...\n def close(self) -> None: ...\n if sys.version_info >= (3, 2):\n def __enter__(self) -> FileInput[AnyStr]: ...\n def __exit__(self, type: Any, value: Any, traceback: Any) -> None: ...\n def __iter__(self) -> Iterator[AnyStr]: ...\n def __next__(self) -> AnyStr: ...\n def __getitem__(self, i: int) -> AnyStr: ...\n def nextfile(self) -> None: ...\n def readline(self) -> AnyStr: ...\n def filename(self) -> str: ...\n def lineno(self) -> int: ...\n def filelineno(self) -> int: ...\n def fileno(self) -> int: ...\n def isfirstline(self) -> bool: ...\n def isstdin(self) -> bool: ...\n\ndef hook_compressed(filename: AnyPath, mode: str) -> IO[Any]: ...\n\nif sys.version_info >= (3, 6):\n def hook_encoded(encoding: str, errors: Optional[str] = ...) -> Callable[[AnyPath, str], IO[Any]]: ...\n\nelse:\n def hook_encoded(encoding: str) -> Callable[[AnyPath, str], IO[Any]]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\fileinput.pyi
fileinput.pyi
Other
2,601
0.85
0.448718
0.028169
react-lib
426
2024-11-22T04:14:04.050743
GPL-3.0
false
d36d95bd195f421454a7088e824103a8
from typing import IO, Any, Iterable, List, Optional, Tuple\n\nAS_IS: None\n_FontType = Tuple[str, bool, bool, bool]\n_StylesType = Tuple[Any, ...]\n\nclass NullFormatter:\n writer: Optional[NullWriter]\n def __init__(self, writer: Optional[NullWriter] = ...) -> None: ...\n def end_paragraph(self, blankline: int) -> None: ...\n def add_line_break(self) -> None: ...\n def add_hor_rule(self, *args: Any, **kw: Any) -> None: ...\n def add_label_data(self, format: str, counter: int, blankline: Optional[int] = ...) -> None: ...\n def add_flowing_data(self, data: str) -> None: ...\n def add_literal_data(self, data: str) -> None: ...\n def flush_softspace(self) -> None: ...\n def push_alignment(self, align: Optional[str]) -> None: ...\n def pop_alignment(self) -> None: ...\n def push_font(self, x: _FontType) -> None: ...\n def pop_font(self) -> None: ...\n def push_margin(self, margin: int) -> None: ...\n def pop_margin(self) -> None: ...\n def set_spacing(self, spacing: Optional[str]) -> None: ...\n def push_style(self, *styles: _StylesType) -> None: ...\n def pop_style(self, n: int = ...) -> None: ...\n def assert_line_data(self, flag: int = ...) -> None: ...\n\nclass AbstractFormatter:\n writer: NullWriter\n align: Optional[str]\n align_stack: List[Optional[str]]\n font_stack: List[_FontType]\n margin_stack: List[int]\n spacing: Optional[str]\n style_stack: Any\n nospace: int\n softspace: int\n para_end: int\n parskip: int\n hard_break: int\n have_label: int\n def __init__(self, writer: NullWriter) -> None: ...\n def end_paragraph(self, blankline: int) -> None: ...\n def add_line_break(self) -> None: ...\n def add_hor_rule(self, *args: Any, **kw: Any) -> None: ...\n def add_label_data(self, format: str, counter: int, blankline: Optional[int] = ...) -> None: ...\n def format_counter(self, format: Iterable[str], counter: int) -> str: ...\n def format_letter(self, case: str, counter: int) -> str: ...\n def format_roman(self, case: str, counter: int) -> str: ...\n def add_flowing_data(self, data: str) -> None: ...\n def add_literal_data(self, data: str) -> None: ...\n def flush_softspace(self) -> None: ...\n def push_alignment(self, align: Optional[str]) -> None: ...\n def pop_alignment(self) -> None: ...\n def push_font(self, font: _FontType) -> None: ...\n def pop_font(self) -> None: ...\n def push_margin(self, margin: int) -> None: ...\n def pop_margin(self) -> None: ...\n def set_spacing(self, spacing: Optional[str]) -> None: ...\n def push_style(self, *styles: _StylesType) -> None: ...\n def pop_style(self, n: int = ...) -> None: ...\n def assert_line_data(self, flag: int = ...) -> None: ...\n\nclass NullWriter:\n def __init__(self) -> None: ...\n def flush(self) -> None: ...\n def new_alignment(self, align: Optional[str]) -> None: ...\n def new_font(self, font: _FontType) -> None: ...\n def new_margin(self, margin: int, level: int) -> None: ...\n def new_spacing(self, spacing: Optional[str]) -> None: ...\n def new_styles(self, styles: Tuple[Any, ...]) -> None: ...\n def send_paragraph(self, blankline: int) -> None: ...\n def send_line_break(self) -> None: ...\n def send_hor_rule(self, *args: Any, **kw: Any) -> None: ...\n def send_label_data(self, data: str) -> None: ...\n def send_flowing_data(self, data: str) -> None: ...\n def send_literal_data(self, data: str) -> None: ...\n\nclass AbstractWriter(NullWriter):\n def new_alignment(self, align: Optional[str]) -> None: ...\n def new_font(self, font: _FontType) -> None: ...\n def new_margin(self, margin: int, level: int) -> None: ...\n def new_spacing(self, spacing: Optional[str]) -> None: ...\n def new_styles(self, styles: Tuple[Any, ...]) -> None: ...\n def send_paragraph(self, blankline: int) -> None: ...\n def send_line_break(self) -> None: ...\n def send_hor_rule(self, *args: Any, **kw: Any) -> None: ...\n def send_label_data(self, data: str) -> None: ...\n def send_flowing_data(self, data: str) -> None: ...\n def send_literal_data(self, data: str) -> None: ...\n\nclass DumbWriter(NullWriter):\n file: IO[str]\n maxcol: int\n def __init__(self, file: Optional[IO[str]] = ..., maxcol: int = ...) -> None: ...\n def reset(self) -> None: ...\n def send_paragraph(self, blankline: int) -> None: ...\n def send_line_break(self) -> None: ...\n def send_hor_rule(self, *args: Any, **kw: Any) -> None: ...\n def send_literal_data(self, data: str) -> None: ...\n def send_flowing_data(self, data: str) -> None: ...\n\ndef test(file: Optional[str] = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\formatter.pyi
formatter.pyi
Other
4,639
0.85
0.737864
0
python-kit
157
2024-02-06T01:44:07.404354
MIT
false
e62d308811533bca506dac7d01113722
import sys\nfrom decimal import Decimal\nfrom numbers import Integral, Rational, Real\nfrom typing import Optional, Tuple, Union, overload\nfrom typing_extensions import Literal\n\n_ComparableNum = Union[int, float, Decimal, Real]\n\nif sys.version_info < (3, 9):\n @overload\n def gcd(a: int, b: int) -> int: ...\n @overload\n def gcd(a: Integral, b: int) -> Integral: ...\n @overload\n def gcd(a: int, b: Integral) -> Integral: ...\n @overload\n def gcd(a: Integral, b: Integral) -> Integral: ...\n\nclass Fraction(Rational):\n @overload\n def __new__(\n cls, numerator: Union[int, Rational] = ..., denominator: Optional[Union[int, Rational]] = ..., *, _normalize: bool = ...\n ) -> Fraction: ...\n @overload\n def __new__(cls, __value: Union[float, Decimal, str], *, _normalize: bool = ...) -> Fraction: ...\n @classmethod\n def from_float(cls, f: float) -> Fraction: ...\n @classmethod\n def from_decimal(cls, dec: Decimal) -> Fraction: ...\n def limit_denominator(self, max_denominator: int = ...) -> Fraction: ...\n if sys.version_info >= (3, 8):\n def as_integer_ratio(self) -> Tuple[int, int]: ...\n @property\n def numerator(self) -> int: ...\n @property\n def denominator(self) -> int: ...\n @overload\n def __add__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __add__(self, other: float) -> float: ...\n @overload\n def __add__(self, other: complex) -> complex: ...\n @overload\n def __radd__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __radd__(self, other: float) -> float: ...\n @overload\n def __radd__(self, other: complex) -> complex: ...\n @overload\n def __sub__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __sub__(self, other: float) -> float: ...\n @overload\n def __sub__(self, other: complex) -> complex: ...\n @overload\n def __rsub__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __rsub__(self, other: float) -> float: ...\n @overload\n def __rsub__(self, other: complex) -> complex: ...\n @overload\n def __mul__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __mul__(self, other: float) -> float: ...\n @overload\n def __mul__(self, other: complex) -> complex: ...\n @overload\n def __rmul__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __rmul__(self, other: float) -> float: ...\n @overload\n def __rmul__(self, other: complex) -> complex: ...\n @overload\n def __truediv__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __truediv__(self, other: float) -> float: ...\n @overload\n def __truediv__(self, other: complex) -> complex: ...\n @overload\n def __rtruediv__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __rtruediv__(self, other: float) -> float: ...\n @overload\n def __rtruediv__(self, other: complex) -> complex: ...\n if sys.version_info < (3, 0):\n @overload\n def __div__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __div__(self, other: float) -> float: ...\n @overload\n def __div__(self, other: complex) -> complex: ...\n @overload\n def __rdiv__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __rdiv__(self, other: float) -> float: ...\n @overload\n def __rdiv__(self, other: complex) -> complex: ...\n @overload\n def __floordiv__(self, other: Union[int, Fraction]) -> int: ...\n @overload\n def __floordiv__(self, other: float) -> float: ...\n @overload\n def __rfloordiv__(self, other: Union[int, Fraction]) -> int: ...\n @overload\n def __rfloordiv__(self, other: float) -> float: ...\n @overload\n def __mod__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __mod__(self, other: float) -> float: ...\n @overload\n def __rmod__(self, other: Union[int, Fraction]) -> Fraction: ...\n @overload\n def __rmod__(self, other: float) -> float: ...\n @overload\n def __divmod__(self, other: Union[int, Fraction]) -> Tuple[int, Fraction]: ...\n @overload\n def __divmod__(self, other: float) -> Tuple[float, Fraction]: ...\n @overload\n def __rdivmod__(self, other: Union[int, Fraction]) -> Tuple[int, Fraction]: ...\n @overload\n def __rdivmod__(self, other: float) -> Tuple[float, Fraction]: ...\n @overload\n def __pow__(self, other: int) -> Fraction: ...\n @overload\n def __pow__(self, other: Union[float, Fraction]) -> float: ...\n @overload\n def __pow__(self, other: complex) -> complex: ...\n @overload\n def __rpow__(self, other: Union[int, float, Fraction]) -> float: ...\n @overload\n def __rpow__(self, other: complex) -> complex: ...\n def __pos__(self) -> Fraction: ...\n def __neg__(self) -> Fraction: ...\n def __abs__(self) -> Fraction: ...\n def __trunc__(self) -> int: ...\n if sys.version_info >= (3, 0):\n def __floor__(self) -> int: ...\n def __ceil__(self) -> int: ...\n @overload\n def __round__(self, ndigits: None = ...) -> int: ...\n @overload\n def __round__(self, ndigits: int) -> Fraction: ...\n def __hash__(self) -> int: ...\n def __eq__(self, other: object) -> bool: ...\n def __lt__(self, other: _ComparableNum) -> bool: ...\n def __gt__(self, other: _ComparableNum) -> bool: ...\n def __le__(self, other: _ComparableNum) -> bool: ...\n def __ge__(self, other: _ComparableNum) -> bool: ...\n if sys.version_info >= (3, 0):\n def __bool__(self) -> bool: ...\n else:\n def __nonzero__(self) -> bool: ...\n # Not actually defined within fractions.py, but provides more useful\n # overrides\n @property\n def real(self) -> Fraction: ...\n @property\n def imag(self) -> Literal[0]: ...\n def conjugate(self) -> Fraction: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\fractions.pyi
fractions.pyi
Other
5,936
0.95
0.528302
0.012821
react-lib
1,000
2024-07-17T21:42:41.344569
BSD-3-Clause
false
597b7df4a5bc167e9123aefafd0f1786
import sys\nfrom _typeshed import SupportsRead, SupportsReadline\nfrom socket import socket\nfrom ssl import SSLContext\nfrom types import TracebackType\nfrom typing import Any, BinaryIO, Callable, Dict, Iterable, Iterator, List, Optional, Text, TextIO, Tuple, Type, TypeVar, Union\nfrom typing_extensions import Literal\n\n_T = TypeVar("_T")\n_IntOrStr = Union[int, Text]\n\nMSG_OOB: int\nFTP_PORT: int\nMAXLINE: int\nCRLF: str\nif sys.version_info >= (3,):\n B_CRLF: bytes\n\nclass Error(Exception): ...\nclass error_reply(Error): ...\nclass error_temp(Error): ...\nclass error_perm(Error): ...\nclass error_proto(Error): ...\n\nall_errors = Tuple[Type[Exception], ...]\n\nclass FTP:\n debugging: int\n\n # Note: This is technically the type that's passed in as the host argument. But to make it easier in Python 2 we\n # accept Text but return str.\n host: str\n\n port: int\n maxline: int\n sock: Optional[socket]\n welcome: Optional[str]\n passiveserver: int\n timeout: int\n af: int\n lastresp: str\n\n if sys.version_info >= (3,):\n file: Optional[TextIO]\n encoding: str\n def __enter__(self: _T) -> _T: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n else:\n file: Optional[BinaryIO]\n\n if sys.version_info >= (3, 3):\n source_address: Optional[Tuple[str, int]]\n def __init__(\n self,\n host: Text = ...,\n user: Text = ...,\n passwd: Text = ...,\n acct: Text = ...,\n timeout: float = ...,\n source_address: Optional[Tuple[str, int]] = ...,\n ) -> None: ...\n def connect(\n self, host: Text = ..., port: int = ..., timeout: float = ..., source_address: Optional[Tuple[str, int]] = ...\n ) -> str: ...\n else:\n def __init__(\n self, host: Text = ..., user: Text = ..., passwd: Text = ..., acct: Text = ..., timeout: float = ...\n ) -> None: ...\n def connect(self, host: Text = ..., port: int = ..., timeout: float = ...) -> str: ...\n def getwelcome(self) -> str: ...\n def set_debuglevel(self, level: int) -> None: ...\n def debug(self, level: int) -> None: ...\n def set_pasv(self, val: Union[bool, int]) -> None: ...\n def sanitize(self, s: Text) -> str: ...\n def putline(self, line: Text) -> None: ...\n def putcmd(self, line: Text) -> None: ...\n def getline(self) -> str: ...\n def getmultiline(self) -> str: ...\n def getresp(self) -> str: ...\n def voidresp(self) -> str: ...\n def abort(self) -> str: ...\n def sendcmd(self, cmd: Text) -> str: ...\n def voidcmd(self, cmd: Text) -> str: ...\n def sendport(self, host: Text, port: int) -> str: ...\n def sendeprt(self, host: Text, port: int) -> str: ...\n def makeport(self) -> socket: ...\n def makepasv(self) -> Tuple[str, int]: ...\n def login(self, user: Text = ..., passwd: Text = ..., acct: Text = ...) -> str: ...\n # In practice, `rest` rest can actually be anything whose str() is an integer sequence, so to make it simple we allow integers.\n def ntransfercmd(self, cmd: Text, rest: Optional[_IntOrStr] = ...) -> Tuple[socket, int]: ...\n def transfercmd(self, cmd: Text, rest: Optional[_IntOrStr] = ...) -> socket: ...\n def retrbinary(\n self, cmd: Text, callback: Callable[[bytes], Any], blocksize: int = ..., rest: Optional[_IntOrStr] = ...\n ) -> str: ...\n def storbinary(\n self,\n cmd: Text,\n fp: SupportsRead[bytes],\n blocksize: int = ...,\n callback: Optional[Callable[[bytes], Any]] = ...,\n rest: Optional[_IntOrStr] = ...,\n ) -> str: ...\n def retrlines(self, cmd: Text, callback: Optional[Callable[[str], Any]] = ...) -> str: ...\n def storlines(self, cmd: Text, fp: SupportsReadline[bytes], callback: Optional[Callable[[bytes], Any]] = ...) -> str: ...\n def acct(self, password: Text) -> str: ...\n def nlst(self, *args: Text) -> List[str]: ...\n # Technically only the last arg can be a Callable but ...\n def dir(self, *args: Union[str, Callable[[str], None]]) -> None: ...\n if sys.version_info >= (3, 3):\n def mlsd(self, path: Text = ..., facts: Iterable[str] = ...) -> Iterator[Tuple[str, Dict[str, str]]]: ...\n def rename(self, fromname: Text, toname: Text) -> str: ...\n def delete(self, filename: Text) -> str: ...\n def cwd(self, dirname: Text) -> str: ...\n def size(self, filename: Text) -> Optional[int]: ...\n def mkd(self, dirname: Text) -> str: ...\n def rmd(self, dirname: Text) -> str: ...\n def pwd(self) -> str: ...\n def quit(self) -> str: ...\n def close(self) -> None: ...\n\nclass FTP_TLS(FTP):\n def __init__(\n self,\n host: Text = ...,\n user: Text = ...,\n passwd: Text = ...,\n acct: Text = ...,\n keyfile: Optional[str] = ...,\n certfile: Optional[str] = ...,\n context: Optional[SSLContext] = ...,\n timeout: float = ...,\n source_address: Optional[Tuple[str, int]] = ...,\n ) -> None: ...\n ssl_version: int\n keyfile: Optional[str]\n certfile: Optional[str]\n context: SSLContext\n def login(self, user: Text = ..., passwd: Text = ..., acct: Text = ..., secure: bool = ...) -> str: ...\n def auth(self) -> str: ...\n def prot_p(self) -> str: ...\n def prot_c(self) -> str: ...\n if sys.version_info >= (3, 3):\n def ccc(self) -> str: ...\n\nif sys.version_info < (3,):\n class Netrc:\n def __init__(self, filename: Optional[Text] = ...) -> None: ...\n def get_hosts(self) -> List[str]: ...\n def get_account(self, host: Text) -> Tuple[Optional[str], Optional[str], Optional[str]]: ...\n def get_macros(self) -> List[str]: ...\n def get_macro(self, macro: Text) -> Tuple[str, ...]: ...\n\ndef parse150(resp: str) -> Optional[int]: ... # undocumented\ndef parse227(resp: str) -> Tuple[str, int]: ... # undocumented\ndef parse229(resp: str, peer: Any) -> Tuple[str, int]: ... # undocumented\ndef parse257(resp: str) -> str: ... # undocumented\ndef ftpcp(\n source: FTP,\n sourcename: str,\n target: FTP,\n targetname: str = ...,\n type: Literal["A", "I"] = ...,\n) -> None: ... # undocumented\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\ftplib.pyi
ftplib.pyi
Other
6,278
0.95
0.448485
0.026144
python-kit
445
2024-04-26T18:54:03.281506
MIT
false
04d1b17edb2e0a92c101adc5033b9cd9
import sys\nfrom typing import AnyStr, Sequence, Text, Union\n\nif sys.version_info >= (3, 0):\n def commonprefix(m: Sequence[str]) -> str: ...\n\nelse:\n def commonprefix(m: Sequence[AnyStr]) -> AnyStr: ...\n\nif sys.version_info >= (3, 6):\n from builtins import _PathLike\n def exists(path: Union[AnyStr, _PathLike[AnyStr]]) -> bool: ...\n\nelse:\n def exists(path: Text) -> bool: ...\n\ndef isfile(path: Text) -> bool: ...\ndef isdir(s: Text) -> bool: ...\ndef getsize(filename: Text) -> int: ...\ndef getmtime(filename: Text) -> float: ...\ndef getatime(filename: Text) -> float: ...\ndef getctime(filename: Text) -> float: ...\n\nif sys.version_info >= (3, 4):\n def samestat(s1: str, s2: str) -> int: ...\n def samefile(f1: str, f2: str) -> int: ...\n def sameopenfile(fp1: str, fp2: str) -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\genericpath.pyi
genericpath.pyi
Other
806
0.85
0.592593
0
node-utils
829
2025-06-19T04:14:08.547561
Apache-2.0
false
d2731390acd4ee8af5fded7edc5c977b
from typing import List, NamedTuple, Optional\n\nclass struct_group(NamedTuple):\n gr_name: str\n gr_passwd: Optional[str]\n gr_gid: int\n gr_mem: List[str]\n\ndef getgrall() -> List[struct_group]: ...\ndef getgrgid(gid: int) -> struct_group: ...\ndef getgrnam(name: str) -> struct_group: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\grp.pyi
grp.pyi
Other
295
0.85
0.363636
0
python-kit
319
2025-06-24T01:56:19.916164
GPL-3.0
false
2ae59e8a94cae9ff91720617de374292
import sys\nfrom _typeshed import ReadableBuffer\nfrom types import ModuleType\nfrom typing import Any, AnyStr, Callable, Optional, Union, overload\n\n# TODO more precise type for object of hashlib\n_Hash = Any\n_DigestMod = Union[str, Callable[[], _Hash], ModuleType]\n\ndigest_size: None\n\nif sys.version_info >= (3, 8):\n # In reality digestmod has a default value, but the function always throws an error\n # if the argument is not given, so we pretend it is a required argument.\n @overload\n def new(key: bytes, msg: Optional[ReadableBuffer], digestmod: _DigestMod) -> HMAC: ...\n @overload\n def new(key: bytes, *, digestmod: _DigestMod) -> HMAC: ...\n\nelif sys.version_info >= (3, 4):\n def new(key: bytes, msg: Optional[ReadableBuffer] = ..., digestmod: Optional[_DigestMod] = ...) -> HMAC: ...\n\nelse:\n def new(key: bytes, msg: Optional[ReadableBuffer] = ..., digestmod: Optional[_DigestMod] = ...) -> HMAC: ...\n\nclass HMAC:\n if sys.version_info >= (3,):\n digest_size: int\n if sys.version_info >= (3, 4):\n block_size: int\n name: str\n def __init__(self, key: bytes, msg: Optional[ReadableBuffer] = ..., digestmod: _DigestMod = ...) -> None: ...\n def update(self, msg: ReadableBuffer) -> None: ...\n def digest(self) -> bytes: ...\n def hexdigest(self) -> str: ...\n def copy(self) -> HMAC: ...\n\n@overload\ndef compare_digest(__a: ReadableBuffer, __b: ReadableBuffer) -> bool: ...\n@overload\ndef compare_digest(__a: AnyStr, __b: AnyStr) -> bool: ...\n\nif sys.version_info >= (3, 7):\n def digest(key: bytes, msg: ReadableBuffer, digest: str) -> bytes: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\hmac.pyi
hmac.pyi
Other
1,607
0.95
0.454545
0.083333
awesome-app
787
2024-07-14T17:53:04.268434
MIT
false
e39ea7769bd10157acf1c693f8fc4c5d
import subprocess\nimport sys\nimport time\nfrom socket import socket as _socket\nfrom ssl import SSLContext, SSLSocket\nfrom types import TracebackType\nfrom typing import IO, Any, Callable, Dict, List, Optional, Pattern, Text, Tuple, Type, Union\nfrom typing_extensions import Literal\n\n# TODO: Commands should use their actual return types, not this type alias.\n# E.g. Tuple[Literal["OK"], List[bytes]]\n_CommandResults = Tuple[str, List[Any]]\n\n_AnyResponseData = Union[List[None], List[Union[bytes, Tuple[bytes, bytes]]]]\n\nclass IMAP4:\n error: Type[Exception] = ...\n abort: Type[Exception] = ...\n readonly: Type[Exception] = ...\n mustquote: Pattern[Text] = ...\n debug: int = ...\n state: str = ...\n literal: Optional[Text] = ...\n tagged_commands: Dict[bytes, Optional[List[bytes]]]\n untagged_responses: Dict[str, List[Union[bytes, Tuple[bytes, bytes]]]]\n continuation_response: str = ...\n is_readonly: bool = ...\n tagnum: int = ...\n tagpre: str = ...\n tagre: Pattern[Text] = ...\n welcome: bytes = ...\n capabilities: Tuple[str] = ...\n PROTOCOL_VERSION: str = ...\n if sys.version_info >= (3, 9):\n def __init__(self, host: str = ..., port: int = ..., timeout: Optional[float] = ...) -> None: ...\n def open(self, host: str = ..., port: int = ..., timeout: Optional[float] = ...) -> None: ...\n else:\n def __init__(self, host: str = ..., port: int = ...) -> None: ...\n def open(self, host: str = ..., port: int = ...) -> None: ...\n def __getattr__(self, attr: str) -> Any: ...\n host: str = ...\n port: int = ...\n sock: _socket = ...\n file: Union[IO[Text], IO[bytes]] = ...\n def read(self, size: int) -> bytes: ...\n def readline(self) -> bytes: ...\n def send(self, data: bytes) -> None: ...\n def shutdown(self) -> None: ...\n def socket(self) -> _socket: ...\n def recent(self) -> _CommandResults: ...\n def response(self, code: str) -> _CommandResults: ...\n def append(self, mailbox: str, flags: str, date_time: str, message: str) -> str: ...\n def authenticate(self, mechanism: str, authobject: Callable[[bytes], Optional[bytes]]) -> Tuple[str, str]: ...\n def capability(self) -> _CommandResults: ...\n def check(self) -> _CommandResults: ...\n def close(self) -> _CommandResults: ...\n def copy(self, message_set: str, new_mailbox: str) -> _CommandResults: ...\n def create(self, mailbox: str) -> _CommandResults: ...\n def delete(self, mailbox: str) -> _CommandResults: ...\n def deleteacl(self, mailbox: str, who: str) -> _CommandResults: ...\n if sys.version_info >= (3, 5):\n def enable(self, capability: str) -> _CommandResults: ...\n def __enter__(self) -> IMAP4: ...\n def __exit__(self, t: Optional[Type[BaseException]], v: Optional[BaseException], tb: Optional[TracebackType]) -> None: ...\n def expunge(self) -> _CommandResults: ...\n def fetch(self, message_set: str, message_parts: str) -> Tuple[str, _AnyResponseData]: ...\n def getacl(self, mailbox: str) -> _CommandResults: ...\n def getannotation(self, mailbox: str, entry: str, attribute: str) -> _CommandResults: ...\n def getquota(self, root: str) -> _CommandResults: ...\n def getquotaroot(self, mailbox: str) -> _CommandResults: ...\n def list(self, directory: str = ..., pattern: str = ...) -> Tuple[str, _AnyResponseData]: ...\n def login(self, user: str, password: str) -> Tuple[Literal["OK"], List[bytes]]: ...\n def login_cram_md5(self, user: str, password: str) -> _CommandResults: ...\n def logout(self) -> Tuple[str, _AnyResponseData]: ...\n def lsub(self, directory: str = ..., pattern: str = ...) -> _CommandResults: ...\n def myrights(self, mailbox: str) -> _CommandResults: ...\n def namespace(self) -> _CommandResults: ...\n def noop(self) -> Tuple[str, List[bytes]]: ...\n def partial(self, message_num: str, message_part: str, start: str, length: str) -> _CommandResults: ...\n def proxyauth(self, user: str) -> _CommandResults: ...\n def rename(self, oldmailbox: str, newmailbox: str) -> _CommandResults: ...\n def search(self, charset: Optional[str], *criteria: str) -> _CommandResults: ...\n def select(self, mailbox: str = ..., readonly: bool = ...) -> Tuple[str, List[Optional[bytes]]]: ...\n def setacl(self, mailbox: str, who: str, what: str) -> _CommandResults: ...\n def setannotation(self, *args: str) -> _CommandResults: ...\n def setquota(self, root: str, limits: str) -> _CommandResults: ...\n def sort(self, sort_criteria: str, charset: str, *search_criteria: str) -> _CommandResults: ...\n if sys.version_info >= (3,):\n def starttls(self, ssl_context: Optional[Any] = ...) -> Tuple[Literal["OK"], List[None]]: ...\n def status(self, mailbox: str, names: str) -> _CommandResults: ...\n def store(self, message_set: str, command: str, flags: str) -> _CommandResults: ...\n def subscribe(self, mailbox: str) -> _CommandResults: ...\n def thread(self, threading_algorithm: str, charset: str, *search_criteria: str) -> _CommandResults: ...\n def uid(self, command: str, *args: str) -> _CommandResults: ...\n def unsubscribe(self, mailbox: str) -> _CommandResults: ...\n if sys.version_info >= (3, 9):\n def unselect(self) -> _CommandResults: ...\n def xatom(self, name: str, *args: str) -> _CommandResults: ...\n def print_log(self) -> None: ...\n\nclass IMAP4_SSL(IMAP4):\n keyfile: str = ...\n certfile: str = ...\n if sys.version_info >= (3, 9):\n def __init__(\n self,\n host: str = ...,\n port: int = ...,\n keyfile: Optional[str] = ...,\n certfile: Optional[str] = ...,\n ssl_context: Optional[SSLContext] = ...,\n timeout: Optional[float] = ...,\n ) -> None: ...\n elif sys.version_info >= (3, 3):\n def __init__(\n self,\n host: str = ...,\n port: int = ...,\n keyfile: Optional[str] = ...,\n certfile: Optional[str] = ...,\n ssl_context: Optional[SSLContext] = ...,\n ) -> None: ...\n else:\n def __init__(\n self, host: str = ..., port: int = ..., keyfile: Optional[str] = ..., certfile: Optional[str] = ...\n ) -> None: ...\n host: str = ...\n port: int = ...\n sock: _socket = ...\n sslobj: SSLSocket = ...\n file: IO[Any] = ...\n if sys.version_info >= (3, 9):\n def open(self, host: str = ..., port: Optional[int] = ..., timeout: Optional[float] = ...) -> None: ...\n else:\n def open(self, host: str = ..., port: Optional[int] = ...) -> None: ...\n def read(self, size: int) -> bytes: ...\n def readline(self) -> bytes: ...\n def send(self, data: bytes) -> None: ...\n def shutdown(self) -> None: ...\n def socket(self) -> _socket: ...\n def ssl(self) -> SSLSocket: ...\n\nclass IMAP4_stream(IMAP4):\n command: str = ...\n def __init__(self, command: str) -> None: ...\n host: str = ...\n port: int = ...\n sock: _socket = ...\n file: IO[Any] = ...\n process: subprocess.Popen[bytes] = ...\n writefile: IO[Any] = ...\n readfile: IO[Any] = ...\n if sys.version_info >= (3, 9):\n def open(self, host: Optional[str] = ..., port: Optional[int] = ..., timeout: Optional[float] = ...) -> None: ...\n else:\n def open(self, host: Optional[str] = ..., port: Optional[int] = ...) -> None: ...\n def read(self, size: int) -> bytes: ...\n def readline(self) -> bytes: ...\n def send(self, data: bytes) -> None: ...\n def shutdown(self) -> None: ...\n\nclass _Authenticator:\n mech: Callable[[bytes], bytes] = ...\n def __init__(self, mechinst: Callable[[bytes], bytes]) -> None: ...\n def process(self, data: str) -> str: ...\n def encode(self, inp: bytes) -> str: ...\n def decode(self, inp: str) -> bytes: ...\n\ndef Internaldate2tuple(resp: str) -> time.struct_time: ...\ndef Int2AP(num: int) -> str: ...\ndef ParseFlags(resp: str) -> Tuple[str]: ...\ndef Time2Internaldate(date_time: Union[float, time.struct_time, str]) -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\imaplib.pyi
imaplib.pyi
Other
8,034
0.95
0.546512
0.012121
react-lib
4
2023-07-13T10:09:16.475367
GPL-3.0
false
71326fdf6fa3550f5bfe7c46cad81c09
import os\nimport sys\nfrom typing import Any, BinaryIO, Callable, List, Optional, Protocol, Text, Union, overload\n\nclass _ReadableBinary(Protocol):\n def tell(self) -> int: ...\n def read(self, size: int) -> bytes: ...\n def seek(self, offset: int) -> Any: ...\n\nif sys.version_info >= (3, 6):\n _File = Union[Text, os.PathLike[Text], _ReadableBinary]\nelse:\n _File = Union[Text, _ReadableBinary]\n\n@overload\ndef what(file: _File, h: None = ...) -> Optional[str]: ...\n@overload\ndef what(file: Any, h: bytes) -> Optional[str]: ...\n\ntests: List[Callable[[bytes, Optional[BinaryIO]], Optional[str]]]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\imghdr.pyi
imghdr.pyi
Other
604
0.85
0.35
0
vue-tools
996
2025-03-21T15:56:32.427308
Apache-2.0
false
8bc6c16e28353ac5bd64ac2701dabce9
import sys\nfrom typing import Sequence, Text\n\ndef iskeyword(s: Text) -> bool: ...\n\nkwlist: Sequence[str]\n\nif sys.version_info >= (3, 9):\n def issoftkeyword(s: str) -> bool: ...\n softkwlist: Sequence[str]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\keyword.pyi
keyword.pyi
Other
210
0.85
0.3
0
awesome-app
345
2024-02-12T21:15:51.901385
BSD-3-Clause
false
3054e3a33a82d9d24ef757a6b852410a
import sys\nfrom typing import Any, Dict, List, Optional, Text\n\n_ModuleGlobals = Dict[str, Any]\n\ndef getline(filename: Text, lineno: int, module_globals: Optional[_ModuleGlobals] = ...) -> str: ...\ndef clearcache() -> None: ...\ndef getlines(filename: Text, module_globals: Optional[_ModuleGlobals] = ...) -> List[str]: ...\ndef checkcache(filename: Optional[Text] = ...) -> None: ...\ndef updatecache(filename: Text, module_globals: Optional[_ModuleGlobals] = ...) -> List[str]: ...\n\nif sys.version_info >= (3, 5):\n def lazycache(filename: Text, module_globals: _ModuleGlobals) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\linecache.pyi
linecache.pyi
Other
591
0.85
0.538462
0
awesome-app
44
2024-10-31T07:34:04.692556
GPL-3.0
false
f95ec252157da4085ba6ede83d5f5114
import sys\nfrom decimal import Decimal\nfrom typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union\n\n# workaround for mypy#2010\nif sys.version_info < (3,):\n from __builtin__ import str as _str\nelse:\n from builtins import str as _str\n\nCODESET: int\nD_T_FMT: int\nD_FMT: int\nT_FMT: int\nT_FMT_AMPM: int\n\nDAY_1: int\nDAY_2: int\nDAY_3: int\nDAY_4: int\nDAY_5: int\nDAY_6: int\nDAY_7: int\nABDAY_1: int\nABDAY_2: int\nABDAY_3: int\nABDAY_4: int\nABDAY_5: int\nABDAY_6: int\nABDAY_7: int\n\nMON_1: int\nMON_2: int\nMON_3: int\nMON_4: int\nMON_5: int\nMON_6: int\nMON_7: int\nMON_8: int\nMON_9: int\nMON_10: int\nMON_11: int\nMON_12: int\nABMON_1: int\nABMON_2: int\nABMON_3: int\nABMON_4: int\nABMON_5: int\nABMON_6: int\nABMON_7: int\nABMON_8: int\nABMON_9: int\nABMON_10: int\nABMON_11: int\nABMON_12: int\n\nRADIXCHAR: int\nTHOUSEP: int\nYESEXPR: int\nNOEXPR: int\nCRNCYSTR: int\n\nERA: int\nERA_D_T_FMT: int\nERA_D_FMT: int\nERA_T_FMT: int\n\nALT_DIGITS: int\n\nLC_CTYPE: int\nLC_COLLATE: int\nLC_TIME: int\nLC_MONETARY: int\nLC_MESSAGES: int\nLC_NUMERIC: int\nLC_ALL: int\n\nCHAR_MAX: int\n\nclass Error(Exception): ...\n\ndef setlocale(category: int, locale: Union[_str, Iterable[_str], None] = ...) -> _str: ...\ndef localeconv() -> Mapping[_str, Union[int, _str, List[int]]]: ...\ndef nl_langinfo(option: int) -> _str: ...\ndef getdefaultlocale(envvars: Tuple[_str, ...] = ...) -> Tuple[Optional[_str], Optional[_str]]: ...\ndef getlocale(category: int = ...) -> Sequence[_str]: ...\ndef getpreferredencoding(do_setlocale: bool = ...) -> _str: ...\ndef normalize(localename: _str) -> _str: ...\ndef resetlocale(category: int = ...) -> None: ...\ndef strcoll(string1: _str, string2: _str) -> int: ...\ndef strxfrm(string: _str) -> _str: ...\ndef format(percent: _str, value: Union[float, Decimal], grouping: bool = ..., monetary: bool = ..., *additional: Any) -> _str: ...\n\nif sys.version_info >= (3, 7):\n def format_string(f: _str, val: Any, grouping: bool = ..., monetary: bool = ...) -> _str: ...\n\nelse:\n def format_string(f: _str, val: Any, grouping: bool = ...) -> _str: ...\n\ndef currency(val: Union[int, float, Decimal], symbol: bool = ..., grouping: bool = ..., international: bool = ...) -> _str: ...\n\nif sys.version_info >= (3, 5):\n def delocalize(string: _str) -> _str: ...\n\ndef atof(string: _str, func: Callable[[_str], float] = ...) -> float: ...\ndef atoi(string: _str) -> int: ...\ndef str(val: float) -> _str: ...\n\nlocale_alias: Dict[_str, _str] # undocumented\nlocale_encoding_alias: Dict[_str, _str] # undocumented\nwindows_locale: Dict[int, _str] # undocumented\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\locale.pyi
locale.pyi
Other
2,555
0.95
0.207207
0.010638
react-lib
280
2024-06-30T03:43:48.550306
GPL-3.0
false
ee75b4ac397866cfb40fdef35816d869
import os\nimport sys\nfrom _typeshed import AnyPath, BytesPath, StrPath\nfrom typing import Any, AnyStr, Callable, List, Optional, Sequence, Text, Tuple, TypeVar, Union, overload\n\nif sys.version_info < (3, 8):\n _T = TypeVar("_T")\n\n if sys.version_info >= (3, 6):\n from builtins import _PathLike\n\n # ----- os.path variables -----\n supports_unicode_filenames: bool\n # aliases (also in os)\n curdir: str\n pardir: str\n sep: str\n altsep: Optional[str]\n extsep: str\n pathsep: str\n defpath: str\n devnull: str\n\n # ----- os.path function stubs -----\n if sys.version_info >= (3, 6):\n # Overloads are necessary to work around python/mypy#3644.\n @overload\n def abspath(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def abspath(path: AnyStr) -> AnyStr: ...\n @overload\n def basename(s: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def basename(s: AnyStr) -> AnyStr: ...\n @overload\n def dirname(s: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def dirname(s: AnyStr) -> AnyStr: ...\n @overload\n def expanduser(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def expanduser(path: AnyStr) -> AnyStr: ...\n @overload\n def expandvars(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def expandvars(path: AnyStr) -> AnyStr: ...\n @overload\n def normcase(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def normcase(path: AnyStr) -> AnyStr: ...\n @overload\n def normpath(s: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def normpath(s: AnyStr) -> AnyStr: ...\n @overload\n def realpath(path: _PathLike[AnyStr]) -> AnyStr: ...\n @overload\n def realpath(path: AnyStr) -> AnyStr: ...\n else:\n def abspath(path: AnyStr) -> AnyStr: ...\n def basename(s: AnyStr) -> AnyStr: ...\n def dirname(s: AnyStr) -> AnyStr: ...\n def expanduser(path: AnyStr) -> AnyStr: ...\n def expandvars(path: AnyStr) -> AnyStr: ...\n def normcase(path: AnyStr) -> AnyStr: ...\n def normpath(s: AnyStr) -> AnyStr: ...\n def realpath(path: AnyStr) -> AnyStr: ...\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\n def commonprefix(m: Sequence[AnyPath]) -> Any: ...\n if sys.version_info >= (3, 3):\n def exists(path: Union[AnyPath, int]) -> bool: ...\n else:\n def exists(path: AnyPath) -> bool: ...\n def lexists(path: AnyPath) -> bool: ...\n # These return float if os.stat_float_times() == True,\n # but int is a subclass of float.\n def getatime(filename: AnyPath) -> float: ...\n def getmtime(filename: AnyPath) -> float: ...\n def getctime(filename: AnyPath) -> float: ...\n def getsize(filename: AnyPath) -> int: ...\n def isabs(s: AnyPath) -> bool: ...\n def isfile(path: AnyPath) -> bool: ...\n def isdir(s: AnyPath) -> bool: ...\n def islink(s: AnyPath) -> bool: ...\n def ismount(s: AnyPath) -> bool: ...\n if sys.version_info < (3, 0):\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\n def join(__p1: bytes, *p: bytes) -> bytes: ...\n @overload\n def join(__p1: bytes, __p2: bytes, __p3: bytes, __p4: Text, *p: AnyPath) -> Text: ...\n @overload\n def join(__p1: bytes, __p2: bytes, __p3: Text, *p: AnyPath) -> Text: ...\n @overload\n def join(__p1: bytes, __p2: Text, *p: AnyPath) -> Text: ...\n @overload\n def join(__p1: Text, *p: AnyPath) -> Text: ...\n elif sys.version_info >= (3, 6):\n # Mypy complains that the signatures overlap, but things seem to behave correctly anyway.\n @overload\n def join(s: StrPath, *paths: StrPath) -> Text: ...\n @overload\n def join(s: BytesPath, *paths: BytesPath) -> bytes: ...\n else:\n def join(s: AnyStr, *paths: AnyStr) -> AnyStr: ...\n def samefile(f1: AnyPath, f2: AnyPath) -> bool: ...\n def sameopenfile(fp1: int, fp2: int) -> bool: ...\n def samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...\n if sys.version_info >= (3, 6):\n @overload\n def split(s: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def split(s: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitdrive(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitext(p: _PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...\n @overload\n def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n else:\n def split(s: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n if sys.version_info < (3,):\n def walk(path: AnyStr, visit: Callable[[_T, AnyStr, List[AnyStr]], Any], arg: _T) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\macpath.pyi
macpath.pyi
Other
5,330
0.95
0.507576
0.109375
vue-tools
152
2025-06-24T22:42:01.890794
BSD-3-Clause
false
2f6dc2684a5a6a8ba41891f55ba64c61
import email.message\nimport sys\nfrom _typeshed import AnyPath\nfrom types import TracebackType\nfrom typing import (\n IO,\n Any,\n AnyStr,\n Callable,\n Dict,\n Generic,\n Iterable,\n Iterator,\n List,\n Mapping,\n Optional,\n Protocol,\n Sequence,\n Text,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\nfrom typing_extensions import Literal\n\nif sys.version_info >= (3, 9):\n from types import GenericAlias\n\n_T = TypeVar("_T")\n_MessageType = TypeVar("_MessageType", bound=Message)\n_MessageData = Union[email.message.Message, bytes, str, IO[str], IO[bytes]]\n\nclass _HasIteritems(Protocol):\n def iteritems(self) -> Iterator[Tuple[str, _MessageData]]: ...\n\nclass _HasItems(Protocol):\n def items(self) -> Iterator[Tuple[str, _MessageData]]: ...\n\nlinesep: bytes\n\nclass Mailbox(Generic[_MessageType]):\n\n _path: Union[bytes, str] # undocumented\n _factory: Optional[Callable[[IO[Any]], _MessageType]] # undocumented\n def __init__(self, path: AnyPath, factory: Optional[Callable[[IO[Any]], _MessageType]] = ..., create: bool = ...) -> None: ...\n def add(self, message: _MessageData) -> str: ...\n def remove(self, key: str) -> None: ...\n def __delitem__(self, key: str) -> None: ...\n def discard(self, key: str) -> None: ...\n def __setitem__(self, key: str, message: _MessageData) -> None: ...\n @overload\n def get(self, key: str, default: None = ...) -> Optional[_MessageType]: ...\n @overload\n def get(self, key: str, default: _T) -> Union[_MessageType, _T]: ...\n def __getitem__(self, key: str) -> _MessageType: ...\n def get_message(self, key: str) -> _MessageType: ...\n def get_string(self, key: str) -> str: ...\n def get_bytes(self, key: str) -> bytes: ...\n # As '_ProxyFile' doesn't implement the full IO spec, and BytesIO is incompatible with it, get_file return is Any here\n def get_file(self, key: str) -> Any: ...\n def iterkeys(self) -> Iterator[str]: ...\n def keys(self) -> List[str]: ...\n def itervalues(self) -> Iterator[_MessageType]: ...\n def __iter__(self) -> Iterator[_MessageType]: ...\n def values(self) -> List[_MessageType]: ...\n def iteritems(self) -> Iterator[Tuple[str, _MessageType]]: ...\n def items(self) -> List[Tuple[str, _MessageType]]: ...\n def __contains__(self, key: str) -> bool: ...\n def __len__(self) -> int: ...\n def clear(self) -> None: ...\n @overload\n def pop(self, key: str, default: None = ...) -> Optional[_MessageType]: ...\n @overload\n def pop(self, key: str, default: _T = ...) -> Union[_MessageType, _T]: ...\n def popitem(self) -> Tuple[str, _MessageType]: ...\n def update(self, arg: Optional[Union[_HasIteritems, _HasItems, Iterable[Tuple[str, _MessageData]]]] = ...) -> None: ...\n def flush(self) -> None: ...\n def lock(self) -> None: ...\n def unlock(self) -> None: ...\n def close(self) -> None: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass Maildir(Mailbox[MaildirMessage]):\n\n colon: str\n def __init__(\n self, dirname: AnyPath, factory: Optional[Callable[[IO[Any]], MaildirMessage]] = ..., create: bool = ...\n ) -> None: ...\n def get_file(self, key: str) -> _ProxyFile[bytes]: ...\n def list_folders(self) -> List[str]: ...\n def get_folder(self, folder: Text) -> Maildir: ...\n def add_folder(self, folder: Text) -> Maildir: ...\n def remove_folder(self, folder: Text) -> None: ...\n def clean(self) -> None: ...\n def next(self) -> Optional[str]: ...\n\nclass _singlefileMailbox(Mailbox[_MessageType]): ...\n\nclass _mboxMMDF(_singlefileMailbox[_MessageType]):\n def get_file(self, key: str) -> _PartialFile[bytes]: ...\n\nclass mbox(_mboxMMDF[mboxMessage]):\n def __init__(\n self, dirname: AnyPath, factory: Optional[Callable[[IO[Any]], mboxMessage]] = ..., create: bool = ...\n ) -> None: ...\n\nclass MMDF(_mboxMMDF[MMDFMessage]):\n def __init__(\n self, dirname: AnyPath, factory: Optional[Callable[[IO[Any]], MMDFMessage]] = ..., create: bool = ...\n ) -> None: ...\n\nclass MH(Mailbox[MHMessage]):\n def __init__(self, dirname: AnyPath, factory: Optional[Callable[[IO[Any]], MHMessage]] = ..., create: bool = ...) -> None: ...\n def get_file(self, key: str) -> _ProxyFile[bytes]: ...\n def list_folders(self) -> List[str]: ...\n def get_folder(self, folder: AnyPath) -> MH: ...\n def add_folder(self, folder: AnyPath) -> MH: ...\n def remove_folder(self, folder: AnyPath) -> None: ...\n def get_sequences(self) -> Dict[str, List[int]]: ...\n def set_sequences(self, sequences: Mapping[str, Sequence[int]]) -> None: ...\n def pack(self) -> None: ...\n\nclass Babyl(_singlefileMailbox[BabylMessage]):\n def __init__(\n self, dirname: AnyPath, factory: Optional[Callable[[IO[Any]], BabylMessage]] = ..., create: bool = ...\n ) -> None: ...\n def get_file(self, key: str) -> IO[bytes]: ...\n def get_labels(self) -> List[str]: ...\n\nclass Message(email.message.Message):\n def __init__(self, message: Optional[_MessageData] = ...) -> None: ...\n\nclass MaildirMessage(Message):\n def get_subdir(self) -> str: ...\n def set_subdir(self, subdir: Literal["new", "cur"]) -> None: ...\n def get_flags(self) -> str: ...\n def set_flags(self, flags: Iterable[str]) -> None: ...\n def add_flag(self, flag: str) -> None: ...\n def remove_flag(self, flag: str) -> None: ...\n def get_date(self) -> int: ...\n def set_date(self, date: float) -> None: ...\n def get_info(self) -> str: ...\n def set_info(self, info: str) -> None: ...\n\nclass _mboxMMDFMessage(Message):\n def get_from(self) -> str: ...\n def set_from(\n self, from_: str, time_: Optional[Union[bool, Tuple[int, int, int, int, int, int, int, int, int]]] = ...\n ) -> None: ...\n def get_flags(self) -> str: ...\n def set_flags(self, flags: Iterable[str]) -> None: ...\n def add_flag(self, flag: str) -> None: ...\n def remove_flag(self, flag: str) -> None: ...\n\nclass mboxMessage(_mboxMMDFMessage): ...\n\nclass MHMessage(Message):\n def get_sequences(self) -> List[str]: ...\n def set_sequences(self, sequences: Iterable[str]) -> None: ...\n def add_sequence(self, sequence: str) -> None: ...\n def remove_sequence(self, sequence: str) -> None: ...\n\nclass BabylMessage(Message):\n def get_labels(self) -> List[str]: ...\n def set_labels(self, labels: Iterable[str]) -> None: ...\n def add_label(self, label: str) -> None: ...\n def remove_label(self, label: str) -> None: ...\n def get_visible(self) -> Message: ...\n def set_visible(self, visible: _MessageData) -> None: ...\n def update_visible(self) -> None: ...\n\nclass MMDFMessage(_mboxMMDFMessage): ...\n\nclass _ProxyFile(Generic[AnyStr]):\n def __init__(self, f: IO[AnyStr], pos: Optional[int] = ...) -> None: ...\n def read(self, size: Optional[int] = ...) -> AnyStr: ...\n def read1(self, size: Optional[int] = ...) -> AnyStr: ...\n def readline(self, size: Optional[int] = ...) -> AnyStr: ...\n def readlines(self, sizehint: Optional[int] = ...) -> List[AnyStr]: ...\n def __iter__(self) -> Iterator[AnyStr]: ...\n def tell(self) -> int: ...\n def seek(self, offset: int, whence: int = ...) -> None: ...\n def close(self) -> None: ...\n def __enter__(self) -> _ProxyFile[AnyStr]: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException], tb: Optional[TracebackType]\n ) -> None: ...\n def readable(self) -> bool: ...\n def writable(self) -> bool: ...\n def seekable(self) -> bool: ...\n def flush(self) -> None: ...\n @property\n def closed(self) -> bool: ...\n if sys.version_info >= (3, 9):\n def __class_getitem__(cls, item: Any) -> GenericAlias: ...\n\nclass _PartialFile(_ProxyFile[AnyStr]):\n def __init__(self, f: IO[AnyStr], start: Optional[int] = ..., stop: Optional[int] = ...) -> None: ...\n\nclass Error(Exception): ...\nclass NoSuchMailboxError(Error): ...\nclass NotEmptyError(Error): ...\nclass ExternalClashError(Error): ...\nclass FormatError(Error): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\mailbox.pyi
mailbox.pyi
Other
8,071
0.95
0.628019
0.005495
awesome-app
862
2023-09-23T21:25:55.989624
GPL-3.0
false
584a6d9c7d9365da19408fd4061043e9
from typing import Dict, List, Mapping, Optional, Sequence, Tuple, Union\n\n_Cap = Dict[str, Union[str, int]]\n\ndef findmatch(\n caps: Mapping[str, List[_Cap]], MIMEtype: str, key: str = ..., filename: str = ..., plist: Sequence[str] = ...\n) -> Tuple[Optional[str], Optional[_Cap]]: ...\ndef getcaps() -> Dict[str, List[_Cap]]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\mailcap.pyi
mailcap.pyi
Other
330
0.85
0.25
0
python-kit
387
2023-11-19T12:26:14.522915
BSD-3-Clause
false
fb23994e68edbdc4b47d2547916a46dd
from typing import IO, Any\n\nversion: int\n\ndef dump(__value: Any, __file: IO[Any], __version: int = ...) -> None: ...\ndef load(__file: IO[Any]) -> Any: ...\ndef dumps(__value: Any, __version: int = ...) -> bytes: ...\ndef loads(__bytes: bytes) -> Any: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\marshal.pyi
marshal.pyi
Other
253
0.85
0.5
0
awesome-app
153
2024-10-10T08:37:21.500939
MIT
false
7d7cbeb8aed67887ef263d460b324040
import sys\nfrom typing import Iterable, Optional, SupportsFloat, SupportsInt, Tuple, overload\n\ne: float\npi: float\nif sys.version_info >= (3, 5):\n inf: float\n nan: float\nif sys.version_info >= (3, 6):\n tau: float\n\ndef acos(__x: SupportsFloat) -> float: ...\ndef acosh(__x: SupportsFloat) -> float: ...\ndef asin(__x: SupportsFloat) -> float: ...\ndef asinh(__x: SupportsFloat) -> float: ...\ndef atan(__x: SupportsFloat) -> float: ...\ndef atan2(__y: SupportsFloat, __x: SupportsFloat) -> float: ...\ndef atanh(__x: SupportsFloat) -> float: ...\n\nif sys.version_info >= (3,):\n def ceil(__x: SupportsFloat) -> int: ...\n\nelse:\n def ceil(__x: SupportsFloat) -> float: ...\n\nif sys.version_info >= (3, 8):\n def comb(__n: int, __k: int) -> int: ...\n\ndef copysign(__x: SupportsFloat, __y: SupportsFloat) -> float: ...\ndef cos(__x: SupportsFloat) -> float: ...\ndef cosh(__x: SupportsFloat) -> float: ...\ndef degrees(__x: SupportsFloat) -> float: ...\n\nif sys.version_info >= (3, 8):\n def dist(__p: Iterable[SupportsFloat], __q: Iterable[SupportsFloat]) -> float: ...\n\ndef erf(__x: SupportsFloat) -> float: ...\ndef erfc(__x: SupportsFloat) -> float: ...\ndef exp(__x: SupportsFloat) -> float: ...\ndef expm1(__x: SupportsFloat) -> float: ...\ndef fabs(__x: SupportsFloat) -> float: ...\ndef factorial(__x: SupportsInt) -> int: ...\n\nif sys.version_info >= (3,):\n def floor(__x: SupportsFloat) -> int: ...\n\nelse:\n def floor(__x: SupportsFloat) -> float: ...\n\ndef fmod(__x: SupportsFloat, __y: SupportsFloat) -> float: ...\ndef frexp(__x: SupportsFloat) -> Tuple[float, int]: ...\ndef fsum(__seq: Iterable[float]) -> float: ...\ndef gamma(__x: SupportsFloat) -> float: ...\n\nif sys.version_info >= (3, 9):\n def gcd(*integers: int) -> int: ...\n\nelif sys.version_info >= (3, 5):\n def gcd(__x: int, __y: int) -> int: ...\n\nif sys.version_info >= (3, 8):\n def hypot(*coordinates: SupportsFloat) -> float: ...\n\nelse:\n def hypot(__x: SupportsFloat, __y: SupportsFloat) -> float: ...\n\nif sys.version_info >= (3, 5):\n def isclose(a: SupportsFloat, b: SupportsFloat, *, rel_tol: SupportsFloat = ..., abs_tol: SupportsFloat = ...) -> bool: ...\n\ndef isinf(__x: SupportsFloat) -> bool: ...\n\nif sys.version_info >= (3,):\n def isfinite(__x: SupportsFloat) -> bool: ...\n\ndef isnan(__x: SupportsFloat) -> bool: ...\n\nif sys.version_info >= (3, 8):\n def isqrt(__n: int) -> int: ...\n\nif sys.version_info >= (3, 9):\n def lcm(*integers: int) -> int: ...\n\ndef ldexp(__x: SupportsFloat, __i: int) -> float: ...\ndef lgamma(__x: SupportsFloat) -> float: ...\ndef log(x: SupportsFloat, base: SupportsFloat = ...) -> float: ...\ndef log10(__x: SupportsFloat) -> float: ...\ndef log1p(__x: SupportsFloat) -> float: ...\n\nif sys.version_info >= (3, 3):\n def log2(__x: SupportsFloat) -> float: ...\n\ndef modf(__x: SupportsFloat) -> Tuple[float, float]: ...\n\nif sys.version_info >= (3, 9):\n def nextafter(__x: SupportsFloat, __y: SupportsFloat) -> float: ...\n\nif sys.version_info >= (3, 8):\n def perm(__n: int, __k: Optional[int] = ...) -> int: ...\n\ndef pow(__x: SupportsFloat, __y: SupportsFloat) -> float: ...\n\nif sys.version_info >= (3, 8):\n @overload\n def prod(__iterable: Iterable[int], *, start: int = ...) -> int: ... # type: ignore\n @overload\n def prod(__iterable: Iterable[SupportsFloat], *, start: SupportsFloat = ...) -> float: ...\n\ndef radians(__x: SupportsFloat) -> float: ...\n\nif sys.version_info >= (3, 7):\n def remainder(__x: SupportsFloat, __y: SupportsFloat) -> float: ...\n\ndef sin(__x: SupportsFloat) -> float: ...\ndef sinh(__x: SupportsFloat) -> float: ...\ndef sqrt(__x: SupportsFloat) -> float: ...\ndef tan(__x: SupportsFloat) -> float: ...\ndef tanh(__x: SupportsFloat) -> float: ...\ndef trunc(__x: SupportsFloat) -> int: ...\n\nif sys.version_info >= (3, 9):\n def ulp(__x: SupportsFloat) -> float: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\math.pyi
math.pyi
Other
3,835
0.95
0.628099
0
vue-tools
15
2023-11-02T03:45:12.736126
MIT
false
e450df296cd6c1c6def1b42a09e6fe7a
import sys\nfrom typing import IO, Dict, List, Optional, Sequence, Text, Tuple, Union\n\nif sys.version_info >= (3, 8):\n from os import PathLike\n def guess_type(url: Union[Text, PathLike[str]], strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...\n\nelse:\n def guess_type(url: Text, strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...\n\ndef guess_all_extensions(type: str, strict: bool = ...) -> List[str]: ...\ndef guess_extension(type: str, strict: bool = ...) -> Optional[str]: ...\ndef init(files: Optional[Sequence[str]] = ...) -> None: ...\ndef read_mime_types(filename: str) -> Optional[Dict[str, str]]: ...\ndef add_type(type: str, ext: str, strict: bool = ...) -> None: ...\n\ninited: bool\nknownfiles: List[str]\nsuffix_map: Dict[str, str]\nencodings_map: Dict[str, str]\ntypes_map: Dict[str, str]\ncommon_types: Dict[str, str]\n\nclass MimeTypes:\n suffix_map: Dict[str, str]\n encodings_map: Dict[str, str]\n types_map: Tuple[Dict[str, str], Dict[str, str]]\n types_map_inv: Tuple[Dict[str, str], Dict[str, str]]\n def __init__(self, filenames: Tuple[str, ...] = ..., strict: bool = ...) -> None: ...\n def guess_extension(self, type: str, strict: bool = ...) -> Optional[str]: ...\n def guess_type(self, url: str, strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...\n def guess_all_extensions(self, type: str, strict: bool = ...) -> List[str]: ...\n def read(self, filename: str, strict: bool = ...) -> None: ...\n def readfp(self, fp: IO[str], strict: bool = ...) -> None: ...\n if sys.platform == "win32":\n def read_windows_registry(self, strict: bool = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\mimetypes.pyi
mimetypes.pyi
Other
1,641
0.85
0.472222
0
react-lib
548
2024-07-06T18:35:41.944739
BSD-3-Clause
false
f3f846951466e875b2a29950605b14c2
import sys\nfrom _typeshed import ReadableBuffer\nfrom typing import AnyStr, ContextManager, Generic, Iterable, Iterator, Optional, Sequence, Sized, Union, overload\n\nACCESS_DEFAULT: int\nACCESS_READ: int\nACCESS_WRITE: int\nACCESS_COPY: int\n\nALLOCATIONGRANULARITY: int\n\nif sys.platform != "win32":\n MAP_ANON: int\n MAP_ANONYMOUS: int\n MAP_DENYWRITE: int\n MAP_EXECUTABLE: int\n MAP_PRIVATE: int\n MAP_SHARED: int\n PROT_EXEC: int\n PROT_READ: int\n PROT_WRITE: int\n\n PAGESIZE: int\n\nclass _mmap(Generic[AnyStr]):\n if sys.platform == "win32":\n def __init__(\n self, fileno: int, length: int, tagname: Optional[str] = ..., access: int = ..., offset: int = ...\n ) -> None: ...\n else:\n def __init__(\n self, fileno: int, length: int, flags: int = ..., prot: int = ..., access: int = ..., offset: int = ...\n ) -> None: ...\n def close(self) -> None: ...\n if sys.version_info >= (3, 8):\n def flush(self, offset: int = ..., size: int = ...) -> None: ...\n else:\n def flush(self, offset: int = ..., size: int = ...) -> int: ...\n def move(self, dest: int, src: int, count: int) -> None: ...\n def read_byte(self) -> AnyStr: ...\n def readline(self) -> AnyStr: ...\n def resize(self, newsize: int) -> None: ...\n def seek(self, pos: int, whence: int = ...) -> None: ...\n def size(self) -> int: ...\n def tell(self) -> int: ...\n def write_byte(self, byte: AnyStr) -> None: ...\n def __len__(self) -> int: ...\n\nif sys.version_info >= (3,):\n class mmap(_mmap[bytes], ContextManager[mmap], Iterable[bytes], Sized):\n closed: bool\n if sys.version_info >= (3, 8) and sys.platform != "win32":\n def madvise(self, option: int, start: int = ..., length: int = ...) -> None: ...\n def find(self, sub: ReadableBuffer, start: int = ..., stop: int = ...) -> int: ...\n def rfind(self, sub: ReadableBuffer, start: int = ..., stop: int = ...) -> int: ...\n def read(self, n: Optional[int] = ...) -> bytes: ...\n if sys.version_info >= (3, 6):\n def write(self, bytes: ReadableBuffer) -> int: ...\n else:\n def write(self, bytes: ReadableBuffer) -> None: ...\n @overload\n def __getitem__(self, index: int) -> int: ...\n @overload\n def __getitem__(self, index: slice) -> bytes: ...\n def __delitem__(self, index: Union[int, slice]) -> None: ...\n @overload\n def __setitem__(self, index: int, object: int) -> None: ...\n @overload\n def __setitem__(self, index: slice, object: bytes) -> None: ...\n # Doesn't actually exist, but the object is actually iterable because it has __getitem__ and\n # __len__, so we claim that there is also an __iter__ to help type checkers.\n def __iter__(self) -> Iterator[bytes]: ...\n\nelse:\n class mmap(_mmap[bytes], Sequence[bytes]):\n def find(self, string: bytes, start: int = ..., end: int = ...) -> int: ...\n def rfind(self, string: bytes, start: int = ..., stop: int = ...) -> int: ...\n def read(self, num: int) -> bytes: ...\n def write(self, string: bytes) -> None: ...\n def __getitem__(self, index: Union[int, slice]) -> bytes: ...\n def __getslice__(self, i: Optional[int], j: Optional[int]) -> bytes: ...\n def __delitem__(self, index: Union[int, slice]) -> None: ...\n def __setitem__(self, index: Union[int, slice], object: bytes) -> None: ...\n\nif sys.version_info >= (3, 8):\n MADV_NORMAL: int\n MADV_RANDOM: int\n MADV_SEQUENTIAL: int\n MADV_WILLNEED: int\n MADV_DONTNEED: int\n MADV_REMOVE: int\n MADV_DONTFORK: int\n MADV_DOFORK: int\n MADV_HWPOISON: int\n MADV_MERGEABLE: int\n MADV_UNMERGEABLE: int\n MADV_SOFT_OFFLINE: int\n MADV_HUGEPAGE: int\n MADV_NOHUGEPAGE: int\n MADV_DONTDUMP: int\n MADV_DODUMP: int\n MADV_FREE: int\n MADV_NOSYNC: int\n MADV_AUTOSYNC: int\n MADV_NOCORE: int\n MADV_CORE: int\n MADV_PROTECT: int\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\mmap.pyi
mmap.pyi
Other
4,006
0.95
0.411215
0.020202
vue-tools
382
2024-03-23T11:40:30.514786
MIT
false
bf7019295f33b58b37b033fe3165f881
import sys\nfrom types import CodeType\nfrom typing import IO, Any, Container, Dict, Iterable, Iterator, List, Optional, Sequence, Tuple\n\nLOAD_CONST: int # undocumented\nIMPORT_NAME: int # undocumented\nSTORE_NAME: int # undocumented\nSTORE_GLOBAL: int # undocumented\nSTORE_OPS: Tuple[int, int] # undocumented\nEXTENDED_ARG: int # undocumented\n\npackagePathMap: Dict[str, List[str]] # undocumented\n\ndef AddPackagePath(packagename: str, path: str) -> None: ...\n\nreplacePackageMap: Dict[str, str] # undocumented\n\ndef ReplacePackage(oldname: str, newname: str) -> None: ...\n\nclass Module: # undocumented\n def __init__(self, name: str, file: Optional[str] = ..., path: Optional[str] = ...) -> None: ...\n def __repr__(self) -> str: ...\n\nclass ModuleFinder:\n\n modules: Dict[str, Module]\n path: List[str] # undocumented\n badmodules: Dict[str, Dict[str, int]] # undocumented\n debug: int # undocumented\n indent: int # undocumented\n excludes: Container[str] # undocumented\n replace_paths: Sequence[Tuple[str, str]] # undocumented\n\n if sys.version_info >= (3, 8):\n def __init__(\n self,\n path: Optional[List[str]] = ...,\n debug: int = ...,\n excludes: Optional[Container[str]] = ...,\n replace_paths: Optional[Sequence[Tuple[str, str]]] = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n path: Optional[List[str]] = ...,\n debug: int = ...,\n excludes: Container[str] = ...,\n replace_paths: Sequence[Tuple[str, str]] = ...,\n ) -> None: ...\n def msg(self, level: int, str: str, *args: Any) -> None: ... # undocumented\n def msgin(self, *args: Any) -> None: ... # undocumented\n def msgout(self, *args: Any) -> None: ... # undocumented\n def run_script(self, pathname: str) -> None: ...\n def load_file(self, pathname: str) -> None: ... # undocumented\n def import_hook(\n self, name: str, caller: Optional[Module] = ..., fromlist: Optional[List[str]] = ..., level: int = ...\n ) -> Optional[Module]: ... # undocumented\n def determine_parent(self, caller: Optional[Module], level: int = ...) -> Optional[Module]: ... # undocumented\n def find_head_package(self, parent: Module, name: str) -> Tuple[Module, str]: ... # undocumented\n def load_tail(self, q: Module, tail: str) -> Module: ... # undocumented\n def ensure_fromlist(self, m: Module, fromlist: Iterable[str], recursive: int = ...) -> None: ... # undocumented\n def find_all_submodules(self, m: Module) -> Iterable[str]: ... # undocumented\n def import_module(self, partname: str, fqname: str, parent: Module) -> Optional[Module]: ... # undocumented\n def load_module(self, fqname: str, fp: IO[str], pathname: str, file_info: Tuple[str, str, str]) -> Module: ... # undocumented\n if sys.version_info >= (3, 6):\n def scan_opcodes(self, co: CodeType) -> Iterator[Tuple[str, Tuple[Any, ...]]]: ... # undocumented\n def scan_code(self, co: CodeType, m: Module) -> None: ... # undocumented\n def load_package(self, fqname: str, pathname: str) -> Module: ... # undocumented\n def add_module(self, fqname: str) -> Module: ... # undocumented\n def find_module(\n self, name: str, path: Optional[str], parent: Optional[Module] = ...\n ) -> Tuple[Optional[IO[Any]], Optional[str], Tuple[str, str, int]]: ... # undocumented\n def report(self) -> None: ...\n def any_missing(self) -> List[str]: ... # undocumented\n def any_missing_maybe(self) -> Tuple[List[str], List[str]]: ... # undocumented\n def replace_paths_in_code(self, co: CodeType) -> CodeType: ... # undocumented\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\modulefinder.pyi
modulefinder.pyi
Other
3,674
0.95
0.421053
0
vue-tools
206
2025-03-27T20:55:19.335827
GPL-3.0
false
745a01da9fca0acaed3c15908f64f9ad
import sys\nfrom typing import Text\n\n# This module is only available on Windows\nif sys.platform == "win32":\n LK_LOCK: int\n LK_NBLCK: int\n LK_NBRLCK: int\n LK_RLCK: int\n LK_UNLCK: int\n def locking(__fd: int, __mode: int, __nbytes: int) -> None: ...\n def setmode(__fd: int, __mode: int) -> int: ...\n def open_osfhandle(__handle: int, __flags: int) -> int: ...\n def get_osfhandle(__fd: int) -> int: ...\n def kbhit() -> bool: ...\n def getch() -> bytes: ...\n def getwch() -> Text: ...\n def getche() -> bytes: ...\n def getwche() -> Text: ...\n def putch(__char: bytes) -> None: ...\n def putwch(__unicode_char: Text) -> None: ...\n def ungetch(__char: bytes) -> None: ...\n def ungetwch(__unicode_char: Text) -> None: ...\n def heapmin() -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\msvcrt.pyi
msvcrt.pyi
Other
795
0.95
0.625
0.043478
python-kit
651
2024-05-05T01:59:40.584034
GPL-3.0
false
4b9bec955a68ca328eea0f7a82b09225
from typing import Dict, List, Optional, Tuple\n\nclass NetrcParseError(Exception):\n filename: Optional[str]\n lineno: Optional[int]\n msg: str\n\n# (login, account, password) tuple\n_NetrcTuple = Tuple[str, Optional[str], Optional[str]]\n\nclass netrc:\n hosts: Dict[str, _NetrcTuple]\n macros: Dict[str, List[str]]\n def __init__(self, file: str = ...) -> None: ...\n def authenticators(self, host: str) -> Optional[_NetrcTuple]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\netrc.pyi
netrc.pyi
Other
444
0.95
0.266667
0.083333
node-utils
324
2024-10-27T14:40:05.091443
BSD-3-Clause
false
e7e2228d50271a96e8f06166e56c90cc
import sys\nfrom typing import Dict, List\n\nif sys.platform != "win32":\n def cat(map: str, domain: str = ...) -> Dict[str, str]: ...\n def get_default_domain() -> str: ...\n def maps(domain: str = ...) -> List[str]: ...\n def match(key: str, map: str, domain: str = ...) -> str: ...\n class error(Exception): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\nis.pyi
nis.pyi
Other
322
0.85
0.666667
0
python-kit
770
2024-03-16T00:09:08.837131
BSD-3-Clause
false
cfa44b438e07f4a755b1d7e24533fdbe
# Note: these stubs are incomplete. The more complex type\n# signatures are currently omitted.\n\nimport sys\nfrom abc import ABCMeta, abstractmethod\nfrom typing import Any, Optional, SupportsFloat, overload\n\nclass Number(metaclass=ABCMeta):\n @abstractmethod\n def __hash__(self) -> int: ...\n\nclass Complex(Number):\n @abstractmethod\n def __complex__(self) -> complex: ...\n if sys.version_info >= (3, 0):\n def __bool__(self) -> bool: ...\n else:\n def __nonzero__(self) -> bool: ...\n @property\n @abstractmethod\n def real(self) -> Any: ...\n @property\n @abstractmethod\n def imag(self) -> Any: ...\n @abstractmethod\n def __add__(self, other: Any) -> Any: ...\n @abstractmethod\n def __radd__(self, other: Any) -> Any: ...\n @abstractmethod\n def __neg__(self) -> Any: ...\n @abstractmethod\n def __pos__(self) -> Any: ...\n def __sub__(self, other: Any) -> Any: ...\n def __rsub__(self, other: Any) -> Any: ...\n @abstractmethod\n def __mul__(self, other: Any) -> Any: ...\n @abstractmethod\n def __rmul__(self, other: Any) -> Any: ...\n if sys.version_info < (3, 0):\n @abstractmethod\n def __div__(self, other): ...\n @abstractmethod\n def __rdiv__(self, other): ...\n @abstractmethod\n def __truediv__(self, other: Any) -> Any: ...\n @abstractmethod\n def __rtruediv__(self, other: Any) -> Any: ...\n @abstractmethod\n def __pow__(self, exponent: Any) -> Any: ...\n @abstractmethod\n def __rpow__(self, base: Any) -> Any: ...\n def __abs__(self) -> Real: ...\n def conjugate(self) -> Any: ...\n def __eq__(self, other: Any) -> bool: ...\n if sys.version_info < (3, 0):\n def __ne__(self, other: Any) -> bool: ...\n\nclass Real(Complex, SupportsFloat):\n @abstractmethod\n def __float__(self) -> float: ...\n @abstractmethod\n def __trunc__(self) -> int: ...\n if sys.version_info >= (3, 0):\n @abstractmethod\n def __floor__(self) -> int: ...\n @abstractmethod\n def __ceil__(self) -> int: ...\n @abstractmethod\n @overload\n def __round__(self, ndigits: None = ...) -> int: ...\n @abstractmethod\n @overload\n def __round__(self, ndigits: int) -> Any: ...\n def __divmod__(self, other: Any) -> Any: ...\n def __rdivmod__(self, other: Any) -> Any: ...\n @abstractmethod\n def __floordiv__(self, other: Any) -> int: ...\n @abstractmethod\n def __rfloordiv__(self, other: Any) -> int: ...\n @abstractmethod\n def __mod__(self, other: Any) -> Any: ...\n @abstractmethod\n def __rmod__(self, other: Any) -> Any: ...\n @abstractmethod\n def __lt__(self, other: Any) -> bool: ...\n @abstractmethod\n def __le__(self, other: Any) -> bool: ...\n def __complex__(self) -> complex: ...\n @property\n def real(self) -> Any: ...\n @property\n def imag(self) -> Any: ...\n def conjugate(self) -> Any: ...\n\nclass Rational(Real):\n @property\n @abstractmethod\n def numerator(self) -> int: ...\n @property\n @abstractmethod\n def denominator(self) -> int: ...\n def __float__(self) -> float: ...\n\nclass Integral(Rational):\n if sys.version_info >= (3, 0):\n @abstractmethod\n def __int__(self) -> int: ...\n else:\n @abstractmethod\n def __long__(self) -> long: ...\n def __index__(self) -> int: ...\n @abstractmethod\n def __pow__(self, exponent: Any, modulus: Optional[Any] = ...) -> Any: ...\n @abstractmethod\n def __lshift__(self, other: Any) -> Any: ...\n @abstractmethod\n def __rlshift__(self, other: Any) -> Any: ...\n @abstractmethod\n def __rshift__(self, other: Any) -> Any: ...\n @abstractmethod\n def __rrshift__(self, other: Any) -> Any: ...\n @abstractmethod\n def __and__(self, other: Any) -> Any: ...\n @abstractmethod\n def __rand__(self, other: Any) -> Any: ...\n @abstractmethod\n def __xor__(self, other: Any) -> Any: ...\n @abstractmethod\n def __rxor__(self, other: Any) -> Any: ...\n @abstractmethod\n def __or__(self, other: Any) -> Any: ...\n @abstractmethod\n def __ror__(self, other: Any) -> Any: ...\n @abstractmethod\n def __invert__(self) -> Any: ...\n def __float__(self) -> float: ...\n @property\n def numerator(self) -> int: ...\n @property\n def denominator(self) -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\numbers.pyi
numbers.pyi
Other
4,335
0.95
0.521429
0.014925
python-kit
802
2025-02-26T17:43:30.510594
MIT
false
5fc4ebebdb06c74d7f380f9b6fd70be8
import sys\nfrom typing import Dict, List, Optional, Sequence\n\ncmp_op: Sequence[str]\nhasconst: List[int]\nhasname: List[int]\nhasjrel: List[int]\nhasjabs: List[int]\nhaslocal: List[int]\nhascompare: List[int]\nhasfree: List[int]\nopname: List[str]\n\nopmap: Dict[str, int]\nHAVE_ARGUMENT: int\nEXTENDED_ARG: int\n\nif sys.version_info >= (3, 8):\n def stack_effect(__opcode: int, __oparg: Optional[int] = ..., *, jump: Optional[bool] = ...) -> int: ...\n\nelif sys.version_info >= (3, 4):\n def stack_effect(__opcode: int, __oparg: Optional[int] = ...) -> int: ...\n\nif sys.version_info >= (3, 6):\n hasnargs: List[int]\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\opcode.pyi
opcode.pyi
Other
609
0.85
0.16
0
python-kit
637
2023-12-08T07:01:02.512516
Apache-2.0
false
24c09f769d3e2c22fd0947b7726d6cee
import sys\nfrom typing import (\n Any,\n Callable,\n Container,\n Mapping,\n MutableMapping,\n MutableSequence,\n Sequence,\n SupportsAbs,\n Tuple,\n TypeVar,\n overload,\n)\n\n_T = TypeVar("_T")\n_K = TypeVar("_K")\n_V = TypeVar("_V")\n\ndef lt(__a: Any, __b: Any) -> Any: ...\ndef le(__a: Any, __b: Any) -> Any: ...\ndef eq(__a: Any, __b: Any) -> Any: ...\ndef ne(__a: Any, __b: Any) -> Any: ...\ndef ge(__a: Any, __b: Any) -> Any: ...\ndef gt(__a: Any, __b: Any) -> Any: ...\ndef __lt__(a: Any, b: Any) -> Any: ...\ndef __le__(a: Any, b: Any) -> Any: ...\ndef __eq__(a: Any, b: Any) -> Any: ...\ndef __ne__(a: Any, b: Any) -> Any: ...\ndef __ge__(a: Any, b: Any) -> Any: ...\ndef __gt__(a: Any, b: Any) -> Any: ...\ndef not_(__a: Any) -> bool: ...\ndef __not__(a: Any) -> bool: ...\ndef truth(__a: Any) -> bool: ...\ndef is_(__a: Any, __b: Any) -> bool: ...\ndef is_not(__a: Any, __b: Any) -> bool: ...\ndef abs(__a: SupportsAbs[_T]) -> _T: ...\ndef __abs__(a: SupportsAbs[_T]) -> _T: ...\ndef add(__a: Any, __b: Any) -> Any: ...\ndef __add__(a: Any, b: Any) -> Any: ...\ndef and_(__a: Any, __b: Any) -> Any: ...\ndef __and__(a: Any, b: Any) -> Any: ...\n\nif sys.version_info < (3,):\n def div(a: Any, b: Any) -> Any: ...\n def __div__(a: Any, b: Any) -> Any: ...\n\ndef floordiv(__a: Any, __b: Any) -> Any: ...\ndef __floordiv__(a: Any, b: Any) -> Any: ...\ndef index(__a: Any) -> int: ...\ndef __index__(a: Any) -> int: ...\ndef inv(__a: Any) -> Any: ...\ndef invert(__a: Any) -> Any: ...\ndef __inv__(a: Any) -> Any: ...\ndef __invert__(a: Any) -> Any: ...\ndef lshift(__a: Any, __b: Any) -> Any: ...\ndef __lshift__(a: Any, b: Any) -> Any: ...\ndef mod(__a: Any, __b: Any) -> Any: ...\ndef __mod__(a: Any, b: Any) -> Any: ...\ndef mul(__a: Any, __b: Any) -> Any: ...\ndef __mul__(a: Any, b: Any) -> Any: ...\n\nif sys.version_info >= (3, 5):\n def matmul(__a: Any, __b: Any) -> Any: ...\n def __matmul__(a: Any, b: Any) -> Any: ...\n\ndef neg(__a: Any) -> Any: ...\ndef __neg__(a: Any) -> Any: ...\ndef or_(__a: Any, __b: Any) -> Any: ...\ndef __or__(a: Any, b: Any) -> Any: ...\ndef pos(__a: Any) -> Any: ...\ndef __pos__(a: Any) -> Any: ...\ndef pow(__a: Any, __b: Any) -> Any: ...\ndef __pow__(a: Any, b: Any) -> Any: ...\ndef rshift(__a: Any, __b: Any) -> Any: ...\ndef __rshift__(a: Any, b: Any) -> Any: ...\ndef sub(__a: Any, __b: Any) -> Any: ...\ndef __sub__(a: Any, b: Any) -> Any: ...\ndef truediv(__a: Any, __b: Any) -> Any: ...\ndef __truediv__(a: Any, b: Any) -> Any: ...\ndef xor(__a: Any, __b: Any) -> Any: ...\ndef __xor__(a: Any, b: Any) -> Any: ...\ndef concat(__a: Sequence[_T], __b: Sequence[_T]) -> Sequence[_T]: ...\ndef __concat__(a: Sequence[_T], b: Sequence[_T]) -> Sequence[_T]: ...\ndef contains(__a: Container[Any], __b: Any) -> bool: ...\ndef __contains__(a: Container[Any], b: Any) -> bool: ...\ndef countOf(__a: Container[Any], __b: Any) -> int: ...\n@overload\ndef delitem(__a: MutableSequence[_T], __b: int) -> None: ...\n@overload\ndef delitem(__a: MutableSequence[_T], __b: slice) -> None: ...\n@overload\ndef delitem(__a: MutableMapping[_K, _V], __b: _K) -> None: ...\n@overload\ndef __delitem__(a: MutableSequence[_T], b: int) -> None: ...\n@overload\ndef __delitem__(a: MutableSequence[_T], b: slice) -> None: ...\n@overload\ndef __delitem__(a: MutableMapping[_K, _V], b: _K) -> None: ...\n\nif sys.version_info < (3,):\n def delslice(a: MutableSequence[Any], b: int, c: int) -> None: ...\n def __delslice__(a: MutableSequence[Any], b: int, c: int) -> None: ...\n\n@overload\ndef getitem(__a: Sequence[_T], __b: int) -> _T: ...\n@overload\ndef getitem(__a: Sequence[_T], __b: slice) -> Sequence[_T]: ...\n@overload\ndef getitem(__a: Mapping[_K, _V], __b: _K) -> _V: ...\n@overload\ndef __getitem__(a: Sequence[_T], b: int) -> _T: ...\n@overload\ndef __getitem__(a: Sequence[_T], b: slice) -> Sequence[_T]: ...\n@overload\ndef __getitem__(a: Mapping[_K, _V], b: _K) -> _V: ...\n\nif sys.version_info < (3,):\n def getslice(a: Sequence[_T], b: int, c: int) -> Sequence[_T]: ...\n def __getslice__(a: Sequence[_T], b: int, c: int) -> Sequence[_T]: ...\n\ndef indexOf(__a: Sequence[_T], __b: _T) -> int: ...\n\nif sys.version_info < (3,):\n def repeat(a: Any, b: int) -> Any: ...\n def __repeat__(a: Any, b: int) -> Any: ...\n\nif sys.version_info < (3,):\n def sequenceIncludes(a: Container[Any], b: Any) -> bool: ...\n\n@overload\ndef setitem(__a: MutableSequence[_T], __b: int, __c: _T) -> None: ...\n@overload\ndef setitem(__a: MutableSequence[_T], __b: slice, __c: Sequence[_T]) -> None: ...\n@overload\ndef setitem(__a: MutableMapping[_K, _V], __b: _K, __c: _V) -> None: ...\n@overload\ndef __setitem__(a: MutableSequence[_T], b: int, c: _T) -> None: ...\n@overload\ndef __setitem__(a: MutableSequence[_T], b: slice, c: Sequence[_T]) -> None: ...\n@overload\ndef __setitem__(a: MutableMapping[_K, _V], b: _K, c: _V) -> None: ...\n\nif sys.version_info < (3,):\n def setslice(a: MutableSequence[_T], b: int, c: int, v: Sequence[_T]) -> None: ...\n def __setslice__(a: MutableSequence[_T], b: int, c: int, v: Sequence[_T]) -> None: ...\n\nif sys.version_info >= (3, 4):\n def length_hint(__obj: Any, __default: int = ...) -> int: ...\n\n@overload\ndef attrgetter(attr: str) -> Callable[[Any], Any]: ...\n@overload\ndef attrgetter(*attrs: str) -> Callable[[Any], Tuple[Any, ...]]: ...\n@overload\ndef itemgetter(item: Any) -> Callable[[Any], Any]: ...\n@overload\ndef itemgetter(*items: Any) -> Callable[[Any], Tuple[Any, ...]]: ...\ndef methodcaller(__name: str, *args: Any, **kwargs: Any) -> Callable[..., Any]: ...\ndef iadd(__a: Any, __b: Any) -> Any: ...\ndef __iadd__(a: Any, b: Any) -> Any: ...\ndef iand(__a: Any, __b: Any) -> Any: ...\ndef __iand__(a: Any, b: Any) -> Any: ...\ndef iconcat(__a: Any, __b: Any) -> Any: ...\ndef __iconcat__(a: Any, b: Any) -> Any: ...\n\nif sys.version_info < (3,):\n def idiv(a: Any, b: Any) -> Any: ...\n def __idiv__(a: Any, b: Any) -> Any: ...\n\ndef ifloordiv(__a: Any, __b: Any) -> Any: ...\ndef __ifloordiv__(a: Any, b: Any) -> Any: ...\ndef ilshift(__a: Any, __b: Any) -> Any: ...\ndef __ilshift__(a: Any, b: Any) -> Any: ...\ndef imod(__a: Any, __b: Any) -> Any: ...\ndef __imod__(a: Any, b: Any) -> Any: ...\ndef imul(__a: Any, __b: Any) -> Any: ...\ndef __imul__(a: Any, b: Any) -> Any: ...\n\nif sys.version_info >= (3, 5):\n def imatmul(__a: Any, __b: Any) -> Any: ...\n def __imatmul__(a: Any, b: Any) -> Any: ...\n\ndef ior(__a: Any, __b: Any) -> Any: ...\ndef __ior__(a: Any, b: Any) -> Any: ...\ndef ipow(__a: Any, __b: Any) -> Any: ...\ndef __ipow__(a: Any, b: Any) -> Any: ...\n\nif sys.version_info < (3,):\n def irepeat(a: Any, b: int) -> Any: ...\n def __irepeat__(a: Any, b: int) -> Any: ...\n\ndef irshift(__a: Any, __b: Any) -> Any: ...\ndef __irshift__(a: Any, b: Any) -> Any: ...\ndef isub(__a: Any, __b: Any) -> Any: ...\ndef __isub__(a: Any, b: Any) -> Any: ...\ndef itruediv(__a: Any, __b: Any) -> Any: ...\ndef __itruediv__(a: Any, b: Any) -> Any: ...\ndef ixor(__a: Any, __b: Any) -> Any: ...\ndef __ixor__(a: Any, b: Any) -> Any: ...\n\nif sys.version_info < (3,):\n def isCallable(x: Any) -> bool: ...\n def isMappingType(x: Any) -> bool: ...\n def isNumberType(x: Any) -> bool: ...\n def isSequenceType(x: Any) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\operator.pyi
operator.pyi
Other
7,146
0.85
0.699029
0
awesome-app
648
2023-09-29T18:12:40.106830
Apache-2.0
false
b50e45a16372f472f65061787e6d2e52
import sys\nfrom typing import IO, Any, AnyStr, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Type, Union, overload\n\n# See https://groups.google.com/forum/#!topic/python-ideas/gA1gdj3RZ5g\nif sys.version_info >= (3,):\n _Text = str\nelse:\n _Text = Union[str, unicode]\n\nNO_DEFAULT: Tuple[_Text, ...]\nSUPPRESS_HELP: _Text\nSUPPRESS_USAGE: _Text\n\ndef check_builtin(option: Option, opt: Any, value: _Text) -> Any: ...\ndef check_choice(option: Option, opt: Any, value: _Text) -> Any: ...\n\nif sys.version_info < (3,):\n def isbasestring(x: Any) -> bool: ...\n\nclass OptParseError(Exception):\n msg: _Text\n def __init__(self, msg: _Text) -> None: ...\n\nclass BadOptionError(OptParseError):\n opt_str: _Text\n def __init__(self, opt_str: _Text) -> None: ...\n\nclass AmbiguousOptionError(BadOptionError):\n possibilities: Iterable[_Text]\n def __init__(self, opt_str: _Text, possibilities: Sequence[_Text]) -> None: ...\n\nclass OptionError(OptParseError):\n msg: _Text\n option_id: _Text\n def __init__(self, msg: _Text, option: Option) -> None: ...\n\nclass OptionConflictError(OptionError): ...\nclass OptionValueError(OptParseError): ...\n\nclass HelpFormatter:\n NO_DEFAULT_VALUE: _Text\n _long_opt_fmt: _Text\n _short_opt_fmt: _Text\n current_indent: int\n default_tag: _Text\n help_position: Any\n help_width: Any\n indent_increment: int\n level: int\n max_help_position: int\n option_strings: Dict[Option, _Text]\n parser: OptionParser\n short_first: Any\n width: int\n def __init__(self, indent_increment: int, max_help_position: int, width: Optional[int], short_first: int) -> None: ...\n def _format__Text(self, _Text: _Text) -> _Text: ...\n def dedent(self) -> None: ...\n def expand_default(self, option: Option) -> _Text: ...\n def format_description(self, description: _Text) -> _Text: ...\n def format_epilog(self, epilog: _Text) -> _Text: ...\n def format_heading(self, heading: Any) -> _Text: ...\n def format_option(self, option: OptionParser) -> _Text: ...\n def format_option_strings(self, option: OptionParser) -> Any: ...\n def format_usage(self, usage: Any) -> _Text: ...\n def indent(self) -> None: ...\n def set_long_opt_delimiter(self, delim: _Text) -> None: ...\n def set_parser(self, parser: OptionParser) -> None: ...\n def set_short_opt_delimiter(self, delim: _Text) -> None: ...\n def store_option_strings(self, parser: OptionParser) -> None: ...\n\nclass IndentedHelpFormatter(HelpFormatter):\n def __init__(\n self, indent_increment: int = ..., max_help_position: int = ..., width: Optional[int] = ..., short_first: int = ...\n ) -> None: ...\n def format_heading(self, heading: _Text) -> _Text: ...\n def format_usage(self, usage: _Text) -> _Text: ...\n\nclass TitledHelpFormatter(HelpFormatter):\n def __init__(\n self, indent_increment: int = ..., max_help_position: int = ..., width: Optional[int] = ..., short_first: int = ...\n ) -> None: ...\n def format_heading(self, heading: _Text) -> _Text: ...\n def format_usage(self, usage: _Text) -> _Text: ...\n\nclass Option:\n ACTIONS: Tuple[_Text, ...]\n ALWAYS_TYPED_ACTIONS: Tuple[_Text, ...]\n ATTRS: List[_Text]\n CHECK_METHODS: Optional[List[Callable[..., Any]]]\n CONST_ACTIONS: Tuple[_Text, ...]\n STORE_ACTIONS: Tuple[_Text, ...]\n TYPED_ACTIONS: Tuple[_Text, ...]\n TYPES: Tuple[_Text, ...]\n TYPE_CHECKER: Dict[_Text, Callable[..., Any]]\n _long_opts: List[_Text]\n _short_opts: List[_Text]\n action: _Text\n dest: Optional[_Text]\n nargs: int\n type: Any\n def __init__(self, *opts: Optional[_Text], **attrs: Any) -> None: ...\n def _check_action(self) -> None: ...\n def _check_callback(self) -> None: ...\n def _check_choice(self) -> None: ...\n def _check_const(self) -> None: ...\n def _check_dest(self) -> None: ...\n def _check_nargs(self) -> None: ...\n def _check_opt_strings(self, opts: Iterable[Optional[_Text]]) -> List[_Text]: ...\n def _check_type(self) -> None: ...\n def _set_attrs(self, attrs: Dict[_Text, Any]) -> None: ...\n def _set_opt_strings(self, opts: Iterable[_Text]) -> None: ...\n def check_value(self, opt: Any, value: Any) -> Any: ...\n def convert_value(self, opt: Any, value: Any) -> Any: ...\n def get_opt_string(self) -> _Text: ...\n def process(self, opt: Any, value: Any, values: Any, parser: OptionParser) -> int: ...\n def take_action(self, action: _Text, dest: _Text, opt: Any, value: Any, values: Any, parser: OptionParser) -> int: ...\n def takes_value(self) -> bool: ...\n\nmake_option = Option\n\nclass OptionContainer:\n _long_opt: Dict[_Text, Option]\n _short_opt: Dict[_Text, Option]\n conflict_handler: _Text\n defaults: Dict[_Text, Any]\n description: Any\n option_class: Type[Option]\n def __init__(self, option_class: Type[Option], conflict_handler: Any, description: Any) -> None: ...\n def _check_conflict(self, option: Any) -> None: ...\n def _create_option_mappings(self) -> None: ...\n def _share_option_mappings(self, parser: OptionParser) -> None: ...\n @overload\n def add_option(self, opt: Option) -> Option: ...\n @overload\n def add_option(self, *args: Optional[_Text], **kwargs: Any) -> Any: ...\n def add_options(self, option_list: Iterable[Option]) -> None: ...\n def destroy(self) -> None: ...\n def format_description(self, formatter: Optional[HelpFormatter]) -> Any: ...\n def format_help(self, formatter: Optional[HelpFormatter]) -> _Text: ...\n def format_option_help(self, formatter: Optional[HelpFormatter]) -> _Text: ...\n def get_description(self) -> Any: ...\n def get_option(self, opt_str: _Text) -> Optional[Option]: ...\n def has_option(self, opt_str: _Text) -> bool: ...\n def remove_option(self, opt_str: _Text) -> None: ...\n def set_conflict_handler(self, handler: Any) -> None: ...\n def set_description(self, description: Any) -> None: ...\n\nclass OptionGroup(OptionContainer):\n option_list: List[Option]\n parser: OptionParser\n title: _Text\n def __init__(self, parser: OptionParser, title: _Text, description: Optional[_Text] = ...) -> None: ...\n def _create_option_list(self) -> None: ...\n def set_title(self, title: _Text) -> None: ...\n\nclass Values:\n def __init__(self, defaults: Optional[Mapping[str, Any]] = ...) -> None: ...\n def _update(self, dict: Mapping[_Text, Any], mode: Any) -> None: ...\n def _update_careful(self, dict: Mapping[_Text, Any]) -> None: ...\n def _update_loose(self, dict: Mapping[_Text, Any]) -> None: ...\n def ensure_value(self, attr: _Text, value: Any) -> Any: ...\n def read_file(self, filename: _Text, mode: _Text) -> None: ...\n def read_module(self, modname: _Text, mode: _Text) -> None: ...\n def __getattr__(self, name: str) -> Any: ...\n def __setattr__(self, name: str, value: Any) -> None: ...\n\nclass OptionParser(OptionContainer):\n allow_interspersed_args: bool\n epilog: Optional[_Text]\n formatter: HelpFormatter\n largs: Optional[List[_Text]]\n option_groups: List[OptionParser]\n option_list: List[Option]\n process_default_values: Any\n prog: Optional[_Text]\n rargs: Optional[List[Any]]\n standard_option_list: List[Option]\n usage: Optional[_Text]\n values: Optional[Values]\n version: _Text\n def __init__(\n self,\n usage: Optional[_Text] = ...,\n option_list: Iterable[Option] = ...,\n option_class: Type[Option] = ...,\n version: Optional[_Text] = ...,\n conflict_handler: _Text = ...,\n description: Optional[_Text] = ...,\n formatter: Optional[HelpFormatter] = ...,\n add_help_option: bool = ...,\n prog: Optional[_Text] = ...,\n epilog: Optional[_Text] = ...,\n ) -> None: ...\n def _add_help_option(self) -> None: ...\n def _add_version_option(self) -> None: ...\n def _create_option_list(self) -> None: ...\n def _get_all_options(self) -> List[Option]: ...\n def _get_args(self, args: Iterable[Any]) -> List[Any]: ...\n def _init_parsing_state(self) -> None: ...\n def _match_long_opt(self, opt: _Text) -> _Text: ...\n def _populate_option_list(self, option_list: Iterable[Option], add_help: bool = ...) -> None: ...\n def _process_args(self, largs: List[Any], rargs: List[Any], values: Values) -> None: ...\n def _process_long_opt(self, rargs: List[Any], values: Any) -> None: ...\n def _process_short_opts(self, rargs: List[Any], values: Any) -> None: ...\n @overload\n def add_option_group(self, __opt_group: OptionGroup) -> OptionParser: ...\n @overload\n def add_option_group(self, *args: Any, **kwargs: Any) -> OptionParser: ...\n def check_values(self, values: Values, args: List[_Text]) -> Tuple[Values, List[_Text]]: ...\n def disable_interspersed_args(self) -> None: ...\n def enable_interspersed_args(self) -> None: ...\n def error(self, msg: _Text) -> None: ...\n def exit(self, status: int = ..., msg: Optional[str] = ...) -> None: ...\n def expand_prog_name(self, s: Optional[_Text]) -> Any: ...\n def format_epilog(self, formatter: HelpFormatter) -> Any: ...\n def format_help(self, formatter: Optional[HelpFormatter] = ...) -> _Text: ...\n def format_option_help(self, formatter: Optional[HelpFormatter] = ...) -> _Text: ...\n def get_default_values(self) -> Values: ...\n def get_option_group(self, opt_str: _Text) -> Any: ...\n def get_prog_name(self) -> _Text: ...\n def get_usage(self) -> _Text: ...\n def get_version(self) -> _Text: ...\n def parse_args(\n self, args: Optional[Sequence[AnyStr]] = ..., values: Optional[Values] = ...\n ) -> Tuple[Values, List[AnyStr]]: ...\n def print_usage(self, file: Optional[IO[str]] = ...) -> None: ...\n def print_help(self, file: Optional[IO[str]] = ...) -> None: ...\n def print_version(self, file: Optional[IO[str]] = ...) -> None: ...\n def set_default(self, dest: Any, value: Any) -> None: ...\n def set_defaults(self, **kwargs: Any) -> None: ...\n def set_process_default_values(self, process: Any) -> None: ...\n def set_usage(self, usage: _Text) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\optparse.pyi
optparse.pyi
Other
10,096
0.95
0.543103
0.004673
node-utils
48
2023-11-20T18:46:07.762164
GPL-3.0
false
a67512e82aebf8960d31c8d7fa5f5bba
from _typeshed import AnyPath\nfrom types import CodeType\nfrom typing import Any, List, Sequence, Text, Tuple\n\ndef expr(source: Text) -> STType: ...\ndef suite(source: Text) -> STType: ...\ndef sequence2st(sequence: Sequence[Any]) -> STType: ...\ndef tuple2st(sequence: Sequence[Any]) -> STType: ...\ndef st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> List[Any]: ...\ndef st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> Tuple[Any]: ...\ndef compilest(st: STType, filename: AnyPath = ...) -> CodeType: ...\ndef isexpr(st: STType) -> bool: ...\ndef issuite(st: STType) -> bool: ...\n\nclass ParserError(Exception): ...\n\nclass STType:\n def compile(self, filename: AnyPath = ...) -> CodeType: ...\n def isexpr(self) -> bool: ...\n def issuite(self) -> bool: ...\n def tolist(self, line_info: bool = ..., col_info: bool = ...) -> List[Any]: ...\n def totuple(self, line_info: bool = ..., col_info: bool = ...) -> Tuple[Any]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\parser.pyi
parser.pyi
Other
966
0.85
0.727273
0
vue-tools
356
2025-05-24T03:36:15.222823
MIT
false
10030d64b53faccf9abc5bcdc7e634ea
import signal\nimport sys\nfrom bdb import Bdb\nfrom cmd import Cmd\nfrom inspect import _SourceObjectType\nfrom types import CodeType, FrameType, TracebackType\nfrom typing import IO, Any, Callable, ClassVar, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, TypeVar, Union\n\n_T = TypeVar("_T")\n\nline_prefix: str # undocumented\n\nclass Restart(Exception): ...\n\ndef run(statement: str, globals: Optional[Dict[str, Any]] = ..., locals: Optional[Mapping[str, Any]] = ...) -> None: ...\ndef runeval(expression: str, globals: Optional[Dict[str, Any]] = ..., locals: Optional[Mapping[str, Any]] = ...) -> Any: ...\ndef runctx(statement: str, globals: Dict[str, Any], locals: Mapping[str, Any]) -> None: ...\ndef runcall(func: Callable[..., _T], *args: Any, **kwds: Any) -> Optional[_T]: ...\n\nif sys.version_info >= (3, 7):\n def set_trace(*, header: Optional[str] = ...) -> None: ...\n\nelse:\n def set_trace() -> None: ...\n\ndef post_mortem(t: Optional[TracebackType] = ...) -> None: ...\ndef pm() -> None: ...\n\nclass Pdb(Bdb, Cmd):\n # Everything here is undocumented, except for __init__\n\n commands_resuming: ClassVar[List[str]]\n\n aliases: Dict[str, str]\n mainpyfile: str\n _wait_for_mainpyfile: bool\n rcLines: List[str]\n commands: Dict[int, List[str]]\n commands_doprompt: Dict[int, bool]\n commands_silent: Dict[int, bool]\n commands_defining: bool\n commands_bnum: Optional[int]\n lineno: Optional[int]\n stack: List[Tuple[FrameType, int]]\n curindex: int\n curframe: Optional[FrameType]\n curframe_locals: Mapping[str, Any]\n\n if sys.version_info >= (3, 6):\n def __init__(\n self,\n completekey: str = ...,\n stdin: Optional[IO[str]] = ...,\n stdout: Optional[IO[str]] = ...,\n skip: Optional[Iterable[str]] = ...,\n nosigint: bool = ...,\n readrc: bool = ...,\n ) -> None: ...\n elif sys.version_info >= (3, 2):\n def __init__(\n self,\n completekey: str = ...,\n stdin: Optional[IO[str]] = ...,\n stdout: Optional[IO[str]] = ...,\n skip: Optional[Iterable[str]] = ...,\n nosigint: bool = ...,\n ) -> None: ...\n else:\n def __init__(\n self,\n completekey: str = ...,\n stdin: Optional[IO[str]] = ...,\n stdout: Optional[IO[str]] = ...,\n skip: Optional[Iterable[str]] = ...,\n ) -> None: ...\n def forget(self) -> None: ...\n def setup(self, f: Optional[FrameType], tb: Optional[TracebackType]) -> None: ...\n def execRcLines(self) -> None: ...\n def bp_commands(self, frame: FrameType) -> bool: ...\n def interaction(self, frame: Optional[FrameType], traceback: Optional[TracebackType]) -> None: ...\n def displayhook(self, obj: object) -> None: ...\n def handle_command_def(self, line: str) -> bool: ...\n def defaultFile(self) -> str: ...\n def lineinfo(self, identifier: str) -> Union[Tuple[None, None, None], Tuple[str, str, int]]: ...\n def checkline(self, filename: str, lineno: int) -> int: ...\n def _getval(self, arg: str) -> object: ...\n def print_stack_trace(self) -> None: ...\n def print_stack_entry(self, frame_lineno: Tuple[FrameType, int], prompt_prefix: str = ...) -> None: ...\n def lookupmodule(self, filename: str) -> Optional[str]: ...\n def _runscript(self, filename: str) -> None: ...\n def do_commands(self, arg: str) -> Optional[bool]: ...\n def do_break(self, arg: str, temporary: bool = ...) -> Optional[bool]: ...\n def do_tbreak(self, arg: str) -> Optional[bool]: ...\n def do_enable(self, arg: str) -> Optional[bool]: ...\n def do_disable(self, arg: str) -> Optional[bool]: ...\n def do_condition(self, arg: str) -> Optional[bool]: ...\n def do_ignore(self, arg: str) -> Optional[bool]: ...\n def do_clear(self, arg: str) -> Optional[bool]: ...\n def do_where(self, arg: str) -> Optional[bool]: ...\n def do_up(self, arg: str) -> Optional[bool]: ...\n def do_down(self, arg: str) -> Optional[bool]: ...\n def do_until(self, arg: str) -> Optional[bool]: ...\n def do_step(self, arg: str) -> Optional[bool]: ...\n def do_next(self, arg: str) -> Optional[bool]: ...\n def do_run(self, arg: str) -> Optional[bool]: ...\n def do_return(self, arg: str) -> Optional[bool]: ...\n def do_continue(self, arg: str) -> Optional[bool]: ...\n def do_jump(self, arg: str) -> Optional[bool]: ...\n def do_debug(self, arg: str) -> Optional[bool]: ...\n def do_quit(self, arg: str) -> Optional[bool]: ...\n def do_EOF(self, arg: str) -> Optional[bool]: ...\n def do_args(self, arg: str) -> Optional[bool]: ...\n def do_retval(self, arg: str) -> Optional[bool]: ...\n def do_p(self, arg: str) -> Optional[bool]: ...\n def do_pp(self, arg: str) -> Optional[bool]: ...\n def do_list(self, arg: str) -> Optional[bool]: ...\n def do_whatis(self, arg: str) -> Optional[bool]: ...\n def do_alias(self, arg: str) -> Optional[bool]: ...\n def do_unalias(self, arg: str) -> Optional[bool]: ...\n def do_help(self, arg: str) -> Optional[bool]: ...\n do_b = do_break\n do_cl = do_clear\n do_w = do_where\n do_bt = do_where\n do_u = do_up\n do_d = do_down\n do_unt = do_until\n do_s = do_step\n do_n = do_next\n do_restart = do_run\n do_r = do_return\n do_c = do_continue\n do_cont = do_continue\n do_j = do_jump\n do_q = do_quit\n do_exit = do_quit\n do_a = do_args\n do_rv = do_retval\n do_l = do_list\n do_h = do_help\n def help_exec(self) -> None: ...\n def help_pdb(self) -> None: ...\n if sys.version_info < (3, 2):\n def help_help(self) -> None: ...\n def help_h(self) -> None: ...\n def help_where(self) -> None: ...\n def help_w(self) -> None: ...\n def help_down(self) -> None: ...\n def help_d(self) -> None: ...\n def help_up(self) -> None: ...\n def help_u(self) -> None: ...\n def help_break(self) -> None: ...\n def help_b(self) -> None: ...\n def help_clear(self) -> None: ...\n def help_cl(self) -> None: ...\n def help_tbreak(self) -> None: ...\n def help_enable(self) -> None: ...\n def help_disable(self) -> None: ...\n def help_ignore(self) -> None: ...\n def help_condition(self) -> None: ...\n def help_step(self) -> None: ...\n def help_s(self) -> None: ...\n def help_until(self) -> None: ...\n def help_unt(self) -> None: ...\n def help_next(self) -> None: ...\n def help_n(self) -> None: ...\n def help_return(self) -> None: ...\n def help_r(self) -> None: ...\n def help_continue(self) -> None: ...\n def help_cont(self) -> None: ...\n def help_c(self) -> None: ...\n def help_jump(self) -> None: ...\n def help_j(self) -> None: ...\n def help_debug(self) -> None: ...\n def help_list(self) -> None: ...\n def help_l(self) -> None: ...\n def help_args(self) -> None: ...\n def help_a(self) -> None: ...\n def help_p(self) -> None: ...\n def help_pp(self) -> None: ...\n def help_run(self) -> None: ...\n def help_quit(self) -> None: ...\n def help_q(self) -> None: ...\n def help_whatis(self) -> None: ...\n def help_EOF(self) -> None: ...\n def help_alias(self) -> None: ...\n def help_unalias(self) -> None: ...\n def help_commands(self) -> None: ...\n help_bt = help_w\n help_restart = help_run\n help_exit = help_q\n\n if sys.version_info >= (3, 2):\n def sigint_handler(self, signum: signal.Signals, frame: FrameType) -> None: ...\n def message(self, msg: str) -> None: ...\n def error(self, msg: str) -> None: ...\n def _select_frame(self, number: int) -> None: ...\n def _getval_except(self, arg: str, frame: Optional[FrameType] = ...) -> object: ...\n def _print_lines(\n self, lines: Sequence[str], start: int, breaks: Sequence[int] = ..., frame: Optional[FrameType] = ...\n ) -> None: ...\n def _cmdloop(self) -> None: ...\n def do_display(self, arg: str) -> Optional[bool]: ...\n def do_interact(self, arg: str) -> Optional[bool]: ...\n def do_longlist(self, arg: str) -> Optional[bool]: ...\n def do_source(self, arg: str) -> Optional[bool]: ...\n def do_undisplay(self, arg: str) -> Optional[bool]: ...\n do_ll = do_longlist\n\n if sys.version_info >= (3, 3):\n def _complete_location(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: ...\n def _complete_bpnumber(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: ...\n def _complete_expression(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: ...\n def complete_undisplay(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: ...\n def complete_unalias(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: ...\n complete_commands = _complete_bpnumber\n complete_break = _complete_location\n complete_b = _complete_location\n complete_tbreak = _complete_location\n complete_enable = _complete_bpnumber\n complete_disable = _complete_bpnumber\n complete_condition = _complete_bpnumber\n complete_ignore = _complete_bpnumber\n complete_clear = _complete_location\n complete_cl = _complete_location\n complete_debug = _complete_expression\n complete_print = _complete_expression\n complete_p = _complete_expression\n complete_pp = _complete_expression\n complete_source = _complete_expression\n complete_whatis = _complete_expression\n complete_display = _complete_expression\n\n if sys.version_info >= (3, 7):\n def _runmodule(self, module_name: str) -> None: ...\n if sys.version_info >= (3,) and sys.version_info < (3, 4):\n do_print = do_p\n\n# undocumented\n\ndef find_function(funcname: str, filename: str) -> Optional[Tuple[str, str, int]]: ...\ndef main() -> None: ...\ndef help() -> None: ...\n\nif sys.version_info >= (3, 2):\n def getsourcelines(obj: _SourceObjectType) -> Tuple[List[str], int]: ...\n def lasti2lineno(code: CodeType, lasti: int) -> int: ...\n\nclass _rstr(str):\n def __repr__(self) -> _rstr: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pdb.pyi
pdb.pyi
Other
10,325
0.95
0.556
0.008621
vue-tools
86
2024-01-19T03:59:32.412665
MIT
false
3490eaec1d61294fd2f97e361ae285a1
import sys\nfrom typing import IO, Any, Callable, Iterable, Iterator, Mapping, Optional, Tuple, Type, Union\n\nHIGHEST_PROTOCOL: int\nif sys.version_info >= (3, 0):\n DEFAULT_PROTOCOL: int\n\nbytes_types: Tuple[Type[Any], ...] # undocumented\n\nif sys.version_info >= (3, 8):\n # TODO: holistic design for buffer interface (typing.Buffer?)\n class PickleBuffer:\n # buffer must be a buffer-providing object\n def __init__(self, buffer: Any) -> None: ...\n def raw(self) -> memoryview: ...\n def release(self) -> None: ...\n _BufferCallback = Optional[Callable[[PickleBuffer], Any]]\n def dump(\n obj: Any,\n file: IO[bytes],\n protocol: Optional[int] = ...,\n *,\n fix_imports: bool = ...,\n buffer_callback: _BufferCallback = ...,\n ) -> None: ...\n def dumps(\n obj: Any, protocol: Optional[int] = ..., *, fix_imports: bool = ..., buffer_callback: _BufferCallback = ...\n ) -> bytes: ...\n def load(\n file: IO[bytes],\n *,\n fix_imports: bool = ...,\n encoding: str = ...,\n errors: str = ...,\n buffers: Optional[Iterable[Any]] = ...,\n ) -> Any: ...\n def loads(\n __data: bytes, *, fix_imports: bool = ..., encoding: str = ..., errors: str = ..., buffers: Optional[Iterable[Any]] = ...\n ) -> Any: ...\n\nelif sys.version_info >= (3, 0):\n def dump(obj: Any, file: IO[bytes], protocol: Optional[int] = ..., *, fix_imports: bool = ...) -> None: ...\n def dumps(obj: Any, protocol: Optional[int] = ..., *, fix_imports: bool = ...) -> bytes: ...\n def load(file: IO[bytes], *, fix_imports: bool = ..., encoding: str = ..., errors: str = ...) -> Any: ...\n def loads(data: bytes, *, fix_imports: bool = ..., encoding: str = ..., errors: str = ...) -> Any: ...\n\nelse:\n def dump(obj: Any, file: IO[bytes], protocol: Optional[int] = ...) -> None: ...\n def dumps(obj: Any, protocol: Optional[int] = ...) -> bytes: ...\n def load(file: IO[bytes]) -> Any: ...\n def loads(string: bytes) -> Any: ...\n\nclass PickleError(Exception): ...\nclass PicklingError(PickleError): ...\nclass UnpicklingError(PickleError): ...\n\n_reducedtype = Union[\n str,\n Tuple[Callable[..., Any], Tuple[Any, ...]],\n Tuple[Callable[..., Any], Tuple[Any, ...], Any],\n Tuple[Callable[..., Any], Tuple[Any, ...], Any, Optional[Iterator[Any]]],\n Tuple[Callable[..., Any], Tuple[Any, ...], Any, Optional[Iterator[Any]], Optional[Iterator[Any]]],\n]\n\nclass Pickler:\n fast: bool\n if sys.version_info >= (3, 3):\n dispatch_table: Mapping[type, Callable[[Any], _reducedtype]]\n\n if sys.version_info >= (3, 8):\n def __init__(\n self,\n file: IO[bytes],\n protocol: Optional[int] = ...,\n *,\n fix_imports: bool = ...,\n buffer_callback: _BufferCallback = ...,\n ) -> None: ...\n def reducer_override(self, obj: Any) -> Any: ...\n elif sys.version_info >= (3, 0):\n def __init__(self, file: IO[bytes], protocol: Optional[int] = ..., *, fix_imports: bool = ...) -> None: ...\n else:\n def __init__(self, file: IO[bytes], protocol: Optional[int] = ...) -> None: ...\n def dump(self, __obj: Any) -> None: ...\n def clear_memo(self) -> None: ...\n def persistent_id(self, obj: Any) -> Any: ...\n\nclass Unpickler:\n if sys.version_info >= (3, 8):\n def __init__(\n self,\n file: IO[bytes],\n *,\n fix_imports: bool = ...,\n encoding: str = ...,\n errors: str = ...,\n buffers: Optional[Iterable[Any]] = ...,\n ) -> None: ...\n elif sys.version_info >= (3, 0):\n def __init__(self, file: IO[bytes], *, fix_imports: bool = ..., encoding: str = ..., errors: str = ...) -> None: ...\n else:\n def __init__(self, file: IO[bytes]) -> None: ...\n def load(self) -> Any: ...\n def find_class(self, __module_name: str, __global_name: str) -> Any: ...\n if sys.version_info >= (3, 0):\n def persistent_load(self, pid: Any) -> Any: ...\n\nMARK: bytes\nSTOP: bytes\nPOP: bytes\nPOP_MARK: bytes\nDUP: bytes\nFLOAT: bytes\nINT: bytes\nBININT: bytes\nBININT1: bytes\nLONG: bytes\nBININT2: bytes\nNONE: bytes\nPERSID: bytes\nBINPERSID: bytes\nREDUCE: bytes\nSTRING: bytes\nBINSTRING: bytes\nSHORT_BINSTRING: bytes\nUNICODE: bytes\nBINUNICODE: bytes\nAPPEND: bytes\nBUILD: bytes\nGLOBAL: bytes\nDICT: bytes\nEMPTY_DICT: bytes\nAPPENDS: bytes\nGET: bytes\nBINGET: bytes\nINST: bytes\nLONG_BINGET: bytes\nLIST: bytes\nEMPTY_LIST: bytes\nOBJ: bytes\nPUT: bytes\nBINPUT: bytes\nLONG_BINPUT: bytes\nSETITEM: bytes\nTUPLE: bytes\nEMPTY_TUPLE: bytes\nSETITEMS: bytes\nBINFLOAT: bytes\n\nTRUE: bytes\nFALSE: bytes\n\n# protocol 2\nPROTO: bytes\nNEWOBJ: bytes\nEXT1: bytes\nEXT2: bytes\nEXT4: bytes\nTUPLE1: bytes\nTUPLE2: bytes\nTUPLE3: bytes\nNEWTRUE: bytes\nNEWFALSE: bytes\nLONG1: bytes\nLONG4: bytes\n\nif sys.version_info >= (3, 0):\n # protocol 3\n BINBYTES: bytes\n SHORT_BINBYTES: bytes\n\nif sys.version_info >= (3, 4):\n # protocol 4\n SHORT_BINUNICODE: bytes\n BINUNICODE8: bytes\n BINBYTES8: bytes\n EMPTY_SET: bytes\n ADDITEMS: bytes\n FROZENSET: bytes\n NEWOBJ_EX: bytes\n STACK_GLOBAL: bytes\n MEMOIZE: bytes\n FRAME: bytes\n\ndef encode_long(x: int) -> bytes: ... # undocumented\ndef decode_long(data: bytes) -> int: ... # undocumented\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pickle.pyi
pickle.pyi
Other
5,322
0.95
0.241935
0.052941
vue-tools
149
2023-08-13T23:49:34.838275
GPL-3.0
false
7f51984375a6f1811b8a00cc2c97cd9c
import sys\nfrom typing import IO, Any, Callable, Iterator, List, MutableMapping, Optional, Text, Tuple, Type, Union\n\n_Reader = Callable[[IO[bytes]], Any]\n\nif sys.version_info >= (3, 0):\n bytes_types: Tuple[Type[Any], ...]\n\nUP_TO_NEWLINE: int\nTAKEN_FROM_ARGUMENT1: int\nTAKEN_FROM_ARGUMENT4: int\nif sys.version_info >= (3, 3):\n TAKEN_FROM_ARGUMENT4U: int\nif sys.version_info >= (3, 4):\n TAKEN_FROM_ARGUMENT8U: int\n\nclass ArgumentDescriptor(object):\n name: str\n n: int\n reader: _Reader\n doc: str\n def __init__(self, name: str, n: int, reader: _Reader, doc: str) -> None: ...\n\ndef read_uint1(f: IO[bytes]) -> int: ...\n\nuint1: ArgumentDescriptor\n\ndef read_uint2(f: IO[bytes]) -> int: ...\n\nuint2: ArgumentDescriptor\n\ndef read_int4(f: IO[bytes]) -> int: ...\n\nint4: ArgumentDescriptor\n\nif sys.version_info >= (3, 3):\n def read_uint4(f: IO[bytes]) -> int: ...\n uint4: ArgumentDescriptor\n\nif sys.version_info >= (3, 5):\n def read_uint8(f: IO[bytes]) -> int: ...\n uint8: ArgumentDescriptor\n\ndef read_stringnl(f: IO[bytes], decode: bool = ..., stripquotes: bool = ...) -> Union[bytes, Text]: ...\n\nstringnl: ArgumentDescriptor\n\ndef read_stringnl_noescape(f: IO[bytes]) -> str: ...\n\nstringnl_noescape: ArgumentDescriptor\n\ndef read_stringnl_noescape_pair(f: IO[bytes]) -> Text: ...\n\nstringnl_noescape_pair: ArgumentDescriptor\n\ndef read_string1(f: IO[bytes]) -> str: ...\n\nstring1: ArgumentDescriptor\n\ndef read_string4(f: IO[bytes]) -> str: ...\n\nstring4: ArgumentDescriptor\n\nif sys.version_info >= (3, 3):\n def read_bytes1(f: IO[bytes]) -> bytes: ...\n bytes1: ArgumentDescriptor\n def read_bytes4(f: IO[bytes]) -> bytes: ...\n bytes4: ArgumentDescriptor\n\nif sys.version_info >= (3, 4):\n def read_bytes8(f: IO[bytes]) -> bytes: ...\n bytes8: ArgumentDescriptor\n\ndef read_unicodestringnl(f: IO[bytes]) -> Text: ...\n\nunicodestringnl: ArgumentDescriptor\n\nif sys.version_info >= (3, 4):\n def read_unicodestring1(f: IO[bytes]) -> Text: ...\n unicodestring1: ArgumentDescriptor\n\ndef read_unicodestring4(f: IO[bytes]) -> Text: ...\n\nunicodestring4: ArgumentDescriptor\n\nif sys.version_info >= (3, 4):\n def read_unicodestring8(f: IO[bytes]) -> Text: ...\n unicodestring8: ArgumentDescriptor\n\ndef read_decimalnl_short(f: IO[bytes]) -> int: ...\ndef read_decimalnl_long(f: IO[bytes]) -> int: ...\n\ndecimalnl_short: ArgumentDescriptor\ndecimalnl_long: ArgumentDescriptor\n\ndef read_floatnl(f: IO[bytes]) -> float: ...\n\nfloatnl: ArgumentDescriptor\n\ndef read_float8(f: IO[bytes]) -> float: ...\n\nfloat8: ArgumentDescriptor\n\ndef read_long1(f: IO[bytes]) -> int: ...\n\nlong1: ArgumentDescriptor\n\ndef read_long4(f: IO[bytes]) -> int: ...\n\nlong4: ArgumentDescriptor\n\nclass StackObject(object):\n name: str\n obtype: Union[Type[Any], Tuple[Type[Any], ...]]\n doc: str\n def __init__(self, name: str, obtype: Union[Type[Any], Tuple[Type[Any], ...]], doc: str) -> None: ...\n\npyint: StackObject\npylong: StackObject\npyinteger_or_bool: StackObject\npybool: StackObject\npyfloat: StackObject\nif sys.version_info >= (3, 4):\n pybytes_or_str: StackObject\npystring: StackObject\nif sys.version_info >= (3, 0):\n pybytes: StackObject\npyunicode: StackObject\npynone: StackObject\npytuple: StackObject\npylist: StackObject\npydict: StackObject\nif sys.version_info >= (3, 4):\n pyset: StackObject\n pyfrozenset: StackObject\nanyobject: StackObject\nmarkobject: StackObject\nstackslice: StackObject\n\nclass OpcodeInfo(object):\n name: str\n code: str\n arg: Optional[ArgumentDescriptor]\n stack_before: List[StackObject]\n stack_after: List[StackObject]\n proto: int\n doc: str\n def __init__(\n self,\n name: str,\n code: str,\n arg: Optional[ArgumentDescriptor],\n stack_before: List[StackObject],\n stack_after: List[StackObject],\n proto: int,\n doc: str,\n ) -> None: ...\n\nopcodes: List[OpcodeInfo]\n\ndef genops(pickle: Union[bytes, IO[bytes]]) -> Iterator[Tuple[OpcodeInfo, Optional[Any], Optional[int]]]: ...\ndef optimize(p: Union[bytes, IO[bytes]]) -> bytes: ...\n\nif sys.version_info >= (3, 2):\n def dis(\n pickle: Union[bytes, IO[bytes]],\n out: Optional[IO[str]] = ...,\n memo: Optional[MutableMapping[int, Any]] = ...,\n indentlevel: int = ...,\n annotate: int = ...,\n ) -> None: ...\n\nelse:\n def dis(\n pickle: Union[bytes, IO[bytes]],\n out: Optional[IO[str]] = ...,\n memo: Optional[MutableMapping[int, Any]] = ...,\n indentlevel: int = ...,\n ) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pickletools.pyi
pickletools.pyi
Other
4,510
0.85
0.256983
0
node-utils
93
2024-12-24T06:01:18.374576
GPL-3.0
false
644f8819671be966137d4f08dac839d4
import sys\nfrom _typeshed import SupportsRead\nfrom typing import IO, Any, Callable, Iterable, Iterator, NamedTuple, Optional, Tuple, Union\n\nif sys.version_info >= (3,):\n from importlib.abc import Loader, MetaPathFinder, PathEntryFinder\nelse:\n Loader = Any\n MetaPathFinder = Any\n PathEntryFinder = Any\n\nif sys.version_info >= (3, 6):\n class ModuleInfo(NamedTuple):\n module_finder: Union[MetaPathFinder, PathEntryFinder]\n name: str\n ispkg: bool\n _ModuleInfoLike = ModuleInfo\nelse:\n _ModuleInfoLike = Tuple[Union[MetaPathFinder, PathEntryFinder], str, bool]\n\ndef extend_path(path: Iterable[str], name: str) -> Iterable[str]: ...\n\nclass ImpImporter:\n def __init__(self, dirname: Optional[str] = ...) -> None: ...\n\nclass ImpLoader:\n def __init__(self, fullname: str, file: IO[str], filename: str, etc: Tuple[str, str, int]) -> None: ...\n\ndef find_loader(fullname: str) -> Optional[Loader]: ...\ndef get_importer(path_item: str) -> Optional[PathEntryFinder]: ...\ndef get_loader(module_or_name: str) -> Loader: ...\ndef iter_importers(fullname: str = ...) -> Iterator[Union[MetaPathFinder, PathEntryFinder]]: ...\ndef iter_modules(path: Optional[Iterable[str]] = ..., prefix: str = ...) -> Iterator[_ModuleInfoLike]: ...\ndef read_code(stream: SupportsRead[bytes]) -> Any: ... # undocumented\ndef walk_packages(\n path: Optional[Iterable[str]] = ..., prefix: str = ..., onerror: Optional[Callable[[str], None]] = ...\n) -> Iterator[_ModuleInfoLike]: ...\ndef get_data(package: str, resource: str) -> Optional[bytes]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pkgutil.pyi
pkgutil.pyi
Other
1,558
0.95
0.421053
0
python-kit
544
2024-08-24T02:13:55.702002
GPL-3.0
false
b6b25bd28ae39cf58e5ffc8a7bb7fd31
import sys\nfrom typing import IO, Any, Dict as DictT, Mapping, MutableMapping, Optional, Text, Type, Union\n\nif sys.version_info >= (3,):\n from enum import Enum\n class PlistFormat(Enum):\n FMT_XML: int\n FMT_BINARY: int\n FMT_XML = PlistFormat.FMT_XML\n FMT_BINARY = PlistFormat.FMT_BINARY\n\n_Path = Union[str, Text]\n\nif sys.version_info >= (3, 9):\n def load(fp: IO[bytes], *, fmt: Optional[PlistFormat] = ..., dict_type: Type[MutableMapping[str, Any]] = ...) -> Any: ...\n def loads(value: bytes, *, fmt: Optional[PlistFormat] = ..., dict_type: Type[MutableMapping[str, Any]] = ...) -> Any: ...\n\nelif sys.version_info >= (3, 4):\n def load(\n fp: IO[bytes],\n *,\n fmt: Optional[PlistFormat] = ...,\n use_builtin_types: bool = ...,\n dict_type: Type[MutableMapping[str, Any]] = ...,\n ) -> Any: ...\n def loads(\n value: bytes,\n *,\n fmt: Optional[PlistFormat] = ...,\n use_builtin_types: bool = ...,\n dict_type: Type[MutableMapping[str, Any]] = ...,\n ) -> Any: ...\n\nif sys.version_info >= (3, 4):\n def dump(\n value: Mapping[str, Any], fp: IO[bytes], *, fmt: PlistFormat = ..., sort_keys: bool = ..., skipkeys: bool = ...\n ) -> None: ...\n def dumps(value: Mapping[str, Any], *, fmt: PlistFormat = ..., skipkeys: bool = ..., sort_keys: bool = ...) -> bytes: ...\n\nif sys.version_info < (3, 9):\n def readPlist(pathOrFile: Union[_Path, IO[bytes]]) -> Any: ...\n def writePlist(value: Mapping[str, Any], pathOrFile: Union[_Path, IO[bytes]]) -> None: ...\n def readPlistFromBytes(data: bytes) -> Any: ...\n def writePlistToBytes(value: Mapping[str, Any]) -> bytes: ...\n\nif sys.version_info < (3,):\n def readPlistFromResource(path: _Path, restype: str = ..., resid: int = ...) -> Any: ...\n def writePlistToResource(rootObject: Mapping[str, Any], path: _Path, restype: str = ..., resid: int = ...) -> None: ...\n def readPlistFromString(data: str) -> Any: ...\n def writePlistToString(rootObject: Mapping[str, Any]) -> str: ...\n\nif sys.version_info < (3, 7):\n class Dict(DictT[str, Any]):\n def __getattr__(self, attr: str) -> Any: ...\n def __setattr__(self, attr: str, value: Any) -> None: ...\n def __delattr__(self, attr: str) -> None: ...\n\nif sys.version_info < (3, 9):\n class Data:\n data: bytes\n def __init__(self, data: bytes) -> None: ...\n\nif sys.version_info >= (3, 8):\n class UID:\n data: int\n def __init__(self, data: int) -> None: ...\n def __index__(self) -> int: ...\n def __reduce__(self) -> Any: ...\n def __hash__(self) -> int: ...\n\nclass InvalidFileException(ValueError):\n def __init__(self, message: str = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\plistlib.pyi
plistlib.pyi
Other
2,742
0.85
0.5
0.032787
react-lib
413
2023-12-05T18:45:01.494253
Apache-2.0
false
1c3e346d55c5bcba151b967005b17911
import socket\nimport ssl\nimport sys\nfrom typing import Any, BinaryIO, Dict, List, Optional, Pattern, Text, Tuple, overload\n\n_LongResp = Tuple[bytes, List[bytes], int]\n\nclass error_proto(Exception): ...\n\nPOP3_PORT: int\nPOP3_SSL_PORT: int\nCR: bytes\nLF: bytes\nCRLF: bytes\n\nclass POP3:\n if sys.version_info >= (3, 0):\n encoding: Text\n\n host: Text\n port: int\n sock: socket.socket\n file: BinaryIO\n welcome: bytes\n def __init__(self, host: Text, port: int = ..., timeout: float = ...) -> None: ...\n def getwelcome(self) -> bytes: ...\n def set_debuglevel(self, level: int) -> None: ...\n def user(self, user: Text) -> bytes: ...\n def pass_(self, pswd: Text) -> bytes: ...\n def stat(self) -> Tuple[int, int]: ...\n def list(self, which: Optional[Any] = ...) -> _LongResp: ...\n def retr(self, which: Any) -> _LongResp: ...\n def dele(self, which: Any) -> bytes: ...\n def noop(self) -> bytes: ...\n def rset(self) -> bytes: ...\n def quit(self) -> bytes: ...\n def close(self) -> None: ...\n def rpop(self, user: Text) -> bytes: ...\n timestamp: Pattern[Text]\n\n if sys.version_info < (3, 0):\n def apop(self, user: Text, secret: Text) -> bytes: ...\n else:\n def apop(self, user: Text, password: Text) -> bytes: ...\n def top(self, which: Any, howmuch: int) -> _LongResp: ...\n @overload\n def uidl(self) -> _LongResp: ...\n @overload\n def uidl(self, which: Any) -> bytes: ...\n if sys.version_info >= (3, 5):\n def utf8(self) -> bytes: ...\n if sys.version_info >= (3, 4):\n def capa(self) -> Dict[Text, List[Text]]: ...\n def stls(self, context: Optional[ssl.SSLContext] = ...) -> bytes: ...\n\nclass POP3_SSL(POP3):\n if sys.version_info >= (3, 0):\n def __init__(\n self,\n host: Text,\n port: int = ...,\n keyfile: Optional[Text] = ...,\n certfile: Optional[Text] = ...,\n timeout: float = ...,\n context: Optional[ssl.SSLContext] = ...,\n ) -> None: ...\n else:\n def __init__(\n self, host: Text, port: int = ..., keyfile: Optional[Text] = ..., certfile: Optional[Text] = ..., timeout: float = ...\n ) -> None: ...\n if sys.version_info >= (3, 4):\n # "context" is actually the last argument, but that breaks LSP and it doesn't really matter because all the arguments are ignored\n def stls(self, context: Any = ..., keyfile: Any = ..., certfile: Any = ...) -> bytes: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\poplib.pyi
poplib.pyi
Other
2,500
0.95
0.465753
0.015152
node-utils
893
2025-05-12T04:15:05.159545
Apache-2.0
false
9859a212d3b28b93a6aa4256831e6618
import sys\nfrom typing import IO, Any, Dict, Optional, Tuple\n\nif sys.version_info >= (3, 8):\n def pformat(\n object: object,\n indent: int = ...,\n width: int = ...,\n depth: Optional[int] = ...,\n *,\n compact: bool = ...,\n sort_dicts: bool = ...,\n ) -> str: ...\n\nelif sys.version_info >= (3, 4):\n def pformat(\n object: object, indent: int = ..., width: int = ..., depth: Optional[int] = ..., *, compact: bool = ...\n ) -> str: ...\n\nelse:\n def pformat(object: object, indent: int = ..., width: int = ..., depth: Optional[int] = ...) -> str: ...\n\nif sys.version_info >= (3, 8):\n def pp(\n object: object,\n stream: Optional[IO[str]] = ...,\n indent: int = ...,\n width: int = ...,\n depth: Optional[int] = ...,\n *,\n compact: bool = ...,\n sort_dicts: bool = ...,\n ) -> None: ...\n\nif sys.version_info >= (3, 8):\n def pprint(\n object: object,\n stream: Optional[IO[str]] = ...,\n indent: int = ...,\n width: int = ...,\n depth: Optional[int] = ...,\n *,\n compact: bool = ...,\n sort_dicts: bool = ...,\n ) -> None: ...\n\nelif sys.version_info >= (3, 4):\n def pprint(\n object: object,\n stream: Optional[IO[str]] = ...,\n indent: int = ...,\n width: int = ...,\n depth: Optional[int] = ...,\n *,\n compact: bool = ...,\n ) -> None: ...\n\nelse:\n def pprint(\n object: object, stream: Optional[IO[str]] = ..., indent: int = ..., width: int = ..., depth: Optional[int] = ...\n ) -> None: ...\n\ndef isreadable(object: object) -> bool: ...\ndef isrecursive(object: object) -> bool: ...\ndef saferepr(object: object) -> str: ...\n\nclass PrettyPrinter:\n if sys.version_info >= (3, 8):\n def __init__(\n self,\n indent: int = ...,\n width: int = ...,\n depth: Optional[int] = ...,\n stream: Optional[IO[str]] = ...,\n *,\n compact: bool = ...,\n sort_dicts: bool = ...,\n ) -> None: ...\n elif sys.version_info >= (3, 4):\n def __init__(\n self,\n indent: int = ...,\n width: int = ...,\n depth: Optional[int] = ...,\n stream: Optional[IO[str]] = ...,\n *,\n compact: bool = ...,\n ) -> None: ...\n else:\n def __init__(\n self, indent: int = ..., width: int = ..., depth: Optional[int] = ..., stream: Optional[IO[str]] = ...\n ) -> None: ...\n def pformat(self, object: object) -> str: ...\n def pprint(self, object: object) -> None: ...\n def isreadable(self, object: object) -> bool: ...\n def isrecursive(self, object: object) -> bool: ...\n def format(self, object: object, context: Dict[int, Any], maxlevels: int, level: int) -> Tuple[str, bool, bool]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pprint.pyi
pprint.pyi
Other
2,893
0.85
0.237113
0.068182
vue-tools
21
2023-12-02T03:05:34.506634
Apache-2.0
false
e99b2b26ced0f53f7e35baa7ae0a1522
from _typeshed import AnyPath\nfrom typing import Any, Callable, Dict, Optional, TypeVar, Union\n\ndef run(statement: str, filename: Optional[str] = ..., sort: Union[str, int] = ...) -> None: ...\ndef runctx(\n statement: str, globals: Dict[str, Any], locals: Dict[str, Any], filename: Optional[str] = ..., sort: Union[str, int] = ...\n) -> None: ...\n\n_SelfT = TypeVar("_SelfT", bound=Profile)\n_T = TypeVar("_T")\n\nclass Profile:\n bias: int\n def __init__(self, timer: Optional[Callable[[], float]] = ..., bias: Optional[int] = ...) -> None: ...\n def set_cmd(self, cmd: str) -> None: ...\n def simulate_call(self, name: str) -> None: ...\n def simulate_cmd_complete(self) -> None: ...\n def print_stats(self, sort: Union[str, int] = ...) -> None: ...\n def dump_stats(self, file: AnyPath) -> None: ...\n def create_stats(self) -> None: ...\n def snapshot_stats(self) -> None: ...\n def run(self: _SelfT, cmd: str) -> _SelfT: ...\n def runctx(self: _SelfT, cmd: str, globals: Dict[str, Any], locals: Dict[str, Any]) -> _SelfT: ...\n def runcall(self, __func: Callable[..., _T], *args: Any, **kw: Any) -> _T: ...\n def calibrate(self, m: int, verbose: int = ...) -> float: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\profile.pyi
profile.pyi
Other
1,199
0.85
0.6
0
awesome-app
94
2024-04-13T17:59:33.663098
BSD-3-Clause
false
aa63605906d7560c1389ad7973ff26fd
import sys\nfrom _typeshed import AnyPath\nfrom cProfile import Profile as _cProfile\nfrom profile import Profile\nfrom typing import IO, Any, Dict, Iterable, List, Optional, Text, Tuple, TypeVar, Union, overload\n\n_Selector = Union[str, float, int]\n_T = TypeVar("_T", bound=Stats)\n\nif sys.version_info >= (3, 7):\n from enum import Enum\n class SortKey(str, Enum):\n CALLS: str\n CUMULATIVE: str\n FILENAME: str\n LINE: str\n NAME: str\n NFL: str\n PCALLS: str\n STDNAME: str\n TIME: str\n\nclass Stats:\n sort_arg_dict_default: Dict[str, Tuple[Any, str]]\n def __init__(\n self: _T,\n __arg: Union[None, str, Text, Profile, _cProfile] = ...,\n *args: Union[None, str, Text, Profile, _cProfile, _T],\n stream: Optional[IO[Any]] = ...,\n ) -> None: ...\n def init(self, arg: Union[None, str, Text, Profile, _cProfile]) -> None: ...\n def load_stats(self, arg: Union[None, str, Text, Profile, _cProfile]) -> None: ...\n def get_top_level_stats(self) -> None: ...\n def add(self: _T, *arg_list: Union[None, str, Text, Profile, _cProfile, _T]) -> _T: ...\n def dump_stats(self, filename: AnyPath) -> None: ...\n def get_sort_arg_defs(self) -> Dict[str, Tuple[Tuple[Tuple[int, int], ...], str]]: ...\n @overload\n def sort_stats(self: _T, field: int) -> _T: ...\n @overload\n def sort_stats(self: _T, *field: str) -> _T: ...\n def reverse_order(self: _T) -> _T: ...\n def strip_dirs(self: _T) -> _T: ...\n def calc_callees(self) -> None: ...\n def eval_print_amount(self, sel: _Selector, list: List[str], msg: str) -> Tuple[List[str], str]: ...\n def get_print_list(self, sel_list: Iterable[_Selector]) -> Tuple[int, List[str]]: ...\n def print_stats(self: _T, *amount: _Selector) -> _T: ...\n def print_callees(self: _T, *amount: _Selector) -> _T: ...\n def print_callers(self: _T, *amount: _Selector) -> _T: ...\n def print_call_heading(self, name_size: int, column_title: str) -> None: ...\n def print_call_line(self, name_size: int, source: str, call_dict: Dict[str, Any], arrow: str = ...) -> None: ...\n def print_title(self) -> None: ...\n def print_line(self, func: str) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pstats.pyi
pstats.pyi
Other
2,213
0.85
0.461538
0.020408
vue-tools
496
2024-08-22T17:42:32.242835
BSD-3-Clause
false
3c24c39fadf30a433522f6d89483d81d
import sys\nfrom typing import Callable, Iterable, Tuple, Union\n\n_Reader = Callable[[int], bytes]\n\nSTDIN_FILENO: int\nSTDOUT_FILENO: int\nSTDERR_FILENO: int\n\nCHILD: int\n\ndef openpty() -> Tuple[int, int]: ...\ndef master_open() -> Tuple[int, str]: ...\ndef slave_open(tty_name: str) -> int: ...\ndef fork() -> Tuple[int, int]: ...\n\nif sys.version_info >= (3, 4):\n def spawn(argv: Union[str, Iterable[str]], master_read: _Reader = ..., stdin_read: _Reader = ...) -> int: ...\n\nelse:\n def spawn(argv: Union[str, Iterable[str]], master_read: _Reader = ..., stdin_read: _Reader = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pty.pyi
pty.pyi
Other
592
0.85
0.333333
0
vue-tools
858
2025-05-31T13:28:31.907499
BSD-3-Clause
false
640a61885a16c80e5d5eb5585a2a9c7d
from typing import List, Tuple\n\nclass struct_passwd(Tuple[str, str, int, int, str, str, str]):\n pw_name: str\n pw_passwd: str\n pw_uid: int\n pw_gid: int\n pw_gecos: str\n pw_dir: str\n pw_shell: str\n\ndef getpwall() -> List[struct_passwd]: ...\ndef getpwuid(uid: int) -> struct_passwd: ...\ndef getpwnam(name: str) -> struct_passwd: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pwd.pyi
pwd.pyi
Other
350
0.85
0.285714
0
awesome-app
845
2024-05-23T17:17:12.812867
Apache-2.0
false
7d6f4c4d7bfec1a077bec8a8745aa938
import sys\nfrom typing import Dict, List, Optional, Sequence, Union\n\nclass Class:\n module: str\n name: str\n super: Optional[List[Union[Class, str]]]\n methods: Dict[str, int]\n file: int\n lineno: int\n\n if sys.version_info >= (3, 7):\n def __init__(\n self,\n module: str,\n name: str,\n super: Optional[List[Union[Class, str]]],\n file: str,\n lineno: int,\n parent: Optional[Class] = ...,\n ) -> None: ...\n else:\n def __init__(self, module: str, name: str, super: Optional[List[Union[Class, str]]], file: str, lineno: int) -> None: ...\n\nclass Function:\n module: str\n name: str\n file: int\n lineno: int\n\n if sys.version_info >= (3, 7):\n def __init__(self, module: str, name: str, file: str, lineno: int, parent: Optional[Function] = ...) -> None: ...\n else:\n def __init__(self, module: str, name: str, file: str, lineno: int) -> None: ...\n\ndef readmodule(module: str, path: Optional[Sequence[str]] = ...) -> Dict[str, Class]: ...\ndef readmodule_ex(module: str, path: Optional[Sequence[str]] = ...) -> Dict[str, Union[Class, Function, List[str]]]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pyclbr.pyi
pyclbr.pyi
Other
1,192
0.85
0.27027
0
awesome-app
601
2024-10-13T17:17:43.816071
MIT
false
2e6b0c3dae57f280cb7bd26a4f293c17
import sys\nfrom _typeshed import SupportsWrite\nfrom types import MethodType, ModuleType, TracebackType\nfrom typing import (\n IO,\n Any,\n AnyStr,\n Callable,\n Container,\n Dict,\n List,\n Mapping,\n MutableMapping,\n NoReturn,\n Optional,\n Text,\n Tuple,\n Type,\n Union,\n)\n\nif sys.version_info >= (3,):\n from reprlib import Repr\nelse:\n from repr import Repr\n\n# the return type of sys.exc_info(), used by ErrorDuringImport.__init__\n_Exc_Info = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]\n\n__author__: str\n__date__: str\n__version__: str\n__credits__: str\n\ndef pathdirs() -> List[str]: ...\ndef getdoc(object: object) -> Text: ...\ndef splitdoc(doc: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\ndef classname(object: object, modname: str) -> str: ...\ndef isdata(object: object) -> bool: ...\ndef replace(text: AnyStr, *pairs: AnyStr) -> AnyStr: ...\ndef cram(text: str, maxlen: int) -> str: ...\ndef stripid(text: str) -> str: ...\ndef allmethods(cl: type) -> MutableMapping[str, MethodType]: ...\ndef visiblename(name: str, all: Optional[Container[str]] = ..., obj: Optional[object] = ...) -> bool: ...\ndef classify_class_attrs(object: object) -> List[Tuple[str, str, type, str]]: ...\ndef ispackage(path: str) -> bool: ...\ndef source_synopsis(file: IO[AnyStr]) -> Optional[AnyStr]: ...\ndef synopsis(filename: str, cache: MutableMapping[str, Tuple[int, str]] = ...) -> Optional[str]: ...\n\nclass ErrorDuringImport(Exception):\n filename: str\n exc: Optional[Type[BaseException]]\n value: Optional[BaseException]\n tb: Optional[TracebackType]\n def __init__(self, filename: str, exc_info: _Exc_Info) -> None: ...\n\ndef importfile(path: str) -> ModuleType: ...\ndef safeimport(path: str, forceload: bool = ..., cache: MutableMapping[str, ModuleType] = ...) -> ModuleType: ...\n\nclass Doc:\n PYTHONDOCS: str\n def document(self, object: object, name: Optional[str] = ..., *args: Any) -> str: ...\n def fail(self, object: object, name: Optional[str] = ..., *args: Any) -> NoReturn: ...\n def docmodule(self, object: object, name: Optional[str] = ..., *args: Any) -> str: ...\n def docclass(self, object: object, name: Optional[str] = ..., *args: Any) -> str: ...\n def docroutine(self, object: object, name: Optional[str] = ..., *args: Any) -> str: ...\n def docother(self, object: object, name: Optional[str] = ..., *args: Any) -> str: ...\n def docproperty(self, object: object, name: Optional[str] = ..., *args: Any) -> str: ...\n def docdata(self, object: object, name: Optional[str] = ..., *args: Any) -> str: ...\n def getdocloc(self, object: object, basedir: str = ...) -> Optional[str]: ...\n\nclass HTMLRepr(Repr):\n maxlist: int\n maxtuple: int\n maxdict: int\n maxstring: int\n maxother: int\n def __init__(self) -> None: ...\n def escape(self, text: str) -> str: ...\n def repr(self, object: object) -> str: ...\n def repr1(self, x: object, level: complex) -> str: ...\n def repr_string(self, x: Text, level: complex) -> str: ...\n def repr_str(self, x: Text, level: complex) -> str: ...\n def repr_instance(self, x: object, level: complex) -> str: ...\n def repr_unicode(self, x: AnyStr, level: complex) -> str: ...\n\nclass HTMLDoc(Doc):\n repr: Callable[[object], str]\n escape: Callable[[str], str]\n def page(self, title: str, contents: str) -> str: ...\n def heading(self, title: str, fgcol: str, bgcol: str, extras: str = ...) -> str: ...\n def section(\n self,\n title: str,\n fgcol: str,\n bgcol: str,\n contents: str,\n width: int = ...,\n prelude: str = ...,\n marginalia: Optional[str] = ...,\n gap: str = ...,\n ) -> str: ...\n def bigsection(self, title: str, *args: Any) -> str: ...\n def preformat(self, text: str) -> str: ...\n def multicolumn(self, list: List[Any], format: Callable[[Any], str], cols: int = ...) -> str: ...\n def grey(self, text: str) -> str: ...\n def namelink(self, name: str, *dicts: MutableMapping[str, str]) -> str: ...\n def classlink(self, object: object, modname: str) -> str: ...\n def modulelink(self, object: object) -> str: ...\n def modpkglink(self, modpkginfo: Tuple[str, str, bool, bool]) -> str: ...\n def markup(\n self,\n text: str,\n escape: Optional[Callable[[str], str]] = ...,\n funcs: Mapping[str, str] = ...,\n classes: Mapping[str, str] = ...,\n methods: Mapping[str, str] = ...,\n ) -> str: ...\n def formattree(\n self, tree: List[Union[Tuple[type, Tuple[type, ...]], List[Any]]], modname: str, parent: Optional[type] = ...\n ) -> str: ...\n def docmodule(self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., *ignored: Any) -> str: ...\n def docclass(\n self,\n object: object,\n name: Optional[str] = ...,\n mod: Optional[str] = ...,\n funcs: Mapping[str, str] = ...,\n classes: Mapping[str, str] = ...,\n *ignored: Any,\n ) -> str: ...\n def formatvalue(self, object: object) -> str: ...\n def docroutine(\n self,\n object: object,\n name: Optional[str] = ...,\n mod: Optional[str] = ...,\n funcs: Mapping[str, str] = ...,\n classes: Mapping[str, str] = ...,\n methods: Mapping[str, str] = ...,\n cl: Optional[type] = ...,\n *ignored: Any,\n ) -> str: ...\n def docproperty(\n self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., cl: Optional[Any] = ..., *ignored: Any\n ) -> str: ...\n def docother(self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., *ignored: Any) -> str: ...\n def docdata(\n self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., cl: Optional[Any] = ..., *ignored: Any\n ) -> str: ...\n def index(self, dir: str, shadowed: Optional[MutableMapping[str, bool]] = ...) -> str: ...\n def filelink(self, url: str, path: str) -> str: ...\n\nclass TextRepr(Repr):\n maxlist: int\n maxtuple: int\n maxdict: int\n maxstring: int\n maxother: int\n def __init__(self) -> None: ...\n def repr1(self, x: object, level: complex) -> str: ...\n def repr_string(self, x: str, level: complex) -> str: ...\n def repr_str(self, x: str, level: complex) -> str: ...\n def repr_instance(self, x: object, level: complex) -> str: ...\n\nclass TextDoc(Doc):\n repr: Callable[[object], str]\n def bold(self, text: str) -> str: ...\n def indent(self, text: str, prefix: str = ...) -> str: ...\n def section(self, title: str, contents: str) -> str: ...\n def formattree(\n self,\n tree: List[Union[Tuple[type, Tuple[type, ...]], List[Any]]],\n modname: str,\n parent: Optional[type] = ...,\n prefix: str = ...,\n ) -> str: ...\n def docmodule(self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., *ignored: Any) -> str: ...\n def docclass(self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., *ignored: Any) -> str: ...\n def formatvalue(self, object: object) -> str: ...\n def docroutine(\n self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., cl: Optional[Any] = ..., *ignored: Any\n ) -> str: ...\n def docproperty(\n self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., cl: Optional[Any] = ..., *ignored: Any\n ) -> str: ...\n def docdata(\n self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., cl: Optional[Any] = ..., *ignored: Any\n ) -> str: ...\n def docother(\n self,\n object: object,\n name: Optional[str] = ...,\n mod: Optional[str] = ...,\n parent: Optional[str] = ...,\n maxlen: Optional[int] = ...,\n doc: Optional[Any] = ...,\n *ignored: Any,\n ) -> str: ...\n\ndef pager(text: str) -> None: ...\ndef getpager() -> Callable[[str], None]: ...\ndef plain(text: str) -> str: ...\ndef pipepager(text: str, cmd: str) -> None: ...\ndef tempfilepager(text: str, cmd: str) -> None: ...\ndef ttypager(text: str) -> None: ...\ndef plainpager(text: str) -> None: ...\ndef describe(thing: Any) -> str: ...\ndef locate(path: str, forceload: bool = ...) -> object: ...\n\ntext: TextDoc\nhtml: HTMLDoc\n\nclass _OldStyleClass: ...\n\ndef resolve(thing: Union[str, object], forceload: bool = ...) -> Optional[Tuple[object, str]]: ...\ndef render_doc(thing: Union[str, object], title: str = ..., forceload: bool = ..., renderer: Optional[Doc] = ...) -> str: ...\ndef doc(\n thing: Union[str, object], title: str = ..., forceload: bool = ..., output: Optional[SupportsWrite[str]] = ...\n) -> None: ...\ndef writedoc(thing: Union[str, object], forceload: bool = ...) -> None: ...\ndef writedocs(dir: str, pkgpath: str = ..., done: Optional[Any] = ...) -> None: ...\n\nclass Helper:\n keywords: Dict[str, Union[str, Tuple[str, str]]]\n symbols: Dict[str, str]\n topics: Dict[str, Union[str, Tuple[str, ...]]]\n def __init__(self, input: Optional[IO[str]] = ..., output: Optional[IO[str]] = ...) -> None: ...\n input: IO[str]\n output: IO[str]\n def __call__(self, request: Union[str, Helper, object] = ...) -> None: ...\n def interact(self) -> None: ...\n def getline(self, prompt: str) -> str: ...\n def help(self, request: Any) -> None: ...\n def intro(self) -> None: ...\n def list(self, items: List[str], columns: int = ..., width: int = ...) -> None: ...\n def listkeywords(self) -> None: ...\n def listsymbols(self) -> None: ...\n def listtopics(self) -> None: ...\n def showtopic(self, topic: str, more_xrefs: str = ...) -> None: ...\n def showsymbol(self, symbol: str) -> None: ...\n def listmodules(self, key: str = ...) -> None: ...\n\nhelp: Helper\n\n# See Python issue #11182: "remove the unused and undocumented pydoc.Scanner class"\n# class Scanner:\n# roots = ... # type: Any\n# state = ... # type: Any\n# children = ... # type: Any\n# descendp = ... # type: Any\n# def __init__(self, roots, children, descendp) -> None: ...\n# def next(self): ...\n\nclass ModuleScanner:\n quit: bool\n def run(\n self,\n callback: Callable[[Optional[str], str, str], None],\n key: Optional[Any] = ...,\n completer: Optional[Callable[[], None]] = ...,\n onerror: Optional[Callable[[str], None]] = ...,\n ) -> None: ...\n\ndef apropos(key: str) -> None: ...\ndef ispath(x: Any) -> bool: ...\ndef cli() -> None: ...\n\nif sys.version_info < (3,):\n def serve(\n port: int, callback: Optional[Callable[[Any], None]] = ..., completer: Optional[Callable[[], None]] = ...\n ) -> None: ...\n def gui() -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\pydoc.pyi
pydoc.pyi
Other
10,660
0.95
0.43956
0.047619
vue-tools
470
2024-06-04T03:55:34.235409
MIT
false
7833761f8a38439364519d7f173b7a8b
import enum\nimport sys\nfrom typing import AnyStr, List, Optional, Text, Type, Union\n\n_EitherStr = Union[bytes, Text]\n\nclass PyCompileError(Exception):\n exc_type_name: str\n exc_value: BaseException\n file: str\n msg: str\n def __init__(self, exc_type: Type[BaseException], exc_value: BaseException, file: str, msg: str = ...) -> None: ...\n\nif sys.version_info >= (3, 7):\n class PycInvalidationMode(enum.Enum):\n TIMESTAMP: int = ...\n CHECKED_HASH: int = ...\n UNCHECKED_HASH: int = ...\n def _get_default_invalidation_mode() -> PycInvalidationMode: ...\n\nif sys.version_info >= (3, 8):\n def compile(\n file: AnyStr,\n cfile: Optional[AnyStr] = ...,\n dfile: Optional[AnyStr] = ...,\n doraise: bool = ...,\n optimize: int = ...,\n invalidation_mode: Optional[PycInvalidationMode] = ...,\n quiet: int = ...,\n ) -> Optional[AnyStr]: ...\n\nelif sys.version_info >= (3, 7):\n def compile(\n file: AnyStr,\n cfile: Optional[AnyStr] = ...,\n dfile: Optional[AnyStr] = ...,\n doraise: bool = ...,\n optimize: int = ...,\n invalidation_mode: Optional[PycInvalidationMode] = ...,\n ) -> Optional[AnyStr]: ...\n\nelif sys.version_info >= (3, 2):\n def compile(\n file: AnyStr, cfile: Optional[AnyStr] = ..., dfile: Optional[AnyStr] = ..., doraise: bool = ..., optimize: int = ...\n ) -> Optional[AnyStr]: ...\n\nelse:\n def compile(\n file: _EitherStr, cfile: Optional[_EitherStr] = ..., dfile: Optional[_EitherStr] = ..., doraise: bool = ...\n ) -> None: ...\n\ndef main(args: Optional[List[Text]] = ...) -> int: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\py_compile.pyi
py_compile.pyi
Other
1,642
0.85
0.211538
0
vue-tools
592
2025-04-18T12:55:55.621789
GPL-3.0
false
a7885c4437b65551d218b4e35122f908
from typing import BinaryIO\n\ndef encode(input: BinaryIO, output: BinaryIO, quotetabs: int, header: int = ...) -> None: ...\ndef encodestring(s: bytes, quotetabs: int = ..., header: int = ...) -> bytes: ...\ndef decode(input: BinaryIO, output: BinaryIO, header: int = ...) -> None: ...\ndef decodestring(s: bytes, header: int = ...) -> bytes: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\quopri.pyi
quopri.pyi
Other
343
0.85
0.666667
0
awesome-app
509
2025-02-06T12:59:35.544669
BSD-3-Clause
false
7071851dd7326f49e77b5edba3ad5a68
import sys\nfrom typing import Callable, Optional, Sequence\n\n_CompleterT = Optional[Callable[[str, int], Optional[str]]]\n_CompDispT = Optional[Callable[[str, Sequence[str], int], None]]\n\ndef parse_and_bind(string: str) -> None: ...\ndef read_init_file(filename: str = ...) -> None: ...\ndef get_line_buffer() -> str: ...\ndef insert_text(string: str) -> None: ...\ndef redisplay() -> None: ...\ndef read_history_file(filename: str = ...) -> None: ...\ndef write_history_file(filename: str = ...) -> None: ...\n\nif sys.version_info >= (3, 5):\n def append_history_file(nelements: int, filename: str = ...) -> None: ...\n\ndef get_history_length() -> int: ...\ndef set_history_length(length: int) -> None: ...\ndef clear_history() -> None: ...\ndef get_current_history_length() -> int: ...\ndef get_history_item(index: int) -> str: ...\ndef remove_history_item(pos: int) -> None: ...\ndef replace_history_item(pos: int, line: str) -> None: ...\ndef add_history(string: str) -> None: ...\n\nif sys.version_info >= (3, 6):\n def set_auto_history(enabled: bool) -> None: ...\n\ndef set_startup_hook(function: Optional[Callable[[], None]] = ...) -> None: ...\ndef set_pre_input_hook(function: Optional[Callable[[], None]] = ...) -> None: ...\ndef set_completer(function: _CompleterT = ...) -> None: ...\ndef get_completer() -> _CompleterT: ...\ndef get_completion_type() -> int: ...\ndef get_begidx() -> int: ...\ndef get_endidx() -> int: ...\ndef set_completer_delims(string: str) -> None: ...\ndef get_completer_delims() -> str: ...\ndef set_completion_display_matches_hook(function: _CompDispT = ...) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\readline.pyi
readline.pyi
Other
1,585
0.85
0.846154
0
node-utils
376
2025-06-08T22:50:43.614607
MIT
false
6898899ae58be222df7f57d3fbfc0bce
import sys\nfrom typing import Any, Dict, Optional, Union\n\nif sys.version_info >= (3,):\n _Text = str\nelse:\n _Text = Union[str, unicode]\n\nclass Completer:\n def __init__(self, namespace: Optional[Dict[str, Any]] = ...) -> None: ...\n def complete(self, text: _Text, state: int) -> Optional[str]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\rlcompleter.pyi
rlcompleter.pyi
Other
308
0.85
0.363636
0
vue-tools
140
2023-08-12T17:54:36.301027
BSD-3-Clause
false
7be8c0bb6c937629d247abb22759b54d
import sys\nfrom typing import Any, Callable, Dict, List, NamedTuple, Optional, Text, Tuple\n\nclass Event(NamedTuple):\n time: float\n priority: Any\n action: Callable[..., Any]\n argument: Tuple[Any, ...]\n kwargs: Dict[Text, Any]\n\nclass scheduler:\n if sys.version_info >= (3, 3):\n def __init__(self, timefunc: Callable[[], float] = ..., delayfunc: Callable[[float], None] = ...) -> None: ...\n def enterabs(\n self,\n time: float,\n priority: Any,\n action: Callable[..., Any],\n argument: Tuple[Any, ...] = ...,\n kwargs: Dict[str, Any] = ...,\n ) -> Event: ...\n def enter(\n self,\n delay: float,\n priority: Any,\n action: Callable[..., Any],\n argument: Tuple[Any, ...] = ...,\n kwargs: Dict[str, Any] = ...,\n ) -> Event: ...\n def run(self, blocking: bool = ...) -> Optional[float]: ...\n else:\n def __init__(self, timefunc: Callable[[], float], delayfunc: Callable[[float], None]) -> None: ...\n def enterabs(self, time: float, priority: Any, action: Callable[..., Any], argument: Tuple[Any, ...]) -> Event: ...\n def enter(self, delay: float, priority: Any, action: Callable[..., Any], argument: Tuple[Any, ...]) -> Event: ...\n def run(self) -> None: ...\n def cancel(self, event: Event) -> None: ...\n def empty(self) -> bool: ...\n @property\n def queue(self) -> List[Event]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\sched.pyi
sched.pyi
Other
1,497
0.85
0.358974
0
awesome-app
865
2024-09-07T21:47:01.508730
MIT
false
d2951148293844c680c0f9769919837f
import sys\nfrom _typeshed import FileDescriptorLike\nfrom types import TracebackType\nfrom typing import Any, Iterable, List, Optional, Tuple, Type\n\nif sys.platform != "win32":\n PIPE_BUF: int\n POLLERR: int\n POLLHUP: int\n POLLIN: int\n POLLMSG: int\n POLLNVAL: int\n POLLOUT: int\n POLLPRI: int\n POLLRDBAND: int\n POLLRDNORM: int\n POLLWRBAND: int\n POLLWRNORM: int\n\nclass poll:\n def __init__(self) -> None: ...\n def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...\n def modify(self, fd: FileDescriptorLike, eventmask: int) -> None: ...\n def unregister(self, fd: FileDescriptorLike) -> None: ...\n def poll(self, timeout: Optional[float] = ...) -> List[Tuple[int, int]]: ...\n\ndef select(\n __rlist: Iterable[Any], __wlist: Iterable[Any], __xlist: Iterable[Any], __timeout: Optional[float] = ...\n) -> Tuple[List[Any], List[Any], List[Any]]: ...\n\nif sys.version_info >= (3, 3):\n error = OSError\nelse:\n class error(Exception): ...\n\nif sys.platform != "linux" and sys.platform != "win32":\n # BSD only\n class kevent(object):\n data: Any\n fflags: int\n filter: int\n flags: int\n ident: int\n udata: Any\n def __init__(\n self,\n ident: FileDescriptorLike,\n filter: int = ...,\n flags: int = ...,\n fflags: int = ...,\n data: Any = ...,\n udata: Any = ...,\n ) -> None: ...\n # BSD only\n class kqueue(object):\n closed: bool\n def __init__(self) -> None: ...\n def close(self) -> None: ...\n def control(\n self, __changelist: Optional[Iterable[kevent]], __maxevents: int, __timeout: Optional[float] = ...\n ) -> List[kevent]: ...\n def fileno(self) -> int: ...\n @classmethod\n def fromfd(cls, __fd: FileDescriptorLike) -> kqueue: ...\n KQ_EV_ADD: int\n KQ_EV_CLEAR: int\n KQ_EV_DELETE: int\n KQ_EV_DISABLE: int\n KQ_EV_ENABLE: int\n KQ_EV_EOF: int\n KQ_EV_ERROR: int\n KQ_EV_FLAG1: int\n KQ_EV_ONESHOT: int\n KQ_EV_SYSFLAGS: int\n KQ_FILTER_AIO: int\n KQ_FILTER_NETDEV: int\n KQ_FILTER_PROC: int\n KQ_FILTER_READ: int\n KQ_FILTER_SIGNAL: int\n KQ_FILTER_TIMER: int\n KQ_FILTER_VNODE: int\n KQ_FILTER_WRITE: int\n KQ_NOTE_ATTRIB: int\n KQ_NOTE_CHILD: int\n KQ_NOTE_DELETE: int\n KQ_NOTE_EXEC: int\n KQ_NOTE_EXIT: int\n KQ_NOTE_EXTEND: int\n KQ_NOTE_FORK: int\n KQ_NOTE_LINK: int\n if sys.platform != "darwin":\n KQ_NOTE_LINKDOWN: int\n KQ_NOTE_LINKINV: int\n KQ_NOTE_LINKUP: int\n KQ_NOTE_LOWAT: int\n KQ_NOTE_PCTRLMASK: int\n KQ_NOTE_PDATAMASK: int\n KQ_NOTE_RENAME: int\n KQ_NOTE_REVOKE: int\n KQ_NOTE_TRACK: int\n KQ_NOTE_TRACKERR: int\n KQ_NOTE_WRITE: int\n\nif sys.platform == "linux":\n class epoll(object):\n if sys.version_info >= (3, 3):\n def __init__(self, sizehint: int = ..., flags: int = ...) -> None: ...\n else:\n def __init__(self, sizehint: int = ...) -> None: ...\n if sys.version_info >= (3, 4):\n def __enter__(self) -> epoll: ...\n def __exit__(\n self,\n exc_type: Optional[Type[BaseException]] = ...,\n exc_val: Optional[BaseException] = ...,\n exc_tb: Optional[TracebackType] = ...,\n ) -> None: ...\n def close(self) -> None: ...\n closed: bool\n def fileno(self) -> int: ...\n def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...\n def modify(self, fd: FileDescriptorLike, eventmask: int) -> None: ...\n def unregister(self, fd: FileDescriptorLike) -> None: ...\n def poll(self, timeout: Optional[float] = ..., maxevents: int = ...) -> List[Tuple[int, int]]: ...\n @classmethod\n def fromfd(cls, __fd: FileDescriptorLike) -> epoll: ...\n EPOLLERR: int\n EPOLLET: int\n EPOLLHUP: int\n EPOLLIN: int\n EPOLLMSG: int\n EPOLLONESHOT: int\n EPOLLOUT: int\n EPOLLPRI: int\n EPOLLRDBAND: int\n EPOLLRDNORM: int\n EPOLLWRBAND: int\n EPOLLWRNORM: int\n EPOLL_RDHUP: int\n\nif sys.platform != "linux" and sys.platform != "darwin" and sys.platform != "win32":\n if sys.version_info >= (3, 3):\n # Solaris only\n class devpoll:\n if sys.version_info >= (3, 4):\n def close(self) -> None: ...\n closed: bool\n def fileno(self) -> int: ...\n def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...\n def modify(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...\n def unregister(self, fd: FileDescriptorLike) -> None: ...\n def poll(self, timeout: Optional[float] = ...) -> List[Tuple[int, int]]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\select.pyi
select.pyi
Other
4,828
0.95
0.296053
0.02069
python-kit
343
2024-05-20T21:14:47.151845
BSD-3-Clause
false
4be545f7cfd0ad62bdd77a8edfab23b5
import os\nimport sys\nfrom _typeshed import StrPath, SupportsRead, SupportsWrite\nfrom typing import (\n Any,\n AnyStr,\n Callable,\n Iterable,\n List,\n NamedTuple,\n Optional,\n Sequence,\n Set,\n Tuple,\n Type,\n TypeVar,\n Union,\n overload,\n)\n\nif sys.version_info >= (3, 6):\n _AnyStr = str\n _AnyPath = TypeVar("_AnyPath", str, os.PathLike[str])\n # Return value of some functions that may either return a path-like object that was passed in or\n # a string\n _PathReturn = Any\nelif sys.version_info >= (3,):\n _AnyStr = str\n _AnyPath = str\n _PathReturn = str\nelse:\n _AnyStr = TypeVar("_AnyStr", str, unicode)\n _AnyPath = TypeVar("_AnyPath", str, unicode)\n _PathReturn = Type[None]\n\nif sys.version_info >= (3,):\n class Error(OSError): ...\n class SameFileError(Error): ...\n class SpecialFileError(OSError): ...\n class ExecError(OSError): ...\n class ReadError(OSError): ...\n class RegistryError(Exception): ...\n\nelse:\n class Error(EnvironmentError): ...\n class SpecialFileError(EnvironmentError): ...\n class ExecError(EnvironmentError): ...\n\ndef copyfileobj(fsrc: SupportsRead[AnyStr], fdst: SupportsWrite[AnyStr], length: int = ...) -> None: ...\n\nif sys.version_info >= (3,):\n def copyfile(src: StrPath, dst: _AnyPath, *, follow_symlinks: bool = ...) -> _AnyPath: ...\n def copymode(src: StrPath, dst: StrPath, *, follow_symlinks: bool = ...) -> None: ...\n def copystat(src: StrPath, dst: StrPath, *, follow_symlinks: bool = ...) -> None: ...\n def copy(src: StrPath, dst: StrPath, *, follow_symlinks: bool = ...) -> _PathReturn: ...\n def copy2(src: StrPath, dst: StrPath, *, follow_symlinks: bool = ...) -> _PathReturn: ...\n\nelse:\n def copyfile(src: StrPath, dst: StrPath) -> None: ...\n def copymode(src: StrPath, dst: StrPath) -> None: ...\n def copystat(src: StrPath, dst: StrPath) -> None: ...\n def copy(src: StrPath, dst: StrPath) -> _PathReturn: ...\n def copy2(src: StrPath, dst: StrPath) -> _PathReturn: ...\n\ndef ignore_patterns(*patterns: StrPath) -> Callable[[Any, List[_AnyStr]], Set[_AnyStr]]: ...\n\nif sys.version_info >= (3, 8):\n def copytree(\n src: StrPath,\n dst: StrPath,\n symlinks: bool = ...,\n ignore: Union[None, Callable[[str, List[str]], Iterable[str]], Callable[[StrPath, List[str]], Iterable[str]]] = ...,\n copy_function: Callable[[str, str], None] = ...,\n ignore_dangling_symlinks: bool = ...,\n dirs_exist_ok: bool = ...,\n ) -> _PathReturn: ...\n\nelif sys.version_info >= (3,):\n def copytree(\n src: StrPath,\n dst: StrPath,\n symlinks: bool = ...,\n ignore: Union[None, Callable[[str, List[str]], Iterable[str]], Callable[[StrPath, List[str]], Iterable[str]]] = ...,\n copy_function: Callable[[str, str], None] = ...,\n ignore_dangling_symlinks: bool = ...,\n ) -> _PathReturn: ...\n\nelse:\n def copytree(\n src: AnyStr,\n dst: AnyStr,\n symlinks: bool = ...,\n ignore: Union[None, Callable[[AnyStr, List[AnyStr]], Iterable[AnyStr]]] = ...,\n ) -> _PathReturn: ...\n\nif sys.version_info >= (3,):\n def rmtree(\n path: Union[bytes, StrPath], ignore_errors: bool = ..., onerror: Optional[Callable[[Any, Any, Any], Any]] = ...\n ) -> None: ...\n\nelse:\n def rmtree(\n path: _AnyPath, ignore_errors: bool = ..., onerror: Optional[Callable[[Any, _AnyPath, Any], Any]] = ...\n ) -> None: ...\n\n_CopyFn = Union[Callable[[str, str], None], Callable[[StrPath, StrPath], None]]\n\nif sys.version_info >= (3, 9):\n def move(src: StrPath, dst: StrPath, copy_function: _CopyFn = ...) -> _PathReturn: ...\n\nelif sys.version_info >= (3, 5):\n # See https://bugs.python.org/issue32689\n def move(src: str, dst: StrPath, copy_function: _CopyFn = ...) -> _PathReturn: ...\n\nelse:\n def move(src: StrPath, dst: StrPath) -> _PathReturn: ...\n\nif sys.version_info >= (3,):\n class _ntuple_diskusage(NamedTuple):\n total: int\n used: int\n free: int\n def disk_usage(path: StrPath) -> _ntuple_diskusage: ...\n def chown(path: StrPath, user: Optional[Union[str, int]] = ..., group: Optional[Union[str, int]] = ...) -> None: ...\n\nif sys.version_info >= (3, 8):\n @overload\n def which(cmd: StrPath, mode: int = ..., path: Optional[StrPath] = ...) -> Optional[str]: ...\n @overload\n def which(cmd: bytes, mode: int = ..., path: Optional[StrPath] = ...) -> Optional[bytes]: ...\n\nelif sys.version_info >= (3,):\n def which(cmd: StrPath, mode: int = ..., path: Optional[StrPath] = ...) -> Optional[str]: ...\n\ndef make_archive(\n base_name: _AnyStr,\n format: str,\n root_dir: Optional[StrPath] = ...,\n base_dir: Optional[StrPath] = ...,\n verbose: bool = ...,\n dry_run: bool = ...,\n owner: Optional[str] = ...,\n group: Optional[str] = ...,\n logger: Optional[Any] = ...,\n) -> _AnyStr: ...\ndef get_archive_formats() -> List[Tuple[str, str]]: ...\ndef register_archive_format(\n name: str,\n function: Callable[..., Any],\n extra_args: Optional[Sequence[Union[Tuple[str, Any], List[Any]]]] = ...,\n description: str = ...,\n) -> None: ...\ndef unregister_archive_format(name: str) -> None: ...\n\nif sys.version_info >= (3,):\n if sys.version_info >= (3, 7):\n def unpack_archive(filename: StrPath, extract_dir: Optional[StrPath] = ..., format: Optional[str] = ...) -> None: ...\n else:\n # See http://bugs.python.org/issue30218\n def unpack_archive(filename: str, extract_dir: Optional[StrPath] = ..., format: Optional[str] = ...) -> None: ...\n def register_unpack_format(\n name: str, extensions: List[str], function: Any, extra_args: Sequence[Tuple[str, Any]] = ..., description: str = ...\n ) -> None: ...\n def unregister_unpack_format(name: str) -> None: ...\n def get_unpack_formats() -> List[Tuple[str, List[str], str]]: ...\n def get_terminal_size(fallback: Tuple[int, int] = ...) -> os.terminal_size: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\shutil.pyi
shutil.pyi
Other
5,961
0.95
0.343373
0.027586
react-lib
121
2025-03-28T00:22:57.008744
MIT
false
022613d9bc31995a719f490c62a9f195
import sys\nfrom typing import Iterable, List, Optional\n\nPREFIXES: List[str]\nENABLE_USER_SITE: Optional[bool]\nUSER_SITE: Optional[str]\nUSER_BASE: Optional[str]\n\nif sys.version_info < (3,):\n def main() -> None: ...\n\ndef addsitedir(sitedir: str, known_paths: Optional[Iterable[str]] = ...) -> None: ...\ndef getsitepackages(prefixes: Optional[Iterable[str]] = ...) -> List[str]: ...\ndef getuserbase() -> str: ...\ndef getusersitepackages() -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\site.pyi
site.pyi
Other
450
0.85
0.4
0
vue-tools
223
2024-01-03T15:20:20.596788
GPL-3.0
false
590a3e7560232954048eaf26e23ee51a
import asynchat\nimport asyncore\nimport socket\nimport sys\nfrom typing import Any, DefaultDict, List, Optional, Text, Tuple, Type\n\n_Address = Tuple[str, int] # (host, port)\n\nclass SMTPChannel(asynchat.async_chat):\n COMMAND: int\n DATA: int\n\n if sys.version_info >= (3,):\n command_size_limits: DefaultDict[str, int]\n smtp_server: SMTPServer\n conn: socket.socket\n addr: Any\n received_lines: List[Text]\n smtp_state: int\n seen_greeting: str\n mailfrom: str\n rcpttos: List[str]\n received_data: str\n fqdn: str\n peer: str\n\n command_size_limit: int\n data_size_limit: int\n\n enable_SMTPUTF8: bool\n @property\n def max_command_size_limit(self) -> int: ...\n if sys.version_info >= (3,):\n def __init__(\n self,\n server: SMTPServer,\n conn: socket.socket,\n addr: Any,\n data_size_limit: int = ...,\n map: Optional[asyncore._maptype] = ...,\n enable_SMTPUTF8: bool = ...,\n decode_data: bool = ...,\n ) -> None: ...\n else:\n def __init__(self, server: SMTPServer, conn: socket.socket, addr: Any, data_size_limit: int = ...) -> None: ...\n # base asynchat.async_chat.push() accepts bytes\n def push(self, msg: Text) -> None: ... # type: ignore\n def collect_incoming_data(self, data: bytes) -> None: ...\n def found_terminator(self) -> None: ...\n def smtp_HELO(self, arg: str) -> None: ...\n def smtp_NOOP(self, arg: str) -> None: ...\n def smtp_QUIT(self, arg: str) -> None: ...\n def smtp_MAIL(self, arg: str) -> None: ...\n def smtp_RCPT(self, arg: str) -> None: ...\n def smtp_RSET(self, arg: str) -> None: ...\n def smtp_DATA(self, arg: str) -> None: ...\n if sys.version_info >= (3, 3):\n def smtp_EHLO(self, arg: str) -> None: ...\n def smtp_HELP(self, arg: str) -> None: ...\n def smtp_VRFY(self, arg: str) -> None: ...\n def smtp_EXPN(self, arg: str) -> None: ...\n\nclass SMTPServer(asyncore.dispatcher):\n channel_class: Type[SMTPChannel]\n\n data_size_limit: int\n enable_SMTPUTF8: bool\n\n if sys.version_info >= (3,):\n def __init__(\n self,\n localaddr: _Address,\n remoteaddr: _Address,\n data_size_limit: int = ...,\n map: Optional[asyncore._maptype] = ...,\n enable_SMTPUTF8: bool = ...,\n decode_data: bool = ...,\n ) -> None: ...\n else:\n def __init__(self, localaddr: _Address, remoteaddr: _Address, data_size_limit: int = ...) -> None: ...\n def handle_accepted(self, conn: socket.socket, addr: Any) -> None: ...\n def process_message(self, peer: _Address, mailfrom: str, rcpttos: List[Text], data: str, **kwargs: Any) -> Optional[str]: ...\n\nclass DebuggingServer(SMTPServer): ...\nclass PureProxy(SMTPServer): ...\nclass MailmanProxy(PureProxy): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\smtpd.pyi
smtpd.pyi
Other
2,935
0.95
0.348837
0.012987
awesome-app
632
2024-03-27T10:38:14.829700
GPL-3.0
false
1a1079752d0eaf11b2a2970ff8360f4a
import sys\nfrom _typeshed import AnyPath\nfrom typing import NamedTuple, Optional, Tuple, Union\n\nif sys.version_info >= (3, 5):\n class SndHeaders(NamedTuple):\n filetype: str\n framerate: int\n nchannels: int\n nframes: int\n sampwidth: Union[int, str]\n _SndHeaders = SndHeaders\nelse:\n _SndHeaders = Tuple[str, int, int, int, Union[int, str]]\n\ndef what(filename: AnyPath) -> Optional[_SndHeaders]: ...\ndef whathdr(filename: AnyPath) -> Optional[_SndHeaders]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\sndhdr.pyi
sndhdr.pyi
Other
501
0.85
0.235294
0
node-utils
389
2024-08-10T05:54:37.421747
MIT
false
8fdb3802f647e01385ce364e07ae145b
import sys\nfrom typing import Any, BinaryIO, Iterable, List, Optional, Text, TextIO, Tuple, TypeVar, Union, overload\nfrom typing_extensions import Literal\n\n# ----- Constants -----\n# Some socket families are listed in the "Socket families" section of the docs,\n# but not the "Constants" section. These are listed at the end of the list of\n# constants.\n#\n# Besides those and the first few constants listed, the constants are listed in\n# documentation order.\n\n# Constants defined by Python (i.e. not OS constants re-exported from C)\nhas_ipv6: bool\nSocketType: Any\nif sys.version_info >= (3,):\n SocketIO: Any\n\n# Re-exported errno\nEAGAIN: int\nEBADF: int\nEINTR: int\nEWOULDBLOCK: int\n\n# Constants re-exported from C\n\n# Per socketmodule.c, only these three families are portable\nAF_UNIX: AddressFamily\nAF_INET: AddressFamily\nAF_INET6: AddressFamily\n\nSOCK_STREAM: SocketKind\nSOCK_DGRAM: SocketKind\nSOCK_RAW: SocketKind\nSOCK_RDM: SocketKind\nSOCK_SEQPACKET: SocketKind\n\nif sys.platform == "linux" and sys.version_info >= (3,):\n SOCK_CLOEXEC: SocketKind\n SOCK_NONBLOCK: SocketKind\n\n# Address families not mentioned in the docs\nAF_AAL5: AddressFamily\nAF_APPLETALK: AddressFamily\nAF_ASH: AddressFamily\nAF_ATMPVC: AddressFamily\nAF_ATMSVC: AddressFamily\nAF_AX25: AddressFamily\nAF_BRIDGE: AddressFamily\nAF_DECnet: AddressFamily\nAF_ECONET: AddressFamily\nAF_IPX: AddressFamily\nAF_IRDA: AddressFamily\nAF_KEY: AddressFamily\nAF_LLC: AddressFamily\nAF_NETBEUI: AddressFamily\nAF_NETROM: AddressFamily\nAF_PPPOX: AddressFamily\nAF_ROSE: AddressFamily\nAF_ROUTE: AddressFamily\nAF_SECURITY: AddressFamily\nAF_SNA: AddressFamily\nAF_SYSTEM: AddressFamily\nAF_UNSPEC: AddressFamily\nAF_WANPIPE: AddressFamily\nAF_X25: AddressFamily\n\n# The "many constants" referenced by the docs\nSOMAXCONN: int\nAI_ADDRCONFIG: AddressInfo\nAI_ALL: AddressInfo\nAI_CANONNAME: AddressInfo\nAI_DEFAULT: AddressInfo\nAI_MASK: AddressInfo\nAI_NUMERICHOST: AddressInfo\nAI_NUMERICSERV: AddressInfo\nAI_PASSIVE: AddressInfo\nAI_V4MAPPED: AddressInfo\nAI_V4MAPPED_CFG: AddressInfo\nEAI_ADDRFAMILY: int\nEAI_AGAIN: int\nEAI_BADFLAGS: int\nEAI_BADHINTS: int\nEAI_FAIL: int\nEAI_FAMILY: int\nEAI_MAX: int\nEAI_MEMORY: int\nEAI_NODATA: int\nEAI_NONAME: int\nEAI_OVERFLOW: int\nEAI_PROTOCOL: int\nEAI_SERVICE: int\nEAI_SOCKTYPE: int\nEAI_SYSTEM: 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_BIP: int\nIPPROTO_DSTOPTS: int\nIPPROTO_EGP: int\nIPPROTO_EON: int\nIPPROTO_ESP: int\nIPPROTO_FRAGMENT: int\nIPPROTO_GGP: int\nIPPROTO_GRE: int\nIPPROTO_HELLO: int\nIPPROTO_HOPOPTS: int\nIPPROTO_ICMP: int\nIPPROTO_ICMPV6: int\nIPPROTO_IDP: int\nIPPROTO_IGMP: int\nIPPROTO_IP: int\nIPPROTO_IPCOMP: int\nIPPROTO_IPIP: int\nIPPROTO_IPV4: int\nIPPROTO_IPV6: int\nIPPROTO_MAX: int\nIPPROTO_MOBILE: int\nIPPROTO_ND: int\nIPPROTO_NONE: int\nIPPROTO_PIM: int\nIPPROTO_PUP: int\nIPPROTO_RAW: int\nIPPROTO_ROUTING: int\nIPPROTO_RSVP: int\nIPPROTO_SCTP: int\nIPPROTO_TCP: int\nIPPROTO_TP: int\nIPPROTO_UDP: int\nIPPROTO_VRRP: int\nIPPROTO_XTP: int\nIPV6_CHECKSUM: int\nIPV6_DONTFRAG: 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_PATHMTU: int\nIPV6_PKTINFO: int\nIPV6_RECVDSTOPTS: int\nIPV6_RECVHOPLIMIT: int\nIPV6_RECVHOPOPTS: int\nIPV6_RECVPATHMTU: 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_USE_MIN_MTU: int\nIPV6_V6ONLY: int\nIPX_TYPE: 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_RECVDSTADDR: int\nIP_RECVOPTS: int\nIP_RECVRETOPTS: int\nIP_RETOPTS: int\nIP_TOS: int\nIP_TRANSPARENT: int\nIP_TTL: int\nLOCAL_PEERCRED: int\nMSG_BCAST: MsgFlag\nMSG_BTAG: MsgFlag\nMSG_CMSG_CLOEXEC: MsgFlag\nMSG_CONFIRM: MsgFlag\nMSG_CTRUNC: MsgFlag\nMSG_DONTROUTE: MsgFlag\nMSG_DONTWAIT: MsgFlag\nMSG_EOF: MsgFlag\nMSG_EOR: MsgFlag\nMSG_ERRQUEUE: MsgFlag\nMSG_ETAG: MsgFlag\nMSG_FASTOPEN: MsgFlag\nMSG_MCAST: MsgFlag\nMSG_MORE: MsgFlag\nMSG_NOSIGNAL: MsgFlag\nMSG_NOTIFICATION: MsgFlag\nMSG_OOB: MsgFlag\nMSG_PEEK: MsgFlag\nMSG_TRUNC: MsgFlag\nMSG_WAITALL: MsgFlag\nNI_DGRAM: int\nNI_MAXHOST: int\nNI_MAXSERV: int\nNI_NAMEREQD: int\nNI_NOFQDN: int\nNI_NUMERICHOST: int\nNI_NUMERICSERV: int\nSCM_CREDENTIALS: int\nSCM_CREDS: int\nSCM_RIGHTS: int\nSHUT_RD: int\nSHUT_RDWR: int\nSHUT_WR: int\nSOL_ATALK: int\nSOL_AX25: int\nSOL_HCI: int\nSOL_IP: int\nSOL_IPX: int\nSOL_NETROM: int\nSOL_ROSE: int\nSOL_SOCKET: int\nSOL_TCP: int\nSOL_UDP: int\nSO_ACCEPTCONN: int\nSO_BINDTODEVICE: int\nSO_BROADCAST: int\nSO_DEBUG: int\nSO_DONTROUTE: int\nSO_ERROR: int\nSO_EXCLUSIVEADDRUSE: int\nSO_KEEPALIVE: int\nSO_LINGER: int\nSO_MARK: int\nSO_OOBINLINE: int\nSO_PASSCRED: int\nSO_PEERCRED: int\nSO_PRIORITY: int\nSO_RCVBUF: int\nSO_RCVLOWAT: int\nSO_RCVTIMEO: int\nSO_REUSEADDR: int\nSO_REUSEPORT: int\nSO_SETFIB: int\nSO_SNDBUF: int\nSO_SNDLOWAT: int\nSO_SNDTIMEO: int\nSO_TYPE: int\nSO_USELOOPBACK: int\nTCP_CORK: int\nTCP_DEFER_ACCEPT: int\nTCP_FASTOPEN: 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\nif sys.version_info >= (3, 7):\n TCP_NOTSENT_LOWAT: int\n\n# Specifically-documented constants\n\nif sys.platform == "linux" and sys.version_info >= (3,):\n AF_CAN: AddressFamily\n PF_CAN: int\n SOL_CAN_BASE: int\n SOL_CAN_RAW: int\n CAN_EFF_FLAG: int\n CAN_EFF_MASK: int\n CAN_ERR_FLAG: int\n CAN_ERR_MASK: int\n CAN_RAW: int\n CAN_RAW_ERR_FILTER: int\n CAN_RAW_FILTER: int\n CAN_RAW_LOOPBACK: int\n CAN_RAW_RECV_OWN_MSGS: int\n CAN_RTR_FLAG: int\n CAN_SFF_MASK: int\n\n CAN_BCM: int\n CAN_BCM_TX_SETUP: int\n CAN_BCM_TX_DELETE: int\n CAN_BCM_TX_READ: int\n CAN_BCM_TX_SEND: int\n CAN_BCM_RX_SETUP: int\n CAN_BCM_RX_DELETE: int\n CAN_BCM_RX_READ: int\n CAN_BCM_TX_STATUS: int\n CAN_BCM_TX_EXPIRED: int\n CAN_BCM_RX_STATUS: int\n CAN_BCM_RX_TIMEOUT: int\n CAN_BCM_RX_CHANGED: int\n\n CAN_RAW_FD_FRAMES: int\n\nif sys.platform == "linux" and sys.version_info >= (3, 8):\n CAN_BCM_SETTIMER: int\n CAN_BCM_STARTTIMER: int\n CAN_BCM_TX_COUNTEVT: int\n CAN_BCM_TX_ANNOUNCE: int\n CAN_BCM_TX_CP_CAN_ID: int\n CAN_BCM_RX_FILTER_ID: int\n CAN_BCM_RX_CHECK_DLC: int\n CAN_BCM_RX_NO_AUTOTIMER: int\n CAN_BCM_RX_ANNOUNCE_RESUME: int\n CAN_BCM_TX_RESET_MULTI_IDX: int\n CAN_BCM_RX_RTR_FRAME: int\n CAN_BCM_CAN_FD_FRAME: int\n\nif sys.platform == "linux" and sys.version_info >= (3, 7):\n CAN_ISOTP: int\n\nif sys.platform == "linux" and sys.version_info >= (3, 9):\n CAN_J1939: int\n\n J1939_MAX_UNICAST_ADDR: int\n J1939_IDLE_ADDR: int\n J1939_NO_ADDR: int\n J1939_NO_NAME: int\n J1939_PGN_REQUEST: int\n J1939_PGN_ADDRESS_CLAIMED: int\n J1939_PGN_ADDRESS_COMMANDED: int\n J1939_PGN_PDU1_MAX: int\n J1939_PGN_MAX: int\n J1939_NO_PGN: int\n\n SO_J1939_FILTER: int\n SO_J1939_PROMISC: int\n SO_J1939_SEND_PRIO: int\n SO_J1939_ERRQUEUE: int\n\n SCM_J1939_DEST_ADDR: int\n SCM_J1939_DEST_NAME: int\n SCM_J1939_PRIO: int\n SCM_J1939_ERRQUEUE: int\n\n J1939_NLA_PAD: int\n J1939_NLA_BYTES_ACKED: int\n\n J1939_EE_INFO_NONE: int\n J1939_EE_INFO_TX_ABORT: int\n\n J1939_FILTER_MAX: int\n\nif sys.platform == "linux":\n AF_PACKET: AddressFamily\n PF_PACKET: int\n PACKET_BROADCAST: int\n PACKET_FASTROUTE: int\n PACKET_HOST: int\n PACKET_LOOPBACK: int\n PACKET_MULTICAST: int\n PACKET_OTHERHOST: int\n PACKET_OUTGOING: int\n\nif sys.platform == "linux" and sys.version_info >= (3,):\n AF_RDS: AddressFamily\n PF_RDS: int\n SOL_RDS: int\n RDS_CANCEL_SENT_TO: int\n RDS_CMSG_RDMA_ARGS: int\n RDS_CMSG_RDMA_DEST: int\n RDS_CMSG_RDMA_MAP: int\n RDS_CMSG_RDMA_STATUS: int\n RDS_CMSG_RDMA_UPDATE: int\n RDS_CONG_MONITOR: int\n RDS_FREE_MR: int\n RDS_GET_MR: int\n RDS_GET_MR_FOR_DEST: int\n RDS_RDMA_DONTWAIT: int\n RDS_RDMA_FENCE: int\n RDS_RDMA_INVALIDATE: int\n RDS_RDMA_NOTIFY_ME: int\n RDS_RDMA_READWRITE: int\n RDS_RDMA_SILENT: int\n RDS_RDMA_USE_ONCE: int\n RDS_RECVERR: int\n\nif sys.platform == "win32":\n SIO_RCVALL: int\n SIO_KEEPALIVE_VALS: int\n if sys.version_info >= (3, 6):\n SIO_LOOPBACK_FAST_PATH: int\n RCVALL_IPLEVEL: int\n RCVALL_MAX: int\n RCVALL_OFF: int\n RCVALL_ON: int\n RCVALL_SOCKETLEVELONLY: int\n\nif sys.platform == "linux":\n AF_TIPC: AddressFamily\n SOL_TIPC: int\n TIPC_ADDR_ID: int\n TIPC_ADDR_NAME: int\n TIPC_ADDR_NAMESEQ: int\n TIPC_CFG_SRV: int\n TIPC_CLUSTER_SCOPE: int\n TIPC_CONN_TIMEOUT: int\n TIPC_CRITICAL_IMPORTANCE: int\n TIPC_DEST_DROPPABLE: int\n TIPC_HIGH_IMPORTANCE: int\n TIPC_IMPORTANCE: int\n TIPC_LOW_IMPORTANCE: int\n TIPC_MEDIUM_IMPORTANCE: int\n TIPC_NODE_SCOPE: int\n TIPC_PUBLISHED: int\n TIPC_SRC_DROPPABLE: int\n TIPC_SUBSCR_TIMEOUT: int\n TIPC_SUB_CANCEL: int\n TIPC_SUB_PORTS: int\n TIPC_SUB_SERVICE: int\n TIPC_TOP_SRV: int\n TIPC_WAIT_FOREVER: int\n TIPC_WITHDRAWN: int\n TIPC_ZONE_SCOPE: int\n\nif sys.platform == "linux" and sys.version_info >= (3, 6):\n AF_ALG: AddressFamily\n SOL_ALG: int\n ALG_OP_DECRYPT: int\n ALG_OP_ENCRYPT: int\n ALG_OP_SIGN: int\n ALG_OP_VERIFY: int\n ALG_SET_AEAD_ASSOCLEN: int\n ALG_SET_AEAD_AUTHSIZE: int\n ALG_SET_IV: int\n ALG_SET_KEY: int\n ALG_SET_OP: int\n ALG_SET_PUBKEY: int\n\nif sys.platform == "linux" and sys.version_info >= (3, 7):\n AF_VSOCK: AddressFamily\n IOCTL_VM_SOCKETS_GET_LOCAL_CID: int\n VMADDR_CID_ANY: int\n VMADDR_CID_HOST: int\n VMADDR_PORT_ANY: int\n SO_VM_SOCKETS_BUFFER_MAX_SIZE: int\n SO_VM_SOCKETS_BUFFER_SIZE: int\n SO_VM_SOCKETS_BUFFER_MIN_SIZE: int\n VM_SOCKETS_INVALID_VERSION: int\n\nAF_LINK: AddressFamily # Availability: BSD, macOS\n\n# BDADDR_* and HCI_* listed with other bluetooth constants below\n\nif sys.version_info >= (3, 6):\n SO_DOMAIN: int\n SO_PASSSEC: int\n SO_PEERSEC: int\n SO_PROTOCOL: int\n TCP_CONGESTION: int\n TCP_USER_TIMEOUT: int\n\nif sys.platform == "linux" and sys.version_info >= (3, 8):\n AF_QIPCRTR: AddressFamily\n\n# Semi-documented constants\n# (Listed under "Socket families" in the docs, but not "Constants")\n\nif sys.platform == "linux":\n # Netlink is defined by Linux\n AF_NETLINK: AddressFamily\n NETLINK_ARPD: int\n NETLINK_CRYPTO: int\n NETLINK_DNRTMSG: int\n NETLINK_FIREWALL: int\n NETLINK_IP6_FW: int\n NETLINK_NFLOG: int\n NETLINK_ROUTE6: int\n NETLINK_ROUTE: int\n NETLINK_SKIP: int\n NETLINK_TAPBASE: int\n NETLINK_TCPDIAG: int\n NETLINK_USERSOCK: int\n NETLINK_W1: int\n NETLINK_XFRM: int\n\nif sys.platform != "win32" and sys.platform != "darwin":\n # Linux and some BSD support is explicit in the docs\n # Windows and macOS do not support in practice\n AF_BLUETOOTH: AddressFamily\n BTPROTO_HCI: int\n BTPROTO_L2CAP: int\n BTPROTO_RFCOMM: int\n BTPROTO_SCO: int # not in FreeBSD\n\n BDADDR_ANY: str\n BDADDR_LOCAL: str\n\n HCI_FILTER: int # not in NetBSD or DragonFlyBSD\n # not in FreeBSD, NetBSD, or DragonFlyBSD\n HCI_TIME_STAMP: int\n HCI_DATA_DIR: int\n\nif sys.platform == "darwin":\n # PF_SYSTEM is defined by macOS\n PF_SYSTEM: int\n SYSPROTO_CONTROL: int\n\n# enum versions of above flags\nif sys.version_info >= (3, 4):\n from enum import IntEnum\n class AddressFamily(IntEnum):\n AF_UNIX: int\n AF_INET: int\n AF_INET6: int\n AF_AAL5: int\n AF_ALG: int\n AF_APPLETALK: int\n AF_ASH: int\n AF_ATMPVC: int\n AF_ATMSVC: int\n AF_AX25: int\n AF_BLUETOOTH: int\n AF_BRIDGE: int\n AF_CAN: int\n AF_DECnet: int\n AF_ECONET: int\n AF_IPX: int\n AF_IRDA: int\n AF_KEY: int\n AF_LINK: int\n AF_LLC: int\n AF_NETBEUI: int\n AF_NETLINK: int\n AF_NETROM: int\n AF_PACKET: int\n AF_PPPOX: int\n AF_QIPCRTR: int\n AF_RDS: int\n AF_ROSE: int\n AF_ROUTE: int\n AF_SECURITY: int\n AF_SNA: int\n AF_SYSTEM: int\n AF_TIPC: int\n AF_UNSPEC: int\n AF_VSOCK: int\n AF_WANPIPE: int\n AF_X25: int\n class SocketKind(IntEnum):\n SOCK_STREAM: int\n SOCK_DGRAM: int\n SOCK_RAW: int\n SOCK_RDM: int\n SOCK_SEQPACKET: int\n SOCK_CLOEXEC: int\n SOCK_NONBLOCK: int\n\nelse:\n AddressFamily = int\n SocketKind = int\n\nif sys.version_info >= (3, 6):\n from enum import IntFlag\n class AddressInfo(IntFlag):\n AI_ADDRCONFIG: int\n AI_ALL: int\n AI_CANONNAME: int\n AI_NUMERICHOST: int\n AI_NUMERICSERV: int\n AI_PASSIVE: int\n AI_V4MAPPED: int\n class MsgFlag(IntFlag):\n MSG_CTRUNC: int\n MSG_DONTROUTE: int\n MSG_DONTWAIT: int\n MSG_EOR: int\n MSG_OOB: int\n MSG_PEEK: int\n MSG_TRUNC: int\n MSG_WAITALL: int\n\nelse:\n AddressInfo = int\n MsgFlag = int\n\n# ----- Exceptions -----\n\nif sys.version_info < (3,):\n class error(IOError): ...\n\nelse:\n error = OSError\n\nclass herror(error):\n def __init__(self, herror: int = ..., string: str = ...) -> None: ...\n\nclass gaierror(error):\n def __init__(self, error: int = ..., string: str = ...) -> None: ...\n\nclass timeout(error):\n def __init__(self, error: int = ..., string: str = ...) -> None: ...\n\n# ----- Classes -----\n\n# Addresses can be either tuples of varying lengths (AF_INET, AF_INET6,\n# AF_NETLINK, AF_TIPC) or strings (AF_UNIX).\n_Address = Union[tuple, str]\n_RetAddress = Any\n# TODO Most methods allow bytes as address objects\n\n_WriteBuffer = Union[bytearray, memoryview]\n\n_CMSG = Tuple[int, int, bytes]\n_SelfT = TypeVar("_SelfT", bound=socket)\n\nclass socket:\n family: int\n type: int\n proto: int\n\n if sys.version_info < (3,):\n def __init__(self, family: int = ..., type: int = ..., proto: int = ...) -> None: ...\n else:\n def __init__(self, family: int = ..., type: int = ..., proto: int = ..., fileno: Optional[int] = ...) -> None: ...\n def __enter__(self: _SelfT) -> _SelfT: ...\n def __exit__(self, *args: Any) -> None: ...\n # --- methods ---\n def accept(self) -> Tuple[socket, _RetAddress]: ...\n def bind(self, address: Union[_Address, bytes]) -> None: ...\n def close(self) -> None: ...\n def connect(self, address: Union[_Address, bytes]) -> None: ...\n def connect_ex(self, address: Union[_Address, bytes]) -> int: ...\n def detach(self) -> int: ...\n def dup(self) -> socket: ...\n def fileno(self) -> int: ...\n if sys.version_info >= (3, 4):\n def get_inheritable(self) -> bool: ...\n def getpeername(self) -> _RetAddress: ...\n def getsockname(self) -> _RetAddress: ...\n @overload\n def getsockopt(self, level: int, optname: int) -> int: ...\n @overload\n def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ...\n if sys.version_info >= (3, 7):\n def getblocking(self) -> bool: ...\n def gettimeout(self) -> Optional[float]: ...\n if sys.platform == "win32" and sys.version_info >= (3, 6):\n def ioctl(self, control: int, option: Union[int, Tuple[int, int, int], bool]) -> None: ...\n elif sys.platform == "win32":\n def ioctl(self, control: int, option: Union[int, Tuple[int, int, int]]) -> None: ...\n if sys.version_info >= (3, 5):\n def listen(self, __backlog: int = ...) -> None: ...\n else:\n def listen(self, __backlog: int) -> None: ...\n # Note that the makefile's documented windows-specific behavior is not represented\n if sys.version_info >= (3,):\n # mode strings with duplicates are intentionally excluded\n @overload\n def makefile(\n self,\n mode: Literal["r", "w", "rw", "wr", ""] = ...,\n buffering: Optional[int] = ...,\n *,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n ) -> TextIO: ...\n @overload\n def makefile(\n self,\n mode: Literal["b", "rb", "br", "wb", "bw", "rwb", "rbw", "wrb", "wbr", "brw", "bwr"],\n buffering: Optional[int] = ...,\n *,\n encoding: Optional[str] = ...,\n errors: Optional[str] = ...,\n newline: Optional[str] = ...,\n ) -> BinaryIO: ...\n else:\n def makefile(self, mode: unicode = ..., buffering: int = ...) -> BinaryIO: ...\n def recv(self, bufsize: int, flags: int = ...) -> bytes: ...\n def recvfrom(self, bufsize: int, flags: int = ...) -> Tuple[bytes, _RetAddress]: ...\n if sys.version_info >= (3, 3) and sys.platform != "win32":\n def recvmsg(self, __bufsize: int, __ancbufsize: int = ..., __flags: int = ...) -> Tuple[bytes, List[_CMSG], int, Any]: ...\n def recvmsg_into(\n self, __buffers: Iterable[_WriteBuffer], __ancbufsize: int = ..., __flags: int = ...\n ) -> Tuple[int, List[_CMSG], int, Any]: ...\n def recvfrom_into(self, buffer: _WriteBuffer, nbytes: int = ..., flags: int = ...) -> Tuple[int, _RetAddress]: ...\n def recv_into(self, buffer: _WriteBuffer, nbytes: int = ..., flags: int = ...) -> int: ...\n def send(self, data: bytes, flags: int = ...) -> int: ...\n def sendall(self, data: bytes, flags: int = ...) -> None: ... # return type: None on success\n @overload\n def sendto(self, data: bytes, address: _Address) -> int: ...\n @overload\n def sendto(self, data: bytes, flags: int, address: _Address) -> int: ...\n if sys.version_info >= (3, 3) and sys.platform != "win32":\n def sendmsg(\n self, __buffers: Iterable[bytes], __ancdata: Iterable[_CMSG] = ..., __flags: int = ..., __address: _Address = ...\n ) -> int: ...\n if sys.platform == "linux" and sys.version_info >= (3, 6):\n def sendmsg_afalg(\n self, msg: Iterable[bytes] = ..., *, op: int, iv: Any = ..., assoclen: int = ..., flags: int = ...\n ) -> int: ...\n if sys.version_info >= (3,):\n def sendfile(self, file: BinaryIO, offset: int = ..., count: Optional[int] = ...) -> int: ...\n def set_inheritable(self, inheritable: bool) -> None: ...\n def setblocking(self, flag: bool) -> None: ...\n def settimeout(self, value: Optional[float]) -> None: ...\n if sys.version_info < (3, 6):\n def setsockopt(self, level: int, optname: int, value: Union[int, bytes]) -> None: ...\n else:\n @overload\n def setsockopt(self, level: int, optname: int, value: Union[int, bytes]) -> None: ...\n @overload\n def setsockopt(self, level: int, optname: int, value: None, optlen: int) -> None: ...\n if sys.platform == "win32":\n def share(self, process_id: int) -> bytes: ...\n def shutdown(self, how: int) -> None: ...\n\n# ----- Functions -----\n\nif sys.version_info >= (3, 7):\n def close(fd: int) -> None: ...\n\ndef create_connection(\n address: Tuple[Optional[str], int],\n timeout: Optional[float] = ...,\n source_address: Optional[Tuple[Union[bytearray, bytes, Text], int]] = ...,\n) -> socket: ...\n\nif sys.version_info >= (3, 8):\n def create_server(\n address: _Address, *, family: int = ..., backlog: Optional[int] = ..., reuse_port: bool = ..., dualstack_ipv6: bool = ...\n ) -> socket: ...\n def has_dualstack_ipv6() -> bool: ...\n\ndef fromfd(fd: int, family: int, type: int, proto: int = ...) -> socket: ...\n\nif sys.platform == "win32" and sys.version_info >= (3, 3):\n def fromshare(info: bytes) -> socket: ...\n\n# the 5th tuple item is an address\nif sys.version_info >= (3,):\n def getaddrinfo(\n host: Optional[Union[bytearray, bytes, Text]],\n port: Union[str, int, None],\n family: int = ...,\n type: int = ...,\n proto: int = ...,\n flags: int = ...,\n ) -> List[Tuple[AddressFamily, SocketKind, int, str, Union[Tuple[str, int], Tuple[str, int, int, int]]]]: ...\n\nelse:\n def getaddrinfo(\n host: Optional[Union[bytearray, bytes, Text]],\n port: Union[str, int, None],\n family: int = ...,\n socktype: int = ...,\n proto: int = ...,\n flags: int = ...,\n ) -> List[Tuple[AddressFamily, SocketKind, int, str, Tuple[Any, ...]]]: ...\n\ndef getfqdn(name: str = ...) -> str: ...\ndef gethostbyname(hostname: str) -> str: ...\ndef gethostbyname_ex(hostname: str) -> Tuple[str, List[str], List[str]]: ...\ndef gethostname() -> str: ...\ndef gethostbyaddr(ip_address: str) -> Tuple[str, List[str], List[str]]: ...\ndef getnameinfo(sockaddr: Union[Tuple[str, int], Tuple[str, int, int, int]], flags: int) -> Tuple[str, str]: ...\ndef getprotobyname(protocolname: str) -> int: ...\ndef getservbyname(servicename: str, protocolname: str = ...) -> int: ...\ndef getservbyport(port: int, protocolname: str = ...) -> str: ...\ndef socketpair(family: int = ..., type: int = ..., proto: int = ...) -> Tuple[socket, socket]: ...\ndef ntohl(x: int) -> int: ... # param & ret val are 32-bit ints\ndef ntohs(x: int) -> int: ... # param & ret val are 16-bit ints\ndef htonl(x: int) -> int: ... # param & ret val are 32-bit ints\ndef htons(x: int) -> int: ... # param & ret val are 16-bit ints\ndef inet_aton(ip_string: str) -> bytes: ... # ret val 4 bytes in length\ndef inet_ntoa(packed_ip: bytes) -> str: ...\ndef inet_pton(address_family: int, ip_string: str) -> bytes: ...\ndef inet_ntop(address_family: int, packed_ip: bytes) -> str: ...\n\nif sys.version_info >= (3, 9):\n if sys.platform != "win32":\n # flags and address appear to be unused in send_fds and recv_fds\n def send_fds(\n sock: socket, buffers: Iterable[bytes], fds: Union[bytes, Iterable[int]], flags: int = ..., address: None = ...\n ) -> int: ...\n def recv_fds(sock: socket, bufsize: int, maxfds: int, flags: int = ...) -> Tuple[bytes, List[int], int, Any]: ...\n\nif sys.version_info >= (3, 3):\n def CMSG_LEN(length: int) -> int: ...\n def CMSG_SPACE(length: int) -> int: ...\n\ndef getdefaulttimeout() -> Optional[float]: ...\ndef setdefaulttimeout(timeout: Optional[float]) -> None: ...\n\nif sys.version_info >= (3, 3):\n if sys.platform != "win32":\n def sethostname(name: str) -> None: ...\n # Windows added these in 3.8, but didn't have them before\n if sys.platform != "win32" or sys.version_info >= (3, 8):\n def if_nameindex() -> List[Tuple[int, str]]: ...\n def if_nametoindex(name: str) -> int: ...\n def if_indextoname(index: int) -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\socket.pyi
socket.pyi
Other
22,711
0.95
0.173101
0.050272
react-lib
441
2023-09-01T03:22:53.318856
MIT
false
04de097354fac21f3a65934017817600
import sys\nfrom sre_constants import (\n SRE_FLAG_DEBUG as SRE_FLAG_DEBUG,\n SRE_FLAG_DOTALL as SRE_FLAG_DOTALL,\n SRE_FLAG_IGNORECASE as SRE_FLAG_IGNORECASE,\n SRE_FLAG_LOCALE as SRE_FLAG_LOCALE,\n SRE_FLAG_MULTILINE as SRE_FLAG_MULTILINE,\n SRE_FLAG_TEMPLATE as SRE_FLAG_TEMPLATE,\n SRE_FLAG_UNICODE as SRE_FLAG_UNICODE,\n SRE_FLAG_VERBOSE as SRE_FLAG_VERBOSE,\n SRE_INFO_CHARSET as SRE_INFO_CHARSET,\n SRE_INFO_LITERAL as SRE_INFO_LITERAL,\n SRE_INFO_PREFIX as SRE_INFO_PREFIX,\n)\nfrom sre_parse import SubPattern\nfrom typing import Any, List, Pattern, Tuple, Type, Union\n\nif sys.version_info >= (3,):\n from sre_constants import SRE_FLAG_ASCII as SRE_FLAG_ASCII\n\nMAXCODE: int\nif sys.version_info < (3, 0):\n STRING_TYPES: Tuple[Type[str], Type[unicode]]\n _IsStringType = int\nelse:\n from sre_constants import _NamedIntConstant\n def dis(code: List[_NamedIntConstant]) -> None: ...\n _IsStringType = bool\n\ndef isstring(obj: Any) -> _IsStringType: ...\ndef compile(p: Union[str, bytes, SubPattern], flags: int = ...) -> Pattern[Any]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\sre_compile.pyi
sre_compile.pyi
Other
1,073
0.85
0.16129
0
vue-tools
801
2024-08-20T14:15:38.750133
BSD-3-Clause
false
85119c9d265f7aed870147ef4aca4693
import enum\nimport socket\nimport sys\nfrom _typeshed import StrPath\nfrom typing import Any, Callable, ClassVar, Dict, Iterable, List, NamedTuple, Optional, Set, Text, Tuple, Type, Union, overload\nfrom typing_extensions import Literal\n\n_PCTRTT = Tuple[Tuple[str, str], ...]\n_PCTRTTT = Tuple[_PCTRTT, ...]\n_PeerCertRetDictType = Dict[str, Union[str, _PCTRTTT, _PCTRTT]]\n_PeerCertRetType = Union[_PeerCertRetDictType, bytes, None]\n_EnumRetType = List[Tuple[bytes, str, Union[Set[str], bool]]]\n_PasswordType = Union[Callable[[], Union[str, bytes]], str, bytes]\n\nif sys.version_info >= (3, 5):\n _SC1ArgT = Union[SSLSocket, SSLObject]\nelse:\n _SC1ArgT = SSLSocket\n_SrvnmeCbType = Callable[[_SC1ArgT, Optional[str], SSLSocket], Optional[int]]\n\nclass SSLError(OSError):\n library: str\n reason: str\n\nclass SSLZeroReturnError(SSLError): ...\nclass SSLWantReadError(SSLError): ...\nclass SSLWantWriteError(SSLError): ...\nclass SSLSyscallError(SSLError): ...\nclass SSLEOFError(SSLError): ...\n\nif sys.version_info >= (3, 7):\n class SSLCertVerificationError(SSLError, ValueError):\n verify_code: int\n verify_message: str\n CertificateError = SSLCertVerificationError\nelse:\n class CertificateError(ValueError): ...\n\ndef wrap_socket(\n sock: socket.socket,\n keyfile: Optional[str] = ...,\n certfile: Optional[str] = ...,\n server_side: bool = ...,\n cert_reqs: int = ...,\n ssl_version: int = ...,\n ca_certs: Optional[str] = ...,\n do_handshake_on_connect: bool = ...,\n suppress_ragged_eofs: bool = ...,\n ciphers: Optional[str] = ...,\n) -> SSLSocket: ...\ndef create_default_context(\n purpose: Any = ..., *, cafile: Optional[str] = ..., capath: Optional[str] = ..., cadata: Union[Text, bytes, None] = ...\n) -> SSLContext: ...\n\nif sys.version_info >= (3, 7):\n def _create_unverified_context(\n protocol: int = ...,\n *,\n cert_reqs: int = ...,\n check_hostname: bool = ...,\n purpose: Any = ...,\n certfile: Optional[str] = ...,\n keyfile: Optional[str] = ...,\n cafile: Optional[str] = ...,\n capath: Optional[str] = ...,\n cadata: Union[Text, bytes, None] = ...,\n ) -> SSLContext: ...\n\nelse:\n def _create_unverified_context(\n protocol: int = ...,\n *,\n cert_reqs: Optional[int] = ...,\n check_hostname: bool = ...,\n purpose: Any = ...,\n certfile: Optional[str] = ...,\n keyfile: Optional[str] = ...,\n cafile: Optional[str] = ...,\n capath: Optional[str] = ...,\n cadata: Union[Text, bytes, None] = ...,\n ) -> SSLContext: ...\n\n_create_default_https_context: Callable[..., SSLContext]\n\nif sys.version_info >= (3, 3):\n def RAND_bytes(__num: int) -> bytes: ...\n def RAND_pseudo_bytes(__num: int) -> Tuple[bytes, bool]: ...\n\ndef RAND_status() -> bool: ...\ndef RAND_egd(path: str) -> None: ...\ndef RAND_add(__s: bytes, __entropy: float) -> None: ...\ndef match_hostname(cert: _PeerCertRetType, hostname: str) -> None: ...\ndef cert_time_to_seconds(cert_time: str) -> int: ...\ndef get_server_certificate(addr: Tuple[str, int], ssl_version: int = ..., ca_certs: Optional[str] = ...) -> str: ...\ndef DER_cert_to_PEM_cert(der_cert_bytes: bytes) -> str: ...\ndef PEM_cert_to_DER_cert(pem_cert_string: str) -> bytes: ...\n\nclass DefaultVerifyPaths(NamedTuple):\n cafile: str\n capath: str\n openssl_cafile_env: str\n openssl_cafile: str\n openssl_capath_env: str\n openssl_capath: str\n\ndef get_default_verify_paths() -> DefaultVerifyPaths: ...\n\nif sys.platform == "win32":\n def enum_certificates(store_name: str) -> _EnumRetType: ...\n def enum_crls(store_name: str) -> _EnumRetType: ...\n\nCERT_NONE: int\nCERT_OPTIONAL: int\nCERT_REQUIRED: int\n\nVERIFY_DEFAULT: int\nVERIFY_CRL_CHECK_LEAF: int\nVERIFY_CRL_CHECK_CHAIN: int\nVERIFY_X509_STRICT: int\nVERIFY_X509_TRUSTED_FIRST: int\n\nPROTOCOL_SSLv23: int\nPROTOCOL_SSLv2: int\nPROTOCOL_SSLv3: int\nPROTOCOL_TLSv1: int\nPROTOCOL_TLSv1_1: int\nPROTOCOL_TLSv1_2: int\nPROTOCOL_TLS: int\nif sys.version_info >= (3, 6):\n PROTOCOL_TLS_CLIENT: int\n PROTOCOL_TLS_SERVER: int\n\nif sys.version_info >= (3, 6):\n class Options(enum.IntFlag):\n OP_ALL: int\n OP_NO_SSLv2: int\n OP_NO_SSLv3: int\n OP_NO_TLSv1: int\n OP_NO_TLSv1_1: int\n OP_NO_TLSv1_2: int\n OP_CIPHER_SERVER_PREFERENCE: int\n OP_SINGLE_DH_USE: int\n OP_SINGLE_ECDH_USE: int\n OP_NO_COMPRESSION: int\n OP_NO_TICKET: int\n if sys.version_info >= (3, 7):\n OP_NO_RENEGOTIATION: int\n OP_NO_TLSv1_3: int\n if sys.version_info >= (3, 8):\n OP_ENABLE_MIDDLEBOX_COMPAT: int\n OP_ALL: Options\n OP_NO_SSLv2: Options\n OP_NO_SSLv3: Options\n OP_NO_TLSv1: Options\n OP_NO_TLSv1_1: Options\n OP_NO_TLSv1_2: Options\n OP_CIPHER_SERVER_PREFERENCE: Options\n OP_SINGLE_DH_USE: Options\n OP_SINGLE_ECDH_USE: Options\n OP_NO_COMPRESSION: Options\n OP_NO_TICKET: Options\n if sys.version_info >= (3, 7):\n OP_NO_RENEGOTIATION: Options\n OP_NO_TLSv1_3: Options\n if sys.version_info >= (3, 8):\n OP_ENABLE_MIDDLEBOX_COMPAT: Options\nelse:\n OP_ALL: int\n OP_NO_SSLv2: int\n OP_NO_SSLv3: int\n OP_NO_TLSv1: int\n OP_NO_TLSv1_1: int\n OP_NO_TLSv1_2: int\n OP_CIPHER_SERVER_PREFERENCE: int\n OP_SINGLE_DH_USE: int\n OP_SINGLE_ECDH_USE: int\n OP_NO_COMPRESSION: int\n\nif sys.version_info >= (3, 7):\n HAS_NEVER_CHECK_COMMON_NAME: bool\n HAS_SSLv2: bool\n HAS_SSLv3: bool\n HAS_TLSv1: bool\n HAS_TLSv1_1: bool\n HAS_TLSv1_2: bool\n HAS_TLSv1_3: bool\nHAS_ALPN: bool\nHAS_ECDH: bool\nHAS_SNI: bool\nHAS_NPN: bool\nCHANNEL_BINDING_TYPES: List[str]\n\nOPENSSL_VERSION: str\nOPENSSL_VERSION_INFO: Tuple[int, int, int, int, int]\nOPENSSL_VERSION_NUMBER: int\n\nALERT_DESCRIPTION_HANDSHAKE_FAILURE: int\nALERT_DESCRIPTION_INTERNAL_ERROR: int\nALERT_DESCRIPTION_ACCESS_DENIED: int\nALERT_DESCRIPTION_BAD_CERTIFICATE: int\nALERT_DESCRIPTION_BAD_CERTIFICATE_HASH_VALUE: int\nALERT_DESCRIPTION_BAD_CERTIFICATE_STATUS_RESPONSE: int\nALERT_DESCRIPTION_BAD_RECORD_MAC: int\nALERT_DESCRIPTION_CERTIFICATE_EXPIRED: int\nALERT_DESCRIPTION_CERTIFICATE_REVOKED: int\nALERT_DESCRIPTION_CERTIFICATE_UNKNOWN: int\nALERT_DESCRIPTION_CERTIFICATE_UNOBTAINABLE: int\nALERT_DESCRIPTION_CLOSE_NOTIFY: int\nALERT_DESCRIPTION_DECODE_ERROR: int\nALERT_DESCRIPTION_DECOMPRESSION_FAILURE: int\nALERT_DESCRIPTION_DECRYPT_ERROR: int\nALERT_DESCRIPTION_ILLEGAL_PARAMETER: int\nALERT_DESCRIPTION_INSUFFICIENT_SECURITY: int\nALERT_DESCRIPTION_NO_RENEGOTIATION: int\nALERT_DESCRIPTION_PROTOCOL_VERSION: int\nALERT_DESCRIPTION_RECORD_OVERFLOW: int\nALERT_DESCRIPTION_UNEXPECTED_MESSAGE: int\nALERT_DESCRIPTION_UNKNOWN_CA: int\nALERT_DESCRIPTION_UNKNOWN_PSK_IDENTITY: int\nALERT_DESCRIPTION_UNRECOGNIZED_NAME: int\nALERT_DESCRIPTION_UNSUPPORTED_CERTIFICATE: int\nALERT_DESCRIPTION_UNSUPPORTED_EXTENSION: int\nALERT_DESCRIPTION_USER_CANCELLED: int\n\nclass _ASN1Object(NamedTuple):\n nid: int\n shortname: str\n longname: str\n oid: str\n\nif sys.version_info < (3,):\n class Purpose(_ASN1Object):\n SERVER_AUTH: ClassVar[Purpose]\n CLIENT_AUTH: ClassVar[Purpose]\n\nelse:\n class Purpose(_ASN1Object, enum.Enum):\n SERVER_AUTH: _ASN1Object\n CLIENT_AUTH: _ASN1Object\n\nclass SSLSocket(socket.socket):\n context: SSLContext\n server_side: bool\n server_hostname: Optional[str]\n if sys.version_info >= (3, 6):\n session: Optional[SSLSession]\n session_reused: Optional[bool]\n def read(self, len: int = ..., buffer: Optional[bytearray] = ...) -> bytes: ...\n def write(self, data: bytes) -> int: ...\n def do_handshake(self, block: bool = ...) -> None: ... # block is undocumented\n @overload\n def getpeercert(self, binary_form: Literal[False] = ...) -> Optional[_PeerCertRetDictType]: ...\n @overload\n def getpeercert(self, binary_form: Literal[True]) -> Optional[bytes]: ...\n @overload\n def getpeercert(self, binary_form: bool) -> _PeerCertRetType: ...\n def cipher(self) -> Optional[Tuple[str, str, int]]: ...\n if sys.version_info >= (3, 5):\n def shared_ciphers(self) -> Optional[List[Tuple[str, str, int]]]: ...\n def compression(self) -> Optional[str]: ...\n def get_channel_binding(self, cb_type: str = ...) -> Optional[bytes]: ...\n def selected_alpn_protocol(self) -> Optional[str]: ...\n def selected_npn_protocol(self) -> Optional[str]: ...\n def accept(self) -> Tuple[SSLSocket, socket._RetAddress]: ...\n def unwrap(self) -> socket.socket: ...\n def version(self) -> Optional[str]: ...\n def pending(self) -> int: ...\n if sys.version_info >= (3, 8):\n def verify_client_post_handshake(self) -> None: ...\n\nif sys.version_info >= (3, 7):\n class TLSVersion(enum.IntEnum):\n MINIMUM_SUPPORTED: int\n MAXIMUM_SUPPORTED: int\n SSLv3: int\n TLSv1: int\n TLSv1_1: int\n TLSv1_2: int\n TLSv1_3: int\n\nclass SSLContext:\n check_hostname: bool\n if sys.version_info >= (3, 6):\n options: Options\n else:\n options: int\n if sys.version_info >= (3, 8):\n post_handshake_auth: bool\n @property\n def protocol(self) -> int: ...\n verify_flags: int\n verify_mode: int\n if sys.version_info >= (3, 5):\n def __init__(self, protocol: int = ...) -> None: ...\n else:\n def __init__(self, protocol: int) -> None: ...\n def cert_store_stats(self) -> Dict[str, int]: ...\n def load_cert_chain(\n self, certfile: StrPath, keyfile: Optional[StrPath] = ..., password: Optional[_PasswordType] = ...\n ) -> None: ...\n def load_default_certs(self, purpose: Purpose = ...) -> None: ...\n def load_verify_locations(\n self, cafile: Optional[StrPath] = ..., capath: Optional[StrPath] = ..., cadata: Union[Text, bytes, None] = ...\n ) -> None: ...\n def get_ca_certs(self, binary_form: bool = ...) -> Union[List[_PeerCertRetDictType], List[bytes]]: ...\n def set_default_verify_paths(self) -> None: ...\n def set_ciphers(self, __cipherlist: str) -> None: ...\n def set_alpn_protocols(self, alpn_protocols: Iterable[str]) -> None: ...\n if sys.version_info >= (3, 7):\n sni_callback: Optional[Callable[[SSLObject, str, SSLContext], Union[None, int]]]\n sslobject_class: Type[SSLObject]\n def set_npn_protocols(self, npn_protocols: Iterable[str]) -> None: ...\n if sys.version_info >= (3, 7):\n def set_servername_callback(self, server_name_callback: Optional[_SrvnmeCbType]) -> None: ...\n else:\n def set_servername_callback(self, __method: Optional[_SrvnmeCbType]) -> None: ...\n def load_dh_params(self, __path: str) -> None: ...\n def set_ecdh_curve(self, __name: str) -> None: ...\n if sys.version_info >= (3, 6):\n def wrap_socket(\n self,\n sock: socket.socket,\n server_side: bool = ...,\n do_handshake_on_connect: bool = ...,\n suppress_ragged_eofs: bool = ...,\n server_hostname: Optional[str] = ...,\n session: Optional[SSLSession] = ...,\n ) -> SSLSocket: ...\n else:\n def wrap_socket(\n self,\n sock: socket.socket,\n server_side: bool = ...,\n do_handshake_on_connect: bool = ...,\n suppress_ragged_eofs: bool = ...,\n server_hostname: Optional[str] = ...,\n ) -> SSLSocket: ...\n if sys.version_info >= (3, 6):\n def wrap_bio(\n self,\n incoming: MemoryBIO,\n outgoing: MemoryBIO,\n server_side: bool = ...,\n server_hostname: Optional[str] = ...,\n session: Optional[SSLSession] = ...,\n ) -> SSLObject: ...\n elif sys.version_info >= (3, 5):\n def wrap_bio(\n self, incoming: MemoryBIO, outgoing: MemoryBIO, server_side: bool = ..., server_hostname: Optional[str] = ...\n ) -> SSLObject: ...\n def session_stats(self) -> Dict[str, int]: ...\n if sys.version_info >= (3, 7):\n hostname_checks_common_name: bool\n maximum_version: TLSVersion\n minimum_version: TLSVersion\n\nif sys.version_info >= (3, 5):\n class SSLObject:\n context: SSLContext\n server_side: bool\n server_hostname: Optional[str]\n if sys.version_info >= (3, 6):\n session: Optional[SSLSession]\n session_reused: bool\n def read(self, len: int = ..., buffer: Optional[bytearray] = ...) -> bytes: ...\n def write(self, data: bytes) -> int: ...\n @overload\n def getpeercert(self, binary_form: Literal[False] = ...) -> Optional[_PeerCertRetDictType]: ...\n @overload\n def getpeercert(self, binary_form: Literal[True]) -> Optional[bytes]: ...\n @overload\n def getpeercert(self, binary_form: bool) -> _PeerCertRetType: ...\n def selected_alpn_protocol(self) -> Optional[str]: ...\n def selected_npn_protocol(self) -> Optional[str]: ...\n def cipher(self) -> Optional[Tuple[str, str, int]]: ...\n def shared_ciphers(self) -> Optional[List[Tuple[str, str, int]]]: ...\n def compression(self) -> Optional[str]: ...\n def pending(self) -> int: ...\n def do_handshake(self) -> None: ...\n def unwrap(self) -> None: ...\n def version(self) -> Optional[str]: ...\n def get_channel_binding(self, cb_type: str = ...) -> Optional[bytes]: ...\n if sys.version_info >= (3, 8):\n def verify_client_post_handshake(self) -> None: ...\n class MemoryBIO:\n pending: int\n eof: bool\n def read(self, __size: int = ...) -> bytes: ...\n def write(self, __buf: bytes) -> int: ...\n def write_eof(self) -> None: ...\n\nif sys.version_info >= (3, 6):\n class SSLSession:\n id: bytes\n time: int\n timeout: int\n ticket_lifetime_hint: int\n has_ticket: bool\n class VerifyFlags(enum.IntFlag):\n VERIFY_DEFAULT: int\n VERIFY_CRL_CHECK_LEAF: int\n VERIFY_CRL_CHECK_CHAIN: int\n VERIFY_X509_STRICT: int\n VERIFY_X509_TRUSTED_FIRST: int\n class VerifyMode(enum.IntEnum):\n CERT_NONE: int\n CERT_OPTIONAL: int\n CERT_REQUIRED: int\n\n# TODO below documented in cpython but not in docs.python.org\n# taken from python 3.4\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\n\ndef get_protocol_name(protocol_code: int) -> str: ...\n\nAF_INET: int\nPEM_FOOTER: str\nPEM_HEADER: str\nSOCK_STREAM: int\nSOL_SOCKET: int\nSO_TYPE: int\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\ssl.pyi
ssl.pyi
Other
14,626
0.95
0.291375
0.010076
python-kit
936
2023-10-13T10:11:36.526950
BSD-3-Clause
false
50b5fb988ed9e6f2471fbff8622fcd34
from typing import Text\n\ndef in_table_a1(code: Text) -> bool: ...\ndef in_table_b1(code: Text) -> bool: ...\ndef map_table_b3(code: Text) -> Text: ...\ndef map_table_b2(a: Text) -> Text: ...\ndef in_table_c11(code: Text) -> bool: ...\ndef in_table_c12(code: Text) -> bool: ...\ndef in_table_c11_c12(code: Text) -> bool: ...\ndef in_table_c21(code: Text) -> bool: ...\ndef in_table_c22(code: Text) -> bool: ...\ndef in_table_c21_c22(code: Text) -> bool: ...\ndef in_table_c3(code: Text) -> bool: ...\ndef in_table_c4(code: Text) -> bool: ...\ndef in_table_c5(code: Text) -> bool: ...\ndef in_table_c6(code: Text) -> bool: ...\ndef in_table_c7(code: Text) -> bool: ...\ndef in_table_c8(code: Text) -> bool: ...\ndef in_table_c9(code: Text) -> bool: ...\ndef in_table_d1(code: Text) -> bool: ...\ndef in_table_d2(code: Text) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\stringprep.pyi
stringprep.pyi
Other
817
0.85
0.904762
0
awesome-app
831
2024-06-16T14:07:09.184959
BSD-3-Clause
false
10c09cef80b64ba278e4a0df3681a69f
import sys\nfrom array import array\nfrom mmap import mmap\nfrom typing import Any, Iterator, Text, Tuple, Union\n\nclass error(Exception): ...\n\n_FmtType = Union[bytes, Text]\nif sys.version_info >= (3,):\n _BufferType = Union[array[int], bytes, bytearray, memoryview, mmap]\n _WriteBufferType = Union[array, bytearray, memoryview, mmap]\nelse:\n _BufferType = Union[array[int], bytes, bytearray, buffer, memoryview, mmap]\n _WriteBufferType = Union[array[Any], bytearray, buffer, memoryview, mmap]\n\ndef pack(fmt: _FmtType, *v: Any) -> bytes: ...\ndef pack_into(fmt: _FmtType, buffer: _WriteBufferType, offset: int, *v: Any) -> None: ...\ndef unpack(__format: _FmtType, __buffer: _BufferType) -> Tuple[Any, ...]: ...\ndef unpack_from(__format: _FmtType, buffer: _BufferType, offset: int = ...) -> Tuple[Any, ...]: ...\n\nif sys.version_info >= (3, 4):\n def iter_unpack(__format: _FmtType, __buffer: _BufferType) -> Iterator[Tuple[Any, ...]]: ...\n\ndef calcsize(__format: _FmtType) -> int: ...\n\nclass Struct:\n if sys.version_info >= (3, 7):\n format: str\n else:\n format: bytes\n size: int\n def __init__(self, format: _FmtType) -> None: ...\n def pack(self, *v: Any) -> bytes: ...\n def pack_into(self, buffer: _WriteBufferType, offset: int, *v: Any) -> None: ...\n def unpack(self, __buffer: _BufferType) -> Tuple[Any, ...]: ...\n def unpack_from(self, buffer: _BufferType, offset: int = ...) -> Tuple[Any, ...]: ...\n if sys.version_info >= (3, 4):\n def iter_unpack(self, __buffer: _BufferType) -> Iterator[Tuple[Any, ...]]: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\struct.pyi
struct.pyi
Other
1,568
0.85
0.473684
0
python-kit
664
2025-01-27T17:38:35.147974
Apache-2.0
false
3c6508515380ac4415c08da489989679
import sys\nfrom typing import IO, Any, NamedTuple, NoReturn, Optional, Text, Tuple, Union\n\n_File = Union[Text, IO[bytes]]\n\nclass Error(Exception): ...\n\nAUDIO_FILE_MAGIC: int\nAUDIO_FILE_ENCODING_MULAW_8: int\nAUDIO_FILE_ENCODING_LINEAR_8: int\nAUDIO_FILE_ENCODING_LINEAR_16: int\nAUDIO_FILE_ENCODING_LINEAR_24: int\nAUDIO_FILE_ENCODING_LINEAR_32: int\nAUDIO_FILE_ENCODING_FLOAT: int\nAUDIO_FILE_ENCODING_DOUBLE: int\nAUDIO_FILE_ENCODING_ADPCM_G721: int\nAUDIO_FILE_ENCODING_ADPCM_G722: int\nAUDIO_FILE_ENCODING_ADPCM_G723_3: int\nAUDIO_FILE_ENCODING_ADPCM_G723_5: int\nAUDIO_FILE_ENCODING_ALAW_8: int\nAUDIO_UNKNOWN_SIZE: int\n\nif sys.version_info < (3, 0):\n _sunau_params = Tuple[int, int, int, int, str, str]\nelse:\n class _sunau_params(NamedTuple):\n nchannels: int\n sampwidth: int\n framerate: int\n nframes: int\n comptype: str\n compname: str\n\nclass Au_read:\n def __init__(self, f: _File) -> None: ...\n if sys.version_info >= (3, 3):\n def __enter__(self) -> Au_read: ...\n def __exit__(self, *args: Any) -> None: ...\n def getfp(self) -> Optional[IO[bytes]]: ...\n def rewind(self) -> None: ...\n def close(self) -> None: ...\n def tell(self) -> int: ...\n def getnchannels(self) -> int: ...\n def getnframes(self) -> int: ...\n def getsampwidth(self) -> int: ...\n def getframerate(self) -> int: ...\n def getcomptype(self) -> str: ...\n def getcompname(self) -> str: ...\n def getparams(self) -> _sunau_params: ...\n def getmarkers(self) -> None: ...\n def getmark(self, id: Any) -> NoReturn: ...\n def setpos(self, pos: int) -> None: ...\n def readframes(self, nframes: int) -> Optional[bytes]: ...\n\nclass Au_write:\n def __init__(self, f: _File) -> None: ...\n if sys.version_info >= (3, 3):\n def __enter__(self) -> Au_write: ...\n def __exit__(self, *args: Any) -> None: ...\n def setnchannels(self, nchannels: int) -> None: ...\n def getnchannels(self) -> int: ...\n def setsampwidth(self, sampwidth: int) -> None: ...\n def getsampwidth(self) -> int: ...\n def setframerate(self, framerate: float) -> None: ...\n def getframerate(self) -> int: ...\n def setnframes(self, nframes: int) -> None: ...\n def getnframes(self) -> int: ...\n def setcomptype(self, comptype: str, compname: str) -> None: ...\n def getcomptype(self) -> str: ...\n def getcompname(self) -> str: ...\n def setparams(self, params: _sunau_params) -> None: ...\n def getparams(self) -> _sunau_params: ...\n def setmark(self, id: Any, pos: Any, name: Any) -> NoReturn: ...\n def getmark(self, id: Any) -> NoReturn: ...\n def getmarkers(self) -> None: ...\n def tell(self) -> int: ...\n # should be any bytes-like object after 3.4, but we don't have a type for that\n def writeframesraw(self, data: bytes) -> None: ...\n def writeframes(self, data: bytes) -> None: ...\n def close(self) -> None: ...\n\n# Returns a Au_read if mode is rb and Au_write if mode is wb\ndef open(f: _File, mode: Optional[str] = ...) -> Any: ...\n\nif sys.version_info < (3, 9):\n openfp = open\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\sunau.pyi
sunau.pyi
Other
3,085
0.95
0.616279
0.025641
node-utils
764
2023-09-13T00:56:03.391288
Apache-2.0
false
491d614dcf1566766f5272aa361f9aaa
import sys\nfrom typing import List, Sequence, Text, Tuple\n\ndef symtable(code: Text, filename: Text, compile_type: Text) -> SymbolTable: ...\n\nclass SymbolTable(object):\n def get_type(self) -> str: ...\n def get_id(self) -> int: ...\n def get_name(self) -> str: ...\n def get_lineno(self) -> int: ...\n def is_optimized(self) -> bool: ...\n def is_nested(self) -> bool: ...\n def has_children(self) -> bool: ...\n def has_exec(self) -> bool: ...\n if sys.version_info < (3, 0):\n def has_import_star(self) -> bool: ...\n def get_identifiers(self) -> Sequence[str]: ...\n def lookup(self, name: str) -> Symbol: ...\n def get_symbols(self) -> List[Symbol]: ...\n def get_children(self) -> List[SymbolTable]: ...\n\nclass Function(SymbolTable):\n def get_parameters(self) -> Tuple[str, ...]: ...\n def get_locals(self) -> Tuple[str, ...]: ...\n def get_globals(self) -> Tuple[str, ...]: ...\n def get_frees(self) -> Tuple[str, ...]: ...\n\nclass Class(SymbolTable):\n def get_methods(self) -> Tuple[str, ...]: ...\n\nclass Symbol(object):\n def get_name(self) -> str: ...\n def is_referenced(self) -> bool: ...\n def is_parameter(self) -> bool: ...\n def is_global(self) -> bool: ...\n def is_declared_global(self) -> bool: ...\n def is_local(self) -> bool: ...\n if sys.version_info >= (3, 6):\n def is_annotated(self) -> bool: ...\n def is_free(self) -> bool: ...\n def is_imported(self) -> bool: ...\n def is_assigned(self) -> bool: ...\n def is_namespace(self) -> bool: ...\n def get_namespaces(self) -> Sequence[SymbolTable]: ...\n def get_namespace(self) -> SymbolTable: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\symtable.pyi
symtable.pyi
Other
1,645
0.85
0.844444
0
awesome-app
239
2025-01-26T00:44:34.723002
GPL-3.0
false
36f132efc3fe3a182159a0e7ec8de9c7
from typing import IO, Any, Dict, List, Optional, Tuple, overload\n\ndef get_config_var(name: str) -> Optional[str]: ...\n@overload\ndef get_config_vars() -> Dict[str, Any]: ...\n@overload\ndef get_config_vars(arg: str, *args: str) -> List[Any]: ...\ndef get_scheme_names() -> Tuple[str, ...]: ...\ndef get_path_names() -> Tuple[str, ...]: ...\ndef get_path(name: str, scheme: str = ..., vars: Optional[Dict[str, Any]] = ..., expand: bool = ...) -> Optional[str]: ...\ndef get_paths(scheme: str = ..., vars: Optional[Dict[str, Any]] = ..., expand: bool = ...) -> Dict[str, str]: ...\ndef get_python_version() -> str: ...\ndef get_platform() -> str: ...\ndef is_python_build() -> bool: ...\ndef parse_config_h(fp: IO[Any], vars: Optional[Dict[str, Any]]) -> Dict[str, Any]: ...\ndef get_config_h_filename() -> str: ...\ndef get_makefile_filename() -> str: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\sysconfig.pyi
sysconfig.pyi
Other
843
0.85
0.764706
0
react-lib
958
2025-05-27T00:07:24.571807
BSD-3-Clause
false
ded426c018a24cdf68993fbbd32c8f17
from typing import overload\n\nLOG_ALERT: int\nLOG_AUTH: int\nLOG_CONS: int\nLOG_CRIT: int\nLOG_CRON: int\nLOG_DAEMON: int\nLOG_DEBUG: int\nLOG_EMERG: int\nLOG_ERR: int\nLOG_INFO: int\nLOG_KERN: int\nLOG_LOCAL0: int\nLOG_LOCAL1: int\nLOG_LOCAL2: int\nLOG_LOCAL3: int\nLOG_LOCAL4: int\nLOG_LOCAL5: int\nLOG_LOCAL6: int\nLOG_LOCAL7: int\nLOG_LPR: int\nLOG_MAIL: int\nLOG_NDELAY: int\nLOG_NEWS: int\nLOG_NOTICE: int\nLOG_NOWAIT: int\nLOG_PERROR: int\nLOG_PID: int\nLOG_SYSLOG: int\nLOG_USER: int\nLOG_UUCP: int\nLOG_WARNING: int\n\ndef LOG_MASK(a: int) -> int: ...\ndef LOG_UPTO(a: int) -> int: ...\ndef closelog() -> None: ...\ndef openlog(ident: str = ..., logoption: int = ..., facility: int = ...) -> None: ...\ndef setlogmask(x: int) -> int: ...\n@overload\ndef syslog(priority: int, message: str) -> None: ...\n@overload\ndef syslog(message: str) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\syslog.pyi
syslog.pyi
Other
821
0.85
0.162791
0
node-utils
496
2024-04-12T00:09:01.038746
BSD-3-Clause
false
734c3796ceaa3e48b42c7b47dc984682
from _typeshed import AnyPath\nfrom typing import Iterable, Tuple\n\nverbose: int\nfilename_only: int\n\nclass NannyNag(Exception):\n def __init__(self, lineno: int, msg: str, line: str) -> None: ...\n def get_lineno(self) -> int: ...\n def get_msg(self) -> str: ...\n def get_line(self) -> str: ...\n\ndef check(file: AnyPath) -> None: ...\ndef process_tokens(tokens: Iterable[Tuple[int, str, Tuple[int, int], Tuple[int, int], str]]) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\tabnanny.pyi
tabnanny.pyi
Other
447
0.85
0.5
0
react-lib
91
2024-05-04T17:30:08.741182
MIT
false
194dedfc02f7021f0c8647f27e875d13
import sys\nfrom _typeshed import AnyPath, StrPath\nfrom types import TracebackType\nfrom typing import IO, Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Set, Tuple, Type, Union\n\n# tar constants\nNUL: bytes\nBLOCKSIZE: int\nRECORDSIZE: int\nGNU_MAGIC: bytes\nPOSIX_MAGIC: bytes\n\nLENGTH_NAME: int\nLENGTH_LINK: int\nLENGTH_PREFIX: int\n\nREGTYPE: bytes\nAREGTYPE: bytes\nLNKTYPE: bytes\nSYMTYPE: bytes\nCONTTYPE: bytes\nBLKTYPE: bytes\nDIRTYPE: bytes\nFIFOTYPE: bytes\nCHRTYPE: bytes\n\nGNUTYPE_LONGNAME: bytes\nGNUTYPE_LONGLINK: bytes\nGNUTYPE_SPARSE: bytes\n\nXHDTYPE: bytes\nXGLTYPE: bytes\nSOLARIS_XHDTYPE: bytes\n\nUSTAR_FORMAT: int\nGNU_FORMAT: int\nPAX_FORMAT: int\nDEFAULT_FORMAT: int\n\n# tarfile constants\n\nSUPPORTED_TYPES: Tuple[bytes, ...]\nREGULAR_TYPES: Tuple[bytes, ...]\nGNU_TYPES: Tuple[bytes, ...]\nPAX_FIELDS: Tuple[str, ...]\nPAX_NUMBER_FIELDS: Dict[str, type]\n\nif sys.version_info >= (3,):\n PAX_NAME_FIELDS: Set[str]\n\nENCODING: str\n\nif sys.version_info < (3,):\n TAR_PLAIN: int\n TAR_GZIPPED: int\n\ndef open(\n name: Optional[AnyPath] = ...,\n mode: str = ...,\n fileobj: Optional[IO[bytes]] = ...,\n bufsize: int = ...,\n *,\n format: Optional[int] = ...,\n tarinfo: Optional[Type[TarInfo]] = ...,\n dereference: Optional[bool] = ...,\n ignore_zeros: Optional[bool] = ...,\n encoding: Optional[str] = ...,\n errors: str = ...,\n pax_headers: Optional[Mapping[str, str]] = ...,\n debug: Optional[int] = ...,\n errorlevel: Optional[int] = ...,\n compresslevel: Optional[int] = ...,\n) -> TarFile: ...\n\nclass TarFile(Iterable[TarInfo]):\n name: Optional[AnyPath]\n mode: str\n fileobj: Optional[IO[bytes]]\n format: Optional[int]\n tarinfo: Type[TarInfo]\n dereference: Optional[bool]\n ignore_zeros: Optional[bool]\n encoding: Optional[str]\n errors: str\n pax_headers: Optional[Mapping[str, str]]\n debug: Optional[int]\n errorlevel: Optional[int]\n if sys.version_info < (3,):\n posix: bool\n def __init__(\n self,\n name: Optional[AnyPath] = ...,\n mode: str = ...,\n fileobj: Optional[IO[bytes]] = ...,\n format: Optional[int] = ...,\n tarinfo: Optional[Type[TarInfo]] = ...,\n dereference: Optional[bool] = ...,\n ignore_zeros: Optional[bool] = ...,\n encoding: Optional[str] = ...,\n errors: str = ...,\n pax_headers: Optional[Mapping[str, str]] = ...,\n debug: Optional[int] = ...,\n errorlevel: Optional[int] = ...,\n copybufsize: Optional[int] = ..., # undocumented\n ) -> None: ...\n def __enter__(self) -> TarFile: ...\n def __exit__(\n self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]\n ) -> None: ...\n def __iter__(self) -> Iterator[TarInfo]: ...\n @classmethod\n def open(\n cls,\n name: Optional[AnyPath] = ...,\n mode: str = ...,\n fileobj: Optional[IO[bytes]] = ...,\n bufsize: int = ...,\n *,\n format: Optional[int] = ...,\n tarinfo: Optional[Type[TarInfo]] = ...,\n dereference: Optional[bool] = ...,\n ignore_zeros: Optional[bool] = ...,\n encoding: Optional[str] = ...,\n errors: str = ...,\n pax_headers: Optional[Mapping[str, str]] = ...,\n debug: Optional[int] = ...,\n errorlevel: Optional[int] = ...,\n ) -> TarFile: ...\n def getmember(self, name: str) -> TarInfo: ...\n def getmembers(self) -> List[TarInfo]: ...\n def getnames(self) -> List[str]: ...\n if sys.version_info >= (3, 5):\n def list(self, verbose: bool = ..., *, members: Optional[List[TarInfo]] = ...) -> None: ...\n else:\n def list(self, verbose: bool = ...) -> None: ...\n def next(self) -> Optional[TarInfo]: ...\n if sys.version_info >= (3, 5):\n def extractall(\n self, path: AnyPath = ..., members: Optional[List[TarInfo]] = ..., *, numeric_owner: bool = ...\n ) -> None: ...\n else:\n def extractall(self, path: AnyPath = ..., members: Optional[List[TarInfo]] = ...) -> None: ...\n if sys.version_info >= (3, 5):\n def extract(\n self, member: Union[str, TarInfo], path: AnyPath = ..., set_attrs: bool = ..., *, numeric_owner: bool = ...\n ) -> None: ...\n else:\n def extract(self, member: Union[str, TarInfo], path: AnyPath = ...) -> None: ...\n def extractfile(self, member: Union[str, TarInfo]) -> Optional[IO[bytes]]: ...\n def makedir(self, tarinfo: TarInfo, targetpath: AnyPath) -> None: ... # undocumented\n def makefile(self, tarinfo: TarInfo, targetpath: AnyPath) -> None: ... # undocumented\n def makeunknown(self, tarinfo: TarInfo, targetpath: AnyPath) -> None: ... # undocumented\n def makefifo(self, tarinfo: TarInfo, targetpath: AnyPath) -> None: ... # undocumented\n def makedev(self, tarinfo: TarInfo, targetpath: AnyPath) -> None: ... # undocumented\n def makelink(self, tarinfo: TarInfo, targetpath: AnyPath) -> None: ... # undocumented\n if sys.version_info >= (3, 5):\n def chown(self, tarinfo: TarInfo, targetpath: AnyPath, numeric_owner: bool) -> None: ... # undocumented\n else:\n def chown(self, tarinfo: TarInfo, targetpath: AnyPath) -> None: ... # undocumented\n def chmod(self, tarinfo: TarInfo, targetpath: AnyPath) -> None: ... # undocumented\n def utime(self, tarinfo: TarInfo, targetpath: AnyPath) -> None: ... # undocumented\n if sys.version_info >= (3, 7):\n def add(\n self,\n name: StrPath,\n arcname: Optional[StrPath] = ...,\n recursive: bool = ...,\n *,\n filter: Optional[Callable[[TarInfo], Optional[TarInfo]]] = ...,\n ) -> None: ...\n elif sys.version_info >= (3,):\n def add(\n self,\n name: StrPath,\n arcname: Optional[StrPath] = ...,\n recursive: bool = ...,\n exclude: Optional[Callable[[str], bool]] = ...,\n *,\n filter: Optional[Callable[[TarInfo], Optional[TarInfo]]] = ...,\n ) -> None: ...\n else:\n def add(\n self,\n name: str,\n arcname: Optional[str] = ...,\n recursive: bool = ...,\n exclude: Optional[Callable[[str], bool]] = ...,\n filter: Optional[Callable[[TarInfo], Optional[TarInfo]]] = ...,\n ) -> None: ...\n def addfile(self, tarinfo: TarInfo, fileobj: Optional[IO[bytes]] = ...) -> None: ...\n def gettarinfo(\n self, name: Optional[str] = ..., arcname: Optional[str] = ..., fileobj: Optional[IO[bytes]] = ...\n ) -> TarInfo: ...\n def close(self) -> None: ...\n\nif sys.version_info >= (3, 9):\n def is_tarfile(name: Union[AnyPath, IO[bytes]]) -> bool: ...\n\nelse:\n def is_tarfile(name: AnyPath) -> bool: ...\n\nif sys.version_info < (3, 8):\n def filemode(mode: int) -> str: ... # undocumented\n\nif sys.version_info < (3,):\n class TarFileCompat:\n def __init__(self, filename: str, mode: str = ..., compression: int = ...) -> None: ...\n\nclass TarError(Exception): ...\nclass ReadError(TarError): ...\nclass CompressionError(TarError): ...\nclass StreamError(TarError): ...\nclass ExtractError(TarError): ...\nclass HeaderError(TarError): ...\n\nclass TarInfo:\n name: str\n size: int\n mtime: int\n mode: int\n type: bytes\n linkname: str\n uid: int\n gid: int\n uname: str\n gname: str\n pax_headers: Mapping[str, str]\n def __init__(self, name: str = ...) -> None: ...\n if sys.version_info >= (3,):\n @classmethod\n def frombuf(cls, buf: bytes, encoding: str, errors: str) -> TarInfo: ...\n else:\n @classmethod\n def frombuf(cls, buf: bytes) -> TarInfo: ...\n @classmethod\n def fromtarfile(cls, tarfile: TarFile) -> TarInfo: ...\n def tobuf(self, format: Optional[int] = ..., encoding: Optional[str] = ..., errors: str = ...) -> bytes: ...\n def isfile(self) -> bool: ...\n def isreg(self) -> bool: ...\n def isdir(self) -> bool: ...\n def issym(self) -> bool: ...\n def islnk(self) -> bool: ...\n def ischr(self) -> bool: ...\n def isblk(self) -> bool: ...\n def isfifo(self) -> bool: ...\n def isdev(self) -> bool: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\tarfile.pyi
tarfile.pyi
Other
8,182
0.95
0.292683
0.026432
awesome-app
392
2024-03-16T23:30:54.074447
MIT
false
7c676dac4c0f07e48d9743c6323d2332
import socket\nimport sys\nfrom typing import Any, Callable, Match, Optional, Pattern, Sequence, Tuple, Union\n\nDEBUGLEVEL: int\nTELNET_PORT: int\n\nIAC: bytes\nDONT: bytes\nDO: bytes\nWONT: bytes\nWILL: bytes\ntheNULL: bytes\n\nSE: bytes\nNOP: bytes\nDM: bytes\nBRK: bytes\nIP: bytes\nAO: bytes\nAYT: bytes\nEC: bytes\nEL: bytes\nGA: bytes\nSB: bytes\n\nBINARY: bytes\nECHO: bytes\nRCP: bytes\nSGA: bytes\nNAMS: bytes\nSTATUS: bytes\nTM: bytes\nRCTE: bytes\nNAOL: bytes\nNAOP: bytes\nNAOCRD: bytes\nNAOHTS: bytes\nNAOHTD: bytes\nNAOFFD: bytes\nNAOVTS: bytes\nNAOVTD: bytes\nNAOLFD: bytes\nXASCII: bytes\nLOGOUT: bytes\nBM: bytes\nDET: bytes\nSUPDUP: bytes\nSUPDUPOUTPUT: bytes\nSNDLOC: bytes\nTTYPE: bytes\nEOR: bytes\nTUID: bytes\nOUTMRK: bytes\nTTYLOC: bytes\nVT3270REGIME: bytes\nX3PAD: bytes\nNAWS: bytes\nTSPEED: bytes\nLFLOW: bytes\nLINEMODE: bytes\nXDISPLOC: bytes\nOLD_ENVIRON: bytes\nAUTHENTICATION: bytes\nENCRYPT: bytes\nNEW_ENVIRON: bytes\n\nTN3270E: bytes\nXAUTH: bytes\nCHARSET: bytes\nRSP: bytes\nCOM_PORT_OPTION: bytes\nSUPPRESS_LOCAL_ECHO: bytes\nTLS: bytes\nKERMIT: bytes\nSEND_URL: bytes\nFORWARD_X: bytes\nPRAGMA_LOGON: bytes\nSSPI_LOGON: bytes\nPRAGMA_HEARTBEAT: bytes\nEXOPL: bytes\nNOOPT: bytes\n\nclass Telnet:\n def __init__(self, host: Optional[str] = ..., port: int = ..., timeout: int = ...) -> None: ...\n def open(self, host: str, port: int = ..., timeout: int = ...) -> None: ...\n def msg(self, msg: str, *args: Any) -> None: ...\n def set_debuglevel(self, debuglevel: int) -> None: ...\n def close(self) -> None: ...\n def get_socket(self) -> socket.socket: ...\n def fileno(self) -> int: ...\n def write(self, buffer: bytes) -> None: ...\n def read_until(self, match: bytes, timeout: Optional[int] = ...) -> bytes: ...\n def read_all(self) -> bytes: ...\n def read_some(self) -> bytes: ...\n def read_very_eager(self) -> bytes: ...\n def read_eager(self) -> bytes: ...\n def read_lazy(self) -> bytes: ...\n def read_very_lazy(self) -> bytes: ...\n def read_sb_data(self) -> bytes: ...\n def set_option_negotiation_callback(self, callback: Optional[Callable[[socket.socket, bytes, bytes], Any]]) -> None: ...\n def process_rawq(self) -> None: ...\n def rawq_getchar(self) -> bytes: ...\n def fill_rawq(self) -> None: ...\n def sock_avail(self) -> bool: ...\n def interact(self) -> None: ...\n def mt_interact(self) -> None: ...\n def listener(self) -> None: ...\n def expect(\n self, list: Sequence[Union[Pattern[bytes], bytes]], timeout: Optional[int] = ...\n ) -> Tuple[int, Optional[Match[bytes]], bytes]: ...\n if sys.version_info >= (3, 6):\n def __enter__(self) -> Telnet: ...\n def __exit__(self, type: Any, value: Any, traceback: Any) -> None: ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\telnetlib.pyi
telnetlib.pyi
Other
2,680
0.85
0.254386
0
node-utils
656
2024-05-05T21:52:59.624948
GPL-3.0
false
80b41633a998f1d1ae53698a762991b9
from _typeshed import FileDescriptorLike\nfrom typing import Any, List, Union\n\n_Attr = List[Union[int, List[Union[bytes, int]]]]\n\n# TODO constants not really documented\nB0: int\nB1000000: int\nB110: int\nB115200: int\nB1152000: int\nB1200: int\nB134: int\nB150: int\nB1500000: int\nB1800: int\nB19200: int\nB200: int\nB2000000: int\nB230400: int\nB2400: int\nB2500000: int\nB300: int\nB3000000: int\nB3500000: int\nB38400: int\nB4000000: int\nB460800: int\nB4800: int\nB50: int\nB500000: int\nB57600: int\nB576000: int\nB600: int\nB75: int\nB921600: int\nB9600: int\nBRKINT: int\nBS0: int\nBS1: int\nBSDLY: int\nCBAUD: int\nCBAUDEX: int\nCDSUSP: int\nCEOF: int\nCEOL: int\nCEOT: int\nCERASE: int\nCFLUSH: int\nCIBAUD: int\nCINTR: int\nCKILL: int\nCLNEXT: int\nCLOCAL: int\nCQUIT: int\nCR0: int\nCR1: int\nCR2: int\nCR3: int\nCRDLY: int\nCREAD: int\nCRPRNT: int\nCRTSCTS: int\nCS5: int\nCS6: int\nCS7: int\nCS8: int\nCSIZE: int\nCSTART: int\nCSTOP: int\nCSTOPB: int\nCSUSP: int\nCWERASE: int\nECHO: int\nECHOCTL: int\nECHOE: int\nECHOK: int\nECHOKE: int\nECHONL: int\nECHOPRT: int\nEXTA: int\nEXTB: int\nFF0: int\nFF1: int\nFFDLY: int\nFIOASYNC: int\nFIOCLEX: int\nFIONBIO: int\nFIONCLEX: int\nFIONREAD: int\nFLUSHO: int\nHUPCL: int\nICANON: int\nICRNL: int\nIEXTEN: int\nIGNBRK: int\nIGNCR: int\nIGNPAR: int\nIMAXBEL: int\nINLCR: int\nINPCK: int\nIOCSIZE_MASK: int\nIOCSIZE_SHIFT: int\nISIG: int\nISTRIP: int\nIUCLC: int\nIXANY: int\nIXOFF: int\nIXON: int\nNCC: int\nNCCS: int\nNL0: int\nNL1: int\nNLDLY: int\nNOFLSH: int\nN_MOUSE: int\nN_PPP: int\nN_SLIP: int\nN_STRIP: int\nN_TTY: int\nOCRNL: int\nOFDEL: int\nOFILL: int\nOLCUC: int\nONLCR: int\nONLRET: int\nONOCR: int\nOPOST: int\nPARENB: int\nPARMRK: int\nPARODD: int\nPENDIN: int\nTAB0: int\nTAB1: int\nTAB2: int\nTAB3: int\nTABDLY: int\nTCFLSH: int\nTCGETA: int\nTCGETS: int\nTCIFLUSH: int\nTCIOFF: int\nTCIOFLUSH: int\nTCION: int\nTCOFLUSH: int\nTCOOFF: int\nTCOON: int\nTCSADRAIN: int\nTCSAFLUSH: int\nTCSANOW: int\nTCSBRK: int\nTCSBRKP: int\nTCSETA: int\nTCSETAF: int\nTCSETAW: int\nTCSETS: int\nTCSETSF: int\nTCSETSW: int\nTCXONC: int\nTIOCCONS: int\nTIOCEXCL: int\nTIOCGETD: int\nTIOCGICOUNT: int\nTIOCGLCKTRMIOS: int\nTIOCGPGRP: int\nTIOCGSERIAL: int\nTIOCGSOFTCAR: int\nTIOCGWINSZ: int\nTIOCINQ: int\nTIOCLINUX: int\nTIOCMBIC: int\nTIOCMBIS: int\nTIOCMGET: int\nTIOCMIWAIT: int\nTIOCMSET: int\nTIOCM_CAR: int\nTIOCM_CD: int\nTIOCM_CTS: int\nTIOCM_DSR: int\nTIOCM_DTR: int\nTIOCM_LE: int\nTIOCM_RI: int\nTIOCM_RNG: int\nTIOCM_RTS: int\nTIOCM_SR: int\nTIOCM_ST: int\nTIOCNOTTY: int\nTIOCNXCL: int\nTIOCOUTQ: int\nTIOCPKT: int\nTIOCPKT_DATA: int\nTIOCPKT_DOSTOP: int\nTIOCPKT_FLUSHREAD: int\nTIOCPKT_FLUSHWRITE: int\nTIOCPKT_NOSTOP: int\nTIOCPKT_START: int\nTIOCPKT_STOP: int\nTIOCSCTTY: int\nTIOCSERCONFIG: int\nTIOCSERGETLSR: int\nTIOCSERGETMULTI: int\nTIOCSERGSTRUCT: int\nTIOCSERGWILD: int\nTIOCSERSETMULTI: int\nTIOCSERSWILD: int\nTIOCSER_TEMT: int\nTIOCSETD: int\nTIOCSLCKTRMIOS: int\nTIOCSPGRP: int\nTIOCSSERIAL: int\nTIOCSSOFTCAR: int\nTIOCSTI: int\nTIOCSWINSZ: int\nTOSTOP: int\nVDISCARD: int\nVEOF: int\nVEOL: int\nVEOL2: int\nVERASE: int\nVINTR: int\nVKILL: int\nVLNEXT: int\nVMIN: int\nVQUIT: int\nVREPRINT: int\nVSTART: int\nVSTOP: int\nVSUSP: int\nVSWTC: int\nVSWTCH: int\nVT0: int\nVT1: int\nVTDLY: int\nVTIME: int\nVWERASE: int\nXCASE: int\nXTABS: int\n\ndef tcgetattr(fd: FileDescriptorLike) -> List[Any]: ...\ndef tcsetattr(fd: FileDescriptorLike, when: int, attributes: _Attr) -> None: ...\ndef tcsendbreak(fd: FileDescriptorLike, duration: int) -> None: ...\ndef tcdrain(fd: FileDescriptorLike) -> None: ...\ndef tcflush(fd: FileDescriptorLike, queue: int) -> None: ...\ndef tcflow(fd: FileDescriptorLike, action: int) -> None: ...\n\nclass error(Exception): ...\n
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2and3\termios.pyi
termios.pyi
Other
3,504
0.95
0.028455
0.004132
react-lib
653
2023-10-17T09:10:44.262683
MIT
false
e8a0bf900fa545c20dd9d8c31f6af0a8