Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/converters.pyi +11 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/exceptions.pyi +15 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/__init__.pyi +84 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/_termui_impl.pyi +14 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/core.pyi +285 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/decorators.pyi +293 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/exceptions.pyi +60 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/formatting.pyi +34 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/globals.pyi +8 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/parser.pyi +65 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/termui.pyi +103 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/testing.pyi +67 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/types.pyi +125 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/utils.pyi +43 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/__init__.pyi +0 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/exceptions.pyi +7 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/fernet.pyi +25 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/__init__.pyi +3 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/backends/__init__.pyi +6 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/backends/interfaces.pyi +196 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/openssl/__init__.pyi +0 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/openssl/binding.pyi +6 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/__init__.pyi +420 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/extensions.pyi +22 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/oid.pyi +106 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/deprecated/__init__.pyi +1 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/deprecated/classic.pyi +21 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/deprecated/sphinx.pyi +31 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/compiler/__init__.pyi +0 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/compiler/plugin_pb2.pyi +136 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/message_listener.pyi +5 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/__init__.pyi +151 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/_compat.pyi +53 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/_internal.pyi +26 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/_reloader.pyi +29 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/__init__.pyi +0 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/atom.pyi +50 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/cache.pyi +92 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/fixers.pyi +35 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/iterio.pyi +39 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/jsrouting.pyi +10 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/limiter.pyi +7 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/lint.pyi +1 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/profiler.pyi +9 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/securecookie.pyi +39 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/sessions.pyi +77 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/testtools.pyi +8 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/datastructures.pyi +458 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/debug/__init__.pyi +51 -0
- mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/debug/console.pyi +44 -0
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/converters.pyi
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Callable, Optional, TypeVar, overload
|
| 2 |
+
|
| 3 |
+
from . import _ConverterType
|
| 4 |
+
|
| 5 |
+
_T = TypeVar("_T")
|
| 6 |
+
|
| 7 |
+
def optional(converter: _ConverterType[_T]) -> _ConverterType[Optional[_T]]: ...
|
| 8 |
+
@overload
|
| 9 |
+
def default_if_none(default: _T) -> _ConverterType[_T]: ...
|
| 10 |
+
@overload
|
| 11 |
+
def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/attr/exceptions.pyi
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
class FrozenInstanceError(AttributeError):
|
| 4 |
+
msg: str = ...
|
| 5 |
+
|
| 6 |
+
class AttrsAttributeNotFoundError(ValueError): ...
|
| 7 |
+
class NotAnAttrsClassError(ValueError): ...
|
| 8 |
+
class DefaultAlreadySetError(RuntimeError): ...
|
| 9 |
+
class UnannotatedAttributeError(RuntimeError): ...
|
| 10 |
+
class PythonTooOldError(RuntimeError): ...
|
| 11 |
+
|
| 12 |
+
class NotCallableError(TypeError):
|
| 13 |
+
msg: str = ...
|
| 14 |
+
value: Any = ...
|
| 15 |
+
def __init__(self, msg: str, value: Any) -> None: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/__init__.pyi
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .core import (
|
| 2 |
+
Argument as Argument,
|
| 3 |
+
BaseCommand as BaseCommand,
|
| 4 |
+
Command as Command,
|
| 5 |
+
CommandCollection as CommandCollection,
|
| 6 |
+
Context as Context,
|
| 7 |
+
Group as Group,
|
| 8 |
+
MultiCommand as MultiCommand,
|
| 9 |
+
Option as Option,
|
| 10 |
+
Parameter as Parameter,
|
| 11 |
+
)
|
| 12 |
+
from .decorators import (
|
| 13 |
+
argument as argument,
|
| 14 |
+
command as command,
|
| 15 |
+
confirmation_option as confirmation_option,
|
| 16 |
+
group as group,
|
| 17 |
+
help_option as help_option,
|
| 18 |
+
make_pass_decorator as make_pass_decorator,
|
| 19 |
+
option as option,
|
| 20 |
+
pass_context as pass_context,
|
| 21 |
+
pass_obj as pass_obj,
|
| 22 |
+
password_option as password_option,
|
| 23 |
+
version_option as version_option,
|
| 24 |
+
)
|
| 25 |
+
from .exceptions import (
|
| 26 |
+
Abort as Abort,
|
| 27 |
+
BadArgumentUsage as BadArgumentUsage,
|
| 28 |
+
BadOptionUsage as BadOptionUsage,
|
| 29 |
+
BadParameter as BadParameter,
|
| 30 |
+
ClickException as ClickException,
|
| 31 |
+
FileError as FileError,
|
| 32 |
+
MissingParameter as MissingParameter,
|
| 33 |
+
NoSuchOption as NoSuchOption,
|
| 34 |
+
UsageError as UsageError,
|
| 35 |
+
)
|
| 36 |
+
from .formatting import HelpFormatter as HelpFormatter, wrap_text as wrap_text
|
| 37 |
+
from .globals import get_current_context as get_current_context
|
| 38 |
+
from .parser import OptionParser as OptionParser
|
| 39 |
+
from .termui import (
|
| 40 |
+
clear as clear,
|
| 41 |
+
confirm as confirm,
|
| 42 |
+
echo_via_pager as echo_via_pager,
|
| 43 |
+
edit as edit,
|
| 44 |
+
get_terminal_size as get_terminal_size,
|
| 45 |
+
getchar as getchar,
|
| 46 |
+
launch as launch,
|
| 47 |
+
pause as pause,
|
| 48 |
+
progressbar as progressbar,
|
| 49 |
+
prompt as prompt,
|
| 50 |
+
secho as secho,
|
| 51 |
+
style as style,
|
| 52 |
+
unstyle as unstyle,
|
| 53 |
+
)
|
| 54 |
+
from .types import (
|
| 55 |
+
BOOL as BOOL,
|
| 56 |
+
FLOAT as FLOAT,
|
| 57 |
+
INT as INT,
|
| 58 |
+
STRING as STRING,
|
| 59 |
+
UNPROCESSED as UNPROCESSED,
|
| 60 |
+
UUID as UUID,
|
| 61 |
+
Choice as Choice,
|
| 62 |
+
DateTime as DateTime,
|
| 63 |
+
File as File,
|
| 64 |
+
FloatRange as FloatRange,
|
| 65 |
+
IntRange as IntRange,
|
| 66 |
+
ParamType as ParamType,
|
| 67 |
+
Path as Path,
|
| 68 |
+
Tuple as Tuple,
|
| 69 |
+
)
|
| 70 |
+
from .utils import (
|
| 71 |
+
echo as echo,
|
| 72 |
+
format_filename as format_filename,
|
| 73 |
+
get_app_dir as get_app_dir,
|
| 74 |
+
get_binary_stream as get_binary_stream,
|
| 75 |
+
get_os_args as get_os_args,
|
| 76 |
+
get_text_stream as get_text_stream,
|
| 77 |
+
open_file as open_file,
|
| 78 |
+
)
|
| 79 |
+
|
| 80 |
+
# Controls if click should emit the warning about the use of unicode
|
| 81 |
+
# literals.
|
| 82 |
+
disable_unicode_literals_warning: bool
|
| 83 |
+
|
| 84 |
+
__version__: str
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/_termui_impl.pyi
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Generic, Optional, TypeVar
|
| 2 |
+
|
| 3 |
+
_T = TypeVar("_T")
|
| 4 |
+
|
| 5 |
+
class ProgressBar(Generic[_T]):
|
| 6 |
+
def update(self, n_steps: int) -> None: ...
|
| 7 |
+
def finish(self) -> None: ...
|
| 8 |
+
def __enter__(self) -> ProgressBar[_T]: ...
|
| 9 |
+
def __exit__(self, exc_type, exc_value, tb) -> None: ...
|
| 10 |
+
def __iter__(self) -> ProgressBar[_T]: ...
|
| 11 |
+
def next(self) -> _T: ...
|
| 12 |
+
def __next__(self) -> _T: ...
|
| 13 |
+
length: Optional[int]
|
| 14 |
+
label: str
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/core.pyi
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import (
|
| 2 |
+
Any,
|
| 3 |
+
Callable,
|
| 4 |
+
ContextManager,
|
| 5 |
+
Dict,
|
| 6 |
+
Iterable,
|
| 7 |
+
List,
|
| 8 |
+
Mapping,
|
| 9 |
+
NoReturn,
|
| 10 |
+
Optional,
|
| 11 |
+
Sequence,
|
| 12 |
+
Set,
|
| 13 |
+
Tuple,
|
| 14 |
+
TypeVar,
|
| 15 |
+
Union,
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
from click.formatting import HelpFormatter
|
| 19 |
+
from click.parser import OptionParser
|
| 20 |
+
|
| 21 |
+
_CC = TypeVar("_CC", bound=Callable[[], Any])
|
| 22 |
+
|
| 23 |
+
def invoke_param_callback(
|
| 24 |
+
callback: Callable[[Context, Parameter, Optional[str]], Any], ctx: Context, param: Parameter, value: Optional[str]
|
| 25 |
+
) -> Any: ...
|
| 26 |
+
def augment_usage_errors(ctx: Context, param: Optional[Parameter] = ...) -> ContextManager[None]: ...
|
| 27 |
+
def iter_params_for_processing(
|
| 28 |
+
invocation_order: Sequence[Parameter], declaration_order: Iterable[Parameter]
|
| 29 |
+
) -> Iterable[Parameter]: ...
|
| 30 |
+
|
| 31 |
+
class Context:
|
| 32 |
+
parent: Optional[Context]
|
| 33 |
+
command: Command
|
| 34 |
+
info_name: Optional[str]
|
| 35 |
+
params: Dict[Any, Any]
|
| 36 |
+
args: List[str]
|
| 37 |
+
protected_args: List[str]
|
| 38 |
+
obj: Any
|
| 39 |
+
default_map: Optional[Mapping[str, Any]]
|
| 40 |
+
invoked_subcommand: Optional[str]
|
| 41 |
+
terminal_width: Optional[int]
|
| 42 |
+
max_content_width: Optional[int]
|
| 43 |
+
allow_extra_args: bool
|
| 44 |
+
allow_interspersed_args: bool
|
| 45 |
+
ignore_unknown_options: bool
|
| 46 |
+
help_option_names: List[str]
|
| 47 |
+
token_normalize_func: Optional[Callable[[str], str]]
|
| 48 |
+
resilient_parsing: bool
|
| 49 |
+
auto_envvar_prefix: Optional[str]
|
| 50 |
+
color: Optional[bool]
|
| 51 |
+
_meta: Dict[str, Any]
|
| 52 |
+
_close_callbacks: List[Any]
|
| 53 |
+
_depth: int
|
| 54 |
+
def __init__(
|
| 55 |
+
self,
|
| 56 |
+
command: Command,
|
| 57 |
+
parent: Optional[Context] = ...,
|
| 58 |
+
info_name: Optional[str] = ...,
|
| 59 |
+
obj: Optional[Any] = ...,
|
| 60 |
+
auto_envvar_prefix: Optional[str] = ...,
|
| 61 |
+
default_map: Optional[Mapping[str, Any]] = ...,
|
| 62 |
+
terminal_width: Optional[int] = ...,
|
| 63 |
+
max_content_width: Optional[int] = ...,
|
| 64 |
+
resilient_parsing: bool = ...,
|
| 65 |
+
allow_extra_args: Optional[bool] = ...,
|
| 66 |
+
allow_interspersed_args: Optional[bool] = ...,
|
| 67 |
+
ignore_unknown_options: Optional[bool] = ...,
|
| 68 |
+
help_option_names: Optional[List[str]] = ...,
|
| 69 |
+
token_normalize_func: Optional[Callable[[str], str]] = ...,
|
| 70 |
+
color: Optional[bool] = ...,
|
| 71 |
+
) -> None: ...
|
| 72 |
+
@property
|
| 73 |
+
def meta(self) -> Dict[str, Any]: ...
|
| 74 |
+
@property
|
| 75 |
+
def command_path(self) -> str: ...
|
| 76 |
+
def scope(self, cleanup: bool = ...) -> ContextManager[Context]: ...
|
| 77 |
+
def make_formatter(self) -> HelpFormatter: ...
|
| 78 |
+
def call_on_close(self, f: _CC) -> _CC: ...
|
| 79 |
+
def close(self) -> None: ...
|
| 80 |
+
def find_root(self) -> Context: ...
|
| 81 |
+
def find_object(self, object_type: type) -> Any: ...
|
| 82 |
+
def ensure_object(self, object_type: type) -> Any: ...
|
| 83 |
+
def lookup_default(self, name: str) -> Any: ...
|
| 84 |
+
def fail(self, message: str) -> NoReturn: ...
|
| 85 |
+
def abort(self) -> NoReturn: ...
|
| 86 |
+
def exit(self, code: Union[int, str] = ...) -> NoReturn: ...
|
| 87 |
+
def get_usage(self) -> str: ...
|
| 88 |
+
def get_help(self) -> str: ...
|
| 89 |
+
def invoke(self, callback: Union[Command, Callable[..., Any]], *args, **kwargs) -> Any: ...
|
| 90 |
+
def forward(self, callback: Union[Command, Callable[..., Any]], *args, **kwargs) -> Any: ...
|
| 91 |
+
|
| 92 |
+
class BaseCommand:
|
| 93 |
+
allow_extra_args: bool
|
| 94 |
+
allow_interspersed_args: bool
|
| 95 |
+
ignore_unknown_options: bool
|
| 96 |
+
name: str
|
| 97 |
+
context_settings: Dict[Any, Any]
|
| 98 |
+
def __init__(self, name: str, context_settings: Optional[Dict[Any, Any]] = ...) -> None: ...
|
| 99 |
+
def get_usage(self, ctx: Context) -> str: ...
|
| 100 |
+
def get_help(self, ctx: Context) -> str: ...
|
| 101 |
+
def make_context(self, info_name: str, args: List[str], parent: Optional[Context] = ..., **extra) -> Context: ...
|
| 102 |
+
def parse_args(self, ctx: Context, args: List[str]) -> List[str]: ...
|
| 103 |
+
def invoke(self, ctx: Context) -> Any: ...
|
| 104 |
+
def main(
|
| 105 |
+
self,
|
| 106 |
+
args: Optional[List[str]] = ...,
|
| 107 |
+
prog_name: Optional[str] = ...,
|
| 108 |
+
complete_var: Optional[str] = ...,
|
| 109 |
+
standalone_mode: bool = ...,
|
| 110 |
+
**extra,
|
| 111 |
+
) -> Any: ...
|
| 112 |
+
def __call__(self, *args, **kwargs) -> Any: ...
|
| 113 |
+
|
| 114 |
+
class Command(BaseCommand):
|
| 115 |
+
callback: Optional[Callable[..., Any]]
|
| 116 |
+
params: List[Parameter]
|
| 117 |
+
help: Optional[str]
|
| 118 |
+
epilog: Optional[str]
|
| 119 |
+
short_help: Optional[str]
|
| 120 |
+
options_metavar: str
|
| 121 |
+
add_help_option: bool
|
| 122 |
+
hidden: bool
|
| 123 |
+
deprecated: bool
|
| 124 |
+
def __init__(
|
| 125 |
+
self,
|
| 126 |
+
name: str,
|
| 127 |
+
context_settings: Optional[Dict[Any, Any]] = ...,
|
| 128 |
+
callback: Optional[Callable[..., Any]] = ...,
|
| 129 |
+
params: Optional[List[Parameter]] = ...,
|
| 130 |
+
help: Optional[str] = ...,
|
| 131 |
+
epilog: Optional[str] = ...,
|
| 132 |
+
short_help: Optional[str] = ...,
|
| 133 |
+
options_metavar: str = ...,
|
| 134 |
+
add_help_option: bool = ...,
|
| 135 |
+
hidden: bool = ...,
|
| 136 |
+
deprecated: bool = ...,
|
| 137 |
+
) -> None: ...
|
| 138 |
+
def get_params(self, ctx: Context) -> List[Parameter]: ...
|
| 139 |
+
def format_usage(self, ctx: Context, formatter: HelpFormatter) -> None: ...
|
| 140 |
+
def collect_usage_pieces(self, ctx: Context) -> List[str]: ...
|
| 141 |
+
def get_help_option_names(self, ctx: Context) -> Set[str]: ...
|
| 142 |
+
def get_help_option(self, ctx: Context) -> Optional[Option]: ...
|
| 143 |
+
def make_parser(self, ctx: Context) -> OptionParser: ...
|
| 144 |
+
def get_short_help_str(self, limit: int = ...) -> str: ...
|
| 145 |
+
def format_help(self, ctx: Context, formatter: HelpFormatter) -> None: ...
|
| 146 |
+
def format_help_text(self, ctx: Context, formatter: HelpFormatter) -> None: ...
|
| 147 |
+
def format_options(self, ctx: Context, formatter: HelpFormatter) -> None: ...
|
| 148 |
+
def format_epilog(self, ctx: Context, formatter: HelpFormatter) -> None: ...
|
| 149 |
+
|
| 150 |
+
_T = TypeVar("_T")
|
| 151 |
+
_F = TypeVar("_F", bound=Callable[..., Any])
|
| 152 |
+
|
| 153 |
+
class MultiCommand(Command):
|
| 154 |
+
no_args_is_help: bool
|
| 155 |
+
invoke_without_command: bool
|
| 156 |
+
subcommand_metavar: str
|
| 157 |
+
chain: bool
|
| 158 |
+
result_callback: Callable[..., Any]
|
| 159 |
+
def __init__(
|
| 160 |
+
self,
|
| 161 |
+
name: Optional[str] = ...,
|
| 162 |
+
invoke_without_command: bool = ...,
|
| 163 |
+
no_args_is_help: Optional[bool] = ...,
|
| 164 |
+
subcommand_metavar: Optional[str] = ...,
|
| 165 |
+
chain: bool = ...,
|
| 166 |
+
result_callback: Optional[Callable[..., Any]] = ...,
|
| 167 |
+
**attrs,
|
| 168 |
+
) -> None: ...
|
| 169 |
+
def resultcallback(self, replace: bool = ...) -> Callable[[_F], _F]: ...
|
| 170 |
+
def format_commands(self, ctx: Context, formatter: HelpFormatter) -> None: ...
|
| 171 |
+
def resolve_command(self, ctx: Context, args: List[str]) -> Tuple[str, Command, List[str]]: ...
|
| 172 |
+
def get_command(self, ctx: Context, cmd_name: str) -> Optional[Command]: ...
|
| 173 |
+
def list_commands(self, ctx: Context) -> Iterable[str]: ...
|
| 174 |
+
|
| 175 |
+
class Group(MultiCommand):
|
| 176 |
+
commands: Dict[str, Command]
|
| 177 |
+
def __init__(self, name: Optional[str] = ..., commands: Optional[Dict[str, Command]] = ..., **attrs) -> None: ...
|
| 178 |
+
def add_command(self, cmd: Command, name: Optional[str] = ...): ...
|
| 179 |
+
def command(self, *args, **kwargs) -> Callable[[Callable[..., Any]], Command]: ...
|
| 180 |
+
def group(self, *args, **kwargs) -> Callable[[Callable[..., Any]], Group]: ...
|
| 181 |
+
|
| 182 |
+
class CommandCollection(MultiCommand):
|
| 183 |
+
sources: List[MultiCommand]
|
| 184 |
+
def __init__(self, name: Optional[str] = ..., sources: Optional[List[MultiCommand]] = ..., **attrs) -> None: ...
|
| 185 |
+
def add_source(self, multi_cmd: MultiCommand) -> None: ...
|
| 186 |
+
|
| 187 |
+
class _ParamType:
|
| 188 |
+
name: str
|
| 189 |
+
is_composite: bool
|
| 190 |
+
envvar_list_splitter: Optional[str]
|
| 191 |
+
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> Any: ...
|
| 192 |
+
def get_metavar(self, param: Parameter) -> str: ...
|
| 193 |
+
def get_missing_message(self, param: Parameter) -> str: ...
|
| 194 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> Any: ...
|
| 195 |
+
def split_envvar_value(self, rv: str) -> List[str]: ...
|
| 196 |
+
def fail(self, message: str, param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> NoReturn: ...
|
| 197 |
+
|
| 198 |
+
# This type is here to resolve https://github.com/python/mypy/issues/5275
|
| 199 |
+
_ConvertibleType = Union[
|
| 200 |
+
type, _ParamType, Tuple[Union[type, _ParamType], ...], Callable[[str], Any], Callable[[Optional[str]], Any]
|
| 201 |
+
]
|
| 202 |
+
|
| 203 |
+
class Parameter:
|
| 204 |
+
param_type_name: str
|
| 205 |
+
name: str
|
| 206 |
+
opts: List[str]
|
| 207 |
+
secondary_opts: List[str]
|
| 208 |
+
type: _ParamType
|
| 209 |
+
required: bool
|
| 210 |
+
callback: Optional[Callable[[Context, Parameter, str], Any]]
|
| 211 |
+
nargs: int
|
| 212 |
+
multiple: bool
|
| 213 |
+
expose_value: bool
|
| 214 |
+
default: Any
|
| 215 |
+
is_eager: bool
|
| 216 |
+
metavar: Optional[str]
|
| 217 |
+
envvar: Union[str, List[str], None]
|
| 218 |
+
def __init__(
|
| 219 |
+
self,
|
| 220 |
+
param_decls: Optional[List[str]] = ...,
|
| 221 |
+
type: Optional[_ConvertibleType] = ...,
|
| 222 |
+
required: bool = ...,
|
| 223 |
+
default: Optional[Any] = ...,
|
| 224 |
+
callback: Optional[Callable[[Context, Parameter, str], Any]] = ...,
|
| 225 |
+
nargs: Optional[int] = ...,
|
| 226 |
+
metavar: Optional[str] = ...,
|
| 227 |
+
expose_value: bool = ...,
|
| 228 |
+
is_eager: bool = ...,
|
| 229 |
+
envvar: Optional[Union[str, List[str]]] = ...,
|
| 230 |
+
) -> None: ...
|
| 231 |
+
@property
|
| 232 |
+
def human_readable_name(self) -> str: ...
|
| 233 |
+
def make_metavar(self) -> str: ...
|
| 234 |
+
def get_default(self, ctx: Context) -> Any: ...
|
| 235 |
+
def add_to_parser(self, parser: OptionParser, ctx: Context) -> None: ...
|
| 236 |
+
def consume_value(self, ctx: Context, opts: Dict[str, Any]) -> Any: ...
|
| 237 |
+
def type_cast_value(self, ctx: Context, value: Any) -> Any: ...
|
| 238 |
+
def process_value(self, ctx: Context, value: Any) -> Any: ...
|
| 239 |
+
def value_is_missing(self, value: Any) -> bool: ...
|
| 240 |
+
def full_process_value(self, ctx: Context, value: Any) -> Any: ...
|
| 241 |
+
def resolve_envvar_value(self, ctx: Context) -> str: ...
|
| 242 |
+
def value_from_envvar(self, ctx: Context) -> Union[str, List[str]]: ...
|
| 243 |
+
def handle_parse_result(self, ctx: Context, opts: Dict[str, Any], args: List[str]) -> Tuple[Any, List[str]]: ...
|
| 244 |
+
def get_help_record(self, ctx: Context) -> Tuple[str, str]: ...
|
| 245 |
+
def get_usage_pieces(self, ctx: Context) -> List[str]: ...
|
| 246 |
+
def get_error_hint(self, ctx: Context) -> str: ...
|
| 247 |
+
|
| 248 |
+
class Option(Parameter):
|
| 249 |
+
prompt: str # sic
|
| 250 |
+
confirmation_prompt: bool
|
| 251 |
+
hide_input: bool
|
| 252 |
+
is_flag: bool
|
| 253 |
+
flag_value: Any
|
| 254 |
+
is_bool_flag: bool
|
| 255 |
+
count: bool
|
| 256 |
+
multiple: bool
|
| 257 |
+
allow_from_autoenv: bool
|
| 258 |
+
help: Optional[str]
|
| 259 |
+
hidden: bool
|
| 260 |
+
show_default: bool
|
| 261 |
+
show_choices: bool
|
| 262 |
+
show_envvar: bool
|
| 263 |
+
def __init__(
|
| 264 |
+
self,
|
| 265 |
+
param_decls: Optional[List[str]] = ...,
|
| 266 |
+
show_default: bool = ...,
|
| 267 |
+
prompt: Union[bool, str] = ...,
|
| 268 |
+
confirmation_prompt: bool = ...,
|
| 269 |
+
hide_input: bool = ...,
|
| 270 |
+
is_flag: Optional[bool] = ...,
|
| 271 |
+
flag_value: Optional[Any] = ...,
|
| 272 |
+
multiple: bool = ...,
|
| 273 |
+
count: bool = ...,
|
| 274 |
+
allow_from_autoenv: bool = ...,
|
| 275 |
+
type: Optional[_ConvertibleType] = ...,
|
| 276 |
+
help: Optional[str] = ...,
|
| 277 |
+
hidden: bool = ...,
|
| 278 |
+
show_choices: bool = ...,
|
| 279 |
+
show_envvar: bool = ...,
|
| 280 |
+
**attrs,
|
| 281 |
+
) -> None: ...
|
| 282 |
+
def prompt_for_value(self, ctx: Context) -> Any: ...
|
| 283 |
+
|
| 284 |
+
class Argument(Parameter):
|
| 285 |
+
def __init__(self, param_decls: Optional[List[str]] = ..., required: Optional[bool] = ..., **attrs) -> None: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/decorators.pyi
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from distutils.version import Version
|
| 2 |
+
from typing import Any, Callable, Dict, List, Optional, Protocol, Text, Tuple, Type, TypeVar, Union, overload
|
| 3 |
+
|
| 4 |
+
from click.core import Argument, Command, Context, Group, Option, Parameter, _ConvertibleType
|
| 5 |
+
|
| 6 |
+
_T = TypeVar("_T")
|
| 7 |
+
_F = TypeVar("_F", bound=Callable[..., Any])
|
| 8 |
+
|
| 9 |
+
class _IdentityFunction(Protocol):
|
| 10 |
+
def __call__(self, __x: _T) -> _T: ...
|
| 11 |
+
|
| 12 |
+
_Callback = Callable[[Context, Union[Option, Parameter], Any], Any]
|
| 13 |
+
|
| 14 |
+
def pass_context(__f: _T) -> _T: ...
|
| 15 |
+
def pass_obj(__f: _T) -> _T: ...
|
| 16 |
+
def make_pass_decorator(object_type: type, ensure: bool = ...) -> _IdentityFunction: ...
|
| 17 |
+
|
| 18 |
+
# NOTE: Decorators below have **attrs converted to concrete constructor
|
| 19 |
+
# arguments from core.pyi to help with type checking.
|
| 20 |
+
|
| 21 |
+
def command(
|
| 22 |
+
name: Optional[str] = ...,
|
| 23 |
+
cls: Optional[Type[Command]] = ...,
|
| 24 |
+
# Command
|
| 25 |
+
context_settings: Optional[Dict[Any, Any]] = ...,
|
| 26 |
+
help: Optional[str] = ...,
|
| 27 |
+
epilog: Optional[str] = ...,
|
| 28 |
+
short_help: Optional[str] = ...,
|
| 29 |
+
options_metavar: str = ...,
|
| 30 |
+
add_help_option: bool = ...,
|
| 31 |
+
hidden: bool = ...,
|
| 32 |
+
deprecated: bool = ...,
|
| 33 |
+
) -> Callable[[Callable[..., Any]], Command]: ...
|
| 34 |
+
|
| 35 |
+
# This inherits attrs from Group, MultiCommand and Command.
|
| 36 |
+
|
| 37 |
+
def group(
|
| 38 |
+
name: Optional[str] = ...,
|
| 39 |
+
cls: Type[Command] = ...,
|
| 40 |
+
# Group
|
| 41 |
+
commands: Optional[Dict[str, Command]] = ...,
|
| 42 |
+
# MultiCommand
|
| 43 |
+
invoke_without_command: bool = ...,
|
| 44 |
+
no_args_is_help: Optional[bool] = ...,
|
| 45 |
+
subcommand_metavar: Optional[str] = ...,
|
| 46 |
+
chain: bool = ...,
|
| 47 |
+
result_callback: Optional[Callable[..., Any]] = ...,
|
| 48 |
+
# Command
|
| 49 |
+
help: Optional[str] = ...,
|
| 50 |
+
epilog: Optional[str] = ...,
|
| 51 |
+
short_help: Optional[str] = ...,
|
| 52 |
+
options_metavar: str = ...,
|
| 53 |
+
add_help_option: bool = ...,
|
| 54 |
+
hidden: bool = ...,
|
| 55 |
+
deprecated: bool = ...,
|
| 56 |
+
# User-defined
|
| 57 |
+
**kwargs: Any,
|
| 58 |
+
) -> Callable[[Callable[..., Any]], Group]: ...
|
| 59 |
+
def argument(
|
| 60 |
+
*param_decls: Text,
|
| 61 |
+
cls: Type[Argument] = ...,
|
| 62 |
+
# Argument
|
| 63 |
+
required: Optional[bool] = ...,
|
| 64 |
+
# Parameter
|
| 65 |
+
type: Optional[_ConvertibleType] = ...,
|
| 66 |
+
default: Optional[Any] = ...,
|
| 67 |
+
callback: Optional[_Callback] = ...,
|
| 68 |
+
nargs: Optional[int] = ...,
|
| 69 |
+
metavar: Optional[str] = ...,
|
| 70 |
+
expose_value: bool = ...,
|
| 71 |
+
is_eager: bool = ...,
|
| 72 |
+
envvar: Optional[Union[str, List[str]]] = ...,
|
| 73 |
+
autocompletion: Optional[Callable[[Any, List[str], str], List[Union[str, Tuple[str, str]]]]] = ...,
|
| 74 |
+
) -> _IdentityFunction: ...
|
| 75 |
+
@overload
|
| 76 |
+
def option(
|
| 77 |
+
*param_decls: Text,
|
| 78 |
+
cls: Type[Option] = ...,
|
| 79 |
+
# Option
|
| 80 |
+
show_default: Union[bool, Text] = ...,
|
| 81 |
+
prompt: Union[bool, Text] = ...,
|
| 82 |
+
confirmation_prompt: bool = ...,
|
| 83 |
+
hide_input: bool = ...,
|
| 84 |
+
is_flag: Optional[bool] = ...,
|
| 85 |
+
flag_value: Optional[Any] = ...,
|
| 86 |
+
multiple: bool = ...,
|
| 87 |
+
count: bool = ...,
|
| 88 |
+
allow_from_autoenv: bool = ...,
|
| 89 |
+
type: Optional[_ConvertibleType] = ...,
|
| 90 |
+
help: Optional[Text] = ...,
|
| 91 |
+
show_choices: bool = ...,
|
| 92 |
+
# Parameter
|
| 93 |
+
default: Optional[Any] = ...,
|
| 94 |
+
required: bool = ...,
|
| 95 |
+
callback: Optional[_Callback] = ...,
|
| 96 |
+
nargs: Optional[int] = ...,
|
| 97 |
+
metavar: Optional[str] = ...,
|
| 98 |
+
expose_value: bool = ...,
|
| 99 |
+
is_eager: bool = ...,
|
| 100 |
+
envvar: Optional[Union[str, List[str]]] = ...,
|
| 101 |
+
# User-defined
|
| 102 |
+
**kwargs: Any,
|
| 103 |
+
) -> _IdentityFunction: ...
|
| 104 |
+
@overload
|
| 105 |
+
def option(
|
| 106 |
+
*param_decls: str,
|
| 107 |
+
cls: Type[Option] = ...,
|
| 108 |
+
# Option
|
| 109 |
+
show_default: Union[bool, Text] = ...,
|
| 110 |
+
prompt: Union[bool, Text] = ...,
|
| 111 |
+
confirmation_prompt: bool = ...,
|
| 112 |
+
hide_input: bool = ...,
|
| 113 |
+
is_flag: Optional[bool] = ...,
|
| 114 |
+
flag_value: Optional[Any] = ...,
|
| 115 |
+
multiple: bool = ...,
|
| 116 |
+
count: bool = ...,
|
| 117 |
+
allow_from_autoenv: bool = ...,
|
| 118 |
+
type: _T = ...,
|
| 119 |
+
help: Optional[str] = ...,
|
| 120 |
+
show_choices: bool = ...,
|
| 121 |
+
# Parameter
|
| 122 |
+
default: Optional[Any] = ...,
|
| 123 |
+
required: bool = ...,
|
| 124 |
+
callback: Optional[Callable[[Context, Union[Option, Parameter], Union[bool, int, str]], _T]] = ...,
|
| 125 |
+
nargs: Optional[int] = ...,
|
| 126 |
+
metavar: Optional[str] = ...,
|
| 127 |
+
expose_value: bool = ...,
|
| 128 |
+
is_eager: bool = ...,
|
| 129 |
+
envvar: Optional[Union[str, List[str]]] = ...,
|
| 130 |
+
# User-defined
|
| 131 |
+
**kwargs: Any,
|
| 132 |
+
) -> _IdentityFunction: ...
|
| 133 |
+
@overload
|
| 134 |
+
def option(
|
| 135 |
+
*param_decls: str,
|
| 136 |
+
cls: Type[Option] = ...,
|
| 137 |
+
# Option
|
| 138 |
+
show_default: Union[bool, Text] = ...,
|
| 139 |
+
prompt: Union[bool, Text] = ...,
|
| 140 |
+
confirmation_prompt: bool = ...,
|
| 141 |
+
hide_input: bool = ...,
|
| 142 |
+
is_flag: Optional[bool] = ...,
|
| 143 |
+
flag_value: Optional[Any] = ...,
|
| 144 |
+
multiple: bool = ...,
|
| 145 |
+
count: bool = ...,
|
| 146 |
+
allow_from_autoenv: bool = ...,
|
| 147 |
+
type: Type[str] = ...,
|
| 148 |
+
help: Optional[str] = ...,
|
| 149 |
+
show_choices: bool = ...,
|
| 150 |
+
# Parameter
|
| 151 |
+
default: Optional[Any] = ...,
|
| 152 |
+
required: bool = ...,
|
| 153 |
+
callback: Callable[[Context, Union[Option, Parameter], str], Any] = ...,
|
| 154 |
+
nargs: Optional[int] = ...,
|
| 155 |
+
metavar: Optional[str] = ...,
|
| 156 |
+
expose_value: bool = ...,
|
| 157 |
+
is_eager: bool = ...,
|
| 158 |
+
envvar: Optional[Union[str, List[str]]] = ...,
|
| 159 |
+
# User-defined
|
| 160 |
+
**kwargs: Any,
|
| 161 |
+
) -> _IdentityFunction: ...
|
| 162 |
+
@overload
|
| 163 |
+
def option(
|
| 164 |
+
*param_decls: str,
|
| 165 |
+
cls: Type[Option] = ...,
|
| 166 |
+
# Option
|
| 167 |
+
show_default: Union[bool, Text] = ...,
|
| 168 |
+
prompt: Union[bool, Text] = ...,
|
| 169 |
+
confirmation_prompt: bool = ...,
|
| 170 |
+
hide_input: bool = ...,
|
| 171 |
+
is_flag: Optional[bool] = ...,
|
| 172 |
+
flag_value: Optional[Any] = ...,
|
| 173 |
+
multiple: bool = ...,
|
| 174 |
+
count: bool = ...,
|
| 175 |
+
allow_from_autoenv: bool = ...,
|
| 176 |
+
type: Type[int] = ...,
|
| 177 |
+
help: Optional[str] = ...,
|
| 178 |
+
show_choices: bool = ...,
|
| 179 |
+
# Parameter
|
| 180 |
+
default: Optional[Any] = ...,
|
| 181 |
+
required: bool = ...,
|
| 182 |
+
callback: Callable[[Context, Union[Option, Parameter], int], Any] = ...,
|
| 183 |
+
nargs: Optional[int] = ...,
|
| 184 |
+
metavar: Optional[str] = ...,
|
| 185 |
+
expose_value: bool = ...,
|
| 186 |
+
is_eager: bool = ...,
|
| 187 |
+
envvar: Optional[Union[str, List[str]]] = ...,
|
| 188 |
+
# User-defined
|
| 189 |
+
**kwargs: Any,
|
| 190 |
+
) -> _IdentityFunction: ...
|
| 191 |
+
def confirmation_option(
|
| 192 |
+
*param_decls: str,
|
| 193 |
+
cls: Type[Option] = ...,
|
| 194 |
+
# Option
|
| 195 |
+
show_default: Union[bool, Text] = ...,
|
| 196 |
+
prompt: Union[bool, Text] = ...,
|
| 197 |
+
confirmation_prompt: bool = ...,
|
| 198 |
+
hide_input: bool = ...,
|
| 199 |
+
is_flag: bool = ...,
|
| 200 |
+
flag_value: Optional[Any] = ...,
|
| 201 |
+
multiple: bool = ...,
|
| 202 |
+
count: bool = ...,
|
| 203 |
+
allow_from_autoenv: bool = ...,
|
| 204 |
+
type: Optional[_ConvertibleType] = ...,
|
| 205 |
+
help: str = ...,
|
| 206 |
+
show_choices: bool = ...,
|
| 207 |
+
# Parameter
|
| 208 |
+
default: Optional[Any] = ...,
|
| 209 |
+
callback: Optional[_Callback] = ...,
|
| 210 |
+
nargs: Optional[int] = ...,
|
| 211 |
+
metavar: Optional[str] = ...,
|
| 212 |
+
expose_value: bool = ...,
|
| 213 |
+
is_eager: bool = ...,
|
| 214 |
+
envvar: Optional[Union[str, List[str]]] = ...,
|
| 215 |
+
) -> _IdentityFunction: ...
|
| 216 |
+
def password_option(
|
| 217 |
+
*param_decls: str,
|
| 218 |
+
cls: Type[Option] = ...,
|
| 219 |
+
# Option
|
| 220 |
+
show_default: Union[bool, Text] = ...,
|
| 221 |
+
prompt: Union[bool, Text] = ...,
|
| 222 |
+
confirmation_prompt: bool = ...,
|
| 223 |
+
hide_input: bool = ...,
|
| 224 |
+
is_flag: Optional[bool] = ...,
|
| 225 |
+
flag_value: Optional[Any] = ...,
|
| 226 |
+
multiple: bool = ...,
|
| 227 |
+
count: bool = ...,
|
| 228 |
+
allow_from_autoenv: bool = ...,
|
| 229 |
+
type: Optional[_ConvertibleType] = ...,
|
| 230 |
+
help: Optional[str] = ...,
|
| 231 |
+
show_choices: bool = ...,
|
| 232 |
+
# Parameter
|
| 233 |
+
default: Optional[Any] = ...,
|
| 234 |
+
callback: Optional[_Callback] = ...,
|
| 235 |
+
nargs: Optional[int] = ...,
|
| 236 |
+
metavar: Optional[str] = ...,
|
| 237 |
+
expose_value: bool = ...,
|
| 238 |
+
is_eager: bool = ...,
|
| 239 |
+
envvar: Optional[Union[str, List[str]]] = ...,
|
| 240 |
+
) -> _IdentityFunction: ...
|
| 241 |
+
def version_option(
|
| 242 |
+
version: Optional[Union[str, Version]] = ...,
|
| 243 |
+
*param_decls: str,
|
| 244 |
+
cls: Type[Option] = ...,
|
| 245 |
+
# Option
|
| 246 |
+
prog_name: Optional[str] = ...,
|
| 247 |
+
message: Optional[str] = ...,
|
| 248 |
+
show_default: Union[bool, Text] = ...,
|
| 249 |
+
prompt: Union[bool, Text] = ...,
|
| 250 |
+
confirmation_prompt: bool = ...,
|
| 251 |
+
hide_input: bool = ...,
|
| 252 |
+
is_flag: bool = ...,
|
| 253 |
+
flag_value: Optional[Any] = ...,
|
| 254 |
+
multiple: bool = ...,
|
| 255 |
+
count: bool = ...,
|
| 256 |
+
allow_from_autoenv: bool = ...,
|
| 257 |
+
type: Optional[_ConvertibleType] = ...,
|
| 258 |
+
help: str = ...,
|
| 259 |
+
show_choices: bool = ...,
|
| 260 |
+
# Parameter
|
| 261 |
+
default: Optional[Any] = ...,
|
| 262 |
+
callback: Optional[_Callback] = ...,
|
| 263 |
+
nargs: Optional[int] = ...,
|
| 264 |
+
metavar: Optional[str] = ...,
|
| 265 |
+
expose_value: bool = ...,
|
| 266 |
+
is_eager: bool = ...,
|
| 267 |
+
envvar: Optional[Union[str, List[str]]] = ...,
|
| 268 |
+
) -> _IdentityFunction: ...
|
| 269 |
+
def help_option(
|
| 270 |
+
*param_decls: str,
|
| 271 |
+
cls: Type[Option] = ...,
|
| 272 |
+
# Option
|
| 273 |
+
show_default: Union[bool, Text] = ...,
|
| 274 |
+
prompt: Union[bool, Text] = ...,
|
| 275 |
+
confirmation_prompt: bool = ...,
|
| 276 |
+
hide_input: bool = ...,
|
| 277 |
+
is_flag: bool = ...,
|
| 278 |
+
flag_value: Optional[Any] = ...,
|
| 279 |
+
multiple: bool = ...,
|
| 280 |
+
count: bool = ...,
|
| 281 |
+
allow_from_autoenv: bool = ...,
|
| 282 |
+
type: Optional[_ConvertibleType] = ...,
|
| 283 |
+
help: str = ...,
|
| 284 |
+
show_choices: bool = ...,
|
| 285 |
+
# Parameter
|
| 286 |
+
default: Optional[Any] = ...,
|
| 287 |
+
callback: Optional[_Callback] = ...,
|
| 288 |
+
nargs: Optional[int] = ...,
|
| 289 |
+
metavar: Optional[str] = ...,
|
| 290 |
+
expose_value: bool = ...,
|
| 291 |
+
is_eager: bool = ...,
|
| 292 |
+
envvar: Optional[Union[str, List[str]]] = ...,
|
| 293 |
+
) -> _IdentityFunction: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/exceptions.pyi
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any, List, Optional
|
| 2 |
+
|
| 3 |
+
from click.core import Context, Parameter
|
| 4 |
+
|
| 5 |
+
class ClickException(Exception):
|
| 6 |
+
exit_code: int
|
| 7 |
+
message: str
|
| 8 |
+
def __init__(self, message: str) -> None: ...
|
| 9 |
+
def format_message(self) -> str: ...
|
| 10 |
+
def show(self, file: Optional[Any] = ...) -> None: ...
|
| 11 |
+
|
| 12 |
+
class UsageError(ClickException):
|
| 13 |
+
ctx: Optional[Context]
|
| 14 |
+
def __init__(self, message: str, ctx: Optional[Context] = ...) -> None: ...
|
| 15 |
+
def show(self, file: Optional[IO[Any]] = ...) -> None: ...
|
| 16 |
+
|
| 17 |
+
class BadParameter(UsageError):
|
| 18 |
+
param: Optional[Parameter]
|
| 19 |
+
param_hint: Optional[str]
|
| 20 |
+
def __init__(
|
| 21 |
+
self, message: str, ctx: Optional[Context] = ..., param: Optional[Parameter] = ..., param_hint: Optional[str] = ...
|
| 22 |
+
) -> None: ...
|
| 23 |
+
|
| 24 |
+
class MissingParameter(BadParameter):
|
| 25 |
+
param_type: str # valid values: 'parameter', 'option', 'argument'
|
| 26 |
+
def __init__(
|
| 27 |
+
self,
|
| 28 |
+
message: Optional[str] = ...,
|
| 29 |
+
ctx: Optional[Context] = ...,
|
| 30 |
+
param: Optional[Parameter] = ...,
|
| 31 |
+
param_hint: Optional[str] = ...,
|
| 32 |
+
param_type: Optional[str] = ...,
|
| 33 |
+
) -> None: ...
|
| 34 |
+
|
| 35 |
+
class NoSuchOption(UsageError):
|
| 36 |
+
option_name: str
|
| 37 |
+
possibilities: Optional[List[str]]
|
| 38 |
+
def __init__(
|
| 39 |
+
self,
|
| 40 |
+
option_name: str,
|
| 41 |
+
message: Optional[str] = ...,
|
| 42 |
+
possibilities: Optional[List[str]] = ...,
|
| 43 |
+
ctx: Optional[Context] = ...,
|
| 44 |
+
) -> None: ...
|
| 45 |
+
|
| 46 |
+
class BadOptionUsage(UsageError):
|
| 47 |
+
def __init__(self, option_name: str, message: str, ctx: Optional[Context] = ...) -> None: ...
|
| 48 |
+
|
| 49 |
+
class BadArgumentUsage(UsageError):
|
| 50 |
+
def __init__(self, message: str, ctx: Optional[Context] = ...) -> None: ...
|
| 51 |
+
|
| 52 |
+
class FileError(ClickException):
|
| 53 |
+
ui_filename: str
|
| 54 |
+
filename: str
|
| 55 |
+
def __init__(self, filename: str, hint: Optional[str] = ...) -> None: ...
|
| 56 |
+
|
| 57 |
+
class Abort(RuntimeError): ...
|
| 58 |
+
|
| 59 |
+
class Exit(RuntimeError):
|
| 60 |
+
def __init__(self, code: int = ...) -> None: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/formatting.pyi
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import ContextManager, Generator, Iterable, List, Optional, Tuple
|
| 2 |
+
|
| 3 |
+
FORCED_WIDTH: Optional[int]
|
| 4 |
+
|
| 5 |
+
def measure_table(rows: Iterable[Iterable[str]]) -> Tuple[int, ...]: ...
|
| 6 |
+
def iter_rows(rows: Iterable[Iterable[str]], col_count: int) -> Generator[Tuple[str, ...], None, None]: ...
|
| 7 |
+
def wrap_text(
|
| 8 |
+
text: str, width: int = ..., initial_indent: str = ..., subsequent_indent: str = ..., preserve_paragraphs: bool = ...
|
| 9 |
+
) -> str: ...
|
| 10 |
+
|
| 11 |
+
class HelpFormatter:
|
| 12 |
+
indent_increment: int
|
| 13 |
+
width: Optional[int]
|
| 14 |
+
current_indent: int
|
| 15 |
+
buffer: List[str]
|
| 16 |
+
def __init__(self, indent_increment: int = ..., width: Optional[int] = ..., max_width: Optional[int] = ...) -> None: ...
|
| 17 |
+
def write(self, string: str) -> None: ...
|
| 18 |
+
def indent(self) -> None: ...
|
| 19 |
+
def dedent(self) -> None: ...
|
| 20 |
+
def write_usage(
|
| 21 |
+
self,
|
| 22 |
+
prog: str,
|
| 23 |
+
args: str = ...,
|
| 24 |
+
prefix: str = ...,
|
| 25 |
+
): ...
|
| 26 |
+
def write_heading(self, heading: str) -> None: ...
|
| 27 |
+
def write_paragraph(self) -> None: ...
|
| 28 |
+
def write_text(self, text: str) -> None: ...
|
| 29 |
+
def write_dl(self, rows: Iterable[Iterable[str]], col_max: int = ..., col_spacing: int = ...) -> None: ...
|
| 30 |
+
def section(self, name) -> ContextManager[None]: ...
|
| 31 |
+
def indentation(self) -> ContextManager[None]: ...
|
| 32 |
+
def getvalue(self) -> str: ...
|
| 33 |
+
|
| 34 |
+
def join_options(options: List[str]) -> Tuple[str, bool]: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/globals.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
from click.core import Context
|
| 4 |
+
|
| 5 |
+
def get_current_context(silent: bool = ...) -> Context: ...
|
| 6 |
+
def push_context(ctx: Context) -> None: ...
|
| 7 |
+
def pop_context() -> None: ...
|
| 8 |
+
def resolve_color_default(color: Optional[bool] = ...) -> Optional[bool]: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/parser.pyi
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, Iterable, List, Optional, Set, Tuple
|
| 2 |
+
|
| 3 |
+
from click.core import Context
|
| 4 |
+
|
| 5 |
+
def _unpack_args(args: Iterable[str], nargs_spec: Iterable[int]) -> Tuple[Tuple[Optional[Tuple[str, ...]], ...], List[str]]: ...
|
| 6 |
+
def split_opt(opt: str) -> Tuple[str, str]: ...
|
| 7 |
+
def normalize_opt(opt: str, ctx: Context) -> str: ...
|
| 8 |
+
def split_arg_string(string: str) -> List[str]: ...
|
| 9 |
+
|
| 10 |
+
class Option:
|
| 11 |
+
dest: str
|
| 12 |
+
action: str
|
| 13 |
+
nargs: int
|
| 14 |
+
const: Any
|
| 15 |
+
obj: Any
|
| 16 |
+
prefixes: Set[str]
|
| 17 |
+
_short_opts: List[str]
|
| 18 |
+
_long_opts: List[str]
|
| 19 |
+
def __init__(
|
| 20 |
+
self,
|
| 21 |
+
opts: Iterable[str],
|
| 22 |
+
dest: str,
|
| 23 |
+
action: Optional[str] = ...,
|
| 24 |
+
nargs: int = ...,
|
| 25 |
+
const: Optional[Any] = ...,
|
| 26 |
+
obj: Optional[Any] = ...,
|
| 27 |
+
) -> None: ...
|
| 28 |
+
@property
|
| 29 |
+
def takes_value(self) -> bool: ...
|
| 30 |
+
def process(self, value: Any, state: ParsingState) -> None: ...
|
| 31 |
+
|
| 32 |
+
class Argument:
|
| 33 |
+
dest: str
|
| 34 |
+
nargs: int
|
| 35 |
+
obj: Any
|
| 36 |
+
def __init__(self, dest: str, nargs: int = ..., obj: Optional[Any] = ...) -> None: ...
|
| 37 |
+
def process(self, value: Any, state: ParsingState) -> None: ...
|
| 38 |
+
|
| 39 |
+
class ParsingState:
|
| 40 |
+
opts: Dict[str, Any]
|
| 41 |
+
largs: List[str]
|
| 42 |
+
rargs: List[str]
|
| 43 |
+
order: List[Any]
|
| 44 |
+
def __init__(self, rargs: List[str]) -> None: ...
|
| 45 |
+
|
| 46 |
+
class OptionParser:
|
| 47 |
+
ctx: Optional[Context]
|
| 48 |
+
allow_interspersed_args: bool
|
| 49 |
+
ignore_unknown_options: bool
|
| 50 |
+
_short_opt: Dict[str, Option]
|
| 51 |
+
_long_opt: Dict[str, Option]
|
| 52 |
+
_opt_prefixes: Set[str]
|
| 53 |
+
_args: List[Argument]
|
| 54 |
+
def __init__(self, ctx: Optional[Context] = ...) -> None: ...
|
| 55 |
+
def add_option(
|
| 56 |
+
self,
|
| 57 |
+
opts: Iterable[str],
|
| 58 |
+
dest: str,
|
| 59 |
+
action: Optional[str] = ...,
|
| 60 |
+
nargs: int = ...,
|
| 61 |
+
const: Optional[Any] = ...,
|
| 62 |
+
obj: Optional[Any] = ...,
|
| 63 |
+
) -> None: ...
|
| 64 |
+
def add_argument(self, dest: str, nargs: int = ..., obj: Optional[Any] = ...) -> None: ...
|
| 65 |
+
def parse_args(self, args: List[str]) -> Tuple[Dict[str, Any], List[str], List[Any]]: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/termui.pyi
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any, Callable, Generator, Iterable, Optional, Text, Tuple, TypeVar, Union, overload
|
| 2 |
+
|
| 3 |
+
from click._termui_impl import ProgressBar as _ProgressBar
|
| 4 |
+
from click.core import _ConvertibleType
|
| 5 |
+
|
| 6 |
+
def hidden_prompt_func(prompt: str) -> str: ...
|
| 7 |
+
def _build_prompt(text: str, suffix: str, show_default: bool = ..., default: Optional[str] = ...) -> str: ...
|
| 8 |
+
def prompt(
|
| 9 |
+
text: str,
|
| 10 |
+
default: Optional[str] = ...,
|
| 11 |
+
hide_input: bool = ...,
|
| 12 |
+
confirmation_prompt: bool = ...,
|
| 13 |
+
type: Optional[_ConvertibleType] = ...,
|
| 14 |
+
value_proc: Optional[Callable[[Optional[str]], Any]] = ...,
|
| 15 |
+
prompt_suffix: str = ...,
|
| 16 |
+
show_default: bool = ...,
|
| 17 |
+
err: bool = ...,
|
| 18 |
+
show_choices: bool = ...,
|
| 19 |
+
) -> Any: ...
|
| 20 |
+
def confirm(
|
| 21 |
+
text: str, default: bool = ..., abort: bool = ..., prompt_suffix: str = ..., show_default: bool = ..., err: bool = ...
|
| 22 |
+
) -> bool: ...
|
| 23 |
+
def get_terminal_size() -> Tuple[int, int]: ...
|
| 24 |
+
def echo_via_pager(
|
| 25 |
+
text_or_generator: Union[str, Iterable[str], Callable[[], Generator[str, None, None]]], color: Optional[bool] = ...
|
| 26 |
+
) -> None: ...
|
| 27 |
+
|
| 28 |
+
_T = TypeVar("_T")
|
| 29 |
+
@overload
|
| 30 |
+
def progressbar(
|
| 31 |
+
iterable: Iterable[_T],
|
| 32 |
+
length: Optional[int] = ...,
|
| 33 |
+
label: Optional[str] = ...,
|
| 34 |
+
show_eta: bool = ...,
|
| 35 |
+
show_percent: Optional[bool] = ...,
|
| 36 |
+
show_pos: bool = ...,
|
| 37 |
+
item_show_func: Optional[Callable[[_T], str]] = ...,
|
| 38 |
+
fill_char: str = ...,
|
| 39 |
+
empty_char: str = ...,
|
| 40 |
+
bar_template: str = ...,
|
| 41 |
+
info_sep: str = ...,
|
| 42 |
+
width: int = ...,
|
| 43 |
+
file: Optional[IO[Any]] = ...,
|
| 44 |
+
color: Optional[bool] = ...,
|
| 45 |
+
) -> _ProgressBar[_T]: ...
|
| 46 |
+
@overload
|
| 47 |
+
def progressbar(
|
| 48 |
+
iterable: None = ...,
|
| 49 |
+
length: Optional[int] = ...,
|
| 50 |
+
label: Optional[str] = ...,
|
| 51 |
+
show_eta: bool = ...,
|
| 52 |
+
show_percent: Optional[bool] = ...,
|
| 53 |
+
show_pos: bool = ...,
|
| 54 |
+
item_show_func: Optional[Callable[[_T], str]] = ...,
|
| 55 |
+
fill_char: str = ...,
|
| 56 |
+
empty_char: str = ...,
|
| 57 |
+
bar_template: str = ...,
|
| 58 |
+
info_sep: str = ...,
|
| 59 |
+
width: int = ...,
|
| 60 |
+
file: Optional[IO[Any]] = ...,
|
| 61 |
+
color: Optional[bool] = ...,
|
| 62 |
+
) -> _ProgressBar[int]: ...
|
| 63 |
+
def clear() -> None: ...
|
| 64 |
+
def style(
|
| 65 |
+
text: Text,
|
| 66 |
+
fg: Optional[Text] = ...,
|
| 67 |
+
bg: Optional[Text] = ...,
|
| 68 |
+
bold: Optional[bool] = ...,
|
| 69 |
+
dim: Optional[bool] = ...,
|
| 70 |
+
underline: Optional[bool] = ...,
|
| 71 |
+
blink: Optional[bool] = ...,
|
| 72 |
+
reverse: Optional[bool] = ...,
|
| 73 |
+
reset: bool = ...,
|
| 74 |
+
) -> str: ...
|
| 75 |
+
def unstyle(text: Text) -> str: ...
|
| 76 |
+
|
| 77 |
+
# Styling options copied from style() for nicer type checking.
|
| 78 |
+
def secho(
|
| 79 |
+
message: Optional[str] = ...,
|
| 80 |
+
file: Optional[IO[Any]] = ...,
|
| 81 |
+
nl: bool = ...,
|
| 82 |
+
err: bool = ...,
|
| 83 |
+
color: Optional[bool] = ...,
|
| 84 |
+
fg: Optional[str] = ...,
|
| 85 |
+
bg: Optional[str] = ...,
|
| 86 |
+
bold: Optional[bool] = ...,
|
| 87 |
+
dim: Optional[bool] = ...,
|
| 88 |
+
underline: Optional[bool] = ...,
|
| 89 |
+
blink: Optional[bool] = ...,
|
| 90 |
+
reverse: Optional[bool] = ...,
|
| 91 |
+
reset: bool = ...,
|
| 92 |
+
): ...
|
| 93 |
+
def edit(
|
| 94 |
+
text: Optional[str] = ...,
|
| 95 |
+
editor: Optional[str] = ...,
|
| 96 |
+
env: Optional[str] = ...,
|
| 97 |
+
require_save: bool = ...,
|
| 98 |
+
extension: str = ...,
|
| 99 |
+
filename: Optional[str] = ...,
|
| 100 |
+
) -> str: ...
|
| 101 |
+
def launch(url: str, wait: bool = ..., locate: bool = ...) -> int: ...
|
| 102 |
+
def getchar(echo: bool = ...) -> Text: ...
|
| 103 |
+
def pause(info: str = ..., err: bool = ...) -> None: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/testing.pyi
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any, BinaryIO, ContextManager, Dict, Iterable, List, Mapping, Optional, Text, Union
|
| 2 |
+
|
| 3 |
+
from .core import BaseCommand
|
| 4 |
+
|
| 5 |
+
clickpkg: Any
|
| 6 |
+
|
| 7 |
+
class EchoingStdin:
|
| 8 |
+
def __init__(self, input: BinaryIO, output: BinaryIO) -> None: ...
|
| 9 |
+
def __getattr__(self, x: str) -> Any: ...
|
| 10 |
+
def read(self, n: int = ...) -> bytes: ...
|
| 11 |
+
def readline(self, n: int = ...) -> bytes: ...
|
| 12 |
+
def readlines(self) -> List[bytes]: ...
|
| 13 |
+
def __iter__(self) -> Iterable[bytes]: ...
|
| 14 |
+
|
| 15 |
+
def make_input_stream(input: Optional[Union[bytes, Text, IO[Any]]], charset: Text) -> BinaryIO: ...
|
| 16 |
+
|
| 17 |
+
class Result:
|
| 18 |
+
runner: CliRunner
|
| 19 |
+
exit_code: int
|
| 20 |
+
exception: Any
|
| 21 |
+
exc_info: Optional[Any]
|
| 22 |
+
stdout_bytes: bytes
|
| 23 |
+
stderr_bytes: bytes
|
| 24 |
+
def __init__(
|
| 25 |
+
self,
|
| 26 |
+
runner: CliRunner,
|
| 27 |
+
stdout_bytes: bytes,
|
| 28 |
+
stderr_bytes: bytes,
|
| 29 |
+
exit_code: int,
|
| 30 |
+
exception: Any,
|
| 31 |
+
exc_info: Optional[Any] = ...,
|
| 32 |
+
) -> None: ...
|
| 33 |
+
@property
|
| 34 |
+
def output(self) -> Text: ...
|
| 35 |
+
@property
|
| 36 |
+
def stdout(self) -> Text: ...
|
| 37 |
+
@property
|
| 38 |
+
def stderr(self) -> Text: ...
|
| 39 |
+
|
| 40 |
+
class CliRunner:
|
| 41 |
+
charset: str
|
| 42 |
+
env: Mapping[str, str]
|
| 43 |
+
echo_stdin: bool
|
| 44 |
+
mix_stderr: bool
|
| 45 |
+
def __init__(
|
| 46 |
+
self,
|
| 47 |
+
charset: Optional[Text] = ...,
|
| 48 |
+
env: Optional[Mapping[str, str]] = ...,
|
| 49 |
+
echo_stdin: bool = ...,
|
| 50 |
+
mix_stderr: bool = ...,
|
| 51 |
+
) -> None: ...
|
| 52 |
+
def get_default_prog_name(self, cli: BaseCommand) -> str: ...
|
| 53 |
+
def make_env(self, overrides: Optional[Mapping[str, str]] = ...) -> Dict[str, str]: ...
|
| 54 |
+
def isolation(
|
| 55 |
+
self, input: Optional[Union[bytes, Text, IO[Any]]] = ..., env: Optional[Mapping[str, str]] = ..., color: bool = ...
|
| 56 |
+
) -> ContextManager[BinaryIO]: ...
|
| 57 |
+
def invoke(
|
| 58 |
+
self,
|
| 59 |
+
cli: BaseCommand,
|
| 60 |
+
args: Optional[Union[str, Iterable[str]]] = ...,
|
| 61 |
+
input: Optional[Union[bytes, Text, IO[Any]]] = ...,
|
| 62 |
+
env: Optional[Mapping[str, str]] = ...,
|
| 63 |
+
catch_exceptions: bool = ...,
|
| 64 |
+
color: bool = ...,
|
| 65 |
+
**extra: Any,
|
| 66 |
+
) -> Result: ...
|
| 67 |
+
def isolated_filesystem(self) -> ContextManager[str]: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/types.pyi
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import datetime
|
| 2 |
+
import uuid
|
| 3 |
+
from typing import IO, Any, Callable, Generic, Iterable, List, Optional, Sequence, Text, Tuple as _PyTuple, Type, TypeVar, Union
|
| 4 |
+
|
| 5 |
+
from click.core import Context, Parameter, _ConvertibleType, _ParamType
|
| 6 |
+
|
| 7 |
+
ParamType = _ParamType
|
| 8 |
+
|
| 9 |
+
class BoolParamType(ParamType):
|
| 10 |
+
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> bool: ...
|
| 11 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> bool: ...
|
| 12 |
+
|
| 13 |
+
class CompositeParamType(ParamType):
|
| 14 |
+
arity: int
|
| 15 |
+
|
| 16 |
+
class Choice(ParamType):
|
| 17 |
+
choices: Iterable[str]
|
| 18 |
+
case_sensitive: bool
|
| 19 |
+
def __init__(self, choices: Iterable[str], case_sensitive: bool = ...) -> None: ...
|
| 20 |
+
|
| 21 |
+
class DateTime(ParamType):
|
| 22 |
+
formats: Sequence[str]
|
| 23 |
+
def __init__(self, formats: Optional[Sequence[str]] = ...) -> None: ...
|
| 24 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> datetime.datetime: ...
|
| 25 |
+
|
| 26 |
+
class FloatParamType(ParamType):
|
| 27 |
+
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> float: ...
|
| 28 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> float: ...
|
| 29 |
+
|
| 30 |
+
class FloatRange(FloatParamType):
|
| 31 |
+
min: Optional[float]
|
| 32 |
+
max: Optional[float]
|
| 33 |
+
clamp: bool
|
| 34 |
+
def __init__(self, min: Optional[float] = ..., max: Optional[float] = ..., clamp: bool = ...) -> None: ...
|
| 35 |
+
|
| 36 |
+
class File(ParamType):
|
| 37 |
+
mode: str
|
| 38 |
+
encoding: Optional[str]
|
| 39 |
+
errors: Optional[str]
|
| 40 |
+
lazy: Optional[bool]
|
| 41 |
+
atomic: bool
|
| 42 |
+
def __init__(
|
| 43 |
+
self,
|
| 44 |
+
mode: Text = ...,
|
| 45 |
+
encoding: Optional[str] = ...,
|
| 46 |
+
errors: Optional[str] = ...,
|
| 47 |
+
lazy: Optional[bool] = ...,
|
| 48 |
+
atomic: Optional[bool] = ...,
|
| 49 |
+
) -> None: ...
|
| 50 |
+
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> IO[Any]: ...
|
| 51 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> IO[Any]: ...
|
| 52 |
+
def resolve_lazy_flag(self, value: str) -> bool: ...
|
| 53 |
+
|
| 54 |
+
_F = TypeVar("_F") # result of the function
|
| 55 |
+
_Func = Callable[[Optional[str]], _F]
|
| 56 |
+
|
| 57 |
+
class FuncParamType(ParamType, Generic[_F]):
|
| 58 |
+
func: _Func[_F]
|
| 59 |
+
def __init__(self, func: _Func[_F]) -> None: ...
|
| 60 |
+
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> _F: ...
|
| 61 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> _F: ...
|
| 62 |
+
|
| 63 |
+
class IntParamType(ParamType):
|
| 64 |
+
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> int: ...
|
| 65 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> int: ...
|
| 66 |
+
|
| 67 |
+
class IntRange(IntParamType):
|
| 68 |
+
min: Optional[int]
|
| 69 |
+
max: Optional[int]
|
| 70 |
+
clamp: bool
|
| 71 |
+
def __init__(self, min: Optional[int] = ..., max: Optional[int] = ..., clamp: bool = ...) -> None: ...
|
| 72 |
+
|
| 73 |
+
_PathType = TypeVar("_PathType", str, bytes)
|
| 74 |
+
_PathTypeBound = Union[Type[str], Type[bytes]]
|
| 75 |
+
|
| 76 |
+
class Path(ParamType):
|
| 77 |
+
exists: bool
|
| 78 |
+
file_okay: bool
|
| 79 |
+
dir_okay: bool
|
| 80 |
+
writable: bool
|
| 81 |
+
readable: bool
|
| 82 |
+
resolve_path: bool
|
| 83 |
+
allow_dash: bool
|
| 84 |
+
type: Optional[_PathTypeBound]
|
| 85 |
+
def __init__(
|
| 86 |
+
self,
|
| 87 |
+
exists: bool = ...,
|
| 88 |
+
file_okay: bool = ...,
|
| 89 |
+
dir_okay: bool = ...,
|
| 90 |
+
writable: bool = ...,
|
| 91 |
+
readable: bool = ...,
|
| 92 |
+
resolve_path: bool = ...,
|
| 93 |
+
allow_dash: bool = ...,
|
| 94 |
+
path_type: Optional[Type[_PathType]] = ...,
|
| 95 |
+
) -> None: ...
|
| 96 |
+
def coerce_path_result(self, rv: Union[str, bytes]) -> _PathType: ...
|
| 97 |
+
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> _PathType: ...
|
| 98 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> _PathType: ...
|
| 99 |
+
|
| 100 |
+
class StringParamType(ParamType):
|
| 101 |
+
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> str: ...
|
| 102 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> str: ...
|
| 103 |
+
|
| 104 |
+
class Tuple(CompositeParamType):
|
| 105 |
+
types: List[ParamType]
|
| 106 |
+
def __init__(self, types: Iterable[Any]) -> None: ...
|
| 107 |
+
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> Tuple: ...
|
| 108 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> Tuple: ...
|
| 109 |
+
|
| 110 |
+
class UnprocessedParamType(ParamType): ...
|
| 111 |
+
|
| 112 |
+
class UUIDParameterType(ParamType):
|
| 113 |
+
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> uuid.UUID: ...
|
| 114 |
+
def convert(self, value: str, param: Optional[Parameter], ctx: Optional[Context]) -> uuid.UUID: ...
|
| 115 |
+
|
| 116 |
+
def convert_type(ty: Optional[_ConvertibleType], default: Optional[Any] = ...) -> ParamType: ...
|
| 117 |
+
|
| 118 |
+
# parameter type shortcuts
|
| 119 |
+
|
| 120 |
+
BOOL: BoolParamType
|
| 121 |
+
FLOAT: FloatParamType
|
| 122 |
+
INT: IntParamType
|
| 123 |
+
STRING: StringParamType
|
| 124 |
+
UNPROCESSED: UnprocessedParamType
|
| 125 |
+
UUID: UUIDParameterType
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/click/utils.pyi
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any, AnyStr, Generic, Iterator, List, Optional, Text, TypeVar
|
| 2 |
+
|
| 3 |
+
_T = TypeVar("_T")
|
| 4 |
+
|
| 5 |
+
def _posixify(name: str) -> str: ...
|
| 6 |
+
def safecall(func: _T) -> _T: ...
|
| 7 |
+
def make_str(value: Any) -> str: ...
|
| 8 |
+
def make_default_short_help(help: str, max_length: int = ...): ...
|
| 9 |
+
|
| 10 |
+
class LazyFile(object):
|
| 11 |
+
name: str
|
| 12 |
+
mode: str
|
| 13 |
+
encoding: Optional[str]
|
| 14 |
+
errors: str
|
| 15 |
+
atomic: bool
|
| 16 |
+
def __init__(
|
| 17 |
+
self, filename: str, mode: str = ..., encoding: Optional[str] = ..., errors: str = ..., atomic: bool = ...
|
| 18 |
+
) -> None: ...
|
| 19 |
+
def open(self) -> IO[Any]: ...
|
| 20 |
+
def close(self) -> None: ...
|
| 21 |
+
def close_intelligently(self) -> None: ...
|
| 22 |
+
def __enter__(self) -> LazyFile: ...
|
| 23 |
+
def __exit__(self, exc_type, exc_value, tb): ...
|
| 24 |
+
def __iter__(self) -> Iterator[Any]: ...
|
| 25 |
+
|
| 26 |
+
class KeepOpenFile(Generic[AnyStr]):
|
| 27 |
+
_file: IO[AnyStr]
|
| 28 |
+
def __init__(self, file: IO[AnyStr]) -> None: ...
|
| 29 |
+
def __enter__(self) -> KeepOpenFile[AnyStr]: ...
|
| 30 |
+
def __exit__(self, exc_type, exc_value, tb): ...
|
| 31 |
+
def __iter__(self) -> Iterator[AnyStr]: ...
|
| 32 |
+
|
| 33 |
+
def echo(
|
| 34 |
+
message: object = ..., file: Optional[IO[Text]] = ..., nl: bool = ..., err: bool = ..., color: Optional[bool] = ...
|
| 35 |
+
) -> None: ...
|
| 36 |
+
def get_binary_stream(name: str) -> IO[bytes]: ...
|
| 37 |
+
def get_text_stream(name: str, encoding: Optional[str] = ..., errors: str = ...) -> IO[str]: ...
|
| 38 |
+
def open_file(
|
| 39 |
+
filename: str, mode: str = ..., encoding: Optional[str] = ..., errors: str = ..., lazy: bool = ..., atomic: bool = ...
|
| 40 |
+
) -> Any: ... # really Union[IO, LazyFile, KeepOpenFile]
|
| 41 |
+
def get_os_args() -> List[str]: ...
|
| 42 |
+
def format_filename(filename: str, shorten: bool = ...) -> str: ...
|
| 43 |
+
def get_app_dir(app_name: str, roaming: bool = ..., force_posix: bool = ...) -> str: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/__init__.pyi
ADDED
|
File without changes
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/exceptions.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class AlreadyFinalized(Exception): ...
|
| 2 |
+
class AlreadyUpdated(Exception): ...
|
| 3 |
+
class InvalidKey(Exception): ...
|
| 4 |
+
class InvalidSignature(Exception): ...
|
| 5 |
+
class InvalidTag(Exception): ...
|
| 6 |
+
class NotYetFinalized(Exception): ...
|
| 7 |
+
class UnsupportedAlgorithm(Exception): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/fernet.pyi
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List, Optional, Text, Union
|
| 2 |
+
|
| 3 |
+
class InvalidToken(Exception): ...
|
| 4 |
+
|
| 5 |
+
class Fernet(object):
|
| 6 |
+
def __init__(self, key: Union[bytes, Text]) -> None: ...
|
| 7 |
+
def decrypt(self, token: bytes, ttl: Optional[int] = ...) -> bytes: ...
|
| 8 |
+
# decrypt_at_time accepts None ttl at runtime but it's an implementtion detail and it doesn't really
|
| 9 |
+
# make sense for the client code to use it like that, so the parameter is typed as int as opposed to
|
| 10 |
+
# Optional[int].
|
| 11 |
+
def decrypt_at_time(self, token: bytes, ttl: int, current_time: int) -> bytes: ...
|
| 12 |
+
def encrypt(self, data: bytes) -> bytes: ...
|
| 13 |
+
def encrypt_at_time(self, data: bytes, current_time: int) -> bytes: ...
|
| 14 |
+
def extract_timestamp(self, token: bytes) -> int: ...
|
| 15 |
+
@classmethod
|
| 16 |
+
def generate_key(cls) -> bytes: ...
|
| 17 |
+
|
| 18 |
+
class MultiFernet(object):
|
| 19 |
+
def __init__(self, fernets: List[Fernet]) -> None: ...
|
| 20 |
+
def decrypt(self, token: bytes, ttl: Optional[int] = ...) -> bytes: ...
|
| 21 |
+
# See a note above on the typing of the ttl parameter.
|
| 22 |
+
def decrypt_at_time(self, token: bytes, ttl: int, current_time: int) -> bytes: ...
|
| 23 |
+
def encrypt(self, data: bytes) -> bytes: ...
|
| 24 |
+
def encrypt_at_time(self, data: bytes, current_time: int) -> bytes: ...
|
| 25 |
+
def rotate(self, msg: bytes) -> bytes: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/__init__.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def __getattr__(name: str) -> Any: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/backends/__init__.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def default_backend() -> Any: ...
|
| 4 |
+
|
| 5 |
+
# TODO: add some backends
|
| 6 |
+
def __getattr__(name: str) -> Any: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/backends/interfaces.pyi
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import Any, Optional, Union
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.primitives.asymmetric.dh import (
|
| 5 |
+
DHParameterNumbers,
|
| 6 |
+
DHParameters,
|
| 7 |
+
DHPrivateKey,
|
| 8 |
+
DHPrivateNumbers,
|
| 9 |
+
DHPublicKey,
|
| 10 |
+
DHPublicNumbers,
|
| 11 |
+
)
|
| 12 |
+
from cryptography.hazmat.primitives.asymmetric.dsa import (
|
| 13 |
+
DSAParameterNumbers,
|
| 14 |
+
DSAParameters,
|
| 15 |
+
DSAPrivateKey,
|
| 16 |
+
DSAPrivateNumbers,
|
| 17 |
+
DSAPublicKey,
|
| 18 |
+
DSAPublicNumbers,
|
| 19 |
+
)
|
| 20 |
+
from cryptography.hazmat.primitives.asymmetric.ec import (
|
| 21 |
+
EllipticCurve,
|
| 22 |
+
EllipticCurvePrivateKey,
|
| 23 |
+
EllipticCurvePrivateNumbers,
|
| 24 |
+
EllipticCurvePublicKey,
|
| 25 |
+
EllipticCurvePublicNumbers,
|
| 26 |
+
EllipticCurveSignatureAlgorithm,
|
| 27 |
+
)
|
| 28 |
+
from cryptography.hazmat.primitives.asymmetric.padding import AsymmetricPadding
|
| 29 |
+
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPrivateNumbers, RSAPublicKey, RSAPublicNumbers
|
| 30 |
+
from cryptography.hazmat.primitives.ciphers import BlockCipherAlgorithm, CipherAlgorithm, CipherContext
|
| 31 |
+
from cryptography.hazmat.primitives.ciphers.modes import Mode
|
| 32 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm, HashContext
|
| 33 |
+
from cryptography.x509 import (
|
| 34 |
+
Certificate,
|
| 35 |
+
CertificateBuilder,
|
| 36 |
+
CertificateRevocationList,
|
| 37 |
+
CertificateRevocationListBuilder,
|
| 38 |
+
CertificateSigningRequest,
|
| 39 |
+
CertificateSigningRequestBuilder,
|
| 40 |
+
Name,
|
| 41 |
+
RevokedCertificate,
|
| 42 |
+
RevokedCertificateBuilder,
|
| 43 |
+
)
|
| 44 |
+
|
| 45 |
+
class CipherBackend(metaclass=ABCMeta):
|
| 46 |
+
@abstractmethod
|
| 47 |
+
def cipher_supported(self, cipher: CipherAlgorithm, mode: Mode) -> bool: ...
|
| 48 |
+
@abstractmethod
|
| 49 |
+
def create_symmetric_encryption_ctx(self, cipher: CipherAlgorithm, mode: Mode) -> CipherContext: ...
|
| 50 |
+
@abstractmethod
|
| 51 |
+
def create_symmetric_decryption_ctx(self, cipher: CipherAlgorithm, mode: Mode) -> CipherContext: ...
|
| 52 |
+
|
| 53 |
+
class CMACBackend(metaclass=ABCMeta):
|
| 54 |
+
@abstractmethod
|
| 55 |
+
def cmac_algorithm_supported(self, algorithm: BlockCipherAlgorithm) -> bool: ...
|
| 56 |
+
@abstractmethod
|
| 57 |
+
def create_cmac_ctx(self, algorithm: BlockCipherAlgorithm) -> Any: ...
|
| 58 |
+
|
| 59 |
+
class DERSerializationBackend(metaclass=ABCMeta):
|
| 60 |
+
@abstractmethod
|
| 61 |
+
def load_der_parameters(self, data: bytes) -> Any: ...
|
| 62 |
+
@abstractmethod
|
| 63 |
+
def load_der_private_key(self, data: bytes, password: Optional[bytes]) -> Any: ...
|
| 64 |
+
@abstractmethod
|
| 65 |
+
def load_der_public_key(self, data: bytes) -> Any: ...
|
| 66 |
+
|
| 67 |
+
class DHBackend(metaclass=ABCMeta):
|
| 68 |
+
@abstractmethod
|
| 69 |
+
def dh_parameters_supported(self, p: int, g: int, q: Optional[int]) -> bool: ...
|
| 70 |
+
@abstractmethod
|
| 71 |
+
def dh_x942_serialization_supported(self) -> bool: ...
|
| 72 |
+
@abstractmethod
|
| 73 |
+
def generate_dh_parameters(self, generator: int, key_size: int) -> DHParameters: ...
|
| 74 |
+
@abstractmethod
|
| 75 |
+
def generate_dh_private_key(self, parameters: DHParameters) -> DHPrivateKey: ...
|
| 76 |
+
@abstractmethod
|
| 77 |
+
def generate_dh_private_key_and_parameters(self, generator: int, key_size: int) -> DHPrivateKey: ...
|
| 78 |
+
@abstractmethod
|
| 79 |
+
def load_dh_parameter_numbers(self, numbers: DHParameterNumbers) -> DHParameters: ...
|
| 80 |
+
@abstractmethod
|
| 81 |
+
def load_dh_private_numbers(self, numbers: DHPrivateNumbers) -> DHPrivateKey: ...
|
| 82 |
+
@abstractmethod
|
| 83 |
+
def load_dh_public_numbers(self, numbers: DHPublicNumbers) -> DHPublicKey: ...
|
| 84 |
+
|
| 85 |
+
class DSABackend(metaclass=ABCMeta):
|
| 86 |
+
@abstractmethod
|
| 87 |
+
def dsa_hash_supported(self, algorithm: HashAlgorithm) -> bool: ...
|
| 88 |
+
@abstractmethod
|
| 89 |
+
def dsa_parameters_supported(self, p: int, q: int, g: int) -> bool: ...
|
| 90 |
+
@abstractmethod
|
| 91 |
+
def generate_dsa_parameters(self, key_size: int) -> DSAParameters: ...
|
| 92 |
+
@abstractmethod
|
| 93 |
+
def generate_dsa_private_key(self, parameters: DSAParameters) -> DSAPrivateKey: ...
|
| 94 |
+
@abstractmethod
|
| 95 |
+
def generate_dsa_private_key_and_parameters(self, key_size: int) -> DSAPrivateKey: ...
|
| 96 |
+
@abstractmethod
|
| 97 |
+
def load_dsa_parameter_numbers(self, numbers: DSAParameterNumbers) -> DSAParameters: ...
|
| 98 |
+
@abstractmethod
|
| 99 |
+
def load_dsa_private_numbers(self, numbers: DSAPrivateNumbers) -> DSAPrivateKey: ...
|
| 100 |
+
@abstractmethod
|
| 101 |
+
def load_dsa_public_numbers(self, numbers: DSAPublicNumbers) -> DSAPublicKey: ...
|
| 102 |
+
|
| 103 |
+
class EllipticCurveBackend(metaclass=ABCMeta):
|
| 104 |
+
@abstractmethod
|
| 105 |
+
def derive_elliptic_curve_private_key(self, private_value: int, curve: EllipticCurve) -> EllipticCurvePrivateKey: ...
|
| 106 |
+
@abstractmethod
|
| 107 |
+
def elliptic_curve_signature_algorithm_supported(
|
| 108 |
+
self, signature_algorithm: EllipticCurveSignatureAlgorithm, curve: EllipticCurve
|
| 109 |
+
) -> bool: ...
|
| 110 |
+
@abstractmethod
|
| 111 |
+
def elliptic_curve_supported(self, curve: EllipticCurve) -> bool: ...
|
| 112 |
+
@abstractmethod
|
| 113 |
+
def generate_elliptic_curve_private_key(self, curve: EllipticCurve) -> EllipticCurvePrivateKey: ...
|
| 114 |
+
@abstractmethod
|
| 115 |
+
def load_elliptic_curve_private_numbers(self, numbers: EllipticCurvePrivateNumbers) -> EllipticCurvePrivateKey: ...
|
| 116 |
+
@abstractmethod
|
| 117 |
+
def load_elliptic_curve_public_numbers(self, numbers: EllipticCurvePublicNumbers) -> EllipticCurvePublicKey: ...
|
| 118 |
+
|
| 119 |
+
class HMACBackend(metaclass=ABCMeta):
|
| 120 |
+
@abstractmethod
|
| 121 |
+
def create_hmac_ctx(self, key: bytes, algorithm: HashAlgorithm) -> HashContext: ...
|
| 122 |
+
@abstractmethod
|
| 123 |
+
def cmac_algorithm_supported(self, algorithm: HashAlgorithm) -> bool: ...
|
| 124 |
+
|
| 125 |
+
class HashBackend(metaclass=ABCMeta):
|
| 126 |
+
@abstractmethod
|
| 127 |
+
def create_hash_ctx(self, algorithm: HashAlgorithm) -> HashContext: ...
|
| 128 |
+
@abstractmethod
|
| 129 |
+
def hash_supported(self, algorithm: HashAlgorithm) -> bool: ...
|
| 130 |
+
|
| 131 |
+
class PBKDF2HMACBackend(metaclass=ABCMeta):
|
| 132 |
+
@abstractmethod
|
| 133 |
+
def derive_pbkdf2_hmac(
|
| 134 |
+
self, algorithm: HashAlgorithm, length: int, salt: bytes, iterations: int, key_material: bytes
|
| 135 |
+
) -> bytes: ...
|
| 136 |
+
@abstractmethod
|
| 137 |
+
def pbkdf2_hmac_supported(self, algorithm: HashAlgorithm) -> bool: ...
|
| 138 |
+
|
| 139 |
+
class PEMSerializationBackend(metaclass=ABCMeta):
|
| 140 |
+
@abstractmethod
|
| 141 |
+
def load_pem_parameters(self, data: bytes) -> Any: ...
|
| 142 |
+
@abstractmethod
|
| 143 |
+
def load_pem_private_key(self, data: bytes, password: Optional[bytes]) -> Any: ...
|
| 144 |
+
@abstractmethod
|
| 145 |
+
def load_pem_public_key(self, data: bytes) -> Any: ...
|
| 146 |
+
|
| 147 |
+
class RSABackend(metaclass=ABCMeta):
|
| 148 |
+
@abstractmethod
|
| 149 |
+
def generate_rsa_parameters_supported(self, public_exponent: int, key_size: int) -> bool: ...
|
| 150 |
+
@abstractmethod
|
| 151 |
+
def generate_rsa_private_key(self, public_exponent: int, key_size: int) -> RSAPrivateKey: ...
|
| 152 |
+
@abstractmethod
|
| 153 |
+
def load_rsa_public_numbers(self, numbers: RSAPublicNumbers) -> RSAPublicKey: ...
|
| 154 |
+
@abstractmethod
|
| 155 |
+
def load_rsa_private_numbers(self, numbers: RSAPrivateNumbers) -> RSAPrivateKey: ...
|
| 156 |
+
@abstractmethod
|
| 157 |
+
def rsa_padding_supported(self, padding: AsymmetricPadding) -> bool: ...
|
| 158 |
+
|
| 159 |
+
class ScryptBackend(metaclass=ABCMeta):
|
| 160 |
+
@abstractmethod
|
| 161 |
+
def derive_scrypt(self, key_material: bytes, salt: bytes, length: int, n: int, r: int, p: int) -> bytes: ...
|
| 162 |
+
|
| 163 |
+
class X509Backend(metaclass=ABCMeta):
|
| 164 |
+
@abstractmethod
|
| 165 |
+
def create_x509_certificate(
|
| 166 |
+
self,
|
| 167 |
+
builder: CertificateBuilder,
|
| 168 |
+
private_key: Union[DSAPrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 169 |
+
algorithm: HashAlgorithm,
|
| 170 |
+
) -> Certificate: ...
|
| 171 |
+
@abstractmethod
|
| 172 |
+
def create_x509_crl(
|
| 173 |
+
self,
|
| 174 |
+
builder: CertificateRevocationListBuilder,
|
| 175 |
+
private_key: Union[DSAPrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 176 |
+
algorithm: HashAlgorithm,
|
| 177 |
+
) -> CertificateRevocationList: ...
|
| 178 |
+
@abstractmethod
|
| 179 |
+
def create_x509_csr(
|
| 180 |
+
self,
|
| 181 |
+
builder: CertificateSigningRequestBuilder,
|
| 182 |
+
private_key: Union[DSAPrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 183 |
+
algorithm: HashAlgorithm,
|
| 184 |
+
) -> CertificateSigningRequest: ...
|
| 185 |
+
@abstractmethod
|
| 186 |
+
def create_x509_revoked_certificate(self, builder: RevokedCertificateBuilder) -> RevokedCertificate: ...
|
| 187 |
+
@abstractmethod
|
| 188 |
+
def load_der_x509_certificate(self, data: bytes) -> Certificate: ...
|
| 189 |
+
@abstractmethod
|
| 190 |
+
def load_der_x509_csr(self, data: bytes) -> CertificateSigningRequest: ...
|
| 191 |
+
@abstractmethod
|
| 192 |
+
def load_pem_x509_certificate(self, data: bytes) -> Certificate: ...
|
| 193 |
+
@abstractmethod
|
| 194 |
+
def load_pem_x509_csr(self, data: bytes) -> CertificateSigningRequest: ...
|
| 195 |
+
@abstractmethod
|
| 196 |
+
def x509_name_bytes(self, name: Name) -> bytes: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/openssl/__init__.pyi
ADDED
|
File without changes
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/openssl/binding.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
class Binding(object):
|
| 4 |
+
ffi: Optional[Any]
|
| 5 |
+
lib: Optional[Any]
|
| 6 |
+
def init_static_locks(self) -> None: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/__init__.pyi
ADDED
|
@@ -0,0 +1,420 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import datetime
|
| 2 |
+
from abc import ABCMeta, abstractmethod
|
| 3 |
+
from enum import Enum
|
| 4 |
+
from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network
|
| 5 |
+
from typing import Any, ClassVar, Generator, Generic, Iterable, List, Optional, Sequence, Text, Type, TypeVar, Union
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.backends.interfaces import X509Backend
|
| 8 |
+
from cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKey, DSAPublicKey
|
| 9 |
+
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKey, EllipticCurvePublicKey
|
| 10 |
+
from cryptography.hazmat.primitives.asymmetric.ed448 import Ed448PrivateKey, Ed448PublicKey
|
| 11 |
+
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey, Ed25519PublicKey
|
| 12 |
+
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey
|
| 13 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 14 |
+
from cryptography.hazmat.primitives.serialization import Encoding
|
| 15 |
+
|
| 16 |
+
class ObjectIdentifier(object):
|
| 17 |
+
dotted_string: str
|
| 18 |
+
def __init__(self, dotted_string: str) -> None: ...
|
| 19 |
+
|
| 20 |
+
class CRLEntryExtensionOID(object):
|
| 21 |
+
CERTIFICATE_ISSUER: ClassVar[ObjectIdentifier]
|
| 22 |
+
CRL_REASON: ClassVar[ObjectIdentifier]
|
| 23 |
+
INVALIDITY_DATE: ClassVar[ObjectIdentifier]
|
| 24 |
+
|
| 25 |
+
class ExtensionOID(object):
|
| 26 |
+
AUTHORITY_INFORMATION_ACCESS: ClassVar[ObjectIdentifier]
|
| 27 |
+
AUTHORITY_KEY_IDENTIFIER: ClassVar[ObjectIdentifier]
|
| 28 |
+
BASIC_CONSTRAINTS: ClassVar[ObjectIdentifier]
|
| 29 |
+
CERTIFICATE_POLICIES: ClassVar[ObjectIdentifier]
|
| 30 |
+
CRL_DISTRIBUTION_POINTS: ClassVar[ObjectIdentifier]
|
| 31 |
+
CRL_NUMBER: ClassVar[ObjectIdentifier]
|
| 32 |
+
DELTA_CRL_INDICATOR: ClassVar[ObjectIdentifier]
|
| 33 |
+
EXTENDED_KEY_USAGE: ClassVar[ObjectIdentifier]
|
| 34 |
+
FRESHEST_CRL: ClassVar[ObjectIdentifier]
|
| 35 |
+
INHIBIT_ANY_POLICY: ClassVar[ObjectIdentifier]
|
| 36 |
+
ISSUER_ALTERNATIVE_NAME: ClassVar[ObjectIdentifier]
|
| 37 |
+
ISSUING_DISTRIBUTION_POINT: ClassVar[ObjectIdentifier]
|
| 38 |
+
KEY_USAGE: ClassVar[ObjectIdentifier]
|
| 39 |
+
NAME_CONSTRAINTS: ClassVar[ObjectIdentifier]
|
| 40 |
+
OCSP_NO_CHECK: ClassVar[ObjectIdentifier]
|
| 41 |
+
POLICY_CONSTRAINTS: ClassVar[ObjectIdentifier]
|
| 42 |
+
POLICY_MAPPINGS: ClassVar[ObjectIdentifier]
|
| 43 |
+
PRECERT_POISON: ClassVar[ObjectIdentifier]
|
| 44 |
+
PRECERT_SIGNED_CERTIFICATE_TIMESTAMPS: ClassVar[ObjectIdentifier]
|
| 45 |
+
SUBJECT_ALTERNATIVE_NAME: ClassVar[ObjectIdentifier]
|
| 46 |
+
SUBJECT_DIRECTORY_ATTRIBUTES: ClassVar[ObjectIdentifier]
|
| 47 |
+
SUBJECT_INFORMATION_ACCESS: ClassVar[ObjectIdentifier]
|
| 48 |
+
SUBJECT_KEY_IDENTIFIER: ClassVar[ObjectIdentifier]
|
| 49 |
+
TLS_FEATURE: ClassVar[ObjectIdentifier]
|
| 50 |
+
|
| 51 |
+
class NameOID(object):
|
| 52 |
+
BUSINESS_CATEGORY: ClassVar[ObjectIdentifier]
|
| 53 |
+
COMMON_NAME: ClassVar[ObjectIdentifier]
|
| 54 |
+
COUNTRY_NAME: ClassVar[ObjectIdentifier]
|
| 55 |
+
DN_QUALIFIER: ClassVar[ObjectIdentifier]
|
| 56 |
+
DOMAIN_COMPONENT: ClassVar[ObjectIdentifier]
|
| 57 |
+
EMAIL_ADDRESS: ClassVar[ObjectIdentifier]
|
| 58 |
+
GENERATION_QUALIFIER: ClassVar[ObjectIdentifier]
|
| 59 |
+
GIVEN_NAME: ClassVar[ObjectIdentifier]
|
| 60 |
+
JURISDICTION_COUNTRY_NAME: ClassVar[ObjectIdentifier]
|
| 61 |
+
JURISDICTION_LOCALITY_NAME: ClassVar[ObjectIdentifier]
|
| 62 |
+
JURISDICTION_STATE_OR_PROVINCE_NAME: ClassVar[ObjectIdentifier]
|
| 63 |
+
LOCALITY_NAME: ClassVar[ObjectIdentifier]
|
| 64 |
+
ORGANIZATIONAL_UNIT_NAME: ClassVar[ObjectIdentifier]
|
| 65 |
+
ORGANIZATION_NAME: ClassVar[ObjectIdentifier]
|
| 66 |
+
POSTAL_ADDRESS: ClassVar[ObjectIdentifier]
|
| 67 |
+
POSTAL_CODE: ClassVar[ObjectIdentifier]
|
| 68 |
+
PSEUDONYM: ClassVar[ObjectIdentifier]
|
| 69 |
+
SERIAL_NUMBER: ClassVar[ObjectIdentifier]
|
| 70 |
+
STATE_OR_PROVINCE_NAME: ClassVar[ObjectIdentifier]
|
| 71 |
+
STREET_ADDRESS: ClassVar[ObjectIdentifier]
|
| 72 |
+
SURNAME: ClassVar[ObjectIdentifier]
|
| 73 |
+
TITLE: ClassVar[ObjectIdentifier]
|
| 74 |
+
USER_ID: ClassVar[ObjectIdentifier]
|
| 75 |
+
X500_UNIQUE_IDENTIFIER: ClassVar[ObjectIdentifier]
|
| 76 |
+
|
| 77 |
+
class OCSPExtensionOID(object):
|
| 78 |
+
NONCE: ClassVar[ObjectIdentifier]
|
| 79 |
+
|
| 80 |
+
class SignatureAlgorithmOID(object):
|
| 81 |
+
DSA_WITH_SHA1: ClassVar[ObjectIdentifier]
|
| 82 |
+
DSA_WITH_SHA224: ClassVar[ObjectIdentifier]
|
| 83 |
+
DSA_WITH_SHA256: ClassVar[ObjectIdentifier]
|
| 84 |
+
ECDSA_WITH_SHA1: ClassVar[ObjectIdentifier]
|
| 85 |
+
ECDSA_WITH_SHA224: ClassVar[ObjectIdentifier]
|
| 86 |
+
ECDSA_WITH_SHA256: ClassVar[ObjectIdentifier]
|
| 87 |
+
ECDSA_WITH_SHA384: ClassVar[ObjectIdentifier]
|
| 88 |
+
ECDSA_WITH_SHA512: ClassVar[ObjectIdentifier]
|
| 89 |
+
ED25519: ClassVar[ObjectIdentifier]
|
| 90 |
+
ED448: ClassVar[ObjectIdentifier]
|
| 91 |
+
RSASSA_PSS: ClassVar[ObjectIdentifier]
|
| 92 |
+
RSA_WITH_MD5: ClassVar[ObjectIdentifier]
|
| 93 |
+
RSA_WITH_SHA1: ClassVar[ObjectIdentifier]
|
| 94 |
+
RSA_WITH_SHA224: ClassVar[ObjectIdentifier]
|
| 95 |
+
RSA_WITH_SHA256: ClassVar[ObjectIdentifier]
|
| 96 |
+
RSA_WITH_SHA384: ClassVar[ObjectIdentifier]
|
| 97 |
+
RSA_WITH_SHA512: ClassVar[ObjectIdentifier]
|
| 98 |
+
|
| 99 |
+
class ExtendedKeyUsageOID(object):
|
| 100 |
+
SERVER_AUTH: ClassVar[ObjectIdentifier]
|
| 101 |
+
CLIENT_AUTH: ClassVar[ObjectIdentifier]
|
| 102 |
+
CODE_SIGNING: ClassVar[ObjectIdentifier]
|
| 103 |
+
EMAIL_PROTECTION: ClassVar[ObjectIdentifier]
|
| 104 |
+
TIME_STAMPING: ClassVar[ObjectIdentifier]
|
| 105 |
+
OCSP_SIGNING: ClassVar[ObjectIdentifier]
|
| 106 |
+
ANY_EXTENDED_KEY_USAGE: ClassVar[ObjectIdentifier]
|
| 107 |
+
|
| 108 |
+
class NameAttribute(object):
|
| 109 |
+
oid: ObjectIdentifier
|
| 110 |
+
value: Text
|
| 111 |
+
def __init__(self, oid: ObjectIdentifier, value: Text) -> None: ...
|
| 112 |
+
def rfc4514_string(self) -> str: ...
|
| 113 |
+
|
| 114 |
+
class RelativeDistinguishedName(object):
|
| 115 |
+
def __init__(self, attributes: List[NameAttribute]) -> None: ...
|
| 116 |
+
def __iter__(self) -> Generator[NameAttribute, None, None]: ...
|
| 117 |
+
def get_attributes_for_oid(self, oid: ObjectIdentifier) -> List[NameAttribute]: ...
|
| 118 |
+
def rfc4514_string(self) -> str: ...
|
| 119 |
+
|
| 120 |
+
class Name(object):
|
| 121 |
+
rdns: List[RelativeDistinguishedName]
|
| 122 |
+
def __init__(self, attributes: Sequence[Union[NameAttribute, RelativeDistinguishedName]]) -> None: ...
|
| 123 |
+
def __iter__(self) -> Generator[NameAttribute, None, None]: ...
|
| 124 |
+
def __len__(self) -> int: ...
|
| 125 |
+
def get_attributes_for_oid(self, oid: ObjectIdentifier) -> List[NameAttribute]: ...
|
| 126 |
+
def public_bytes(self, backend: Optional[X509Backend] = ...) -> bytes: ...
|
| 127 |
+
def rfc4514_string(self) -> str: ...
|
| 128 |
+
|
| 129 |
+
class Version(Enum):
|
| 130 |
+
v1: int
|
| 131 |
+
v3: int
|
| 132 |
+
|
| 133 |
+
class Certificate(metaclass=ABCMeta):
|
| 134 |
+
extensions: Extensions
|
| 135 |
+
issuer: Name
|
| 136 |
+
not_valid_after: datetime.datetime
|
| 137 |
+
not_valid_before: datetime.datetime
|
| 138 |
+
serial_number: int
|
| 139 |
+
signature: bytes
|
| 140 |
+
signature_algorithm_oid: ObjectIdentifier
|
| 141 |
+
signature_hash_algorithm: HashAlgorithm
|
| 142 |
+
tbs_certificate_bytes: bytes
|
| 143 |
+
subject: Name
|
| 144 |
+
version: Version
|
| 145 |
+
@abstractmethod
|
| 146 |
+
def fingerprint(self, algorithm: HashAlgorithm) -> bytes: ...
|
| 147 |
+
@abstractmethod
|
| 148 |
+
def public_bytes(self, encoding: Encoding) -> bytes: ...
|
| 149 |
+
@abstractmethod
|
| 150 |
+
def public_key(self) -> Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]: ...
|
| 151 |
+
|
| 152 |
+
class CertificateBuilder(object):
|
| 153 |
+
def __init__(
|
| 154 |
+
self,
|
| 155 |
+
issuer_name: Optional[Name] = ...,
|
| 156 |
+
subject_name: Optional[Name] = ...,
|
| 157 |
+
public_key: Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey, None] = ...,
|
| 158 |
+
serial_number: Optional[int] = ...,
|
| 159 |
+
not_valid_before: Optional[datetime.datetime] = ...,
|
| 160 |
+
not_valid_after: Optional[datetime.datetime] = ...,
|
| 161 |
+
extensions: Optional[Iterable[ExtensionType]] = ...,
|
| 162 |
+
) -> None: ...
|
| 163 |
+
def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateBuilder: ...
|
| 164 |
+
def issuer_name(self, name: Name) -> CertificateBuilder: ...
|
| 165 |
+
def not_valid_after(self, time: datetime.datetime) -> CertificateBuilder: ...
|
| 166 |
+
def not_valid_before(self, time: datetime.datetime) -> CertificateBuilder: ...
|
| 167 |
+
def public_key(
|
| 168 |
+
self, public_key: Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]
|
| 169 |
+
) -> CertificateBuilder: ...
|
| 170 |
+
def serial_number(self, serial_number: int) -> CertificateBuilder: ...
|
| 171 |
+
def sign(
|
| 172 |
+
self,
|
| 173 |
+
private_key: Union[DSAPrivateKey, Ed25519PrivateKey, Ed448PrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 174 |
+
algorithm: Optional[HashAlgorithm],
|
| 175 |
+
backend: Optional[X509Backend] = ...,
|
| 176 |
+
) -> Certificate: ...
|
| 177 |
+
def subject_name(self, name: Name) -> CertificateBuilder: ...
|
| 178 |
+
|
| 179 |
+
class CertificateRevocationList(metaclass=ABCMeta):
|
| 180 |
+
extensions: Extensions
|
| 181 |
+
issuer: Name
|
| 182 |
+
last_update: datetime.datetime
|
| 183 |
+
next_update: datetime.datetime
|
| 184 |
+
signature: bytes
|
| 185 |
+
signature_algorithm_oid: ObjectIdentifier
|
| 186 |
+
signature_hash_algorithm: HashAlgorithm
|
| 187 |
+
tbs_certlist_bytes: bytes
|
| 188 |
+
@abstractmethod
|
| 189 |
+
def fingerprint(self, algorithm: HashAlgorithm) -> bytes: ...
|
| 190 |
+
@abstractmethod
|
| 191 |
+
def get_revoked_certificate_by_serial_number(self, serial_number: int) -> RevokedCertificate: ...
|
| 192 |
+
@abstractmethod
|
| 193 |
+
def is_signature_valid(
|
| 194 |
+
self, public_key: Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]
|
| 195 |
+
) -> bool: ...
|
| 196 |
+
@abstractmethod
|
| 197 |
+
def public_bytes(self, encoding: Encoding) -> bytes: ...
|
| 198 |
+
|
| 199 |
+
class CertificateRevocationListBuilder(object):
|
| 200 |
+
def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateRevocationListBuilder: ...
|
| 201 |
+
def add_revoked_certificate(self, revoked_certificate: RevokedCertificate) -> CertificateRevocationListBuilder: ...
|
| 202 |
+
def issuer_name(self, name: Name) -> CertificateRevocationListBuilder: ...
|
| 203 |
+
def last_update(self, time: datetime.datetime) -> CertificateRevocationListBuilder: ...
|
| 204 |
+
def next_update(self, time: datetime.datetime) -> CertificateRevocationListBuilder: ...
|
| 205 |
+
def sign(
|
| 206 |
+
self,
|
| 207 |
+
private_key: Union[DSAPrivateKey, Ed25519PrivateKey, Ed448PrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 208 |
+
algorithm: Optional[HashAlgorithm],
|
| 209 |
+
backend: Optional[X509Backend] = ...,
|
| 210 |
+
) -> CertificateRevocationList: ...
|
| 211 |
+
|
| 212 |
+
class CertificateSigningRequest(metaclass=ABCMeta):
|
| 213 |
+
extensions: Extensions
|
| 214 |
+
is_signature_valid: bool
|
| 215 |
+
signature: bytes
|
| 216 |
+
signature_algorithm_oid: ObjectIdentifier
|
| 217 |
+
signature_hash_algorithm: HashAlgorithm
|
| 218 |
+
subject: Name
|
| 219 |
+
tbs_certrequest_bytes: bytes
|
| 220 |
+
@abstractmethod
|
| 221 |
+
def public_bytes(self, encoding: Encoding) -> bytes: ...
|
| 222 |
+
@abstractmethod
|
| 223 |
+
def public_key(self) -> Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]: ...
|
| 224 |
+
|
| 225 |
+
class CertificateSigningRequestBuilder(object):
|
| 226 |
+
def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateSigningRequestBuilder: ...
|
| 227 |
+
def subject_name(self, name: Name) -> CertificateSigningRequestBuilder: ...
|
| 228 |
+
def sign(
|
| 229 |
+
self,
|
| 230 |
+
private_key: Union[DSAPrivateKey, Ed25519PrivateKey, Ed448PrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 231 |
+
algorithm: Optional[HashAlgorithm],
|
| 232 |
+
backend: Optional[X509Backend] = ...,
|
| 233 |
+
) -> CertificateSigningRequest: ...
|
| 234 |
+
|
| 235 |
+
class RevokedCertificate(metaclass=ABCMeta):
|
| 236 |
+
extensions: Extensions
|
| 237 |
+
revocation_date: datetime.datetime
|
| 238 |
+
serial_number: int
|
| 239 |
+
|
| 240 |
+
class RevokedCertificateBuilder(object):
|
| 241 |
+
def add_extension(self, extension: ExtensionType, critical: bool) -> RevokedCertificateBuilder: ...
|
| 242 |
+
def build(self, backend: Optional[X509Backend] = ...) -> RevokedCertificate: ...
|
| 243 |
+
def revocation_date(self, time: datetime.datetime) -> RevokedCertificateBuilder: ...
|
| 244 |
+
def serial_number(self, serial_number: int) -> RevokedCertificateBuilder: ...
|
| 245 |
+
|
| 246 |
+
# General Name Classes
|
| 247 |
+
|
| 248 |
+
class GeneralName(metaclass=ABCMeta):
|
| 249 |
+
value: Any
|
| 250 |
+
|
| 251 |
+
class DirectoryName(GeneralName):
|
| 252 |
+
value: Name
|
| 253 |
+
def __init__(self, value: Name) -> None: ...
|
| 254 |
+
|
| 255 |
+
class DNSName(GeneralName):
|
| 256 |
+
value: Text
|
| 257 |
+
def __init__(self, value: Text) -> None: ...
|
| 258 |
+
|
| 259 |
+
class IPAddress(GeneralName):
|
| 260 |
+
value: Union[IPv4Address, IPv6Address, IPv4Network, IPv6Network]
|
| 261 |
+
def __init__(self, value: Union[IPv4Address, IPv6Address, IPv4Network, IPv6Network]) -> None: ...
|
| 262 |
+
|
| 263 |
+
class OtherName(GeneralName):
|
| 264 |
+
type_id: ObjectIdentifier
|
| 265 |
+
value: bytes
|
| 266 |
+
def __init__(self, type_id: ObjectIdentifier, value: bytes) -> None: ...
|
| 267 |
+
|
| 268 |
+
class RegisteredID(GeneralName):
|
| 269 |
+
value: ObjectIdentifier
|
| 270 |
+
def __init__(self, value: ObjectIdentifier) -> None: ...
|
| 271 |
+
|
| 272 |
+
class RFC822Name(GeneralName):
|
| 273 |
+
value: Text
|
| 274 |
+
def __init__(self, value: Text) -> None: ...
|
| 275 |
+
|
| 276 |
+
class UniformResourceIdentifier(GeneralName):
|
| 277 |
+
value: Text
|
| 278 |
+
def __init__(self, value: Text) -> None: ...
|
| 279 |
+
|
| 280 |
+
# X.509 Extensions
|
| 281 |
+
|
| 282 |
+
class ExtensionType(metaclass=ABCMeta):
|
| 283 |
+
oid: ObjectIdentifier
|
| 284 |
+
|
| 285 |
+
_T = TypeVar("_T", bound="ExtensionType")
|
| 286 |
+
|
| 287 |
+
class Extension(Generic[_T]):
|
| 288 |
+
critical: bool
|
| 289 |
+
oid: ObjectIdentifier
|
| 290 |
+
value: _T
|
| 291 |
+
|
| 292 |
+
class Extensions(object):
|
| 293 |
+
def __init__(self, general_names: List[Extension[Any]]) -> None: ...
|
| 294 |
+
def __iter__(self) -> Generator[Extension[Any], None, None]: ...
|
| 295 |
+
def get_extension_for_oid(self, oid: ObjectIdentifier) -> Extension[Any]: ...
|
| 296 |
+
def get_extension_for_class(self, extclass: Type[_T]) -> Extension[_T]: ...
|
| 297 |
+
|
| 298 |
+
class DuplicateExtension(Exception):
|
| 299 |
+
oid: ObjectIdentifier
|
| 300 |
+
def __init__(self, msg: str, oid: ObjectIdentifier) -> None: ...
|
| 301 |
+
|
| 302 |
+
class ExtensionNotFound(Exception):
|
| 303 |
+
oid: ObjectIdentifier
|
| 304 |
+
def __init__(self, msg: str, oid: ObjectIdentifier) -> None: ...
|
| 305 |
+
|
| 306 |
+
class IssuerAlternativeName(ExtensionType):
|
| 307 |
+
def __init__(self, general_names: List[GeneralName]) -> None: ...
|
| 308 |
+
def __iter__(self) -> Generator[GeneralName, None, None]: ...
|
| 309 |
+
def get_values_for_type(self, type: Type[GeneralName]) -> List[Any]: ...
|
| 310 |
+
|
| 311 |
+
class SubjectAlternativeName(ExtensionType):
|
| 312 |
+
def __init__(self, general_names: List[GeneralName]) -> None: ...
|
| 313 |
+
def __iter__(self) -> Generator[GeneralName, None, None]: ...
|
| 314 |
+
def get_values_for_type(self, type: Type[GeneralName]) -> List[Any]: ...
|
| 315 |
+
|
| 316 |
+
class AuthorityKeyIdentifier(ExtensionType):
|
| 317 |
+
@property
|
| 318 |
+
def key_identifier(self) -> bytes: ...
|
| 319 |
+
@property
|
| 320 |
+
def authority_cert_issuer(self) -> Optional[List[GeneralName]]: ...
|
| 321 |
+
@property
|
| 322 |
+
def authority_cert_serial_number(self) -> Optional[int]: ...
|
| 323 |
+
def __init__(
|
| 324 |
+
self,
|
| 325 |
+
key_identifier: bytes,
|
| 326 |
+
authority_cert_issuer: Optional[Iterable[GeneralName]],
|
| 327 |
+
authority_cert_serial_number: Optional[int],
|
| 328 |
+
) -> None: ...
|
| 329 |
+
@classmethod
|
| 330 |
+
def from_issuer_public_key(
|
| 331 |
+
cls, public_key: Union[RSAPublicKey, DSAPublicKey, EllipticCurvePublicKey, Ed25519PublicKey, Ed448PublicKey]
|
| 332 |
+
) -> AuthorityKeyIdentifier: ...
|
| 333 |
+
@classmethod
|
| 334 |
+
def from_issuer_subject_key_identifier(cls, ski: SubjectKeyIdentifier) -> AuthorityKeyIdentifier: ...
|
| 335 |
+
|
| 336 |
+
class SubjectKeyIdentifier(ExtensionType):
|
| 337 |
+
@property
|
| 338 |
+
def digest(self) -> bytes: ...
|
| 339 |
+
def __init__(self, digest: bytes) -> None: ...
|
| 340 |
+
@classmethod
|
| 341 |
+
def from_public_key(
|
| 342 |
+
cls, public_key: Union[RSAPublicKey, DSAPublicKey, EllipticCurvePublicKey, Ed25519PublicKey, Ed448PublicKey]
|
| 343 |
+
) -> SubjectKeyIdentifier: ...
|
| 344 |
+
|
| 345 |
+
class AccessDescription:
|
| 346 |
+
@property
|
| 347 |
+
def access_method(self) -> ObjectIdentifier: ...
|
| 348 |
+
@property
|
| 349 |
+
def access_location(self) -> GeneralName: ...
|
| 350 |
+
def __init__(self, access_method: ObjectIdentifier, access_location: GeneralName) -> None: ...
|
| 351 |
+
|
| 352 |
+
class AuthorityInformationAccess(ExtensionType):
|
| 353 |
+
def __init__(self, descriptions: Iterable[AccessDescription]) -> None: ...
|
| 354 |
+
def __len__(self) -> int: ...
|
| 355 |
+
def __iter__(self) -> Generator[AccessDescription, None, None]: ...
|
| 356 |
+
def __getitem__(self, item: int) -> AccessDescription: ...
|
| 357 |
+
|
| 358 |
+
class SubjectInformationAccess(ExtensionType):
|
| 359 |
+
def __init__(self, descriptions: Iterable[AccessDescription]) -> None: ...
|
| 360 |
+
def __len__(self) -> int: ...
|
| 361 |
+
def __iter__(self) -> Generator[AccessDescription, None, None]: ...
|
| 362 |
+
def __getitem__(self, item: int) -> AccessDescription: ...
|
| 363 |
+
|
| 364 |
+
class BasicConstraints(ExtensionType):
|
| 365 |
+
@property
|
| 366 |
+
def ca(self) -> bool: ...
|
| 367 |
+
@property
|
| 368 |
+
def path_length(self) -> Optional[int]: ...
|
| 369 |
+
def __init__(self, ca: bool, path_length: Optional[int]) -> None: ...
|
| 370 |
+
|
| 371 |
+
class KeyUsage(ExtensionType):
|
| 372 |
+
@property
|
| 373 |
+
def digital_signature(self) -> bool: ...
|
| 374 |
+
@property
|
| 375 |
+
def content_commitment(self) -> bool: ...
|
| 376 |
+
@property
|
| 377 |
+
def key_encipherment(self) -> bool: ...
|
| 378 |
+
@property
|
| 379 |
+
def data_encipherment(self) -> bool: ...
|
| 380 |
+
@property
|
| 381 |
+
def key_agreement(self) -> bool: ...
|
| 382 |
+
@property
|
| 383 |
+
def key_cert_sign(self) -> bool: ...
|
| 384 |
+
@property
|
| 385 |
+
def crl_sign(self) -> bool: ...
|
| 386 |
+
@property
|
| 387 |
+
def encipher_only(self) -> bool: ...
|
| 388 |
+
@property
|
| 389 |
+
def decipher_only(self) -> bool: ...
|
| 390 |
+
def __init__(
|
| 391 |
+
self,
|
| 392 |
+
digital_signature: bool,
|
| 393 |
+
content_commitment: bool,
|
| 394 |
+
key_encipherment: bool,
|
| 395 |
+
data_encipherment: bool,
|
| 396 |
+
key_agreement: bool,
|
| 397 |
+
key_cert_sign: bool,
|
| 398 |
+
crl_sign: bool,
|
| 399 |
+
encipher_only: bool,
|
| 400 |
+
decipher_only: bool,
|
| 401 |
+
) -> None: ...
|
| 402 |
+
|
| 403 |
+
class ExtendedKeyUsage(ExtensionType):
|
| 404 |
+
def __init__(self, usages: Iterable[ObjectIdentifier]) -> None: ...
|
| 405 |
+
def __len__(self) -> int: ...
|
| 406 |
+
def __iter__(self) -> Generator[ObjectIdentifier, None, None]: ...
|
| 407 |
+
def __getitem__(self, item: int) -> ObjectIdentifier: ...
|
| 408 |
+
|
| 409 |
+
class UnrecognizedExtension(ExtensionType):
|
| 410 |
+
@property
|
| 411 |
+
def value(self) -> bytes: ...
|
| 412 |
+
def __init__(self, oid: ObjectIdentifier, value: bytes) -> None: ...
|
| 413 |
+
|
| 414 |
+
def load_der_x509_certificate(data: bytes, backend: Optional[X509Backend] = ...) -> Certificate: ...
|
| 415 |
+
def load_pem_x509_certificate(data: bytes, backend: Optional[X509Backend] = ...) -> Certificate: ...
|
| 416 |
+
def load_der_x509_crl(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateRevocationList: ...
|
| 417 |
+
def load_pem_x509_crl(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateRevocationList: ...
|
| 418 |
+
def load_der_x509_csr(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateSigningRequest: ...
|
| 419 |
+
def load_pem_x509_csr(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateSigningRequest: ...
|
| 420 |
+
def __getattr__(name: str) -> Any: ... # incomplete
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/extensions.pyi
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Iterator
|
| 2 |
+
|
| 3 |
+
from cryptography.x509 import GeneralName, ObjectIdentifier
|
| 4 |
+
|
| 5 |
+
class Extension:
|
| 6 |
+
value: Any = ...
|
| 7 |
+
|
| 8 |
+
class GeneralNames:
|
| 9 |
+
def __iter__(self) -> Iterator[GeneralName]: ...
|
| 10 |
+
|
| 11 |
+
class DistributionPoint:
|
| 12 |
+
full_name: GeneralNames = ...
|
| 13 |
+
|
| 14 |
+
class CRLDistributionPoints:
|
| 15 |
+
def __iter__(self) -> Iterator[DistributionPoint]: ...
|
| 16 |
+
|
| 17 |
+
class AccessDescription:
|
| 18 |
+
access_method: ObjectIdentifier = ...
|
| 19 |
+
access_location: GeneralName = ...
|
| 20 |
+
|
| 21 |
+
class AuthorityInformationAccess:
|
| 22 |
+
def __iter__(self) -> Iterator[AccessDescription]: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/oid.pyi
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Dict, Optional
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 4 |
+
from cryptography.x509 import ObjectIdentifier
|
| 5 |
+
|
| 6 |
+
class ExtensionOID:
|
| 7 |
+
SUBJECT_DIRECTORY_ATTRIBUTES: ObjectIdentifier = ...
|
| 8 |
+
SUBJECT_KEY_IDENTIFIER: ObjectIdentifier = ...
|
| 9 |
+
KEY_USAGE: ObjectIdentifier = ...
|
| 10 |
+
SUBJECT_ALTERNATIVE_NAME: ObjectIdentifier = ...
|
| 11 |
+
ISSUER_ALTERNATIVE_NAME: ObjectIdentifier = ...
|
| 12 |
+
BASIC_CONSTRAINTS: ObjectIdentifier = ...
|
| 13 |
+
NAME_CONSTRAINTS: ObjectIdentifier = ...
|
| 14 |
+
CRL_DISTRIBUTION_POINTS: ObjectIdentifier = ...
|
| 15 |
+
CERTIFICATE_POLICIES: ObjectIdentifier = ...
|
| 16 |
+
POLICY_MAPPINGS: ObjectIdentifier = ...
|
| 17 |
+
AUTHORITY_KEY_IDENTIFIER: ObjectIdentifier = ...
|
| 18 |
+
POLICY_CONSTRAINTS: ObjectIdentifier = ...
|
| 19 |
+
EXTENDED_KEY_USAGE: ObjectIdentifier = ...
|
| 20 |
+
FRESHEST_CRL: ObjectIdentifier = ...
|
| 21 |
+
INHIBIT_ANY_POLICY: ObjectIdentifier = ...
|
| 22 |
+
ISSUING_DISTRIBUTION_POINT: ObjectIdentifier = ...
|
| 23 |
+
AUTHORITY_INFORMATION_ACCESS: ObjectIdentifier = ...
|
| 24 |
+
SUBJECT_INFORMATION_ACCESS: ObjectIdentifier = ...
|
| 25 |
+
OCSP_NO_CHECK: ObjectIdentifier = ...
|
| 26 |
+
TLS_FEATURE: ObjectIdentifier = ...
|
| 27 |
+
CRL_NUMBER: ObjectIdentifier = ...
|
| 28 |
+
DELTA_CRL_INDICATOR: ObjectIdentifier = ...
|
| 29 |
+
PRECERT_SIGNED_CERTIFICATE_TIMESTAMPS: ObjectIdentifier = ...
|
| 30 |
+
PRECERT_POISON: ObjectIdentifier = ...
|
| 31 |
+
|
| 32 |
+
class OCSPExtensionOID:
|
| 33 |
+
NONCE: ObjectIdentifier = ...
|
| 34 |
+
|
| 35 |
+
class CRLEntryExtensionOID:
|
| 36 |
+
CERTIFICATE_ISSUER: ObjectIdentifier = ...
|
| 37 |
+
CRL_REASON: ObjectIdentifier = ...
|
| 38 |
+
INVALIDITY_DATE: ObjectIdentifier = ...
|
| 39 |
+
|
| 40 |
+
class NameOID:
|
| 41 |
+
COMMON_NAME: ObjectIdentifier = ...
|
| 42 |
+
COUNTRY_NAME: ObjectIdentifier = ...
|
| 43 |
+
LOCALITY_NAME: ObjectIdentifier = ...
|
| 44 |
+
STATE_OR_PROVINCE_NAME: ObjectIdentifier = ...
|
| 45 |
+
STREET_ADDRESS: ObjectIdentifier = ...
|
| 46 |
+
ORGANIZATION_NAME: ObjectIdentifier = ...
|
| 47 |
+
ORGANIZATIONAL_UNIT_NAME: ObjectIdentifier = ...
|
| 48 |
+
SERIAL_NUMBER: ObjectIdentifier = ...
|
| 49 |
+
SURNAME: ObjectIdentifier = ...
|
| 50 |
+
GIVEN_NAME: ObjectIdentifier = ...
|
| 51 |
+
TITLE: ObjectIdentifier = ...
|
| 52 |
+
GENERATION_QUALIFIER: ObjectIdentifier = ...
|
| 53 |
+
X500_UNIQUE_IDENTIFIER: ObjectIdentifier = ...
|
| 54 |
+
DN_QUALIFIER: ObjectIdentifier = ...
|
| 55 |
+
PSEUDONYM: ObjectIdentifier = ...
|
| 56 |
+
USER_ID: ObjectIdentifier = ...
|
| 57 |
+
DOMAIN_COMPONENT: ObjectIdentifier = ...
|
| 58 |
+
EMAIL_ADDRESS: ObjectIdentifier = ...
|
| 59 |
+
JURISDICTION_COUNTRY_NAME: ObjectIdentifier = ...
|
| 60 |
+
JURISDICTION_LOCALITY_NAME: ObjectIdentifier = ...
|
| 61 |
+
JURISDICTION_STATE_OR_PROVINCE_NAME: ObjectIdentifier = ...
|
| 62 |
+
BUSINESS_CATEGORY: ObjectIdentifier = ...
|
| 63 |
+
POSTAL_ADDRESS: ObjectIdentifier = ...
|
| 64 |
+
POSTAL_CODE: ObjectIdentifier = ...
|
| 65 |
+
|
| 66 |
+
class SignatureAlgorithmOID:
|
| 67 |
+
RSA_WITH_MD5: ObjectIdentifier = ...
|
| 68 |
+
RSA_WITH_SHA1: ObjectIdentifier = ...
|
| 69 |
+
_RSA_WITH_SHA1: ObjectIdentifier = ...
|
| 70 |
+
RSA_WITH_SHA224: ObjectIdentifier = ...
|
| 71 |
+
RSA_WITH_SHA256: ObjectIdentifier = ...
|
| 72 |
+
RSA_WITH_SHA384: ObjectIdentifier = ...
|
| 73 |
+
RSA_WITH_SHA512: ObjectIdentifier = ...
|
| 74 |
+
RSASSA_PSS: ObjectIdentifier = ...
|
| 75 |
+
ECDSA_WITH_SHA1: ObjectIdentifier = ...
|
| 76 |
+
ECDSA_WITH_SHA224: ObjectIdentifier = ...
|
| 77 |
+
ECDSA_WITH_SHA256: ObjectIdentifier = ...
|
| 78 |
+
ECDSA_WITH_SHA384: ObjectIdentifier = ...
|
| 79 |
+
ECDSA_WITH_SHA512: ObjectIdentifier = ...
|
| 80 |
+
DSA_WITH_SHA1: ObjectIdentifier = ...
|
| 81 |
+
DSA_WITH_SHA224: ObjectIdentifier = ...
|
| 82 |
+
DSA_WITH_SHA256: ObjectIdentifier = ...
|
| 83 |
+
ED25519: ObjectIdentifier = ...
|
| 84 |
+
ED448: ObjectIdentifier = ...
|
| 85 |
+
|
| 86 |
+
class ExtendedKeyUsageOID:
|
| 87 |
+
SERVER_AUTH: ObjectIdentifier = ...
|
| 88 |
+
CLIENT_AUTH: ObjectIdentifier = ...
|
| 89 |
+
CODE_SIGNING: ObjectIdentifier = ...
|
| 90 |
+
EMAIL_PROTECTION: ObjectIdentifier = ...
|
| 91 |
+
TIME_STAMPING: ObjectIdentifier = ...
|
| 92 |
+
OCSP_SIGNING: ObjectIdentifier = ...
|
| 93 |
+
ANY_EXTENDED_KEY_USAGE: ObjectIdentifier = ...
|
| 94 |
+
|
| 95 |
+
class AuthorityInformationAccessOID:
|
| 96 |
+
CA_ISSUERS: ObjectIdentifier = ...
|
| 97 |
+
OCSP: ObjectIdentifier = ...
|
| 98 |
+
|
| 99 |
+
class CertificatePoliciesOID:
|
| 100 |
+
CPS_QUALIFIER: ObjectIdentifier = ...
|
| 101 |
+
CPS_USER_NOTICE: ObjectIdentifier = ...
|
| 102 |
+
ANY_POLICY: ObjectIdentifier = ...
|
| 103 |
+
|
| 104 |
+
_OID_NAMES: Dict[ObjectIdentifier, str] = ...
|
| 105 |
+
|
| 106 |
+
_SIG_OIDS_TO_HASH: Dict[ObjectIdentifier, Optional[HashAlgorithm]] = ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/deprecated/__init__.pyi
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .classic import deprecated as deprecated
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/deprecated/classic.pyi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Optional, Type, TypeVar, overload
|
| 2 |
+
|
| 3 |
+
_F = TypeVar("_F", bound=Callable[..., Any])
|
| 4 |
+
|
| 5 |
+
class ClassicAdapter:
|
| 6 |
+
reason: str
|
| 7 |
+
version: str
|
| 8 |
+
action: Optional[str]
|
| 9 |
+
category: Type[DeprecationWarning]
|
| 10 |
+
def __init__(
|
| 11 |
+
self, reason: str = ..., version: str = ..., action: Optional[str] = ..., category: Type[DeprecationWarning] = ...
|
| 12 |
+
) -> None: ...
|
| 13 |
+
def get_deprecated_msg(self, wrapped: Callable[..., Any], instance: object) -> str: ...
|
| 14 |
+
def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
|
| 15 |
+
|
| 16 |
+
@overload
|
| 17 |
+
def deprecated(__wrapped: _F) -> _F: ...
|
| 18 |
+
@overload
|
| 19 |
+
def deprecated(
|
| 20 |
+
reason: str = ..., *, version: str = ..., action: Optional[str] = ..., category: Optional[Type[DeprecationWarning]] = ...
|
| 21 |
+
) -> Callable[[_F], _F]: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/deprecated/sphinx.pyi
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Optional, Type, TypeVar, overload
|
| 2 |
+
from typing_extensions import Literal
|
| 3 |
+
|
| 4 |
+
from .classic import ClassicAdapter
|
| 5 |
+
|
| 6 |
+
_F = TypeVar("_F", bound=Callable[..., Any])
|
| 7 |
+
|
| 8 |
+
class SphinxAdapter(ClassicAdapter):
|
| 9 |
+
directive: Literal["versionadded", "versionchanged", "deprecated"]
|
| 10 |
+
reason: str
|
| 11 |
+
version: str
|
| 12 |
+
action: Optional[str]
|
| 13 |
+
category: Type[DeprecationWarning]
|
| 14 |
+
def __init__(
|
| 15 |
+
self,
|
| 16 |
+
directive: Literal["versionadded", "versionchanged", "deprecated"],
|
| 17 |
+
reason: str = ...,
|
| 18 |
+
version: str = ...,
|
| 19 |
+
action: Optional[str] = ...,
|
| 20 |
+
category: Type[DeprecationWarning] = ...,
|
| 21 |
+
) -> None: ...
|
| 22 |
+
def __call__(self, wrapped: _F) -> Callable[[_F], _F]: ...
|
| 23 |
+
|
| 24 |
+
def versionadded(reason: str = ..., version: str = ...) -> Callable[[_F], _F]: ...
|
| 25 |
+
def versionchanged(reason: str = ..., version: str = ...) -> Callable[[_F], _F]: ...
|
| 26 |
+
@overload
|
| 27 |
+
def deprecated(__wrapped: _F) -> _F: ...
|
| 28 |
+
@overload
|
| 29 |
+
def deprecated(
|
| 30 |
+
reason: str = ..., *, version: str = ..., action: Optional[str] = ..., category: Optional[Type[DeprecationWarning]] = ...
|
| 31 |
+
) -> Callable[[_F], _F]: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/compiler/__init__.pyi
ADDED
|
File without changes
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/compiler/plugin_pb2.pyi
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
@generated by mypy-protobuf. Do not edit manually!
|
| 3 |
+
isort:skip_file
|
| 4 |
+
"""
|
| 5 |
+
from google.protobuf.descriptor import (
|
| 6 |
+
Descriptor as google___protobuf___descriptor___Descriptor,
|
| 7 |
+
EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,
|
| 8 |
+
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
from google.protobuf.descriptor_pb2 import (
|
| 12 |
+
FileDescriptorProto as google___protobuf___descriptor_pb2___FileDescriptorProto,
|
| 13 |
+
GeneratedCodeInfo as google___protobuf___descriptor_pb2___GeneratedCodeInfo,
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
from google.protobuf.internal.containers import (
|
| 17 |
+
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer,
|
| 18 |
+
RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer,
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
from google.protobuf.internal.enum_type_wrapper import (
|
| 22 |
+
_EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper,
|
| 23 |
+
)
|
| 24 |
+
|
| 25 |
+
from google.protobuf.message import (
|
| 26 |
+
Message as google___protobuf___message___Message,
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
+
from typing import (
|
| 30 |
+
Iterable as typing___Iterable,
|
| 31 |
+
NewType as typing___NewType,
|
| 32 |
+
Optional as typing___Optional,
|
| 33 |
+
Text as typing___Text,
|
| 34 |
+
cast as typing___cast,
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
from typing_extensions import (
|
| 38 |
+
Literal as typing_extensions___Literal,
|
| 39 |
+
)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
builtin___bool = bool
|
| 43 |
+
builtin___bytes = bytes
|
| 44 |
+
builtin___float = float
|
| 45 |
+
builtin___int = int
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
|
| 49 |
+
|
| 50 |
+
class Version(google___protobuf___message___Message):
|
| 51 |
+
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
| 52 |
+
major: builtin___int = ...
|
| 53 |
+
minor: builtin___int = ...
|
| 54 |
+
patch: builtin___int = ...
|
| 55 |
+
suffix: typing___Text = ...
|
| 56 |
+
|
| 57 |
+
def __init__(self,
|
| 58 |
+
*,
|
| 59 |
+
major : typing___Optional[builtin___int] = None,
|
| 60 |
+
minor : typing___Optional[builtin___int] = None,
|
| 61 |
+
patch : typing___Optional[builtin___int] = None,
|
| 62 |
+
suffix : typing___Optional[typing___Text] = None,
|
| 63 |
+
) -> None: ...
|
| 64 |
+
def HasField(self, field_name: typing_extensions___Literal[u"major",b"major",u"minor",b"minor",u"patch",b"patch",u"suffix",b"suffix"]) -> builtin___bool: ...
|
| 65 |
+
def ClearField(self, field_name: typing_extensions___Literal[u"major",b"major",u"minor",b"minor",u"patch",b"patch",u"suffix",b"suffix"]) -> None: ...
|
| 66 |
+
type___Version = Version
|
| 67 |
+
|
| 68 |
+
class CodeGeneratorRequest(google___protobuf___message___Message):
|
| 69 |
+
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
| 70 |
+
file_to_generate: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...
|
| 71 |
+
parameter: typing___Text = ...
|
| 72 |
+
|
| 73 |
+
@property
|
| 74 |
+
def proto_file(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___descriptor_pb2___FileDescriptorProto]: ...
|
| 75 |
+
|
| 76 |
+
@property
|
| 77 |
+
def compiler_version(self) -> type___Version: ...
|
| 78 |
+
|
| 79 |
+
def __init__(self,
|
| 80 |
+
*,
|
| 81 |
+
file_to_generate : typing___Optional[typing___Iterable[typing___Text]] = None,
|
| 82 |
+
parameter : typing___Optional[typing___Text] = None,
|
| 83 |
+
proto_file : typing___Optional[typing___Iterable[google___protobuf___descriptor_pb2___FileDescriptorProto]] = None,
|
| 84 |
+
compiler_version : typing___Optional[type___Version] = None,
|
| 85 |
+
) -> None: ...
|
| 86 |
+
def HasField(self, field_name: typing_extensions___Literal[u"compiler_version",b"compiler_version",u"parameter",b"parameter"]) -> builtin___bool: ...
|
| 87 |
+
def ClearField(self, field_name: typing_extensions___Literal[u"compiler_version",b"compiler_version",u"file_to_generate",b"file_to_generate",u"parameter",b"parameter",u"proto_file",b"proto_file"]) -> None: ...
|
| 88 |
+
type___CodeGeneratorRequest = CodeGeneratorRequest
|
| 89 |
+
|
| 90 |
+
class CodeGeneratorResponse(google___protobuf___message___Message):
|
| 91 |
+
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
| 92 |
+
FeatureValue = typing___NewType('FeatureValue', builtin___int)
|
| 93 |
+
type___FeatureValue = FeatureValue
|
| 94 |
+
Feature: _Feature
|
| 95 |
+
class _Feature(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[CodeGeneratorResponse.FeatureValue]):
|
| 96 |
+
DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ...
|
| 97 |
+
FEATURE_NONE = typing___cast(CodeGeneratorResponse.FeatureValue, 0)
|
| 98 |
+
FEATURE_PROTO3_OPTIONAL = typing___cast(CodeGeneratorResponse.FeatureValue, 1)
|
| 99 |
+
FEATURE_NONE = typing___cast(CodeGeneratorResponse.FeatureValue, 0)
|
| 100 |
+
FEATURE_PROTO3_OPTIONAL = typing___cast(CodeGeneratorResponse.FeatureValue, 1)
|
| 101 |
+
|
| 102 |
+
class File(google___protobuf___message___Message):
|
| 103 |
+
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
| 104 |
+
name: typing___Text = ...
|
| 105 |
+
insertion_point: typing___Text = ...
|
| 106 |
+
content: typing___Text = ...
|
| 107 |
+
|
| 108 |
+
@property
|
| 109 |
+
def generated_code_info(self) -> google___protobuf___descriptor_pb2___GeneratedCodeInfo: ...
|
| 110 |
+
|
| 111 |
+
def __init__(self,
|
| 112 |
+
*,
|
| 113 |
+
name : typing___Optional[typing___Text] = None,
|
| 114 |
+
insertion_point : typing___Optional[typing___Text] = None,
|
| 115 |
+
content : typing___Optional[typing___Text] = None,
|
| 116 |
+
generated_code_info : typing___Optional[google___protobuf___descriptor_pb2___GeneratedCodeInfo] = None,
|
| 117 |
+
) -> None: ...
|
| 118 |
+
def HasField(self, field_name: typing_extensions___Literal[u"content",b"content",u"generated_code_info",b"generated_code_info",u"insertion_point",b"insertion_point",u"name",b"name"]) -> builtin___bool: ...
|
| 119 |
+
def ClearField(self, field_name: typing_extensions___Literal[u"content",b"content",u"generated_code_info",b"generated_code_info",u"insertion_point",b"insertion_point",u"name",b"name"]) -> None: ...
|
| 120 |
+
type___File = File
|
| 121 |
+
|
| 122 |
+
error: typing___Text = ...
|
| 123 |
+
supported_features: builtin___int = ...
|
| 124 |
+
|
| 125 |
+
@property
|
| 126 |
+
def file(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___CodeGeneratorResponse.File]: ...
|
| 127 |
+
|
| 128 |
+
def __init__(self,
|
| 129 |
+
*,
|
| 130 |
+
error : typing___Optional[typing___Text] = None,
|
| 131 |
+
supported_features : typing___Optional[builtin___int] = None,
|
| 132 |
+
file : typing___Optional[typing___Iterable[type___CodeGeneratorResponse.File]] = None,
|
| 133 |
+
) -> None: ...
|
| 134 |
+
def HasField(self, field_name: typing_extensions___Literal[u"error",b"error",u"supported_features",b"supported_features"]) -> builtin___bool: ...
|
| 135 |
+
def ClearField(self, field_name: typing_extensions___Literal[u"error",b"error",u"file",b"file",u"supported_features",b"supported_features"]) -> None: ...
|
| 136 |
+
type___CodeGeneratorResponse = CodeGeneratorResponse
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/internal/message_listener.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class MessageListener(object):
|
| 2 |
+
def Modified(self) -> None: ...
|
| 3 |
+
|
| 4 |
+
class NullMessageListener(MessageListener):
|
| 5 |
+
def Modified(self) -> None: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/__init__.pyi
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from types import ModuleType
|
| 2 |
+
from typing import Any
|
| 3 |
+
|
| 4 |
+
from werkzeug import (
|
| 5 |
+
_internal,
|
| 6 |
+
datastructures,
|
| 7 |
+
debug,
|
| 8 |
+
exceptions,
|
| 9 |
+
formparser,
|
| 10 |
+
http,
|
| 11 |
+
local,
|
| 12 |
+
security,
|
| 13 |
+
serving,
|
| 14 |
+
test,
|
| 15 |
+
testapp,
|
| 16 |
+
urls,
|
| 17 |
+
useragents,
|
| 18 |
+
utils,
|
| 19 |
+
wrappers,
|
| 20 |
+
wsgi,
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
+
class module(ModuleType):
|
| 24 |
+
def __getattr__(self, name): ...
|
| 25 |
+
def __dir__(self): ...
|
| 26 |
+
|
| 27 |
+
__version__: Any
|
| 28 |
+
|
| 29 |
+
run_simple = serving.run_simple
|
| 30 |
+
test_app = testapp.test_app
|
| 31 |
+
UserAgent = useragents.UserAgent
|
| 32 |
+
_easteregg = _internal._easteregg
|
| 33 |
+
DebuggedApplication = debug.DebuggedApplication
|
| 34 |
+
MultiDict = datastructures.MultiDict
|
| 35 |
+
CombinedMultiDict = datastructures.CombinedMultiDict
|
| 36 |
+
Headers = datastructures.Headers
|
| 37 |
+
EnvironHeaders = datastructures.EnvironHeaders
|
| 38 |
+
ImmutableList = datastructures.ImmutableList
|
| 39 |
+
ImmutableDict = datastructures.ImmutableDict
|
| 40 |
+
ImmutableMultiDict = datastructures.ImmutableMultiDict
|
| 41 |
+
TypeConversionDict = datastructures.TypeConversionDict
|
| 42 |
+
ImmutableTypeConversionDict = datastructures.ImmutableTypeConversionDict
|
| 43 |
+
Accept = datastructures.Accept
|
| 44 |
+
MIMEAccept = datastructures.MIMEAccept
|
| 45 |
+
CharsetAccept = datastructures.CharsetAccept
|
| 46 |
+
LanguageAccept = datastructures.LanguageAccept
|
| 47 |
+
RequestCacheControl = datastructures.RequestCacheControl
|
| 48 |
+
ResponseCacheControl = datastructures.ResponseCacheControl
|
| 49 |
+
ETags = datastructures.ETags
|
| 50 |
+
HeaderSet = datastructures.HeaderSet
|
| 51 |
+
WWWAuthenticate = datastructures.WWWAuthenticate
|
| 52 |
+
Authorization = datastructures.Authorization
|
| 53 |
+
FileMultiDict = datastructures.FileMultiDict
|
| 54 |
+
CallbackDict = datastructures.CallbackDict
|
| 55 |
+
FileStorage = datastructures.FileStorage
|
| 56 |
+
OrderedMultiDict = datastructures.OrderedMultiDict
|
| 57 |
+
ImmutableOrderedMultiDict = datastructures.ImmutableOrderedMultiDict
|
| 58 |
+
escape = utils.escape
|
| 59 |
+
environ_property = utils.environ_property
|
| 60 |
+
append_slash_redirect = utils.append_slash_redirect
|
| 61 |
+
redirect = utils.redirect
|
| 62 |
+
cached_property = utils.cached_property
|
| 63 |
+
import_string = utils.import_string
|
| 64 |
+
dump_cookie = http.dump_cookie
|
| 65 |
+
parse_cookie = http.parse_cookie
|
| 66 |
+
unescape = utils.unescape
|
| 67 |
+
format_string = utils.format_string
|
| 68 |
+
find_modules = utils.find_modules
|
| 69 |
+
header_property = utils.header_property
|
| 70 |
+
html = utils.html
|
| 71 |
+
xhtml = utils.xhtml
|
| 72 |
+
HTMLBuilder = utils.HTMLBuilder
|
| 73 |
+
validate_arguments = utils.validate_arguments
|
| 74 |
+
ArgumentValidationError = utils.ArgumentValidationError
|
| 75 |
+
bind_arguments = utils.bind_arguments
|
| 76 |
+
secure_filename = utils.secure_filename
|
| 77 |
+
BaseResponse = wrappers.BaseResponse
|
| 78 |
+
BaseRequest = wrappers.BaseRequest
|
| 79 |
+
Request = wrappers.Request
|
| 80 |
+
Response = wrappers.Response
|
| 81 |
+
AcceptMixin = wrappers.AcceptMixin
|
| 82 |
+
ETagRequestMixin = wrappers.ETagRequestMixin
|
| 83 |
+
ETagResponseMixin = wrappers.ETagResponseMixin
|
| 84 |
+
ResponseStreamMixin = wrappers.ResponseStreamMixin
|
| 85 |
+
CommonResponseDescriptorsMixin = wrappers.CommonResponseDescriptorsMixin
|
| 86 |
+
UserAgentMixin = wrappers.UserAgentMixin
|
| 87 |
+
AuthorizationMixin = wrappers.AuthorizationMixin
|
| 88 |
+
WWWAuthenticateMixin = wrappers.WWWAuthenticateMixin
|
| 89 |
+
CommonRequestDescriptorsMixin = wrappers.CommonRequestDescriptorsMixin
|
| 90 |
+
Local = local.Local
|
| 91 |
+
LocalManager = local.LocalManager
|
| 92 |
+
LocalProxy = local.LocalProxy
|
| 93 |
+
LocalStack = local.LocalStack
|
| 94 |
+
release_local = local.release_local
|
| 95 |
+
generate_password_hash = security.generate_password_hash
|
| 96 |
+
check_password_hash = security.check_password_hash
|
| 97 |
+
Client = test.Client
|
| 98 |
+
EnvironBuilder = test.EnvironBuilder
|
| 99 |
+
create_environ = test.create_environ
|
| 100 |
+
run_wsgi_app = test.run_wsgi_app
|
| 101 |
+
get_current_url = wsgi.get_current_url
|
| 102 |
+
get_host = wsgi.get_host
|
| 103 |
+
pop_path_info = wsgi.pop_path_info
|
| 104 |
+
peek_path_info = wsgi.peek_path_info
|
| 105 |
+
SharedDataMiddleware = wsgi.SharedDataMiddleware
|
| 106 |
+
DispatcherMiddleware = wsgi.DispatcherMiddleware
|
| 107 |
+
ClosingIterator = wsgi.ClosingIterator
|
| 108 |
+
FileWrapper = wsgi.FileWrapper
|
| 109 |
+
make_line_iter = wsgi.make_line_iter
|
| 110 |
+
LimitedStream = wsgi.LimitedStream
|
| 111 |
+
responder = wsgi.responder
|
| 112 |
+
wrap_file = wsgi.wrap_file
|
| 113 |
+
extract_path_info = wsgi.extract_path_info
|
| 114 |
+
parse_etags = http.parse_etags
|
| 115 |
+
parse_date = http.parse_date
|
| 116 |
+
http_date = http.http_date
|
| 117 |
+
cookie_date = http.cookie_date
|
| 118 |
+
parse_cache_control_header = http.parse_cache_control_header
|
| 119 |
+
is_resource_modified = http.is_resource_modified
|
| 120 |
+
parse_accept_header = http.parse_accept_header
|
| 121 |
+
parse_set_header = http.parse_set_header
|
| 122 |
+
quote_etag = http.quote_etag
|
| 123 |
+
unquote_etag = http.unquote_etag
|
| 124 |
+
generate_etag = http.generate_etag
|
| 125 |
+
dump_header = http.dump_header
|
| 126 |
+
parse_list_header = http.parse_list_header
|
| 127 |
+
parse_dict_header = http.parse_dict_header
|
| 128 |
+
parse_authorization_header = http.parse_authorization_header
|
| 129 |
+
parse_www_authenticate_header = http.parse_www_authenticate_header
|
| 130 |
+
remove_entity_headers = http.remove_entity_headers
|
| 131 |
+
is_entity_header = http.is_entity_header
|
| 132 |
+
remove_hop_by_hop_headers = http.remove_hop_by_hop_headers
|
| 133 |
+
parse_options_header = http.parse_options_header
|
| 134 |
+
dump_options_header = http.dump_options_header
|
| 135 |
+
is_hop_by_hop_header = http.is_hop_by_hop_header
|
| 136 |
+
unquote_header_value = http.unquote_header_value
|
| 137 |
+
quote_header_value = http.quote_header_value
|
| 138 |
+
HTTP_STATUS_CODES = http.HTTP_STATUS_CODES
|
| 139 |
+
url_decode = urls.url_decode
|
| 140 |
+
url_encode = urls.url_encode
|
| 141 |
+
url_quote = urls.url_quote
|
| 142 |
+
url_quote_plus = urls.url_quote_plus
|
| 143 |
+
url_unquote = urls.url_unquote
|
| 144 |
+
url_unquote_plus = urls.url_unquote_plus
|
| 145 |
+
url_fix = urls.url_fix
|
| 146 |
+
Href = urls.Href
|
| 147 |
+
iri_to_uri = urls.iri_to_uri
|
| 148 |
+
uri_to_iri = urls.uri_to_iri
|
| 149 |
+
parse_form_data = formparser.parse_form_data
|
| 150 |
+
abort = exceptions.Aborter
|
| 151 |
+
Aborter = exceptions.Aborter
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/_compat.pyi
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Any, Optional, Text
|
| 3 |
+
|
| 4 |
+
if sys.version_info >= (3,):
|
| 5 |
+
from io import BytesIO as BytesIO, StringIO as StringIO
|
| 6 |
+
|
| 7 |
+
NativeStringIO = StringIO
|
| 8 |
+
else:
|
| 9 |
+
import cStringIO
|
| 10 |
+
from StringIO import StringIO as StringIO
|
| 11 |
+
|
| 12 |
+
BytesIO = cStringIO.StringIO
|
| 13 |
+
NativeStringIO = BytesIO
|
| 14 |
+
|
| 15 |
+
PY2: Any
|
| 16 |
+
WIN: Any
|
| 17 |
+
unichr: Any
|
| 18 |
+
text_type: Any
|
| 19 |
+
string_types: Any
|
| 20 |
+
integer_types: Any
|
| 21 |
+
iterkeys: Any
|
| 22 |
+
itervalues: Any
|
| 23 |
+
iteritems: Any
|
| 24 |
+
iterlists: Any
|
| 25 |
+
iterlistvalues: Any
|
| 26 |
+
int_to_byte: Any
|
| 27 |
+
iter_bytes: Any
|
| 28 |
+
|
| 29 |
+
def fix_tuple_repr(obj): ...
|
| 30 |
+
def implements_iterator(cls): ...
|
| 31 |
+
def implements_to_string(cls): ...
|
| 32 |
+
def native_string_result(func): ...
|
| 33 |
+
def implements_bool(cls): ...
|
| 34 |
+
|
| 35 |
+
range_type: Any
|
| 36 |
+
|
| 37 |
+
def make_literal_wrapper(reference): ...
|
| 38 |
+
def normalize_string_tuple(tup): ...
|
| 39 |
+
def try_coerce_native(s): ...
|
| 40 |
+
|
| 41 |
+
wsgi_get_bytes: Any
|
| 42 |
+
|
| 43 |
+
def wsgi_decoding_dance(s, charset: Text = ..., errors: Text = ...): ...
|
| 44 |
+
def wsgi_encoding_dance(s, charset: Text = ..., errors: Text = ...): ...
|
| 45 |
+
def to_bytes(x, charset: Text = ..., errors: Text = ...): ...
|
| 46 |
+
def to_native(x, charset: Text = ..., errors: Text = ...): ...
|
| 47 |
+
def reraise(tp, value, tb: Optional[Any] = ...): ...
|
| 48 |
+
|
| 49 |
+
imap: Any
|
| 50 |
+
izip: Any
|
| 51 |
+
ifilter: Any
|
| 52 |
+
|
| 53 |
+
def to_unicode(x, charset: Text = ..., errors: Text = ..., allow_none_charset: bool = ...): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/_internal.pyi
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
class _Missing:
|
| 4 |
+
def __reduce__(self): ...
|
| 5 |
+
|
| 6 |
+
class _DictAccessorProperty:
|
| 7 |
+
read_only: Any
|
| 8 |
+
name: Any
|
| 9 |
+
default: Any
|
| 10 |
+
load_func: Any
|
| 11 |
+
dump_func: Any
|
| 12 |
+
__doc__: Any
|
| 13 |
+
def __init__(
|
| 14 |
+
self,
|
| 15 |
+
name,
|
| 16 |
+
default: Optional[Any] = ...,
|
| 17 |
+
load_func: Optional[Any] = ...,
|
| 18 |
+
dump_func: Optional[Any] = ...,
|
| 19 |
+
read_only: Optional[Any] = ...,
|
| 20 |
+
doc: Optional[Any] = ...,
|
| 21 |
+
): ...
|
| 22 |
+
def __get__(self, obj, type: Optional[Any] = ...): ...
|
| 23 |
+
def __set__(self, obj, value): ...
|
| 24 |
+
def __delete__(self, obj): ...
|
| 25 |
+
|
| 26 |
+
def _easteregg(app: Optional[Any] = ...): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/_reloader.pyi
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
class ReloaderLoop:
|
| 4 |
+
name: Any
|
| 5 |
+
extra_files: Any
|
| 6 |
+
interval: float
|
| 7 |
+
def __init__(self, extra_files: Optional[Any] = ..., interval: float = ...): ...
|
| 8 |
+
def run(self): ...
|
| 9 |
+
def restart_with_reloader(self): ...
|
| 10 |
+
def trigger_reload(self, filename): ...
|
| 11 |
+
def log_reload(self, filename): ...
|
| 12 |
+
|
| 13 |
+
class StatReloaderLoop(ReloaderLoop):
|
| 14 |
+
name: Any
|
| 15 |
+
def run(self): ...
|
| 16 |
+
|
| 17 |
+
class WatchdogReloaderLoop(ReloaderLoop):
|
| 18 |
+
observable_paths: Any
|
| 19 |
+
name: Any
|
| 20 |
+
observer_class: Any
|
| 21 |
+
event_handler: Any
|
| 22 |
+
should_reload: Any
|
| 23 |
+
def __init__(self, *args, **kwargs): ...
|
| 24 |
+
def trigger_reload(self, filename): ...
|
| 25 |
+
def run(self): ...
|
| 26 |
+
|
| 27 |
+
reloader_loops: Any
|
| 28 |
+
|
| 29 |
+
def run_with_reloader(main_func, extra_files: Optional[Any] = ..., interval: float = ..., reloader_type: str = ...): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/__init__.pyi
ADDED
|
File without changes
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/atom.pyi
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
XHTML_NAMESPACE: Any
|
| 4 |
+
|
| 5 |
+
def format_iso8601(obj): ...
|
| 6 |
+
|
| 7 |
+
class AtomFeed:
|
| 8 |
+
default_generator: Any
|
| 9 |
+
title: Any
|
| 10 |
+
title_type: Any
|
| 11 |
+
url: Any
|
| 12 |
+
feed_url: Any
|
| 13 |
+
id: Any
|
| 14 |
+
updated: Any
|
| 15 |
+
author: Any
|
| 16 |
+
icon: Any
|
| 17 |
+
logo: Any
|
| 18 |
+
rights: Any
|
| 19 |
+
rights_type: Any
|
| 20 |
+
subtitle: Any
|
| 21 |
+
subtitle_type: Any
|
| 22 |
+
generator: Any
|
| 23 |
+
links: Any
|
| 24 |
+
entries: Any
|
| 25 |
+
def __init__(self, title: Optional[Any] = ..., entries: Optional[Any] = ..., **kwargs): ...
|
| 26 |
+
def add(self, *args, **kwargs): ...
|
| 27 |
+
def generate(self): ...
|
| 28 |
+
def to_string(self): ...
|
| 29 |
+
def get_response(self): ...
|
| 30 |
+
def __call__(self, environ, start_response): ...
|
| 31 |
+
|
| 32 |
+
class FeedEntry:
|
| 33 |
+
title: Any
|
| 34 |
+
title_type: Any
|
| 35 |
+
content: Any
|
| 36 |
+
content_type: Any
|
| 37 |
+
url: Any
|
| 38 |
+
id: Any
|
| 39 |
+
updated: Any
|
| 40 |
+
summary: Any
|
| 41 |
+
summary_type: Any
|
| 42 |
+
author: Any
|
| 43 |
+
published: Any
|
| 44 |
+
rights: Any
|
| 45 |
+
links: Any
|
| 46 |
+
categories: Any
|
| 47 |
+
xml_base: Any
|
| 48 |
+
def __init__(self, title: Optional[Any] = ..., content: Optional[Any] = ..., feed_url: Optional[Any] = ..., **kwargs): ...
|
| 49 |
+
def generate(self): ...
|
| 50 |
+
def to_string(self): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/cache.pyi
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
class BaseCache:
|
| 4 |
+
default_timeout: float
|
| 5 |
+
def __init__(self, default_timeout: float = ...): ...
|
| 6 |
+
def get(self, key): ...
|
| 7 |
+
def delete(self, key): ...
|
| 8 |
+
def get_many(self, *keys): ...
|
| 9 |
+
def get_dict(self, *keys): ...
|
| 10 |
+
def set(self, key, value, timeout: Optional[float] = ...): ...
|
| 11 |
+
def add(self, key, value, timeout: Optional[float] = ...): ...
|
| 12 |
+
def set_many(self, mapping, timeout: Optional[float] = ...): ...
|
| 13 |
+
def delete_many(self, *keys): ...
|
| 14 |
+
def has(self, key): ...
|
| 15 |
+
def clear(self): ...
|
| 16 |
+
def inc(self, key, delta=...): ...
|
| 17 |
+
def dec(self, key, delta=...): ...
|
| 18 |
+
|
| 19 |
+
class NullCache(BaseCache): ...
|
| 20 |
+
|
| 21 |
+
class SimpleCache(BaseCache):
|
| 22 |
+
clear: Any
|
| 23 |
+
def __init__(self, threshold: int = ..., default_timeout: float = ...): ...
|
| 24 |
+
def get(self, key): ...
|
| 25 |
+
def set(self, key, value, timeout: Optional[float] = ...): ...
|
| 26 |
+
def add(self, key, value, timeout: Optional[float] = ...): ...
|
| 27 |
+
def delete(self, key): ...
|
| 28 |
+
def has(self, key): ...
|
| 29 |
+
|
| 30 |
+
class MemcachedCache(BaseCache):
|
| 31 |
+
key_prefix: Any
|
| 32 |
+
def __init__(self, servers: Optional[Any] = ..., default_timeout: float = ..., key_prefix: Optional[Any] = ...): ...
|
| 33 |
+
def get(self, key): ...
|
| 34 |
+
def get_dict(self, *keys): ...
|
| 35 |
+
def add(self, key, value, timeout: Optional[float] = ...): ...
|
| 36 |
+
def set(self, key, value, timeout: Optional[float] = ...): ...
|
| 37 |
+
def get_many(self, *keys): ...
|
| 38 |
+
def set_many(self, mapping, timeout: Optional[float] = ...): ...
|
| 39 |
+
def delete(self, key): ...
|
| 40 |
+
def delete_many(self, *keys): ...
|
| 41 |
+
def has(self, key): ...
|
| 42 |
+
def clear(self): ...
|
| 43 |
+
def inc(self, key, delta=...): ...
|
| 44 |
+
def dec(self, key, delta=...): ...
|
| 45 |
+
def import_preferred_memcache_lib(self, servers): ...
|
| 46 |
+
|
| 47 |
+
GAEMemcachedCache: Any
|
| 48 |
+
|
| 49 |
+
class RedisCache(BaseCache):
|
| 50 |
+
key_prefix: Any
|
| 51 |
+
def __init__(
|
| 52 |
+
self,
|
| 53 |
+
host: str = ...,
|
| 54 |
+
port: int = ...,
|
| 55 |
+
password: Optional[Any] = ...,
|
| 56 |
+
db: int = ...,
|
| 57 |
+
default_timeout: float = ...,
|
| 58 |
+
key_prefix: Optional[Any] = ...,
|
| 59 |
+
**kwargs,
|
| 60 |
+
): ...
|
| 61 |
+
def dump_object(self, value): ...
|
| 62 |
+
def load_object(self, value): ...
|
| 63 |
+
def get(self, key): ...
|
| 64 |
+
def get_many(self, *keys): ...
|
| 65 |
+
def set(self, key, value, timeout: Optional[float] = ...): ...
|
| 66 |
+
def add(self, key, value, timeout: Optional[float] = ...): ...
|
| 67 |
+
def set_many(self, mapping, timeout: Optional[float] = ...): ...
|
| 68 |
+
def delete(self, key): ...
|
| 69 |
+
def delete_many(self, *keys): ...
|
| 70 |
+
def has(self, key): ...
|
| 71 |
+
def clear(self): ...
|
| 72 |
+
def inc(self, key, delta=...): ...
|
| 73 |
+
def dec(self, key, delta=...): ...
|
| 74 |
+
|
| 75 |
+
class FileSystemCache(BaseCache):
|
| 76 |
+
def __init__(self, cache_dir, threshold: int = ..., default_timeout: float = ..., mode: int = ...): ...
|
| 77 |
+
def clear(self): ...
|
| 78 |
+
def get(self, key): ...
|
| 79 |
+
def add(self, key, value, timeout: Optional[float] = ...): ...
|
| 80 |
+
def set(self, key, value, timeout: Optional[float] = ...): ...
|
| 81 |
+
def delete(self, key): ...
|
| 82 |
+
def has(self, key): ...
|
| 83 |
+
|
| 84 |
+
class UWSGICache(BaseCache):
|
| 85 |
+
cache: Any
|
| 86 |
+
def __init__(self, default_timeout: float = ..., cache: str = ...): ...
|
| 87 |
+
def get(self, key): ...
|
| 88 |
+
def delete(self, key): ...
|
| 89 |
+
def set(self, key, value, timeout: Optional[float] = ...): ...
|
| 90 |
+
def add(self, key, value, timeout: Optional[float] = ...): ...
|
| 91 |
+
def clear(self): ...
|
| 92 |
+
def has(self, key): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/fixers.pyi
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
|
| 2 |
+
from typing import Any, Iterable, List, Mapping, Optional, Set, Text
|
| 3 |
+
|
| 4 |
+
from ..middleware.proxy_fix import ProxyFix as ProxyFix
|
| 5 |
+
|
| 6 |
+
class CGIRootFix(object):
|
| 7 |
+
app: WSGIApplication
|
| 8 |
+
app_root: Text
|
| 9 |
+
def __init__(self, app: WSGIApplication, app_root: Text = ...) -> None: ...
|
| 10 |
+
def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
|
| 11 |
+
|
| 12 |
+
class LighttpdCGIRootFix(CGIRootFix): ...
|
| 13 |
+
|
| 14 |
+
class PathInfoFromRequestUriFix(object):
|
| 15 |
+
app: WSGIApplication
|
| 16 |
+
def __init__(self, app: WSGIApplication) -> None: ...
|
| 17 |
+
def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
|
| 18 |
+
|
| 19 |
+
class HeaderRewriterFix(object):
|
| 20 |
+
app: WSGIApplication
|
| 21 |
+
remove_headers: Set[Text]
|
| 22 |
+
add_headers: List[Text]
|
| 23 |
+
def __init__(
|
| 24 |
+
self, app: WSGIApplication, remove_headers: Optional[Iterable[Text]] = ..., add_headers: Optional[Iterable[Text]] = ...
|
| 25 |
+
) -> None: ...
|
| 26 |
+
def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
|
| 27 |
+
|
| 28 |
+
class InternetExplorerFix(object):
|
| 29 |
+
app: WSGIApplication
|
| 30 |
+
fix_vary: bool
|
| 31 |
+
fix_attach: bool
|
| 32 |
+
def __init__(self, app: WSGIApplication, fix_vary: bool = ..., fix_attach: bool = ...) -> None: ...
|
| 33 |
+
def fix_headers(self, environ: WSGIEnvironment, headers: Mapping[str, str], status: Optional[Any] = ...) -> None: ...
|
| 34 |
+
def run_fixed(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
|
| 35 |
+
def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/iterio.pyi
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional, Text, Union
|
| 2 |
+
|
| 3 |
+
greenlet: Any
|
| 4 |
+
|
| 5 |
+
class IterIO:
|
| 6 |
+
def __new__(cls, obj, sentinel: Union[Text, bytes] = ...): ...
|
| 7 |
+
def __iter__(self): ...
|
| 8 |
+
def tell(self): ...
|
| 9 |
+
def isatty(self): ...
|
| 10 |
+
def seek(self, pos, mode: int = ...): ...
|
| 11 |
+
def truncate(self, size: Optional[Any] = ...): ...
|
| 12 |
+
def write(self, s): ...
|
| 13 |
+
def writelines(self, list): ...
|
| 14 |
+
def read(self, n: int = ...): ...
|
| 15 |
+
def readlines(self, sizehint: int = ...): ...
|
| 16 |
+
def readline(self, length: Optional[Any] = ...): ...
|
| 17 |
+
def flush(self): ...
|
| 18 |
+
def __next__(self): ...
|
| 19 |
+
|
| 20 |
+
class IterI(IterIO):
|
| 21 |
+
sentinel: Any
|
| 22 |
+
def __new__(cls, func, sentinel: Union[Text, bytes] = ...): ...
|
| 23 |
+
closed: Any
|
| 24 |
+
def close(self): ...
|
| 25 |
+
def write(self, s): ...
|
| 26 |
+
def writelines(self, list): ...
|
| 27 |
+
def flush(self): ...
|
| 28 |
+
|
| 29 |
+
class IterO(IterIO):
|
| 30 |
+
sentinel: Any
|
| 31 |
+
closed: Any
|
| 32 |
+
pos: Any
|
| 33 |
+
def __new__(cls, gen, sentinel: Union[Text, bytes] = ...): ...
|
| 34 |
+
def __iter__(self): ...
|
| 35 |
+
def close(self): ...
|
| 36 |
+
def seek(self, pos, mode: int = ...): ...
|
| 37 |
+
def read(self, n: int = ...): ...
|
| 38 |
+
def readline(self, length: Optional[Any] = ...): ...
|
| 39 |
+
def readlines(self, sizehint: int = ...): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/jsrouting.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def dumps(*args): ...
|
| 4 |
+
def render_template(name_parts, rules, converters): ...
|
| 5 |
+
def generate_map(map, name: str = ...): ...
|
| 6 |
+
def generate_adapter(adapter, name: str = ..., map_name: str = ...): ...
|
| 7 |
+
def js_to_url_function(converter): ...
|
| 8 |
+
def NumberConverter_js_to_url(conv): ...
|
| 9 |
+
|
| 10 |
+
js_to_url_functions: Any
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/limiter.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
class StreamLimitMiddleware:
|
| 4 |
+
app: Any
|
| 5 |
+
maximum_size: Any
|
| 6 |
+
def __init__(self, app, maximum_size=...): ...
|
| 7 |
+
def __call__(self, environ, start_response): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/lint.pyi
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from ..middleware.lint import *
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/profiler.pyi
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _typeshed import SupportsWrite
|
| 2 |
+
from typing import AnyStr, Generic, Tuple
|
| 3 |
+
|
| 4 |
+
from ..middleware.profiler import *
|
| 5 |
+
|
| 6 |
+
class MergeStream(Generic[AnyStr]):
|
| 7 |
+
streams: Tuple[SupportsWrite[AnyStr], ...]
|
| 8 |
+
def __init__(self, *streams: SupportsWrite[AnyStr]) -> None: ...
|
| 9 |
+
def write(self, data: AnyStr) -> None: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/securecookie.pyi
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from hashlib import sha1 as _default_hash
|
| 2 |
+
from hmac import new as hmac
|
| 3 |
+
from typing import Any, Optional
|
| 4 |
+
|
| 5 |
+
from werkzeug.contrib.sessions import ModificationTrackingDict
|
| 6 |
+
|
| 7 |
+
class UnquoteError(Exception): ...
|
| 8 |
+
|
| 9 |
+
class SecureCookie(ModificationTrackingDict[Any, Any]):
|
| 10 |
+
hash_method: Any
|
| 11 |
+
serialization_method: Any
|
| 12 |
+
quote_base64: Any
|
| 13 |
+
secret_key: Any
|
| 14 |
+
new: Any
|
| 15 |
+
def __init__(self, data: Optional[Any] = ..., secret_key: Optional[Any] = ..., new: bool = ...): ...
|
| 16 |
+
@property
|
| 17 |
+
def should_save(self): ...
|
| 18 |
+
@classmethod
|
| 19 |
+
def quote(cls, value): ...
|
| 20 |
+
@classmethod
|
| 21 |
+
def unquote(cls, value): ...
|
| 22 |
+
def serialize(self, expires: Optional[Any] = ...): ...
|
| 23 |
+
@classmethod
|
| 24 |
+
def unserialize(cls, string, secret_key): ...
|
| 25 |
+
@classmethod
|
| 26 |
+
def load_cookie(cls, request, key: str = ..., secret_key: Optional[Any] = ...): ...
|
| 27 |
+
def save_cookie(
|
| 28 |
+
self,
|
| 29 |
+
response,
|
| 30 |
+
key: str = ...,
|
| 31 |
+
expires: Optional[Any] = ...,
|
| 32 |
+
session_expires: Optional[Any] = ...,
|
| 33 |
+
max_age: Optional[Any] = ...,
|
| 34 |
+
path: str = ...,
|
| 35 |
+
domain: Optional[Any] = ...,
|
| 36 |
+
secure: Optional[Any] = ...,
|
| 37 |
+
httponly: bool = ...,
|
| 38 |
+
force: bool = ...,
|
| 39 |
+
): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/sessions.pyi
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional, Text, TypeVar
|
| 2 |
+
|
| 3 |
+
from werkzeug.datastructures import CallbackDict
|
| 4 |
+
|
| 5 |
+
_K = TypeVar("_K")
|
| 6 |
+
_V = TypeVar("_V")
|
| 7 |
+
|
| 8 |
+
def generate_key(salt: Optional[Any] = ...): ...
|
| 9 |
+
|
| 10 |
+
class ModificationTrackingDict(CallbackDict[_K, _V]):
|
| 11 |
+
modified: Any
|
| 12 |
+
def __init__(self, *args, **kwargs): ...
|
| 13 |
+
def copy(self): ...
|
| 14 |
+
def __copy__(self): ...
|
| 15 |
+
|
| 16 |
+
class Session(ModificationTrackingDict[_K, _V]):
|
| 17 |
+
sid: Any
|
| 18 |
+
new: Any
|
| 19 |
+
def __init__(self, data, sid, new: bool = ...): ...
|
| 20 |
+
@property
|
| 21 |
+
def should_save(self): ...
|
| 22 |
+
|
| 23 |
+
class SessionStore:
|
| 24 |
+
session_class: Any
|
| 25 |
+
def __init__(self, session_class: Optional[Any] = ...): ...
|
| 26 |
+
def is_valid_key(self, key): ...
|
| 27 |
+
def generate_key(self, salt: Optional[Any] = ...): ...
|
| 28 |
+
def new(self): ...
|
| 29 |
+
def save(self, session): ...
|
| 30 |
+
def save_if_modified(self, session): ...
|
| 31 |
+
def delete(self, session): ...
|
| 32 |
+
def get(self, sid): ...
|
| 33 |
+
|
| 34 |
+
class FilesystemSessionStore(SessionStore):
|
| 35 |
+
path: Any
|
| 36 |
+
filename_template: str
|
| 37 |
+
renew_missing: Any
|
| 38 |
+
mode: Any
|
| 39 |
+
def __init__(
|
| 40 |
+
self,
|
| 41 |
+
path: Optional[Any] = ...,
|
| 42 |
+
filename_template: Text = ...,
|
| 43 |
+
session_class: Optional[Any] = ...,
|
| 44 |
+
renew_missing: bool = ...,
|
| 45 |
+
mode: int = ...,
|
| 46 |
+
): ...
|
| 47 |
+
def get_session_filename(self, sid): ...
|
| 48 |
+
def save(self, session): ...
|
| 49 |
+
def delete(self, session): ...
|
| 50 |
+
def get(self, sid): ...
|
| 51 |
+
def list(self): ...
|
| 52 |
+
|
| 53 |
+
class SessionMiddleware:
|
| 54 |
+
app: Any
|
| 55 |
+
store: Any
|
| 56 |
+
cookie_name: Any
|
| 57 |
+
cookie_age: Any
|
| 58 |
+
cookie_expires: Any
|
| 59 |
+
cookie_path: Any
|
| 60 |
+
cookie_domain: Any
|
| 61 |
+
cookie_secure: Any
|
| 62 |
+
cookie_httponly: Any
|
| 63 |
+
environ_key: Any
|
| 64 |
+
def __init__(
|
| 65 |
+
self,
|
| 66 |
+
app,
|
| 67 |
+
store,
|
| 68 |
+
cookie_name: str = ...,
|
| 69 |
+
cookie_age: Optional[Any] = ...,
|
| 70 |
+
cookie_expires: Optional[Any] = ...,
|
| 71 |
+
cookie_path: str = ...,
|
| 72 |
+
cookie_domain: Optional[Any] = ...,
|
| 73 |
+
cookie_secure: Optional[Any] = ...,
|
| 74 |
+
cookie_httponly: bool = ...,
|
| 75 |
+
environ_key: str = ...,
|
| 76 |
+
): ...
|
| 77 |
+
def __call__(self, environ, start_response): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/contrib/testtools.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from werkzeug.wrappers import Response
|
| 2 |
+
|
| 3 |
+
class ContentAccessors:
|
| 4 |
+
def xml(self): ...
|
| 5 |
+
def lxml(self): ...
|
| 6 |
+
def json(self): ...
|
| 7 |
+
|
| 8 |
+
class TestResponse(Response, ContentAccessors): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/datastructures.pyi
ADDED
|
@@ -0,0 +1,458 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _typeshed import SupportsWrite
|
| 2 |
+
from typing import (
|
| 3 |
+
IO,
|
| 4 |
+
Any,
|
| 5 |
+
Callable,
|
| 6 |
+
Container,
|
| 7 |
+
Dict,
|
| 8 |
+
Generic,
|
| 9 |
+
Iterable,
|
| 10 |
+
Iterator,
|
| 11 |
+
List,
|
| 12 |
+
Mapping,
|
| 13 |
+
MutableSet,
|
| 14 |
+
NoReturn,
|
| 15 |
+
Optional,
|
| 16 |
+
Text,
|
| 17 |
+
Tuple,
|
| 18 |
+
Type,
|
| 19 |
+
TypeVar,
|
| 20 |
+
Union,
|
| 21 |
+
overload,
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
_K = TypeVar("_K")
|
| 25 |
+
_V = TypeVar("_V")
|
| 26 |
+
_R = TypeVar("_R")
|
| 27 |
+
_D = TypeVar("_D")
|
| 28 |
+
|
| 29 |
+
def is_immutable(self) -> NoReturn: ...
|
| 30 |
+
def iter_multi_items(mapping): ...
|
| 31 |
+
def native_itermethods(names): ...
|
| 32 |
+
|
| 33 |
+
class ImmutableListMixin(Generic[_V]):
|
| 34 |
+
def __hash__(self) -> int: ...
|
| 35 |
+
def __reduce_ex__(self: _D, protocol) -> Tuple[Type[_D], List[_V]]: ...
|
| 36 |
+
def __delitem__(self, key: _V) -> NoReturn: ...
|
| 37 |
+
def __iadd__(self, other: Any) -> NoReturn: ...
|
| 38 |
+
def __imul__(self, other: Any) -> NoReturn: ...
|
| 39 |
+
def __setitem__(self, key: str, value: Any) -> NoReturn: ...
|
| 40 |
+
def append(self, item: Any) -> NoReturn: ...
|
| 41 |
+
def remove(self, item: Any) -> NoReturn: ...
|
| 42 |
+
def extend(self, iterable: Any) -> NoReturn: ...
|
| 43 |
+
def insert(self, pos: int, value: Any) -> NoReturn: ...
|
| 44 |
+
def pop(self, index: int = ...) -> NoReturn: ...
|
| 45 |
+
def reverse(self) -> NoReturn: ...
|
| 46 |
+
def sort(self, cmp: Optional[Any] = ..., key: Optional[Any] = ..., reverse: Optional[Any] = ...) -> NoReturn: ...
|
| 47 |
+
|
| 48 |
+
class ImmutableList(ImmutableListMixin[_V], List[_V]): ... # type: ignore
|
| 49 |
+
|
| 50 |
+
class ImmutableDictMixin(object):
|
| 51 |
+
@classmethod
|
| 52 |
+
def fromkeys(cls, *args, **kwargs): ...
|
| 53 |
+
def __reduce_ex__(self, protocol): ...
|
| 54 |
+
def __hash__(self) -> int: ...
|
| 55 |
+
def setdefault(self, key, default: Optional[Any] = ...): ...
|
| 56 |
+
def update(self, *args, **kwargs): ...
|
| 57 |
+
def pop(self, key, default: Optional[Any] = ...): ...
|
| 58 |
+
def popitem(self): ...
|
| 59 |
+
def __setitem__(self, key, value): ...
|
| 60 |
+
def __delitem__(self, key): ...
|
| 61 |
+
def clear(self): ...
|
| 62 |
+
|
| 63 |
+
class ImmutableMultiDictMixin(ImmutableDictMixin):
|
| 64 |
+
def __reduce_ex__(self, protocol): ...
|
| 65 |
+
def add(self, key, value): ...
|
| 66 |
+
def popitemlist(self): ...
|
| 67 |
+
def poplist(self, key): ...
|
| 68 |
+
def setlist(self, key, new_list): ...
|
| 69 |
+
def setlistdefault(self, key, default_list: Optional[Any] = ...): ...
|
| 70 |
+
|
| 71 |
+
class UpdateDictMixin(object):
|
| 72 |
+
on_update: Any
|
| 73 |
+
def setdefault(self, key, default: Optional[Any] = ...): ...
|
| 74 |
+
def pop(self, key, default=...): ...
|
| 75 |
+
__setitem__: Any
|
| 76 |
+
__delitem__: Any
|
| 77 |
+
clear: Any
|
| 78 |
+
popitem: Any
|
| 79 |
+
update: Any
|
| 80 |
+
|
| 81 |
+
class TypeConversionDict(Dict[_K, _V]):
|
| 82 |
+
@overload
|
| 83 |
+
def get(self, key: _K, *, type: None = ...) -> Optional[_V]: ...
|
| 84 |
+
@overload
|
| 85 |
+
def get(self, key: _K, default: _D, type: None = ...) -> Union[_V, _D]: ...
|
| 86 |
+
@overload
|
| 87 |
+
def get(self, key: _K, *, type: Callable[[_V], _R]) -> Optional[_R]: ...
|
| 88 |
+
@overload
|
| 89 |
+
def get(self, key: _K, default: _D, type: Callable[[_V], _R]) -> Union[_R, _D]: ...
|
| 90 |
+
|
| 91 |
+
class ImmutableTypeConversionDict(ImmutableDictMixin, TypeConversionDict[_K, _V]): # type: ignore
|
| 92 |
+
def copy(self) -> TypeConversionDict[_K, _V]: ...
|
| 93 |
+
def __copy__(self) -> ImmutableTypeConversionDict[_K, _V]: ...
|
| 94 |
+
|
| 95 |
+
class ViewItems:
|
| 96 |
+
def __init__(self, multi_dict, method, repr_name, *a, **kw): ...
|
| 97 |
+
def __iter__(self): ...
|
| 98 |
+
|
| 99 |
+
class MultiDict(TypeConversionDict[_K, _V]):
|
| 100 |
+
def __init__(self, mapping: Optional[Any] = ...): ...
|
| 101 |
+
def __getitem__(self, key): ...
|
| 102 |
+
def __setitem__(self, key, value): ...
|
| 103 |
+
def add(self, key, value): ...
|
| 104 |
+
def getlist(self, key, type: Optional[Any] = ...): ...
|
| 105 |
+
def setlist(self, key, new_list): ...
|
| 106 |
+
def setdefault(self, key, default: Optional[Any] = ...): ...
|
| 107 |
+
def setlistdefault(self, key, default_list: Optional[Any] = ...): ...
|
| 108 |
+
def items(self, multi: bool = ...): ...
|
| 109 |
+
def lists(self): ...
|
| 110 |
+
def keys(self): ...
|
| 111 |
+
__iter__: Any
|
| 112 |
+
def values(self): ...
|
| 113 |
+
def listvalues(self): ...
|
| 114 |
+
def copy(self): ...
|
| 115 |
+
def deepcopy(self, memo: Optional[Any] = ...): ...
|
| 116 |
+
def to_dict(self, flat: bool = ...): ...
|
| 117 |
+
def update(self, other_dict): ...
|
| 118 |
+
def pop(self, key, default=...): ...
|
| 119 |
+
def popitem(self): ...
|
| 120 |
+
def poplist(self, key): ...
|
| 121 |
+
def popitemlist(self): ...
|
| 122 |
+
def __copy__(self): ...
|
| 123 |
+
def __deepcopy__(self, memo): ...
|
| 124 |
+
|
| 125 |
+
class _omd_bucket:
|
| 126 |
+
prev: Any
|
| 127 |
+
key: Any
|
| 128 |
+
value: Any
|
| 129 |
+
next: Any
|
| 130 |
+
def __init__(self, omd, key, value): ...
|
| 131 |
+
def unlink(self, omd): ...
|
| 132 |
+
|
| 133 |
+
class OrderedMultiDict(MultiDict[_K, _V]):
|
| 134 |
+
def __init__(self, mapping: Optional[Any] = ...): ...
|
| 135 |
+
def __eq__(self, other): ...
|
| 136 |
+
def __ne__(self, other): ...
|
| 137 |
+
def __reduce_ex__(self, protocol): ...
|
| 138 |
+
def __getitem__(self, key): ...
|
| 139 |
+
def __setitem__(self, key, value): ...
|
| 140 |
+
def __delitem__(self, key): ...
|
| 141 |
+
def keys(self): ...
|
| 142 |
+
__iter__: Any
|
| 143 |
+
def values(self): ...
|
| 144 |
+
def items(self, multi: bool = ...): ...
|
| 145 |
+
def lists(self): ...
|
| 146 |
+
def listvalues(self): ...
|
| 147 |
+
def add(self, key, value): ...
|
| 148 |
+
def getlist(self, key, type: Optional[Any] = ...): ...
|
| 149 |
+
def setlist(self, key, new_list): ...
|
| 150 |
+
def setlistdefault(self, key, default_list: Optional[Any] = ...): ...
|
| 151 |
+
def update(self, mapping): ...
|
| 152 |
+
def poplist(self, key): ...
|
| 153 |
+
def pop(self, key, default=...): ...
|
| 154 |
+
def popitem(self): ...
|
| 155 |
+
def popitemlist(self): ...
|
| 156 |
+
|
| 157 |
+
class Headers(object):
|
| 158 |
+
def __init__(self, defaults: Optional[Any] = ...): ...
|
| 159 |
+
def __getitem__(self, key, _get_mode: bool = ...): ...
|
| 160 |
+
def __eq__(self, other): ...
|
| 161 |
+
def __ne__(self, other): ...
|
| 162 |
+
@overload
|
| 163 |
+
def get(self, key: str, *, type: None = ...) -> Optional[str]: ...
|
| 164 |
+
@overload
|
| 165 |
+
def get(self, key: str, default: _D, type: None = ...) -> Union[str, _D]: ...
|
| 166 |
+
@overload
|
| 167 |
+
def get(self, key: str, *, type: Callable[[str], _R]) -> Optional[_R]: ...
|
| 168 |
+
@overload
|
| 169 |
+
def get(self, key: str, default: _D, type: Callable[[str], _R]) -> Union[_R, _D]: ...
|
| 170 |
+
@overload
|
| 171 |
+
def get(self, key: str, *, as_bytes: bool) -> Any: ...
|
| 172 |
+
@overload
|
| 173 |
+
def get(self, key: str, *, type: None, as_bytes: bool) -> Any: ...
|
| 174 |
+
@overload
|
| 175 |
+
def get(self, key: str, *, type: Callable[[Any], _R], as_bytes: bool) -> Optional[_R]: ...
|
| 176 |
+
@overload
|
| 177 |
+
def get(self, key: str, default: Any, type: None, as_bytes: bool) -> Any: ...
|
| 178 |
+
@overload
|
| 179 |
+
def get(self, key: str, default: _D, type: Callable[[Any], _R], as_bytes: bool) -> Union[_R, _D]: ...
|
| 180 |
+
def getlist(self, key, type: Optional[Any] = ..., as_bytes: bool = ...): ...
|
| 181 |
+
def get_all(self, name): ...
|
| 182 |
+
def items(self, lower: bool = ...): ...
|
| 183 |
+
def keys(self, lower: bool = ...): ...
|
| 184 |
+
def values(self): ...
|
| 185 |
+
def extend(self, iterable): ...
|
| 186 |
+
def __delitem__(self, key: Any) -> None: ...
|
| 187 |
+
def remove(self, key): ...
|
| 188 |
+
def pop(self, **kwargs): ...
|
| 189 |
+
def popitem(self): ...
|
| 190 |
+
def __contains__(self, key): ...
|
| 191 |
+
has_key: Any
|
| 192 |
+
def __iter__(self): ...
|
| 193 |
+
def __len__(self): ...
|
| 194 |
+
def add(self, _key, _value, **kw): ...
|
| 195 |
+
def add_header(self, _key, _value, **_kw): ...
|
| 196 |
+
def clear(self): ...
|
| 197 |
+
def set(self, _key, _value, **kw): ...
|
| 198 |
+
def setdefault(self, key, value): ...
|
| 199 |
+
def __setitem__(self, key, value): ...
|
| 200 |
+
def to_list(self, charset: Text = ...): ...
|
| 201 |
+
def to_wsgi_list(self): ...
|
| 202 |
+
def copy(self): ...
|
| 203 |
+
def __copy__(self): ...
|
| 204 |
+
|
| 205 |
+
class ImmutableHeadersMixin:
|
| 206 |
+
def __delitem__(self, key: str) -> None: ...
|
| 207 |
+
def __setitem__(self, key, value): ...
|
| 208 |
+
set: Any
|
| 209 |
+
def add(self, *args, **kwargs): ...
|
| 210 |
+
remove: Any
|
| 211 |
+
add_header: Any
|
| 212 |
+
def extend(self, iterable): ...
|
| 213 |
+
def insert(self, pos, value): ...
|
| 214 |
+
def pop(self, **kwargs): ...
|
| 215 |
+
def popitem(self): ...
|
| 216 |
+
def setdefault(self, key, default): ...
|
| 217 |
+
|
| 218 |
+
class EnvironHeaders(ImmutableHeadersMixin, Headers):
|
| 219 |
+
environ: Any
|
| 220 |
+
def __init__(self, environ): ...
|
| 221 |
+
def __eq__(self, other): ...
|
| 222 |
+
def __getitem__(self, key, _get_mode: bool = ...): ...
|
| 223 |
+
def __len__(self): ...
|
| 224 |
+
def __iter__(self): ...
|
| 225 |
+
def copy(self): ...
|
| 226 |
+
|
| 227 |
+
class CombinedMultiDict(ImmutableMultiDictMixin, MultiDict[_K, _V]): # type: ignore
|
| 228 |
+
def __reduce_ex__(self, protocol): ...
|
| 229 |
+
dicts: Any
|
| 230 |
+
def __init__(self, dicts: Optional[Any] = ...): ...
|
| 231 |
+
@classmethod
|
| 232 |
+
def fromkeys(cls): ...
|
| 233 |
+
def __getitem__(self, key): ...
|
| 234 |
+
def get(self, key, default: Optional[Any] = ..., type: Optional[Any] = ...): ...
|
| 235 |
+
def getlist(self, key, type: Optional[Any] = ...): ...
|
| 236 |
+
def keys(self): ...
|
| 237 |
+
__iter__: Any
|
| 238 |
+
def items(self, multi: bool = ...): ...
|
| 239 |
+
def values(self): ...
|
| 240 |
+
def lists(self): ...
|
| 241 |
+
def listvalues(self): ...
|
| 242 |
+
def copy(self): ...
|
| 243 |
+
def to_dict(self, flat: bool = ...): ...
|
| 244 |
+
def __len__(self): ...
|
| 245 |
+
def __contains__(self, key): ...
|
| 246 |
+
has_key: Any
|
| 247 |
+
|
| 248 |
+
class FileMultiDict(MultiDict[_K, _V]):
|
| 249 |
+
def add_file(self, name, file, filename: Optional[Any] = ..., content_type: Optional[Any] = ...): ...
|
| 250 |
+
|
| 251 |
+
class ImmutableDict(ImmutableDictMixin, Dict[_K, _V]): # type: ignore
|
| 252 |
+
def copy(self): ...
|
| 253 |
+
def __copy__(self): ...
|
| 254 |
+
|
| 255 |
+
class ImmutableMultiDict(ImmutableMultiDictMixin, MultiDict[_K, _V]): # type: ignore
|
| 256 |
+
def copy(self): ...
|
| 257 |
+
def __copy__(self): ...
|
| 258 |
+
|
| 259 |
+
class ImmutableOrderedMultiDict(ImmutableMultiDictMixin, OrderedMultiDict[_K, _V]): # type: ignore
|
| 260 |
+
def copy(self): ...
|
| 261 |
+
def __copy__(self): ...
|
| 262 |
+
|
| 263 |
+
class Accept(ImmutableList[Tuple[str, float]]):
|
| 264 |
+
provided: bool
|
| 265 |
+
def __init__(self, values: Union[None, Accept, Iterable[Tuple[str, float]]] = ...) -> None: ...
|
| 266 |
+
@overload
|
| 267 |
+
def __getitem__(self, key: int) -> Tuple[str, float]: ...
|
| 268 |
+
@overload
|
| 269 |
+
def __getitem__(self, s: slice) -> List[Tuple[str, float]]: ...
|
| 270 |
+
@overload
|
| 271 |
+
def __getitem__(self, key: str) -> float: ...
|
| 272 |
+
def quality(self, key: str) -> float: ...
|
| 273 |
+
def __contains__(self, value: str) -> bool: ... # type: ignore
|
| 274 |
+
def index(self, key: Union[str, Tuple[str, float]]) -> int: ... # type: ignore
|
| 275 |
+
def find(self, key: Union[str, Tuple[str, float]]) -> int: ...
|
| 276 |
+
def values(self) -> Iterator[str]: ...
|
| 277 |
+
def to_header(self) -> str: ...
|
| 278 |
+
@overload
|
| 279 |
+
def best_match(self, matches: Iterable[str], default: None = ...) -> Optional[str]: ...
|
| 280 |
+
@overload
|
| 281 |
+
def best_match(self, matches: Iterable[str], default: _D) -> Union[str, _D]: ...
|
| 282 |
+
@property
|
| 283 |
+
def best(self) -> Optional[str]: ...
|
| 284 |
+
|
| 285 |
+
class MIMEAccept(Accept):
|
| 286 |
+
@property
|
| 287 |
+
def accept_html(self) -> bool: ...
|
| 288 |
+
@property
|
| 289 |
+
def accept_xhtml(self) -> bool: ...
|
| 290 |
+
@property
|
| 291 |
+
def accept_json(self) -> bool: ...
|
| 292 |
+
|
| 293 |
+
class LanguageAccept(Accept): ...
|
| 294 |
+
class CharsetAccept(Accept): ...
|
| 295 |
+
|
| 296 |
+
def cache_property(key, empty, type): ...
|
| 297 |
+
|
| 298 |
+
class _CacheControl(UpdateDictMixin, Dict[str, Any]):
|
| 299 |
+
no_cache: Any
|
| 300 |
+
no_store: Any
|
| 301 |
+
max_age: Any
|
| 302 |
+
no_transform: Any
|
| 303 |
+
on_update: Any
|
| 304 |
+
provided: Any
|
| 305 |
+
def __init__(self, values=..., on_update: Optional[Any] = ...): ...
|
| 306 |
+
def to_header(self): ...
|
| 307 |
+
|
| 308 |
+
class RequestCacheControl(ImmutableDictMixin, _CacheControl): # type: ignore
|
| 309 |
+
max_stale: Any
|
| 310 |
+
min_fresh: Any
|
| 311 |
+
no_transform: Any
|
| 312 |
+
only_if_cached: Any
|
| 313 |
+
|
| 314 |
+
class ResponseCacheControl(_CacheControl):
|
| 315 |
+
public: Any
|
| 316 |
+
private: Any
|
| 317 |
+
must_revalidate: Any
|
| 318 |
+
proxy_revalidate: Any
|
| 319 |
+
s_maxage: Any
|
| 320 |
+
|
| 321 |
+
class CallbackDict(UpdateDictMixin, Dict[_K, _V]):
|
| 322 |
+
on_update: Any
|
| 323 |
+
def __init__(self, initial: Optional[Any] = ..., on_update: Optional[Any] = ...): ...
|
| 324 |
+
|
| 325 |
+
class HeaderSet(MutableSet[str]):
|
| 326 |
+
on_update: Any
|
| 327 |
+
def __init__(self, headers: Optional[Any] = ..., on_update: Optional[Any] = ...): ...
|
| 328 |
+
def add(self, header): ...
|
| 329 |
+
def remove(self, header): ...
|
| 330 |
+
def update(self, iterable): ...
|
| 331 |
+
def discard(self, header): ...
|
| 332 |
+
def find(self, header): ...
|
| 333 |
+
def index(self, header): ...
|
| 334 |
+
def clear(self): ...
|
| 335 |
+
def as_set(self, preserve_casing: bool = ...): ...
|
| 336 |
+
def to_header(self): ...
|
| 337 |
+
def __getitem__(self, idx): ...
|
| 338 |
+
def __delitem__(self, idx): ...
|
| 339 |
+
def __setitem__(self, idx, value): ...
|
| 340 |
+
def __contains__(self, header): ...
|
| 341 |
+
def __len__(self): ...
|
| 342 |
+
def __iter__(self): ...
|
| 343 |
+
def __nonzero__(self): ...
|
| 344 |
+
|
| 345 |
+
class ETags(Container[str], Iterable[str]):
|
| 346 |
+
star_tag: Any
|
| 347 |
+
def __init__(self, strong_etags: Optional[Any] = ..., weak_etags: Optional[Any] = ..., star_tag: bool = ...): ...
|
| 348 |
+
def as_set(self, include_weak: bool = ...): ...
|
| 349 |
+
def is_weak(self, etag): ...
|
| 350 |
+
def contains_weak(self, etag): ...
|
| 351 |
+
def contains(self, etag): ...
|
| 352 |
+
def contains_raw(self, etag): ...
|
| 353 |
+
def to_header(self): ...
|
| 354 |
+
def __call__(self, etag: Optional[Any] = ..., data: Optional[Any] = ..., include_weak: bool = ...): ...
|
| 355 |
+
def __bool__(self): ...
|
| 356 |
+
__nonzero__: Any
|
| 357 |
+
def __iter__(self): ...
|
| 358 |
+
def __contains__(self, etag): ...
|
| 359 |
+
|
| 360 |
+
class IfRange:
|
| 361 |
+
etag: Any
|
| 362 |
+
date: Any
|
| 363 |
+
def __init__(self, etag: Optional[Any] = ..., date: Optional[Any] = ...): ...
|
| 364 |
+
def to_header(self): ...
|
| 365 |
+
|
| 366 |
+
class Range:
|
| 367 |
+
units: Any
|
| 368 |
+
ranges: Any
|
| 369 |
+
def __init__(self, units, ranges): ...
|
| 370 |
+
def range_for_length(self, length): ...
|
| 371 |
+
def make_content_range(self, length): ...
|
| 372 |
+
def to_header(self): ...
|
| 373 |
+
def to_content_range_header(self, length): ...
|
| 374 |
+
|
| 375 |
+
class ContentRange:
|
| 376 |
+
on_update: Any
|
| 377 |
+
units: Optional[str]
|
| 378 |
+
start: Any
|
| 379 |
+
stop: Any
|
| 380 |
+
length: Any
|
| 381 |
+
def __init__(self, units: Optional[str], start, stop, length: Optional[Any] = ..., on_update: Optional[Any] = ...): ...
|
| 382 |
+
def set(self, start, stop, length: Optional[Any] = ..., units: Optional[str] = ...): ...
|
| 383 |
+
def unset(self) -> None: ...
|
| 384 |
+
def to_header(self): ...
|
| 385 |
+
def __nonzero__(self): ...
|
| 386 |
+
__bool__: Any
|
| 387 |
+
|
| 388 |
+
class Authorization(ImmutableDictMixin, Dict[str, Any]): # type: ignore
|
| 389 |
+
type: str
|
| 390 |
+
def __init__(self, auth_type: str, data: Optional[Mapping[str, Any]] = ...) -> None: ...
|
| 391 |
+
@property
|
| 392 |
+
def username(self) -> Optional[str]: ...
|
| 393 |
+
@property
|
| 394 |
+
def password(self) -> Optional[str]: ...
|
| 395 |
+
@property
|
| 396 |
+
def realm(self) -> Optional[str]: ...
|
| 397 |
+
@property
|
| 398 |
+
def nonce(self) -> Optional[str]: ...
|
| 399 |
+
@property
|
| 400 |
+
def uri(self) -> Optional[str]: ...
|
| 401 |
+
@property
|
| 402 |
+
def nc(self) -> Optional[str]: ...
|
| 403 |
+
@property
|
| 404 |
+
def cnonce(self) -> Optional[str]: ...
|
| 405 |
+
@property
|
| 406 |
+
def response(self) -> Optional[str]: ...
|
| 407 |
+
@property
|
| 408 |
+
def opaque(self) -> Optional[str]: ...
|
| 409 |
+
@property
|
| 410 |
+
def qop(self) -> Optional[str]: ...
|
| 411 |
+
|
| 412 |
+
class WWWAuthenticate(UpdateDictMixin, Dict[str, Any]):
|
| 413 |
+
on_update: Any
|
| 414 |
+
def __init__(self, auth_type: Optional[Any] = ..., values: Optional[Any] = ..., on_update: Optional[Any] = ...): ...
|
| 415 |
+
def set_basic(self, realm: str = ...): ...
|
| 416 |
+
def set_digest(
|
| 417 |
+
self, realm, nonce, qop=..., opaque: Optional[Any] = ..., algorithm: Optional[Any] = ..., stale: bool = ...
|
| 418 |
+
): ...
|
| 419 |
+
def to_header(self): ...
|
| 420 |
+
@staticmethod
|
| 421 |
+
def auth_property(name, doc: Optional[Any] = ...): ...
|
| 422 |
+
type: Any
|
| 423 |
+
realm: Any
|
| 424 |
+
domain: Any
|
| 425 |
+
nonce: Any
|
| 426 |
+
opaque: Any
|
| 427 |
+
algorithm: Any
|
| 428 |
+
qop: Any
|
| 429 |
+
stale: Any
|
| 430 |
+
|
| 431 |
+
class FileStorage(object):
|
| 432 |
+
name: Optional[Text]
|
| 433 |
+
stream: IO[bytes]
|
| 434 |
+
filename: Optional[Text]
|
| 435 |
+
headers: Headers
|
| 436 |
+
def __init__(
|
| 437 |
+
self,
|
| 438 |
+
stream: Optional[IO[bytes]] = ...,
|
| 439 |
+
filename: Union[None, Text, bytes] = ...,
|
| 440 |
+
name: Optional[Text] = ...,
|
| 441 |
+
content_type: Optional[Text] = ...,
|
| 442 |
+
content_length: Optional[int] = ...,
|
| 443 |
+
headers: Optional[Headers] = ...,
|
| 444 |
+
): ...
|
| 445 |
+
@property
|
| 446 |
+
def content_type(self) -> Optional[Text]: ...
|
| 447 |
+
@property
|
| 448 |
+
def content_length(self) -> int: ...
|
| 449 |
+
@property
|
| 450 |
+
def mimetype(self) -> str: ...
|
| 451 |
+
@property
|
| 452 |
+
def mimetype_params(self) -> Dict[str, str]: ...
|
| 453 |
+
def save(self, dst: Union[Text, SupportsWrite[bytes]], buffer_size: int = ...): ...
|
| 454 |
+
def close(self) -> None: ...
|
| 455 |
+
def __nonzero__(self) -> bool: ...
|
| 456 |
+
def __bool__(self) -> bool: ...
|
| 457 |
+
def __getattr__(self, name: Text) -> Any: ...
|
| 458 |
+
def __iter__(self) -> Iterator[bytes]: ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/debug/__init__.pyi
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
from werkzeug.wrappers import BaseRequest as Request, BaseResponse as Response
|
| 4 |
+
|
| 5 |
+
PIN_TIME: Any
|
| 6 |
+
|
| 7 |
+
def hash_pin(pin): ...
|
| 8 |
+
def get_machine_id(): ...
|
| 9 |
+
|
| 10 |
+
class _ConsoleFrame:
|
| 11 |
+
console: Any
|
| 12 |
+
id: Any
|
| 13 |
+
def __init__(self, namespace): ...
|
| 14 |
+
|
| 15 |
+
def get_pin_and_cookie_name(app): ...
|
| 16 |
+
|
| 17 |
+
class DebuggedApplication:
|
| 18 |
+
app: Any
|
| 19 |
+
evalex: Any
|
| 20 |
+
frames: Any
|
| 21 |
+
tracebacks: Any
|
| 22 |
+
request_key: Any
|
| 23 |
+
console_path: Any
|
| 24 |
+
console_init_func: Any
|
| 25 |
+
show_hidden_frames: Any
|
| 26 |
+
secret: Any
|
| 27 |
+
pin_logging: Any
|
| 28 |
+
pin: Any
|
| 29 |
+
def __init__(
|
| 30 |
+
self,
|
| 31 |
+
app,
|
| 32 |
+
evalex: bool = ...,
|
| 33 |
+
request_key: str = ...,
|
| 34 |
+
console_path: str = ...,
|
| 35 |
+
console_init_func: Optional[Any] = ...,
|
| 36 |
+
show_hidden_frames: bool = ...,
|
| 37 |
+
lodgeit_url: Optional[Any] = ...,
|
| 38 |
+
pin_security: bool = ...,
|
| 39 |
+
pin_logging: bool = ...,
|
| 40 |
+
): ...
|
| 41 |
+
@property
|
| 42 |
+
def pin_cookie_name(self): ...
|
| 43 |
+
def debug_application(self, environ, start_response): ...
|
| 44 |
+
def execute_command(self, request, command, frame): ...
|
| 45 |
+
def display_console(self, request): ...
|
| 46 |
+
def paste_traceback(self, request, traceback): ...
|
| 47 |
+
def get_resource(self, request, filename): ...
|
| 48 |
+
def check_pin_trust(self, environ): ...
|
| 49 |
+
def pin_auth(self, request): ...
|
| 50 |
+
def log_pin_request(self): ...
|
| 51 |
+
def __call__(self, environ, start_response): ...
|
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/werkzeug/debug/console.pyi
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import code
|
| 2 |
+
from typing import Any, Optional
|
| 3 |
+
|
| 4 |
+
class HTMLStringO:
|
| 5 |
+
def __init__(self): ...
|
| 6 |
+
def isatty(self): ...
|
| 7 |
+
def close(self): ...
|
| 8 |
+
def flush(self): ...
|
| 9 |
+
def seek(self, n, mode: int = ...): ...
|
| 10 |
+
def readline(self): ...
|
| 11 |
+
def reset(self): ...
|
| 12 |
+
def write(self, x): ...
|
| 13 |
+
def writelines(self, x): ...
|
| 14 |
+
|
| 15 |
+
class ThreadedStream:
|
| 16 |
+
@staticmethod
|
| 17 |
+
def push(): ...
|
| 18 |
+
@staticmethod
|
| 19 |
+
def fetch(): ...
|
| 20 |
+
@staticmethod
|
| 21 |
+
def displayhook(obj): ...
|
| 22 |
+
def __setattr__(self, name, value): ...
|
| 23 |
+
def __dir__(self): ...
|
| 24 |
+
def __getattribute__(self, name): ...
|
| 25 |
+
|
| 26 |
+
class _ConsoleLoader:
|
| 27 |
+
def __init__(self): ...
|
| 28 |
+
def register(self, code, source): ...
|
| 29 |
+
def get_source_by_code(self, code): ...
|
| 30 |
+
|
| 31 |
+
class _InteractiveConsole(code.InteractiveInterpreter):
|
| 32 |
+
globals: Any
|
| 33 |
+
more: Any
|
| 34 |
+
buffer: Any
|
| 35 |
+
def __init__(self, globals, locals): ...
|
| 36 |
+
def runsource(self, source): ...
|
| 37 |
+
def runcode(self, code): ...
|
| 38 |
+
def showtraceback(self): ...
|
| 39 |
+
def showsyntaxerror(self, filename: Optional[Any] = ...): ...
|
| 40 |
+
def write(self, data): ...
|
| 41 |
+
|
| 42 |
+
class Console:
|
| 43 |
+
def __init__(self, globals: Optional[Any] = ..., locals: Optional[Any] = ...): ...
|
| 44 |
+
def eval(self, code): ...
|