Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/atomicwrites/__init__.pyi +16 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/backports/__init__.pyi +4 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/backports/ssl_match_hostname.pyi +3 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/__init__.pyi +6 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/abc.pyi +7 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/cache.pyi +20 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/decorators.pyi +16 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/func.pyi +11 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/lfu.pyi +14 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/lru.pyi +13 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/rr.pyi +21 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/ttl.pyi +23 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/__init__.pyi +84 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/_termui_impl.pyi +14 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/core.pyi +285 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/decorators.pyi +293 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/exceptions.pyi +60 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/formatting.pyi +34 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/globals.pyi +8 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/parser.pyi +65 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/termui.pyi +103 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/testing.pyi +67 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/types.pyi +125 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/click/utils.pyi +43 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/__init__.pyi +13 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/core.pyi +9 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/unicode_codes.pyi +6 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/__init__.pyi +1 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/attributes.pyi +118 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/constants.pyi +166 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/exceptions.pyi +23 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/indexes.pyi +39 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/models.pyi +159 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/settings.pyi +8 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/throttle.pyi +19 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/types.pyi +5 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pytz/__init__.pyi +43 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/__init__.pyi +36 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/api.pyi +28 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/auth.pyi +39 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/compat.pyi +3 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/cookies.pyi +64 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/exceptions.pyi +31 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/models.pyi +129 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/sessions.pyi +101 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/structures.pyi +20 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/utils.pyi +54 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/simplejson/__init__.pyi +12 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/simplejson/decoder.pyi +6 -0
- temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/simplejson/encoder.pyi +9 -0
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/atomicwrites/__init__.pyi
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from _typeshed import AnyPath
|
2 |
+
from typing import IO, Any, AnyStr, Callable, ContextManager, Optional, Text, Type
|
3 |
+
|
4 |
+
def replace_atomic(src: AnyStr, dst: AnyStr) -> None: ...
|
5 |
+
def move_atomic(src: AnyStr, dst: AnyStr) -> None: ...
|
6 |
+
|
7 |
+
class AtomicWriter(object):
|
8 |
+
def __init__(self, path: AnyPath, mode: Text = ..., overwrite: bool = ...) -> None: ...
|
9 |
+
def open(self) -> ContextManager[IO[Any]]: ...
|
10 |
+
def _open(self, get_fileobject: Callable[..., IO[AnyStr]]) -> ContextManager[IO[AnyStr]]: ...
|
11 |
+
def get_fileobject(self, dir: Optional[AnyPath] = ..., **kwargs: Any) -> IO[Any]: ...
|
12 |
+
def sync(self, f: IO[Any]) -> None: ...
|
13 |
+
def commit(self, f: IO[Any]) -> None: ...
|
14 |
+
def rollback(self, f: IO[Any]) -> None: ...
|
15 |
+
|
16 |
+
def atomic_write(path: AnyPath, writer_cls: Type[AtomicWriter] = ..., **cls_kwargs: object) -> ContextManager[IO[Any]]: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/backports/__init__.pyi
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any
|
2 |
+
|
3 |
+
# Explicitly mark this package as incomplete.
|
4 |
+
def __getattr__(name: str) -> Any: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/backports/ssl_match_hostname.pyi
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
class CertificateError(ValueError): ...
|
2 |
+
|
3 |
+
def match_hostname(cert, hostname): ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/__init__.pyi
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from .cache import Cache as Cache
|
2 |
+
from .decorators import cached as cached, cachedmethod as cachedmethod
|
3 |
+
from .lfu import LFUCache as LFUCache
|
4 |
+
from .lru import LRUCache as LRUCache
|
5 |
+
from .rr import RRCache as RRCache
|
6 |
+
from .ttl import TTLCache as TTLCache
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/abc.pyi
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from abc import ABCMeta
|
2 |
+
from typing import MutableMapping, TypeVar
|
3 |
+
|
4 |
+
_KT = TypeVar("_KT")
|
5 |
+
_VT = TypeVar("_VT")
|
6 |
+
|
7 |
+
class DefaultMapping(MutableMapping[_KT, _VT], metaclass=ABCMeta): ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/cache.pyi
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Callable, Generic, Iterator, Optional, TypeVar
|
2 |
+
|
3 |
+
from .abc import DefaultMapping as DefaultMapping
|
4 |
+
|
5 |
+
_KT = TypeVar("_KT")
|
6 |
+
_VT = TypeVar("_VT")
|
7 |
+
|
8 |
+
class Cache(DefaultMapping[_KT, _VT], Generic[_KT, _VT]):
|
9 |
+
def __init__(self, maxsize: int, getsizeof: Optional[Callable[[_VT], int]] = ...) -> None: ...
|
10 |
+
def __getitem__(self, key: _KT) -> _VT: ...
|
11 |
+
def __setitem__(self, key: _KT, value: _VT) -> None: ...
|
12 |
+
def __delitem__(self, key: _KT) -> None: ...
|
13 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
14 |
+
def __len__(self) -> int: ...
|
15 |
+
@property
|
16 |
+
def maxsize(self) -> int: ...
|
17 |
+
@property
|
18 |
+
def currsize(self) -> int: ...
|
19 |
+
@staticmethod
|
20 |
+
def getsizeof(value: _VT) -> int: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/decorators.pyi
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any, Callable, ContextManager, MutableMapping, Optional, TypeVar
|
2 |
+
|
3 |
+
_KT = TypeVar("_KT")
|
4 |
+
_VT = TypeVar("_VT")
|
5 |
+
_T = TypeVar("_T", bound=Callable[..., Any])
|
6 |
+
_T_co = TypeVar("_T_co", covariant=True)
|
7 |
+
_T_self = TypeVar("_T_self")
|
8 |
+
|
9 |
+
def cached(
|
10 |
+
cache: Optional[MutableMapping[_KT, _VT]], key: Callable[..., _KT] = ..., lock: Optional[ContextManager[_T_co]] = ...
|
11 |
+
) -> Callable[[_T], _T]: ...
|
12 |
+
def cachedmethod(
|
13 |
+
cache: Callable[[_T_self], Optional[MutableMapping[_KT, _VT]]],
|
14 |
+
key: Callable[..., _KT] = ...,
|
15 |
+
lock: Optional[ContextManager[_T_co]] = ...,
|
16 |
+
) -> Callable[[_T], _T]: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/func.pyi
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any, Callable, Optional, Sequence, TypeVar
|
2 |
+
|
3 |
+
_T = TypeVar("_T")
|
4 |
+
|
5 |
+
_F = TypeVar("_F", bound=Callable[..., Any])
|
6 |
+
_RET = Callable[[_F], _F]
|
7 |
+
|
8 |
+
def lfu_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
|
9 |
+
def lru_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
|
10 |
+
def rr_cache(maxsize: int = ..., choice: Optional[Callable[[Sequence[_T]], _T]] = ..., typed: bool = ...) -> _RET: ...
|
11 |
+
def ttl_cache(maxsize: int = ..., ttl: float = ..., timer: float = ..., typed: bool = ...) -> _RET: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/lfu.pyi
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Callable, Iterator, Optional, TypeVar
|
2 |
+
|
3 |
+
from .cache import Cache
|
4 |
+
|
5 |
+
_KT = TypeVar("_KT")
|
6 |
+
_VT = TypeVar("_VT")
|
7 |
+
|
8 |
+
class LFUCache(Cache[_KT, _VT]):
|
9 |
+
def __init__(self, maxsize: int, getsizeof: Optional[Callable[[_VT], int]] = ...) -> None: ...
|
10 |
+
def __getitem__(self, key: _KT, cache_getitem: Callable[[_KT], _VT] = ...) -> _VT: ...
|
11 |
+
def __setitem__(self, key: _KT, value: _VT, cache_setitem: Callable[[_KT, _VT], None] = ...) -> None: ...
|
12 |
+
def __delitem__(self, key: _KT, cache_delitem: Callable[[_KT], None] = ...) -> None: ...
|
13 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
14 |
+
def __len__(self) -> int: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/lru.pyi
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Callable, Iterator, Optional, TypeVar
|
2 |
+
|
3 |
+
from .cache import Cache as Cache
|
4 |
+
|
5 |
+
_KT = TypeVar("_KT")
|
6 |
+
_VT = TypeVar("_VT")
|
7 |
+
|
8 |
+
class LRUCache(Cache[_KT, _VT]):
|
9 |
+
def __init__(self, maxsize: int, getsizeof: Optional[Callable[[_VT], int]] = ...) -> None: ...
|
10 |
+
def __getitem__(self, key: _KT, cache_getitem: Callable[[_KT], _VT] = ...) -> _VT: ...
|
11 |
+
def __setitem__(self, key: _KT, value: _VT, cache_setitem: Callable[[_KT, _VT], None] = ...) -> None: ...
|
12 |
+
def __delitem__(self, key: _KT, cache_delitem: Callable[[_KT], None] = ...) -> None: ...
|
13 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/rr.pyi
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Callable, Iterator, Optional, Sequence, TypeVar
|
2 |
+
|
3 |
+
from .cache import Cache as Cache
|
4 |
+
|
5 |
+
_KT = TypeVar("_KT")
|
6 |
+
_VT = TypeVar("_VT")
|
7 |
+
|
8 |
+
class RRCache(Cache[_KT, _VT]):
|
9 |
+
def __init__(
|
10 |
+
self,
|
11 |
+
maxsize: int,
|
12 |
+
choice: Optional[Callable[[Sequence[_KT]], _KT]] = ...,
|
13 |
+
getsizeof: Optional[Callable[[_VT], int]] = ...,
|
14 |
+
) -> None: ...
|
15 |
+
def __getitem__(self, key: _KT) -> _VT: ...
|
16 |
+
def __setitem__(self, key: _KT, value: _VT) -> None: ...
|
17 |
+
def __delitem__(self, key: _KT) -> None: ...
|
18 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
19 |
+
def __len__(self) -> int: ...
|
20 |
+
@property
|
21 |
+
def choice(self) -> Callable[[Sequence[_KT]], _KT]: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/ttl.pyi
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Callable, Iterator, Optional, TypeVar
|
2 |
+
|
3 |
+
from .cache import Cache
|
4 |
+
|
5 |
+
_KT = TypeVar("_KT")
|
6 |
+
_VT = TypeVar("_VT")
|
7 |
+
|
8 |
+
class TTLCache(Cache[_KT, _VT]):
|
9 |
+
def __init__(
|
10 |
+
self, maxsize: int, ttl: float, timer: Callable[[], float] = ..., getsizeof: Optional[Callable[[_VT], int]] = ...
|
11 |
+
) -> None: ...
|
12 |
+
def __getitem__(self, key: _KT, cache_getitem: Callable[[_KT], _VT] = ...) -> _VT: ...
|
13 |
+
def __setitem__(self, key: _KT, value: _VT, cache_setitem: Callable[[_KT, _VT], None] = ...) -> None: ...
|
14 |
+
def __delitem__(self, key: _KT, cache_delitem: Callable[[_KT], None] = ...) -> None: ...
|
15 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
16 |
+
def __len__(self) -> int: ...
|
17 |
+
@property
|
18 |
+
def currsize(self) -> int: ...
|
19 |
+
@property
|
20 |
+
def timer(self) -> Callable[[], float]: ...
|
21 |
+
@property
|
22 |
+
def ttl(self) -> float: ...
|
23 |
+
def expire(self, time: Optional[Callable[[], float]] = ...) -> None: ...
|
temp_venv/lib/python3.13/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
|
temp_venv/lib/python3.13/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
|
temp_venv/lib/python3.13/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: ...
|
temp_venv/lib/python3.13/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: ...
|
temp_venv/lib/python3.13/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: ...
|
temp_venv/lib/python3.13/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]: ...
|
temp_venv/lib/python3.13/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]: ...
|
temp_venv/lib/python3.13/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]]: ...
|
temp_venv/lib/python3.13/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: ...
|
temp_venv/lib/python3.13/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]: ...
|
temp_venv/lib/python3.13/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
|
temp_venv/lib/python3.13/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: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/__init__.pyi
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from .core import (
|
2 |
+
demojize as demojize,
|
3 |
+
emoji_count as emoji_count,
|
4 |
+
emoji_lis as emoji_lis,
|
5 |
+
emojize as emojize,
|
6 |
+
get_emoji_regexp as get_emoji_regexp,
|
7 |
+
)
|
8 |
+
from .unicode_codes import (
|
9 |
+
EMOJI_ALIAS_UNICODE as EMOJI_ALIAS_UNICODE,
|
10 |
+
EMOJI_UNICODE as EMOJI_UNICODE,
|
11 |
+
UNICODE_EMOJI as UNICODE_EMOJI,
|
12 |
+
UNICODE_EMOJI_ALIAS as UNICODE_EMOJI_ALIAS,
|
13 |
+
)
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/core.pyi
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Dict, List, Optional, Pattern, Text, Tuple, Union
|
2 |
+
|
3 |
+
_DEFAULT_DELIMITER: str
|
4 |
+
|
5 |
+
def emojize(string: str, use_aliases: bool = ..., delimiters: Tuple[str, str] = ...) -> str: ...
|
6 |
+
def demojize(string: str, delimiters: Tuple[str, str] = ...) -> str: ...
|
7 |
+
def get_emoji_regexp() -> Pattern[Text]: ...
|
8 |
+
def emoji_lis(string: str) -> List[Dict[str, Union[int, str]]]: ...
|
9 |
+
def emoji_count(string: str) -> int: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/unicode_codes.pyi
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Dict, Text
|
2 |
+
|
3 |
+
EMOJI_ALIAS_UNICODE: Dict[Text, Text]
|
4 |
+
EMOJI_UNICODE: Dict[Text, Text]
|
5 |
+
UNICODE_EMOJI: Dict[Text, Text]
|
6 |
+
UNICODE_EMOJI_ALIAS: Dict[Text, Text]
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/__init__.pyi
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
__license__: str
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/attributes.pyi
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datetime import datetime
|
2 |
+
from typing import Any, Callable, Dict, Generic, Iterable, List, Mapping, Optional, Set, Text, Type, TypeVar, Union
|
3 |
+
|
4 |
+
_T = TypeVar("_T")
|
5 |
+
_KT = TypeVar("_KT")
|
6 |
+
_VT = TypeVar("_VT")
|
7 |
+
_MT = TypeVar("_MT", bound=MapAttribute[Any, Any])
|
8 |
+
|
9 |
+
class Attribute(Generic[_T]):
|
10 |
+
attr_name: Optional[Text]
|
11 |
+
attr_type: Text
|
12 |
+
null: bool
|
13 |
+
default: Any
|
14 |
+
is_hash_key: bool
|
15 |
+
is_range_key: bool
|
16 |
+
def __init__(
|
17 |
+
self,
|
18 |
+
hash_key: bool = ...,
|
19 |
+
range_key: bool = ...,
|
20 |
+
null: Optional[bool] = ...,
|
21 |
+
default: Optional[Union[_T, Callable[..., _T]]] = ...,
|
22 |
+
attr_name: Optional[Text] = ...,
|
23 |
+
) -> None: ...
|
24 |
+
def __set__(self, instance: Any, value: Optional[_T]) -> None: ...
|
25 |
+
def serialize(self, value: Any) -> Any: ...
|
26 |
+
def deserialize(self, value: Any) -> Any: ...
|
27 |
+
def get_value(self, value: Any) -> Any: ...
|
28 |
+
def between(self, lower: Any, upper: Any) -> Any: ...
|
29 |
+
def is_in(self, *values: Any) -> Any: ...
|
30 |
+
def exists(self) -> Any: ...
|
31 |
+
def does_not_exist(self) -> Any: ...
|
32 |
+
def is_type(self) -> Any: ...
|
33 |
+
def startswith(self, prefix: str) -> Any: ...
|
34 |
+
def contains(self, item: Any) -> Any: ...
|
35 |
+
def append(self, other: Any) -> Any: ...
|
36 |
+
def prepend(self, other: Any) -> Any: ...
|
37 |
+
def set(self, value: Any) -> Any: ...
|
38 |
+
def remove(self) -> Any: ...
|
39 |
+
def add(self, *values: Any) -> Any: ...
|
40 |
+
def delete(self, *values: Any) -> Any: ...
|
41 |
+
|
42 |
+
class SetMixin(object):
|
43 |
+
def serialize(self, value): ...
|
44 |
+
def deserialize(self, value): ...
|
45 |
+
|
46 |
+
class BinaryAttribute(Attribute[bytes]):
|
47 |
+
def __get__(self, instance: Any, owner: Any) -> bytes: ...
|
48 |
+
|
49 |
+
class BinarySetAttribute(SetMixin, Attribute[Set[bytes]]):
|
50 |
+
def __get__(self, instance: Any, owner: Any) -> Set[bytes]: ...
|
51 |
+
|
52 |
+
class UnicodeSetAttribute(SetMixin, Attribute[Set[Text]]):
|
53 |
+
def element_serialize(self, value: Any) -> Any: ...
|
54 |
+
def element_deserialize(self, value: Any) -> Any: ...
|
55 |
+
def __get__(self, instance: Any, owner: Any) -> Set[Text]: ...
|
56 |
+
|
57 |
+
class UnicodeAttribute(Attribute[Text]):
|
58 |
+
def __get__(self, instance: Any, owner: Any) -> Text: ...
|
59 |
+
|
60 |
+
class JSONAttribute(Attribute[Any]):
|
61 |
+
def __get__(self, instance: Any, owner: Any) -> Any: ...
|
62 |
+
|
63 |
+
class LegacyBooleanAttribute(Attribute[bool]):
|
64 |
+
def __get__(self, instance: Any, owner: Any) -> bool: ...
|
65 |
+
|
66 |
+
class BooleanAttribute(Attribute[bool]):
|
67 |
+
def __get__(self, instance: Any, owner: Any) -> bool: ...
|
68 |
+
|
69 |
+
class NumberSetAttribute(SetMixin, Attribute[Set[float]]):
|
70 |
+
def __get__(self, instance: Any, owner: Any) -> Set[float]: ...
|
71 |
+
|
72 |
+
class NumberAttribute(Attribute[float]):
|
73 |
+
def __get__(self, instance: Any, owner: Any) -> float: ...
|
74 |
+
|
75 |
+
class UTCDateTimeAttribute(Attribute[datetime]):
|
76 |
+
def __get__(self, instance: Any, owner: Any) -> datetime: ...
|
77 |
+
|
78 |
+
class NullAttribute(Attribute[None]):
|
79 |
+
def __get__(self, instance: Any, owner: Any) -> None: ...
|
80 |
+
|
81 |
+
class MapAttributeMeta(type):
|
82 |
+
def __init__(self, name, bases, attrs) -> None: ...
|
83 |
+
|
84 |
+
class MapAttribute(Attribute[Mapping[_KT, _VT]], metaclass=MapAttributeMeta):
|
85 |
+
attribute_values: Any
|
86 |
+
def __init__(
|
87 |
+
self,
|
88 |
+
hash_key: bool = ...,
|
89 |
+
range_key: bool = ...,
|
90 |
+
null: Optional[bool] = ...,
|
91 |
+
default: Optional[Union[Any, Callable[..., Any]]] = ...,
|
92 |
+
attr_name: Optional[Text] = ...,
|
93 |
+
**attrs,
|
94 |
+
) -> None: ...
|
95 |
+
def __iter__(self) -> Iterable[_VT]: ...
|
96 |
+
def __getattr__(self, attr: str) -> _VT: ...
|
97 |
+
def __getitem__(self, item: _KT) -> _VT: ...
|
98 |
+
def __set__(self, instance: Any, value: Union[None, MapAttribute[_KT, _VT], Mapping[_KT, _VT]]) -> None: ...
|
99 |
+
def __get__(self: _MT, instance: Any, owner: Any) -> _MT: ...
|
100 |
+
def is_type_safe(self, key: Any, value: Any) -> bool: ...
|
101 |
+
def validate(self) -> bool: ...
|
102 |
+
|
103 |
+
class ListAttribute(Attribute[List[_T]]):
|
104 |
+
element_type: Any
|
105 |
+
def __init__(
|
106 |
+
self,
|
107 |
+
hash_key: bool = ...,
|
108 |
+
range_key: bool = ...,
|
109 |
+
null: Optional[bool] = ...,
|
110 |
+
default: Optional[Union[Any, Callable[..., Any]]] = ...,
|
111 |
+
attr_name: Optional[Text] = ...,
|
112 |
+
of: Optional[Type[_T]] = ...,
|
113 |
+
) -> None: ...
|
114 |
+
def __get__(self, instance: Any, owner: Any) -> List[_T]: ...
|
115 |
+
|
116 |
+
DESERIALIZE_CLASS_MAP: Dict[Text, Attribute[Any]]
|
117 |
+
SERIALIZE_CLASS_MAP: Dict[Type[Any], Attribute[Any]]
|
118 |
+
SERIALIZE_KEY_MAP: Dict[Type[Any], Text]
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/constants.pyi
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any
|
2 |
+
|
3 |
+
BATCH_WRITE_ITEM: str
|
4 |
+
DESCRIBE_TABLE: str
|
5 |
+
BATCH_GET_ITEM: str
|
6 |
+
CREATE_TABLE: str
|
7 |
+
UPDATE_TABLE: str
|
8 |
+
DELETE_TABLE: str
|
9 |
+
LIST_TABLES: str
|
10 |
+
UPDATE_ITEM: str
|
11 |
+
DELETE_ITEM: str
|
12 |
+
GET_ITEM: str
|
13 |
+
PUT_ITEM: str
|
14 |
+
QUERY: str
|
15 |
+
SCAN: str
|
16 |
+
GLOBAL_SECONDARY_INDEX_UPDATES: str
|
17 |
+
RETURN_ITEM_COLL_METRICS: str
|
18 |
+
EXCLUSIVE_START_TABLE_NAME: str
|
19 |
+
RETURN_CONSUMED_CAPACITY: str
|
20 |
+
COMPARISON_OPERATOR: str
|
21 |
+
SCAN_INDEX_FORWARD: str
|
22 |
+
ATTR_DEFINITIONS: str
|
23 |
+
ATTR_VALUE_LIST: str
|
24 |
+
TABLE_DESCRIPTION: str
|
25 |
+
UNPROCESSED_KEYS: str
|
26 |
+
UNPROCESSED_ITEMS: str
|
27 |
+
CONSISTENT_READ: str
|
28 |
+
DELETE_REQUEST: str
|
29 |
+
RETURN_VALUES: str
|
30 |
+
REQUEST_ITEMS: str
|
31 |
+
ATTRS_TO_GET: str
|
32 |
+
ATTR_UPDATES: str
|
33 |
+
TABLE_STATUS: str
|
34 |
+
SCAN_FILTER: str
|
35 |
+
TABLE_NAME: str
|
36 |
+
KEY_SCHEMA: str
|
37 |
+
ATTR_NAME: str
|
38 |
+
ATTR_TYPE: str
|
39 |
+
ITEM_COUNT: str
|
40 |
+
CAMEL_COUNT: str
|
41 |
+
PUT_REQUEST: str
|
42 |
+
INDEX_NAME: str
|
43 |
+
ATTRIBUTES: str
|
44 |
+
TABLE_KEY: str
|
45 |
+
RESPONSES: str
|
46 |
+
RANGE_KEY: str
|
47 |
+
KEY_TYPE: str
|
48 |
+
ACTION: str
|
49 |
+
UPDATE: str
|
50 |
+
EXISTS: str
|
51 |
+
SELECT: str
|
52 |
+
ACTIVE: str
|
53 |
+
LIMIT: str
|
54 |
+
ITEMS: str
|
55 |
+
ITEM: str
|
56 |
+
KEYS: str
|
57 |
+
UTC: str
|
58 |
+
KEY: str
|
59 |
+
DEFAULT_ENCODING: str
|
60 |
+
DEFAULT_REGION: str
|
61 |
+
DATETIME_FORMAT: str
|
62 |
+
SERVICE_NAME: str
|
63 |
+
HTTP_OK: int
|
64 |
+
HTTP_BAD_REQUEST: int
|
65 |
+
PROVISIONED_THROUGHPUT: str
|
66 |
+
READ_CAPACITY_UNITS: str
|
67 |
+
WRITE_CAPACITY_UNITS: str
|
68 |
+
STRING_SHORT: str
|
69 |
+
STRING_SET_SHORT: str
|
70 |
+
NUMBER_SHORT: str
|
71 |
+
NUMBER_SET_SHORT: str
|
72 |
+
BINARY_SHORT: str
|
73 |
+
BINARY_SET_SHORT: str
|
74 |
+
MAP_SHORT: str
|
75 |
+
LIST_SHORT: str
|
76 |
+
BOOLEAN: str
|
77 |
+
BOOLEAN_SHORT: str
|
78 |
+
STRING: str
|
79 |
+
STRING_SET: str
|
80 |
+
NUMBER: str
|
81 |
+
NUMBER_SET: str
|
82 |
+
BINARY: str
|
83 |
+
BINARY_SET: str
|
84 |
+
MAP: str
|
85 |
+
LIST: str
|
86 |
+
SHORT_ATTR_TYPES: Any
|
87 |
+
ATTR_TYPE_MAP: Any
|
88 |
+
LOCAL_SECONDARY_INDEX: str
|
89 |
+
LOCAL_SECONDARY_INDEXES: str
|
90 |
+
GLOBAL_SECONDARY_INDEX: str
|
91 |
+
GLOBAL_SECONDARY_INDEXES: str
|
92 |
+
PROJECTION: str
|
93 |
+
PROJECTION_TYPE: str
|
94 |
+
NON_KEY_ATTRIBUTES: str
|
95 |
+
KEYS_ONLY: str
|
96 |
+
ALL: str
|
97 |
+
INCLUDE: str
|
98 |
+
STREAM_VIEW_TYPE: str
|
99 |
+
STREAM_SPECIFICATION: str
|
100 |
+
STREAM_ENABLED: str
|
101 |
+
STREAM_NEW_IMAGE: str
|
102 |
+
STREAM_OLD_IMAGE: str
|
103 |
+
STREAM_NEW_AND_OLD_IMAGE: str
|
104 |
+
STREAM_KEYS_ONLY: str
|
105 |
+
EXCLUSIVE_START_KEY: str
|
106 |
+
LAST_EVALUATED_KEY: str
|
107 |
+
QUERY_FILTER: str
|
108 |
+
BEGINS_WITH: str
|
109 |
+
BETWEEN: str
|
110 |
+
EQ: str
|
111 |
+
NE: str
|
112 |
+
LE: str
|
113 |
+
LT: str
|
114 |
+
GE: str
|
115 |
+
GT: str
|
116 |
+
IN: str
|
117 |
+
KEY_CONDITIONS: str
|
118 |
+
COMPARISON_OPERATOR_VALUES: Any
|
119 |
+
QUERY_OPERATOR_MAP: Any
|
120 |
+
NOT_NULL: str
|
121 |
+
NULL: str
|
122 |
+
CONTAINS: str
|
123 |
+
NOT_CONTAINS: str
|
124 |
+
ALL_ATTRIBUTES: str
|
125 |
+
ALL_PROJECTED_ATTRIBUTES: str
|
126 |
+
SPECIFIC_ATTRIBUTES: str
|
127 |
+
COUNT: str
|
128 |
+
SELECT_VALUES: Any
|
129 |
+
SCAN_OPERATOR_MAP: Any
|
130 |
+
QUERY_FILTER_OPERATOR_MAP: Any
|
131 |
+
DELETE_FILTER_OPERATOR_MAP: Any
|
132 |
+
UPDATE_FILTER_OPERATOR_MAP: Any
|
133 |
+
PUT_FILTER_OPERATOR_MAP: Any
|
134 |
+
SEGMENT: str
|
135 |
+
TOTAL_SEGMENTS: str
|
136 |
+
SCAN_FILTER_VALUES: Any
|
137 |
+
QUERY_FILTER_VALUES: Any
|
138 |
+
DELETE_FILTER_VALUES: Any
|
139 |
+
VALUE: str
|
140 |
+
EXPECTED: str
|
141 |
+
CONSUMED_CAPACITY: str
|
142 |
+
CAPACITY_UNITS: str
|
143 |
+
INDEXES: str
|
144 |
+
TOTAL: str
|
145 |
+
NONE: str
|
146 |
+
RETURN_CONSUMED_CAPACITY_VALUES: Any
|
147 |
+
SIZE: str
|
148 |
+
RETURN_ITEM_COLL_METRICS_VALUES: Any
|
149 |
+
ALL_OLD: str
|
150 |
+
UPDATED_OLD: str
|
151 |
+
ALL_NEW: str
|
152 |
+
UPDATED_NEW: str
|
153 |
+
RETURN_VALUES_VALUES: Any
|
154 |
+
PUT: str
|
155 |
+
DELETE: str
|
156 |
+
ADD: str
|
157 |
+
ATTR_UPDATE_ACTIONS: Any
|
158 |
+
BATCH_GET_PAGE_LIMIT: int
|
159 |
+
BATCH_WRITE_PAGE_LIMIT: int
|
160 |
+
META_CLASS_NAME: str
|
161 |
+
REGION: str
|
162 |
+
HOST: str
|
163 |
+
CONDITIONAL_OPERATOR: str
|
164 |
+
AND: str
|
165 |
+
OR: str
|
166 |
+
CONDITIONAL_OPERATORS: Any
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/exceptions.pyi
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any, Optional, Text
|
2 |
+
|
3 |
+
class PynamoDBException(Exception):
|
4 |
+
msg: str
|
5 |
+
cause: Any
|
6 |
+
def __init__(self, msg: Optional[Text] = ..., cause: Optional[Exception] = ...) -> None: ...
|
7 |
+
|
8 |
+
class PynamoDBConnectionError(PynamoDBException): ...
|
9 |
+
class DeleteError(PynamoDBConnectionError): ...
|
10 |
+
class QueryError(PynamoDBConnectionError): ...
|
11 |
+
class ScanError(PynamoDBConnectionError): ...
|
12 |
+
class PutError(PynamoDBConnectionError): ...
|
13 |
+
class UpdateError(PynamoDBConnectionError): ...
|
14 |
+
class GetError(PynamoDBConnectionError): ...
|
15 |
+
class TableError(PynamoDBConnectionError): ...
|
16 |
+
class DoesNotExist(PynamoDBException): ...
|
17 |
+
|
18 |
+
class TableDoesNotExist(PynamoDBException):
|
19 |
+
def __init__(self, table_name) -> None: ...
|
20 |
+
|
21 |
+
class VerboseClientError(Exception):
|
22 |
+
MSG_TEMPLATE: Any
|
23 |
+
def __init__(self, error_response, operation_name, verbose_properties: Optional[Any] = ...) -> None: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/indexes.pyi
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any, Optional
|
2 |
+
|
3 |
+
class IndexMeta(type):
|
4 |
+
def __init__(self, name, bases, attrs) -> None: ...
|
5 |
+
|
6 |
+
class Index(metaclass=IndexMeta):
|
7 |
+
Meta: Any
|
8 |
+
def __init__(self) -> None: ...
|
9 |
+
@classmethod
|
10 |
+
def count(cls, hash_key, consistent_read: bool = ..., **filters) -> int: ...
|
11 |
+
@classmethod
|
12 |
+
def query(
|
13 |
+
cls,
|
14 |
+
hash_key,
|
15 |
+
scan_index_forward: Optional[Any] = ...,
|
16 |
+
consistent_read: bool = ...,
|
17 |
+
limit: Optional[Any] = ...,
|
18 |
+
last_evaluated_key: Optional[Any] = ...,
|
19 |
+
attributes_to_get: Optional[Any] = ...,
|
20 |
+
**filters,
|
21 |
+
): ...
|
22 |
+
|
23 |
+
class GlobalSecondaryIndex(Index): ...
|
24 |
+
class LocalSecondaryIndex(Index): ...
|
25 |
+
|
26 |
+
class Projection(object):
|
27 |
+
projection_type: Any
|
28 |
+
non_key_attributes: Any
|
29 |
+
|
30 |
+
class KeysOnlyProjection(Projection):
|
31 |
+
projection_type: Any
|
32 |
+
|
33 |
+
class IncludeProjection(Projection):
|
34 |
+
projection_type: Any
|
35 |
+
non_key_attributes: Any
|
36 |
+
def __init__(self, non_attr_keys: Optional[Any] = ...) -> None: ...
|
37 |
+
|
38 |
+
class AllProjection(Projection):
|
39 |
+
projection_type: Any
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/models.pyi
ADDED
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any, Dict, Generic, Iterable, Iterator, List, Optional, Sequence, Text, Tuple, Type, TypeVar, Union
|
2 |
+
|
3 |
+
from .attributes import Attribute
|
4 |
+
from .exceptions import DoesNotExist as DoesNotExist
|
5 |
+
|
6 |
+
log: Any
|
7 |
+
|
8 |
+
class DefaultMeta: ...
|
9 |
+
|
10 |
+
class ResultSet(object):
|
11 |
+
results: Any
|
12 |
+
operation: Any
|
13 |
+
arguments: Any
|
14 |
+
def __init__(self, results, operation, arguments) -> None: ...
|
15 |
+
def __iter__(self): ...
|
16 |
+
|
17 |
+
class MetaModel(type):
|
18 |
+
def __init__(self, name: Text, bases: Tuple[type, ...], attrs: Dict[Any, Any]) -> None: ...
|
19 |
+
|
20 |
+
_T = TypeVar("_T", bound="Model")
|
21 |
+
KeyType = Union[Text, bytes, float, int, Tuple[Any, ...]]
|
22 |
+
|
23 |
+
class Model(metaclass=MetaModel):
|
24 |
+
DoesNotExist = DoesNotExist
|
25 |
+
attribute_values: Dict[Text, Any]
|
26 |
+
def __init__(self, hash_key: Optional[KeyType] = ..., range_key: Optional[Any] = ..., **attrs) -> None: ...
|
27 |
+
@classmethod
|
28 |
+
def has_map_or_list_attributes(cls: Type[_T]) -> bool: ...
|
29 |
+
@classmethod
|
30 |
+
def batch_get(
|
31 |
+
cls: Type[_T],
|
32 |
+
items: Iterable[Union[KeyType, Iterable[KeyType]]],
|
33 |
+
consistent_read: Optional[bool] = ...,
|
34 |
+
attributes_to_get: Optional[Sequence[Text]] = ...,
|
35 |
+
) -> Iterator[_T]: ...
|
36 |
+
@classmethod
|
37 |
+
def batch_write(cls: Type[_T], auto_commit: bool = ...) -> BatchWrite[_T]: ...
|
38 |
+
def delete(self, condition: Optional[Any] = ..., conditional_operator: Optional[Text] = ..., **expected_values) -> Any: ...
|
39 |
+
def update(
|
40 |
+
self,
|
41 |
+
attributes: Optional[Dict[Text, Dict[Text, Any]]] = ...,
|
42 |
+
actions: Optional[List[Any]] = ...,
|
43 |
+
condition: Optional[Any] = ...,
|
44 |
+
conditional_operator: Optional[Text] = ...,
|
45 |
+
**expected_values,
|
46 |
+
) -> Any: ...
|
47 |
+
def update_item(
|
48 |
+
self,
|
49 |
+
attribute: Text,
|
50 |
+
value: Optional[Any] = ...,
|
51 |
+
action: Optional[Text] = ...,
|
52 |
+
conditional_operator: Optional[Text] = ...,
|
53 |
+
**expected_values,
|
54 |
+
): ...
|
55 |
+
def save(
|
56 |
+
self, condition: Optional[Any] = ..., conditional_operator: Optional[Text] = ..., **expected_values
|
57 |
+
) -> Dict[str, Any]: ...
|
58 |
+
def refresh(self, consistent_read: bool = ...): ...
|
59 |
+
@classmethod
|
60 |
+
def get(cls: Type[_T], hash_key: KeyType, range_key: Optional[KeyType] = ..., consistent_read: bool = ...) -> _T: ...
|
61 |
+
@classmethod
|
62 |
+
def from_raw_data(cls: Type[_T], data) -> _T: ...
|
63 |
+
@classmethod
|
64 |
+
def count(
|
65 |
+
cls: Type[_T],
|
66 |
+
hash_key: Optional[KeyType] = ...,
|
67 |
+
consistent_read: bool = ...,
|
68 |
+
index_name: Optional[Text] = ...,
|
69 |
+
limit: Optional[int] = ...,
|
70 |
+
**filters,
|
71 |
+
) -> int: ...
|
72 |
+
@classmethod
|
73 |
+
def query(
|
74 |
+
cls: Type[_T],
|
75 |
+
hash_key: KeyType,
|
76 |
+
consistent_read: bool = ...,
|
77 |
+
index_name: Optional[Text] = ...,
|
78 |
+
scan_index_forward: Optional[Any] = ...,
|
79 |
+
conditional_operator: Optional[Text] = ...,
|
80 |
+
limit: Optional[int] = ...,
|
81 |
+
last_evaluated_key: Optional[Any] = ...,
|
82 |
+
attributes_to_get: Optional[Iterable[Text]] = ...,
|
83 |
+
page_size: Optional[int] = ...,
|
84 |
+
**filters,
|
85 |
+
) -> Iterator[_T]: ...
|
86 |
+
@classmethod
|
87 |
+
def rate_limited_scan(
|
88 |
+
cls: Type[_T],
|
89 |
+
# TODO: annotate Condition class
|
90 |
+
filter_condition: Optional[Any] = ...,
|
91 |
+
attributes_to_get: Optional[Sequence[Text]] = ...,
|
92 |
+
segment: Optional[int] = ...,
|
93 |
+
total_segments: Optional[int] = ...,
|
94 |
+
limit: Optional[int] = ...,
|
95 |
+
conditional_operator: Optional[Text] = ...,
|
96 |
+
last_evaluated_key: Optional[Any] = ...,
|
97 |
+
page_size: Optional[int] = ...,
|
98 |
+
timeout_seconds: Optional[int] = ...,
|
99 |
+
read_capacity_to_consume_per_second: int = ...,
|
100 |
+
allow_rate_limited_scan_without_consumed_capacity: Optional[bool] = ...,
|
101 |
+
max_sleep_between_retry: int = ...,
|
102 |
+
max_consecutive_exceptions: int = ...,
|
103 |
+
consistent_read: Optional[bool] = ...,
|
104 |
+
index_name: Optional[str] = ...,
|
105 |
+
**filters: Any,
|
106 |
+
) -> Iterator[_T]: ...
|
107 |
+
@classmethod
|
108 |
+
def scan(
|
109 |
+
cls: Type[_T],
|
110 |
+
segment: Optional[int] = ...,
|
111 |
+
total_segments: Optional[int] = ...,
|
112 |
+
limit: Optional[int] = ...,
|
113 |
+
conditional_operator: Optional[Text] = ...,
|
114 |
+
last_evaluated_key: Optional[Any] = ...,
|
115 |
+
page_size: Optional[int] = ...,
|
116 |
+
**filters,
|
117 |
+
) -> Iterator[_T]: ...
|
118 |
+
@classmethod
|
119 |
+
def exists(cls: Type[_T]) -> bool: ...
|
120 |
+
@classmethod
|
121 |
+
def delete_table(cls): ...
|
122 |
+
@classmethod
|
123 |
+
def describe_table(cls): ...
|
124 |
+
@classmethod
|
125 |
+
def create_table(
|
126 |
+
cls: Type[_T], wait: bool = ..., read_capacity_units: Optional[Any] = ..., write_capacity_units: Optional[Any] = ...
|
127 |
+
): ...
|
128 |
+
@classmethod
|
129 |
+
def dumps(cls): ...
|
130 |
+
@classmethod
|
131 |
+
def dump(cls, filename): ...
|
132 |
+
@classmethod
|
133 |
+
def loads(cls, data): ...
|
134 |
+
@classmethod
|
135 |
+
def load(cls, filename): ...
|
136 |
+
@classmethod
|
137 |
+
def add_throttle_record(cls, records): ...
|
138 |
+
@classmethod
|
139 |
+
def get_throttle(cls): ...
|
140 |
+
@classmethod
|
141 |
+
def get_attributes(cls) -> Dict[str, Attribute[Any]]: ...
|
142 |
+
@classmethod
|
143 |
+
def _get_attributes(cls) -> Dict[str, Attribute[Any]]: ...
|
144 |
+
|
145 |
+
class ModelContextManager(Generic[_T]):
|
146 |
+
model: Type[_T]
|
147 |
+
auto_commit: bool
|
148 |
+
max_operations: int
|
149 |
+
pending_operations: List[Dict[Text, Any]]
|
150 |
+
def __init__(self, model: Type[_T], auto_commit: bool = ...) -> None: ...
|
151 |
+
def __enter__(self) -> ModelContextManager[_T]: ...
|
152 |
+
|
153 |
+
class BatchWrite(ModelContextManager[_T]):
|
154 |
+
def save(self, put_item: _T) -> None: ...
|
155 |
+
def delete(self, del_item: _T) -> None: ...
|
156 |
+
def __enter__(self) -> BatchWrite[_T]: ...
|
157 |
+
def __exit__(self, exc_type, exc_val, exc_tb) -> None: ...
|
158 |
+
pending_operations: Any
|
159 |
+
def commit(self) -> None: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/settings.pyi
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any
|
2 |
+
|
3 |
+
log: Any
|
4 |
+
default_settings_dict: Any
|
5 |
+
OVERRIDE_SETTINGS_PATH: Any
|
6 |
+
override_settings: Any
|
7 |
+
|
8 |
+
def get_settings_value(key): ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/throttle.pyi
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any, Optional
|
2 |
+
|
3 |
+
log: Any
|
4 |
+
|
5 |
+
class ThrottleBase:
|
6 |
+
capacity: Any
|
7 |
+
window: Any
|
8 |
+
records: Any
|
9 |
+
sleep_interval: Any
|
10 |
+
def __init__(self, capacity, window: int = ..., initial_sleep: Optional[Any] = ...) -> None: ...
|
11 |
+
def add_record(self, record): ...
|
12 |
+
def throttle(self): ...
|
13 |
+
|
14 |
+
class NoThrottle(ThrottleBase):
|
15 |
+
def __init__(self) -> None: ...
|
16 |
+
def add_record(self, record): ...
|
17 |
+
|
18 |
+
class Throttle(ThrottleBase):
|
19 |
+
def throttle(self): ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pynamodb/types.pyi
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
STRING: str
|
2 |
+
NUMBER: str
|
3 |
+
BINARY: str
|
4 |
+
HASH: str
|
5 |
+
RANGE: str
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/pytz/__init__.pyi
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datetime
|
2 |
+
from typing import List, Mapping, Optional, Set, Union
|
3 |
+
|
4 |
+
class BaseTzInfo(datetime.tzinfo):
|
5 |
+
zone: str = ...
|
6 |
+
def localize(self, dt: datetime.datetime, is_dst: Optional[bool] = ...) -> datetime.datetime: ...
|
7 |
+
def normalize(self, dt: datetime.datetime) -> datetime.datetime: ...
|
8 |
+
|
9 |
+
class _UTCclass(BaseTzInfo):
|
10 |
+
def tzname(self, dt: Optional[datetime.datetime]) -> str: ...
|
11 |
+
def utcoffset(self, dt: Optional[datetime.datetime]) -> datetime.timedelta: ...
|
12 |
+
def dst(self, dt: Optional[datetime.datetime]) -> datetime.timedelta: ...
|
13 |
+
|
14 |
+
class _StaticTzInfo(BaseTzInfo):
|
15 |
+
def tzname(self, dt: Optional[datetime.datetime], is_dst: Optional[bool] = ...) -> str: ...
|
16 |
+
def utcoffset(self, dt: Optional[datetime.datetime], is_dst: Optional[bool] = ...) -> datetime.timedelta: ...
|
17 |
+
def dst(self, dt: Optional[datetime.datetime], is_dst: Optional[bool] = ...) -> datetime.timedelta: ...
|
18 |
+
|
19 |
+
class _DstTzInfo(BaseTzInfo):
|
20 |
+
def tzname(self, dt: Optional[datetime.datetime], is_dst: Optional[bool] = ...) -> str: ...
|
21 |
+
def utcoffset(self, dt: Optional[datetime.datetime], is_dst: Optional[bool] = ...) -> Optional[datetime.timedelta]: ...
|
22 |
+
def dst(self, dt: Optional[datetime.datetime], is_dst: Optional[bool] = ...) -> Optional[datetime.timedelta]: ...
|
23 |
+
|
24 |
+
class UnknownTimeZoneError(KeyError): ...
|
25 |
+
class InvalidTimeError(Exception): ...
|
26 |
+
class AmbiguousTimeError(InvalidTimeError): ...
|
27 |
+
class NonExistentTimeError(InvalidTimeError): ...
|
28 |
+
|
29 |
+
utc: _UTCclass
|
30 |
+
UTC: _UTCclass
|
31 |
+
|
32 |
+
def timezone(zone: str) -> Union[_UTCclass, _StaticTzInfo, _DstTzInfo]: ...
|
33 |
+
def FixedOffset(offset: int) -> Union[_UTCclass, datetime.tzinfo]: ...
|
34 |
+
|
35 |
+
all_timezones: List[str]
|
36 |
+
all_timezones_set: Set[str]
|
37 |
+
common_timezones: List[str]
|
38 |
+
common_timezones_set: Set[str]
|
39 |
+
country_timezones: Mapping[str, List[str]]
|
40 |
+
country_names: Mapping[str, str]
|
41 |
+
ZERO: datetime.timedelta
|
42 |
+
HOUR: datetime.timedelta
|
43 |
+
VERSION: str
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/__init__.pyi
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import logging
|
2 |
+
from typing import Any, Text
|
3 |
+
|
4 |
+
from .api import (
|
5 |
+
delete as delete,
|
6 |
+
get as get,
|
7 |
+
head as head,
|
8 |
+
options as options,
|
9 |
+
patch as patch,
|
10 |
+
post as post,
|
11 |
+
put as put,
|
12 |
+
request as request,
|
13 |
+
)
|
14 |
+
from .exceptions import (
|
15 |
+
ConnectionError as ConnectionError,
|
16 |
+
HTTPError as HTTPError,
|
17 |
+
ReadTimeout as ReadTimeout,
|
18 |
+
RequestException as RequestException,
|
19 |
+
Timeout as Timeout,
|
20 |
+
TooManyRedirects as TooManyRedirects,
|
21 |
+
URLRequired as URLRequired,
|
22 |
+
)
|
23 |
+
from .models import PreparedRequest as PreparedRequest, Request as Request, Response as Response
|
24 |
+
from .sessions import Session as Session, session as session
|
25 |
+
from .status_codes import codes as codes
|
26 |
+
|
27 |
+
__title__: Any
|
28 |
+
__build__: Any
|
29 |
+
__license__: Any
|
30 |
+
__copyright__: Any
|
31 |
+
__version__: Any
|
32 |
+
|
33 |
+
class NullHandler(logging.Handler):
|
34 |
+
def emit(self, record): ...
|
35 |
+
|
36 |
+
def check_compatibility(urllib3_version: Text, chardet_version: Text) -> None: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/api.pyi
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from _typeshed import SupportsItems
|
2 |
+
from typing import Iterable, Optional, Text, Tuple, Union
|
3 |
+
|
4 |
+
from .models import Response
|
5 |
+
from .sessions import _Data
|
6 |
+
|
7 |
+
_ParamsMappingKeyType = Union[Text, bytes, int, float]
|
8 |
+
_ParamsMappingValueType = Union[Text, bytes, int, float, Iterable[Union[Text, bytes, int, float]], None]
|
9 |
+
|
10 |
+
def request(method: str, url: str, **kwargs) -> Response: ...
|
11 |
+
def get(
|
12 |
+
url: Union[Text, bytes],
|
13 |
+
params: Optional[
|
14 |
+
Union[
|
15 |
+
SupportsItems[_ParamsMappingKeyType, _ParamsMappingValueType],
|
16 |
+
Tuple[_ParamsMappingKeyType, _ParamsMappingValueType],
|
17 |
+
Iterable[Tuple[_ParamsMappingKeyType, _ParamsMappingValueType]],
|
18 |
+
Union[Text, bytes],
|
19 |
+
]
|
20 |
+
] = ...,
|
21 |
+
**kwargs,
|
22 |
+
) -> Response: ...
|
23 |
+
def options(url: Union[Text, bytes], **kwargs) -> Response: ...
|
24 |
+
def head(url: Union[Text, bytes], **kwargs) -> Response: ...
|
25 |
+
def post(url: Union[Text, bytes], data: _Data = ..., json=..., **kwargs) -> Response: ...
|
26 |
+
def put(url: Union[Text, bytes], data: _Data = ..., json=..., **kwargs) -> Response: ...
|
27 |
+
def patch(url: Union[Text, bytes], data: _Data = ..., json=..., **kwargs) -> Response: ...
|
28 |
+
def delete(url: Union[Text, bytes], **kwargs) -> Response: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/auth.pyi
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any, Text, Union
|
2 |
+
|
3 |
+
from . import cookies, models, status_codes, utils
|
4 |
+
|
5 |
+
extract_cookies_to_jar = cookies.extract_cookies_to_jar
|
6 |
+
parse_dict_header = utils.parse_dict_header
|
7 |
+
to_native_string = utils.to_native_string
|
8 |
+
|
9 |
+
CONTENT_TYPE_FORM_URLENCODED: Any
|
10 |
+
CONTENT_TYPE_MULTI_PART: Any
|
11 |
+
|
12 |
+
def _basic_auth_str(username: Union[bytes, Text], password: Union[bytes, Text]) -> str: ...
|
13 |
+
|
14 |
+
class AuthBase:
|
15 |
+
def __call__(self, r: models.PreparedRequest) -> models.PreparedRequest: ...
|
16 |
+
|
17 |
+
class HTTPBasicAuth(AuthBase):
|
18 |
+
username: Any
|
19 |
+
password: Any
|
20 |
+
def __init__(self, username, password) -> None: ...
|
21 |
+
def __call__(self, r): ...
|
22 |
+
|
23 |
+
class HTTPProxyAuth(HTTPBasicAuth):
|
24 |
+
def __call__(self, r): ...
|
25 |
+
|
26 |
+
class HTTPDigestAuth(AuthBase):
|
27 |
+
username: Any
|
28 |
+
password: Any
|
29 |
+
last_nonce: Any
|
30 |
+
nonce_count: Any
|
31 |
+
chal: Any
|
32 |
+
pos: Any
|
33 |
+
num_401_calls: Any
|
34 |
+
def __init__(self, username, password) -> None: ...
|
35 |
+
def build_digest_header(self, method, url): ...
|
36 |
+
def handle_redirect(self, r, **kwargs): ...
|
37 |
+
def handle_401(self, r, **kwargs): ...
|
38 |
+
def __call__(self, r): ...
|
39 |
+
def init_per_thread_state(self) -> None: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/compat.pyi
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
import collections
|
2 |
+
|
3 |
+
OrderedDict = collections.OrderedDict
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/cookies.pyi
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import sys
|
2 |
+
from typing import Any, MutableMapping
|
3 |
+
|
4 |
+
if sys.version_info < (3, 0):
|
5 |
+
from cookielib import CookieJar
|
6 |
+
else:
|
7 |
+
from http.cookiejar import CookieJar
|
8 |
+
|
9 |
+
class MockRequest:
|
10 |
+
type: Any
|
11 |
+
def __init__(self, request) -> None: ...
|
12 |
+
def get_type(self): ...
|
13 |
+
def get_host(self): ...
|
14 |
+
def get_origin_req_host(self): ...
|
15 |
+
def get_full_url(self): ...
|
16 |
+
def is_unverifiable(self): ...
|
17 |
+
def has_header(self, name): ...
|
18 |
+
def get_header(self, name, default=...): ...
|
19 |
+
def add_header(self, key, val): ...
|
20 |
+
def add_unredirected_header(self, name, value): ...
|
21 |
+
def get_new_headers(self): ...
|
22 |
+
@property
|
23 |
+
def unverifiable(self): ...
|
24 |
+
@property
|
25 |
+
def origin_req_host(self): ...
|
26 |
+
@property
|
27 |
+
def host(self): ...
|
28 |
+
|
29 |
+
class MockResponse:
|
30 |
+
def __init__(self, headers) -> None: ...
|
31 |
+
def info(self): ...
|
32 |
+
def getheaders(self, name): ...
|
33 |
+
|
34 |
+
def extract_cookies_to_jar(jar, request, response): ...
|
35 |
+
def get_cookie_header(jar, request): ...
|
36 |
+
def remove_cookie_by_name(cookiejar, name, domain=..., path=...): ...
|
37 |
+
|
38 |
+
class CookieConflictError(RuntimeError): ...
|
39 |
+
|
40 |
+
class RequestsCookieJar(CookieJar, MutableMapping[Any, Any]):
|
41 |
+
def get(self, name, default=..., domain=..., path=...): ...
|
42 |
+
def set(self, name, value, **kwargs): ...
|
43 |
+
def iterkeys(self): ...
|
44 |
+
def keys(self): ...
|
45 |
+
def itervalues(self): ...
|
46 |
+
def values(self): ...
|
47 |
+
def iteritems(self): ...
|
48 |
+
def items(self): ...
|
49 |
+
def list_domains(self): ...
|
50 |
+
def list_paths(self): ...
|
51 |
+
def multiple_domains(self): ...
|
52 |
+
def get_dict(self, domain=..., path=...): ...
|
53 |
+
def __getitem__(self, name): ...
|
54 |
+
def __setitem__(self, name, value): ...
|
55 |
+
def __delitem__(self, name): ...
|
56 |
+
def set_cookie(self, cookie, *args, **kwargs): ...
|
57 |
+
def update(self, other): ...
|
58 |
+
def copy(self): ...
|
59 |
+
def get_policy(self): ...
|
60 |
+
|
61 |
+
def create_cookie(name, value, **kwargs): ...
|
62 |
+
def morsel_to_cookie(morsel): ...
|
63 |
+
def cookiejar_from_dict(cookie_dict, cookiejar=..., overwrite=...): ...
|
64 |
+
def merge_cookies(cookiejar, cookies): ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/exceptions.pyi
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any
|
2 |
+
|
3 |
+
from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
|
4 |
+
|
5 |
+
class RequestException(IOError):
|
6 |
+
response: Any
|
7 |
+
request: Any
|
8 |
+
def __init__(self, *args, **kwargs) -> None: ...
|
9 |
+
|
10 |
+
class HTTPError(RequestException): ...
|
11 |
+
class ConnectionError(RequestException): ...
|
12 |
+
class ProxyError(ConnectionError): ...
|
13 |
+
class SSLError(ConnectionError): ...
|
14 |
+
class Timeout(RequestException): ...
|
15 |
+
class ConnectTimeout(ConnectionError, Timeout): ...
|
16 |
+
class ReadTimeout(Timeout): ...
|
17 |
+
class URLRequired(RequestException): ...
|
18 |
+
class TooManyRedirects(RequestException): ...
|
19 |
+
class MissingSchema(RequestException, ValueError): ...
|
20 |
+
class InvalidSchema(RequestException, ValueError): ...
|
21 |
+
class InvalidURL(RequestException, ValueError): ...
|
22 |
+
class InvalidHeader(RequestException, ValueError): ...
|
23 |
+
class InvalidProxyURL(InvalidURL): ...
|
24 |
+
class ChunkedEncodingError(RequestException): ...
|
25 |
+
class ContentDecodingError(RequestException, BaseHTTPError): ...
|
26 |
+
class StreamConsumedError(RequestException, TypeError): ...
|
27 |
+
class RetryError(RequestException): ...
|
28 |
+
class UnrewindableBodyError(RequestException): ...
|
29 |
+
class RequestsWarning(Warning): ...
|
30 |
+
class FileModeWarning(RequestsWarning, DeprecationWarning): ...
|
31 |
+
class RequestsDependencyWarning(RequestsWarning): ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/models.pyi
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datetime
|
2 |
+
from typing import Any, Dict, Iterator, List, Optional, Text, Union
|
3 |
+
|
4 |
+
from . import auth, cookies, exceptions, hooks, status_codes, structures, utils
|
5 |
+
from .cookies import RequestsCookieJar
|
6 |
+
from .packages.urllib3 import exceptions as urllib3_exceptions, fields, filepost, util
|
7 |
+
|
8 |
+
default_hooks = hooks.default_hooks
|
9 |
+
CaseInsensitiveDict = structures.CaseInsensitiveDict
|
10 |
+
HTTPBasicAuth = auth.HTTPBasicAuth
|
11 |
+
cookiejar_from_dict = cookies.cookiejar_from_dict
|
12 |
+
get_cookie_header = cookies.get_cookie_header
|
13 |
+
RequestField = fields.RequestField
|
14 |
+
encode_multipart_formdata = filepost.encode_multipart_formdata
|
15 |
+
parse_url = util.parse_url
|
16 |
+
DecodeError = urllib3_exceptions.DecodeError
|
17 |
+
ReadTimeoutError = urllib3_exceptions.ReadTimeoutError
|
18 |
+
ProtocolError = urllib3_exceptions.ProtocolError
|
19 |
+
LocationParseError = urllib3_exceptions.LocationParseError
|
20 |
+
HTTPError = exceptions.HTTPError
|
21 |
+
MissingSchema = exceptions.MissingSchema
|
22 |
+
InvalidURL = exceptions.InvalidURL
|
23 |
+
ChunkedEncodingError = exceptions.ChunkedEncodingError
|
24 |
+
ContentDecodingError = exceptions.ContentDecodingError
|
25 |
+
ConnectionError = exceptions.ConnectionError
|
26 |
+
StreamConsumedError = exceptions.StreamConsumedError
|
27 |
+
guess_filename = utils.guess_filename
|
28 |
+
get_auth_from_url = utils.get_auth_from_url
|
29 |
+
requote_uri = utils.requote_uri
|
30 |
+
stream_decode_response_unicode = utils.stream_decode_response_unicode
|
31 |
+
to_key_val_list = utils.to_key_val_list
|
32 |
+
parse_header_links = utils.parse_header_links
|
33 |
+
iter_slices = utils.iter_slices
|
34 |
+
guess_json_utf = utils.guess_json_utf
|
35 |
+
super_len = utils.super_len
|
36 |
+
to_native_string = utils.to_native_string
|
37 |
+
codes = status_codes.codes
|
38 |
+
|
39 |
+
REDIRECT_STATI: Any
|
40 |
+
DEFAULT_REDIRECT_LIMIT: Any
|
41 |
+
CONTENT_CHUNK_SIZE: Any
|
42 |
+
ITER_CHUNK_SIZE: Any
|
43 |
+
|
44 |
+
class RequestEncodingMixin:
|
45 |
+
@property
|
46 |
+
def path_url(self): ...
|
47 |
+
|
48 |
+
class RequestHooksMixin:
|
49 |
+
def register_hook(self, event, hook): ...
|
50 |
+
def deregister_hook(self, event, hook): ...
|
51 |
+
|
52 |
+
class Request(RequestHooksMixin):
|
53 |
+
hooks: Any
|
54 |
+
method: Any
|
55 |
+
url: Any
|
56 |
+
headers: Any
|
57 |
+
files: Any
|
58 |
+
data: Any
|
59 |
+
json: Any
|
60 |
+
params: Any
|
61 |
+
auth: Any
|
62 |
+
cookies: Any
|
63 |
+
def __init__(
|
64 |
+
self, method=..., url=..., headers=..., files=..., data=..., params=..., auth=..., cookies=..., hooks=..., json=...
|
65 |
+
) -> None: ...
|
66 |
+
def prepare(self) -> PreparedRequest: ...
|
67 |
+
|
68 |
+
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
|
69 |
+
method: Optional[Union[str, Text]]
|
70 |
+
url: Optional[Union[str, Text]]
|
71 |
+
headers: CaseInsensitiveDict[str]
|
72 |
+
body: Optional[Union[bytes, Text]]
|
73 |
+
hooks: Any
|
74 |
+
def __init__(self) -> None: ...
|
75 |
+
def prepare(
|
76 |
+
self, method=..., url=..., headers=..., files=..., data=..., params=..., auth=..., cookies=..., hooks=..., json=...
|
77 |
+
) -> None: ...
|
78 |
+
def copy(self) -> PreparedRequest: ...
|
79 |
+
def prepare_method(self, method) -> None: ...
|
80 |
+
def prepare_url(self, url, params) -> None: ...
|
81 |
+
def prepare_headers(self, headers) -> None: ...
|
82 |
+
def prepare_body(self, data, files, json=...) -> None: ...
|
83 |
+
def prepare_content_length(self, body) -> None: ...
|
84 |
+
def prepare_auth(self, auth, url=...) -> None: ...
|
85 |
+
def prepare_cookies(self, cookies) -> None: ...
|
86 |
+
def prepare_hooks(self, hooks) -> None: ...
|
87 |
+
|
88 |
+
class Response:
|
89 |
+
__attrs__: Any
|
90 |
+
_content: Optional[bytes] # undocumented
|
91 |
+
status_code: int
|
92 |
+
headers: CaseInsensitiveDict[str]
|
93 |
+
raw: Any
|
94 |
+
url: str
|
95 |
+
encoding: str
|
96 |
+
history: List[Response]
|
97 |
+
reason: str
|
98 |
+
cookies: RequestsCookieJar
|
99 |
+
elapsed: datetime.timedelta
|
100 |
+
request: PreparedRequest
|
101 |
+
def __init__(self) -> None: ...
|
102 |
+
def __bool__(self) -> bool: ...
|
103 |
+
def __nonzero__(self) -> bool: ...
|
104 |
+
def __iter__(self) -> Iterator[bytes]: ...
|
105 |
+
def __enter__(self) -> Response: ...
|
106 |
+
def __exit__(self, *args: Any) -> None: ...
|
107 |
+
@property
|
108 |
+
def next(self) -> Optional[PreparedRequest]: ...
|
109 |
+
@property
|
110 |
+
def ok(self) -> bool: ...
|
111 |
+
@property
|
112 |
+
def is_redirect(self) -> bool: ...
|
113 |
+
@property
|
114 |
+
def is_permanent_redirect(self) -> bool: ...
|
115 |
+
@property
|
116 |
+
def apparent_encoding(self) -> str: ...
|
117 |
+
def iter_content(self, chunk_size: Optional[int] = ..., decode_unicode: bool = ...) -> Iterator[Any]: ...
|
118 |
+
def iter_lines(
|
119 |
+
self, chunk_size: Optional[int] = ..., decode_unicode: bool = ..., delimiter: Optional[Union[Text, bytes]] = ...
|
120 |
+
) -> Iterator[Any]: ...
|
121 |
+
@property
|
122 |
+
def content(self) -> bytes: ...
|
123 |
+
@property
|
124 |
+
def text(self) -> str: ...
|
125 |
+
def json(self, **kwargs) -> Any: ...
|
126 |
+
@property
|
127 |
+
def links(self) -> Dict[Any, Any]: ...
|
128 |
+
def raise_for_status(self) -> None: ...
|
129 |
+
def close(self) -> None: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/sessions.pyi
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import IO, Any, Callable, Iterable, List, Mapping, MutableMapping, Optional, Text, Tuple, Union
|
2 |
+
|
3 |
+
from . import adapters, auth as _auth, compat, cookies, exceptions, hooks, models, status_codes, structures, utils
|
4 |
+
from .models import Response
|
5 |
+
from .packages.urllib3 import _collections
|
6 |
+
|
7 |
+
BaseAdapter = adapters.BaseAdapter
|
8 |
+
OrderedDict = compat.OrderedDict
|
9 |
+
cookiejar_from_dict = cookies.cookiejar_from_dict
|
10 |
+
extract_cookies_to_jar = cookies.extract_cookies_to_jar
|
11 |
+
RequestsCookieJar = cookies.RequestsCookieJar
|
12 |
+
merge_cookies = cookies.merge_cookies
|
13 |
+
Request = models.Request
|
14 |
+
PreparedRequest = models.PreparedRequest
|
15 |
+
DEFAULT_REDIRECT_LIMIT = models.DEFAULT_REDIRECT_LIMIT
|
16 |
+
default_hooks = hooks.default_hooks
|
17 |
+
dispatch_hook = hooks.dispatch_hook
|
18 |
+
to_key_val_list = utils.to_key_val_list
|
19 |
+
default_headers = utils.default_headers
|
20 |
+
to_native_string = utils.to_native_string
|
21 |
+
TooManyRedirects = exceptions.TooManyRedirects
|
22 |
+
InvalidSchema = exceptions.InvalidSchema
|
23 |
+
ChunkedEncodingError = exceptions.ChunkedEncodingError
|
24 |
+
ContentDecodingError = exceptions.ContentDecodingError
|
25 |
+
RecentlyUsedContainer = _collections.RecentlyUsedContainer
|
26 |
+
CaseInsensitiveDict = structures.CaseInsensitiveDict
|
27 |
+
HTTPAdapter = adapters.HTTPAdapter
|
28 |
+
requote_uri = utils.requote_uri
|
29 |
+
get_environ_proxies = utils.get_environ_proxies
|
30 |
+
get_netrc_auth = utils.get_netrc_auth
|
31 |
+
should_bypass_proxies = utils.should_bypass_proxies
|
32 |
+
get_auth_from_url = utils.get_auth_from_url
|
33 |
+
codes = status_codes.codes
|
34 |
+
REDIRECT_STATI = models.REDIRECT_STATI
|
35 |
+
|
36 |
+
def merge_setting(request_setting, session_setting, dict_class=...): ...
|
37 |
+
def merge_hooks(request_hooks, session_hooks, dict_class=...): ...
|
38 |
+
|
39 |
+
class SessionRedirectMixin:
|
40 |
+
def resolve_redirects(self, resp, req, stream=..., timeout=..., verify=..., cert=..., proxies=...): ...
|
41 |
+
def rebuild_auth(self, prepared_request, response): ...
|
42 |
+
def rebuild_proxies(self, prepared_request, proxies): ...
|
43 |
+
|
44 |
+
_Data = Union[None, Text, bytes, Mapping[str, Any], Mapping[Text, Any], Iterable[Tuple[Text, Optional[Text]]], IO]
|
45 |
+
|
46 |
+
_Hook = Callable[[Response], Any]
|
47 |
+
_Hooks = MutableMapping[Text, List[_Hook]]
|
48 |
+
_HooksInput = MutableMapping[Text, Union[Iterable[_Hook], _Hook]]
|
49 |
+
|
50 |
+
class Session(SessionRedirectMixin):
|
51 |
+
__attrs__: Any
|
52 |
+
headers: CaseInsensitiveDict[Text]
|
53 |
+
auth: Union[None, Tuple[Text, Text], _auth.AuthBase, Callable[[Request], Request]]
|
54 |
+
proxies: MutableMapping[Text, Text]
|
55 |
+
hooks: _Hooks
|
56 |
+
params: Union[bytes, MutableMapping[Text, Text]]
|
57 |
+
stream: bool
|
58 |
+
verify: Union[None, bool, Text]
|
59 |
+
cert: Union[None, Text, Tuple[Text, Text]]
|
60 |
+
max_redirects: int
|
61 |
+
trust_env: bool
|
62 |
+
cookies: RequestsCookieJar
|
63 |
+
adapters: MutableMapping[Any, Any]
|
64 |
+
redirect_cache: RecentlyUsedContainer[Any, Any]
|
65 |
+
def __init__(self) -> None: ...
|
66 |
+
def __enter__(self) -> Session: ...
|
67 |
+
def __exit__(self, *args) -> None: ...
|
68 |
+
def prepare_request(self, request): ...
|
69 |
+
def request(
|
70 |
+
self,
|
71 |
+
method: str,
|
72 |
+
url: Union[str, bytes, Text],
|
73 |
+
params: Union[None, bytes, MutableMapping[Text, Text]] = ...,
|
74 |
+
data: _Data = ...,
|
75 |
+
headers: Optional[MutableMapping[Text, Text]] = ...,
|
76 |
+
cookies: Union[None, RequestsCookieJar, MutableMapping[Text, Text]] = ...,
|
77 |
+
files: Optional[MutableMapping[Text, IO[Any]]] = ...,
|
78 |
+
auth: Union[None, Tuple[Text, Text], _auth.AuthBase, Callable[[Request], Request]] = ...,
|
79 |
+
timeout: Union[None, float, Tuple[float, float], Tuple[float, None]] = ...,
|
80 |
+
allow_redirects: Optional[bool] = ...,
|
81 |
+
proxies: Optional[MutableMapping[Text, Text]] = ...,
|
82 |
+
hooks: Optional[_HooksInput] = ...,
|
83 |
+
stream: Optional[bool] = ...,
|
84 |
+
verify: Union[None, bool, Text] = ...,
|
85 |
+
cert: Union[Text, Tuple[Text, Text], None] = ...,
|
86 |
+
json: Optional[Any] = ...,
|
87 |
+
) -> Response: ...
|
88 |
+
def get(self, url: Union[Text, bytes], **kwargs) -> Response: ...
|
89 |
+
def options(self, url: Union[Text, bytes], **kwargs) -> Response: ...
|
90 |
+
def head(self, url: Union[Text, bytes], **kwargs) -> Response: ...
|
91 |
+
def post(self, url: Union[Text, bytes], data: _Data = ..., json: Optional[Any] = ..., **kwargs) -> Response: ...
|
92 |
+
def put(self, url: Union[Text, bytes], data: _Data = ..., **kwargs) -> Response: ...
|
93 |
+
def patch(self, url: Union[Text, bytes], data: _Data = ..., **kwargs) -> Response: ...
|
94 |
+
def delete(self, url: Union[Text, bytes], **kwargs) -> Response: ...
|
95 |
+
def send(self, request: PreparedRequest, **kwargs) -> Response: ...
|
96 |
+
def merge_environment_settings(self, url, proxies, stream, verify, cert): ...
|
97 |
+
def get_adapter(self, url): ...
|
98 |
+
def close(self) -> None: ...
|
99 |
+
def mount(self, prefix: Union[Text, bytes], adapter: BaseAdapter) -> None: ...
|
100 |
+
|
101 |
+
def session() -> Session: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/structures.pyi
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any, Dict, Generic, Iterable, Iterator, Mapping, MutableMapping, Optional, Tuple, TypeVar, Union
|
2 |
+
|
3 |
+
_VT = TypeVar("_VT")
|
4 |
+
|
5 |
+
class CaseInsensitiveDict(MutableMapping[str, _VT], Generic[_VT]):
|
6 |
+
def __init__(self, data: Optional[Union[Mapping[str, _VT], Iterable[Tuple[str, _VT]]]] = ..., **kwargs: _VT) -> None: ...
|
7 |
+
def lower_items(self) -> Iterator[Tuple[str, _VT]]: ...
|
8 |
+
def __setitem__(self, key: str, value: _VT) -> None: ...
|
9 |
+
def __getitem__(self, key: str) -> _VT: ...
|
10 |
+
def __delitem__(self, key: str) -> None: ...
|
11 |
+
def __iter__(self) -> Iterator[str]: ...
|
12 |
+
def __len__(self) -> int: ...
|
13 |
+
def copy(self) -> CaseInsensitiveDict[_VT]: ...
|
14 |
+
|
15 |
+
class LookupDict(Dict[str, _VT]):
|
16 |
+
name: Any
|
17 |
+
def __init__(self, name: Any = ...) -> None: ...
|
18 |
+
def __getitem__(self, key: str) -> Optional[_VT]: ... # type: ignore
|
19 |
+
def __getattr__(self, attr: str) -> _VT: ...
|
20 |
+
def __setattr__(self, attr: str, value: _VT) -> None: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/requests/utils.pyi
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any, AnyStr, Dict, Iterable, Mapping, Optional, Text, Tuple
|
2 |
+
|
3 |
+
from . import compat, cookies, exceptions, structures
|
4 |
+
|
5 |
+
OrderedDict = compat.OrderedDict
|
6 |
+
RequestsCookieJar = cookies.RequestsCookieJar
|
7 |
+
cookiejar_from_dict = cookies.cookiejar_from_dict
|
8 |
+
CaseInsensitiveDict = structures.CaseInsensitiveDict
|
9 |
+
InvalidURL = exceptions.InvalidURL
|
10 |
+
|
11 |
+
NETRC_FILES: Any
|
12 |
+
DEFAULT_CA_BUNDLE_PATH: Any
|
13 |
+
DEFAULT_PORTS: Any
|
14 |
+
|
15 |
+
def dict_to_sequence(d): ...
|
16 |
+
def super_len(o): ...
|
17 |
+
def get_netrc_auth(url, raise_errors: bool = ...): ...
|
18 |
+
def guess_filename(obj): ...
|
19 |
+
def extract_zipped_paths(path): ...
|
20 |
+
def from_key_val_list(value): ...
|
21 |
+
def to_key_val_list(value): ...
|
22 |
+
def parse_list_header(value): ...
|
23 |
+
def parse_dict_header(value): ...
|
24 |
+
def unquote_header_value(value, is_filename=...): ...
|
25 |
+
def dict_from_cookiejar(cj): ...
|
26 |
+
def add_dict_to_cookiejar(cj, cookie_dict): ...
|
27 |
+
def get_encodings_from_content(content): ...
|
28 |
+
def get_encoding_from_headers(headers): ...
|
29 |
+
def stream_decode_response_unicode(iterator, r): ...
|
30 |
+
def iter_slices(string, slice_length): ...
|
31 |
+
def get_unicode_from_response(r): ...
|
32 |
+
|
33 |
+
UNRESERVED_SET: Any
|
34 |
+
|
35 |
+
def unquote_unreserved(uri): ...
|
36 |
+
def requote_uri(uri): ...
|
37 |
+
def address_in_network(ip, net): ...
|
38 |
+
def dotted_netmask(mask): ...
|
39 |
+
def is_ipv4_address(string_ip): ...
|
40 |
+
def is_valid_cidr(string_network): ...
|
41 |
+
def set_environ(env_name, value): ...
|
42 |
+
def should_bypass_proxies(url, no_proxy: Optional[Iterable[AnyStr]]) -> bool: ...
|
43 |
+
def get_environ_proxies(url, no_proxy: Optional[Iterable[AnyStr]] = ...) -> Dict[Any, Any]: ...
|
44 |
+
def select_proxy(url: Text, proxies: Optional[Mapping[Any, Any]]): ...
|
45 |
+
def default_user_agent(name=...): ...
|
46 |
+
def default_headers(): ...
|
47 |
+
def parse_header_links(value): ...
|
48 |
+
def guess_json_utf(data): ...
|
49 |
+
def prepend_scheme_if_needed(url, new_scheme): ...
|
50 |
+
def get_auth_from_url(url): ...
|
51 |
+
def to_native_string(string, encoding=...): ...
|
52 |
+
def urldefragauth(url): ...
|
53 |
+
def rewind_body(prepared_request): ...
|
54 |
+
def check_header_validity(header: Tuple[AnyStr, AnyStr]) -> None: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/simplejson/__init__.pyi
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import IO, Any, Text, Union
|
2 |
+
|
3 |
+
from simplejson.decoder import JSONDecoder as JSONDecoder
|
4 |
+
from simplejson.encoder import JSONEncoder as JSONEncoder, JSONEncoderForHTML as JSONEncoderForHTML
|
5 |
+
from simplejson.scanner import JSONDecodeError as JSONDecodeError
|
6 |
+
|
7 |
+
_LoadsString = Union[Text, bytes, bytearray]
|
8 |
+
|
9 |
+
def dumps(obj: Any, *args: Any, **kwds: Any) -> str: ...
|
10 |
+
def dump(obj: Any, fp: IO[str], *args: Any, **kwds: Any) -> None: ...
|
11 |
+
def loads(s: _LoadsString, **kwds: Any) -> Any: ...
|
12 |
+
def load(fp: IO[str], **kwds: Any) -> Any: ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/simplejson/decoder.pyi
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Match
|
2 |
+
|
3 |
+
class JSONDecoder(object):
|
4 |
+
def __init__(self, **kwargs): ...
|
5 |
+
def decode(self, s: str, _w: Match[str], _PY3: bool): ...
|
6 |
+
def raw_decode(self, s: str, idx: int, _w: Match[str], _PY3: bool): ...
|
temp_venv/lib/python3.13/site-packages/jedi/third_party/typeshed/third_party/2and3/simplejson/encoder.pyi
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Any
|
2 |
+
|
3 |
+
class JSONEncoder(object):
|
4 |
+
def __init__(self, *args, **kwargs): ...
|
5 |
+
def encode(self, o: Any): ...
|
6 |
+
def default(self, o: Any): ...
|
7 |
+
def iterencode(self, o: Any, _one_shot: bool): ...
|
8 |
+
|
9 |
+
class JSONEncoderForHTML(JSONEncoder): ...
|