Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/BaseHTTPServer.pyi +41 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/Cookie.pyi +40 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/HTMLParser.pyi +28 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/SocketServer.pyi +115 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/StringIO.pyi +28 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/UserList.pyi +19 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/_ast.pyi +303 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/_hotshot.pyi +19 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/_sha.pyi +15 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/abc.pyi +31 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/atexit.pyi +5 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/builtins.pyi +1195 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/compileall.pyi +16 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/copy_reg.pyi +16 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/dummy_thread.pyi +21 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/exceptions.pyi +50 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/fcntl.pyi +82 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/functools.pyi +30 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/getopt.pyi +12 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/getpass.pyi +6 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/gettext.pyi +48 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/hashlib.pyi +28 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/httplib.pyi +218 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/json.pyi +93 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/md5.pyi +5 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/mutex.pyi +12 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/ntpath.pyi +85 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/nturl2path.pyi +4 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/os2emxpath.pyi +85 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/pipes.pyi +13 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/posixpath.pyi +85 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/random.pyi +67 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/resource.pyi +46 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/robotparser.pyi +7 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/sets.pyi +60 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/shlex.pyi +30 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/spwd.pyi +15 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/stringold.pyi +44 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/strop.pyi +27 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/symbol.pyi +89 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/toaiff.pyi +11 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/unittest.pyi +280 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/urllib2.pyi +186 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/user.pyi +6 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/xmlrpclib.pyi +248 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2and3/_bisect.pyi +8 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2and3/_curses.pyi +490 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2and3/_msi.pyi +49 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2and3/_random.pyi +15 -0
- home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2and3/_warnings.pyi +67 -0
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/BaseHTTPServer.pyi
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import mimetools
|
| 2 |
+
import SocketServer
|
| 3 |
+
from typing import Any, BinaryIO, Callable, Mapping, Optional, Tuple, Union
|
| 4 |
+
|
| 5 |
+
class HTTPServer(SocketServer.TCPServer):
|
| 6 |
+
server_name: str
|
| 7 |
+
server_port: int
|
| 8 |
+
def __init__(self, server_address: Tuple[str, int], RequestHandlerClass: Callable[..., BaseHTTPRequestHandler]) -> None: ...
|
| 9 |
+
|
| 10 |
+
class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler):
|
| 11 |
+
client_address: Tuple[str, int]
|
| 12 |
+
server: SocketServer.BaseServer
|
| 13 |
+
close_connection: bool
|
| 14 |
+
command: str
|
| 15 |
+
path: str
|
| 16 |
+
request_version: str
|
| 17 |
+
headers: mimetools.Message
|
| 18 |
+
rfile: BinaryIO
|
| 19 |
+
wfile: BinaryIO
|
| 20 |
+
server_version: str
|
| 21 |
+
sys_version: str
|
| 22 |
+
error_message_format: str
|
| 23 |
+
error_content_type: str
|
| 24 |
+
protocol_version: str
|
| 25 |
+
MessageClass: type
|
| 26 |
+
responses: Mapping[int, Tuple[str, str]]
|
| 27 |
+
def __init__(self, request: bytes, client_address: Tuple[str, int], server: SocketServer.BaseServer) -> None: ...
|
| 28 |
+
def handle(self) -> None: ...
|
| 29 |
+
def handle_one_request(self) -> None: ...
|
| 30 |
+
def send_error(self, code: int, message: Optional[str] = ...) -> None: ...
|
| 31 |
+
def send_response(self, code: int, message: Optional[str] = ...) -> None: ...
|
| 32 |
+
def send_header(self, keyword: str, value: str) -> None: ...
|
| 33 |
+
def end_headers(self) -> None: ...
|
| 34 |
+
def flush_headers(self) -> None: ...
|
| 35 |
+
def log_request(self, code: Union[int, str] = ..., size: Union[int, str] = ...) -> None: ...
|
| 36 |
+
def log_error(self, format: str, *args: Any) -> None: ...
|
| 37 |
+
def log_message(self, format: str, *args: Any) -> None: ...
|
| 38 |
+
def version_string(self) -> str: ...
|
| 39 |
+
def date_time_string(self, timestamp: Optional[int] = ...) -> str: ...
|
| 40 |
+
def log_date_time_string(self) -> str: ...
|
| 41 |
+
def address_string(self) -> str: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/Cookie.pyi
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, Optional
|
| 2 |
+
|
| 3 |
+
class CookieError(Exception): ...
|
| 4 |
+
|
| 5 |
+
class Morsel(Dict[Any, Any]):
|
| 6 |
+
key: Any
|
| 7 |
+
def __init__(self): ...
|
| 8 |
+
def __setitem__(self, K, V): ...
|
| 9 |
+
def isReservedKey(self, K): ...
|
| 10 |
+
value: Any
|
| 11 |
+
coded_value: Any
|
| 12 |
+
def set(self, key, val, coded_val, LegalChars=..., idmap=..., translate=...): ...
|
| 13 |
+
def output(self, attrs: Optional[Any] = ..., header=...): ...
|
| 14 |
+
def js_output(self, attrs: Optional[Any] = ...): ...
|
| 15 |
+
def OutputString(self, attrs: Optional[Any] = ...): ...
|
| 16 |
+
|
| 17 |
+
class BaseCookie(Dict[Any, Any]):
|
| 18 |
+
def value_decode(self, val): ...
|
| 19 |
+
def value_encode(self, val): ...
|
| 20 |
+
def __init__(self, input: Optional[Any] = ...): ...
|
| 21 |
+
def __setitem__(self, key, value): ...
|
| 22 |
+
def output(self, attrs: Optional[Any] = ..., header=..., sep=...): ...
|
| 23 |
+
def js_output(self, attrs: Optional[Any] = ...): ...
|
| 24 |
+
def load(self, rawdata): ...
|
| 25 |
+
|
| 26 |
+
class SimpleCookie(BaseCookie):
|
| 27 |
+
def value_decode(self, val): ...
|
| 28 |
+
def value_encode(self, val): ...
|
| 29 |
+
|
| 30 |
+
class SerialCookie(BaseCookie):
|
| 31 |
+
def __init__(self, input: Optional[Any] = ...): ...
|
| 32 |
+
def value_decode(self, val): ...
|
| 33 |
+
def value_encode(self, val): ...
|
| 34 |
+
|
| 35 |
+
class SmartCookie(BaseCookie):
|
| 36 |
+
def __init__(self, input: Optional[Any] = ...): ...
|
| 37 |
+
def value_decode(self, val): ...
|
| 38 |
+
def value_encode(self, val): ...
|
| 39 |
+
|
| 40 |
+
Cookie: Any
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/HTMLParser.pyi
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import AnyStr, List, Tuple
|
| 2 |
+
|
| 3 |
+
from markupbase import ParserBase
|
| 4 |
+
|
| 5 |
+
class HTMLParser(ParserBase):
|
| 6 |
+
def __init__(self) -> None: ...
|
| 7 |
+
def feed(self, feed: AnyStr) -> None: ...
|
| 8 |
+
def close(self) -> None: ...
|
| 9 |
+
def reset(self) -> None: ...
|
| 10 |
+
def get_starttag_text(self) -> AnyStr: ...
|
| 11 |
+
def set_cdata_mode(self, AnyStr) -> None: ...
|
| 12 |
+
def clear_cdata_mode(self) -> None: ...
|
| 13 |
+
def handle_startendtag(self, tag: AnyStr, attrs: List[Tuple[AnyStr, AnyStr]]): ...
|
| 14 |
+
def handle_starttag(self, tag: AnyStr, attrs: List[Tuple[AnyStr, AnyStr]]): ...
|
| 15 |
+
def handle_endtag(self, tag: AnyStr): ...
|
| 16 |
+
def handle_charref(self, name: AnyStr): ...
|
| 17 |
+
def handle_entityref(self, name: AnyStr): ...
|
| 18 |
+
def handle_data(self, data: AnyStr): ...
|
| 19 |
+
def handle_comment(self, data: AnyStr): ...
|
| 20 |
+
def handle_decl(self, decl: AnyStr): ...
|
| 21 |
+
def handle_pi(self, data: AnyStr): ...
|
| 22 |
+
def unknown_decl(self, data: AnyStr): ...
|
| 23 |
+
def unescape(self, s: AnyStr) -> AnyStr: ...
|
| 24 |
+
|
| 25 |
+
class HTMLParseError(Exception):
|
| 26 |
+
msg: str
|
| 27 |
+
lineno: int
|
| 28 |
+
offset: int
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/SocketServer.pyi
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import types
|
| 3 |
+
from socket import SocketType
|
| 4 |
+
from typing import Any, BinaryIO, Callable, ClassVar, List, Optional, Text, Tuple, Type, Union
|
| 5 |
+
|
| 6 |
+
class BaseServer:
|
| 7 |
+
address_family: int
|
| 8 |
+
RequestHandlerClass: Callable[..., BaseRequestHandler]
|
| 9 |
+
server_address: Tuple[str, int]
|
| 10 |
+
socket: SocketType
|
| 11 |
+
allow_reuse_address: bool
|
| 12 |
+
request_queue_size: int
|
| 13 |
+
socket_type: int
|
| 14 |
+
timeout: Optional[float]
|
| 15 |
+
def __init__(self, server_address: Any, RequestHandlerClass: Callable[..., BaseRequestHandler]) -> None: ...
|
| 16 |
+
def fileno(self) -> int: ...
|
| 17 |
+
def handle_request(self) -> None: ...
|
| 18 |
+
def serve_forever(self, poll_interval: float = ...) -> None: ...
|
| 19 |
+
def shutdown(self) -> None: ...
|
| 20 |
+
def server_close(self) -> None: ...
|
| 21 |
+
def finish_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
|
| 22 |
+
def get_request(self) -> Tuple[SocketType, Tuple[str, int]]: ...
|
| 23 |
+
def handle_error(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
|
| 24 |
+
def handle_timeout(self) -> None: ...
|
| 25 |
+
def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
|
| 26 |
+
def server_activate(self) -> None: ...
|
| 27 |
+
def server_bind(self) -> None: ...
|
| 28 |
+
def verify_request(self, request: bytes, client_address: Tuple[str, int]) -> bool: ...
|
| 29 |
+
|
| 30 |
+
class TCPServer(BaseServer):
|
| 31 |
+
def __init__(
|
| 32 |
+
self,
|
| 33 |
+
server_address: Tuple[str, int],
|
| 34 |
+
RequestHandlerClass: Callable[..., BaseRequestHandler],
|
| 35 |
+
bind_and_activate: bool = ...,
|
| 36 |
+
) -> None: ...
|
| 37 |
+
|
| 38 |
+
class UDPServer(BaseServer):
|
| 39 |
+
def __init__(
|
| 40 |
+
self,
|
| 41 |
+
server_address: Tuple[str, int],
|
| 42 |
+
RequestHandlerClass: Callable[..., BaseRequestHandler],
|
| 43 |
+
bind_and_activate: bool = ...,
|
| 44 |
+
) -> None: ...
|
| 45 |
+
|
| 46 |
+
if sys.platform != "win32":
|
| 47 |
+
class UnixStreamServer(BaseServer):
|
| 48 |
+
def __init__(
|
| 49 |
+
self,
|
| 50 |
+
server_address: Union[Text, bytes],
|
| 51 |
+
RequestHandlerClass: Callable[..., BaseRequestHandler],
|
| 52 |
+
bind_and_activate: bool = ...,
|
| 53 |
+
) -> None: ...
|
| 54 |
+
class UnixDatagramServer(BaseServer):
|
| 55 |
+
def __init__(
|
| 56 |
+
self,
|
| 57 |
+
server_address: Union[Text, bytes],
|
| 58 |
+
RequestHandlerClass: Callable[..., BaseRequestHandler],
|
| 59 |
+
bind_and_activate: bool = ...,
|
| 60 |
+
) -> None: ...
|
| 61 |
+
|
| 62 |
+
if sys.platform != "win32":
|
| 63 |
+
class ForkingMixIn:
|
| 64 |
+
timeout: Optional[float] # undocumented
|
| 65 |
+
active_children: Optional[List[int]] # undocumented
|
| 66 |
+
max_children: int # undocumented
|
| 67 |
+
def collect_children(self) -> None: ... # undocumented
|
| 68 |
+
def handle_timeout(self) -> None: ... # undocumented
|
| 69 |
+
def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
|
| 70 |
+
|
| 71 |
+
class ThreadingMixIn:
|
| 72 |
+
daemon_threads: bool
|
| 73 |
+
def process_request_thread(self, request: bytes, client_address: Tuple[str, int]) -> None: ... # undocumented
|
| 74 |
+
def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
|
| 75 |
+
|
| 76 |
+
if sys.platform != "win32":
|
| 77 |
+
class ForkingTCPServer(ForkingMixIn, TCPServer): ...
|
| 78 |
+
class ForkingUDPServer(ForkingMixIn, UDPServer): ...
|
| 79 |
+
|
| 80 |
+
class ThreadingTCPServer(ThreadingMixIn, TCPServer): ...
|
| 81 |
+
class ThreadingUDPServer(ThreadingMixIn, UDPServer): ...
|
| 82 |
+
|
| 83 |
+
if sys.platform != "win32":
|
| 84 |
+
class ThreadingUnixStreamServer(ThreadingMixIn, UnixStreamServer): ...
|
| 85 |
+
class ThreadingUnixDatagramServer(ThreadingMixIn, UnixDatagramServer): ...
|
| 86 |
+
|
| 87 |
+
class BaseRequestHandler:
|
| 88 |
+
# Those are technically of types, respectively:
|
| 89 |
+
# * Union[SocketType, Tuple[bytes, SocketType]]
|
| 90 |
+
# * Union[Tuple[str, int], str]
|
| 91 |
+
# But there are some concerns that having unions here would cause
|
| 92 |
+
# too much inconvenience to people using it (see
|
| 93 |
+
# https://github.com/python/typeshed/pull/384#issuecomment-234649696)
|
| 94 |
+
request: Any
|
| 95 |
+
client_address: Any
|
| 96 |
+
server: BaseServer
|
| 97 |
+
def __init__(self, request: Any, client_address: Any, server: BaseServer) -> None: ...
|
| 98 |
+
def setup(self) -> None: ...
|
| 99 |
+
def handle(self) -> None: ...
|
| 100 |
+
def finish(self) -> None: ...
|
| 101 |
+
|
| 102 |
+
class StreamRequestHandler(BaseRequestHandler):
|
| 103 |
+
rbufsize: ClassVar[int] # Undocumented
|
| 104 |
+
wbufsize: ClassVar[int] # Undocumented
|
| 105 |
+
timeout: ClassVar[Optional[float]] # Undocumented
|
| 106 |
+
disable_nagle_algorithm: ClassVar[bool] # Undocumented
|
| 107 |
+
connection: SocketType # Undocumented
|
| 108 |
+
rfile: BinaryIO
|
| 109 |
+
wfile: BinaryIO
|
| 110 |
+
|
| 111 |
+
class DatagramRequestHandler(BaseRequestHandler):
|
| 112 |
+
packet: SocketType # Undocumented
|
| 113 |
+
socket: SocketType # Undocumented
|
| 114 |
+
rfile: BinaryIO
|
| 115 |
+
wfile: BinaryIO
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/StringIO.pyi
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any, AnyStr, Generic, Iterable, Iterator, List, Optional
|
| 2 |
+
|
| 3 |
+
class StringIO(IO[AnyStr], Generic[AnyStr]):
|
| 4 |
+
closed: bool
|
| 5 |
+
softspace: int
|
| 6 |
+
len: int
|
| 7 |
+
name: str
|
| 8 |
+
def __init__(self, buf: AnyStr = ...) -> None: ...
|
| 9 |
+
def __iter__(self) -> Iterator[AnyStr]: ...
|
| 10 |
+
def next(self) -> AnyStr: ...
|
| 11 |
+
def close(self) -> None: ...
|
| 12 |
+
def isatty(self) -> bool: ...
|
| 13 |
+
def seek(self, pos: int, mode: int = ...) -> int: ...
|
| 14 |
+
def tell(self) -> int: ...
|
| 15 |
+
def read(self, n: int = ...) -> AnyStr: ...
|
| 16 |
+
def readline(self, length: int = ...) -> AnyStr: ...
|
| 17 |
+
def readlines(self, sizehint: int = ...) -> List[AnyStr]: ...
|
| 18 |
+
def truncate(self, size: Optional[int] = ...) -> int: ...
|
| 19 |
+
def write(self, s: AnyStr) -> int: ...
|
| 20 |
+
def writelines(self, iterable: Iterable[AnyStr]) -> None: ...
|
| 21 |
+
def flush(self) -> None: ...
|
| 22 |
+
def getvalue(self) -> AnyStr: ...
|
| 23 |
+
def __enter__(self) -> Any: ...
|
| 24 |
+
def __exit__(self, type: Any, value: Any, traceback: Any) -> Any: ...
|
| 25 |
+
def fileno(self) -> int: ...
|
| 26 |
+
def readable(self) -> bool: ...
|
| 27 |
+
def seekable(self) -> bool: ...
|
| 28 |
+
def writable(self) -> bool: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/UserList.pyi
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Iterable, List, MutableSequence, TypeVar, Union, overload
|
| 2 |
+
|
| 3 |
+
_T = TypeVar("_T")
|
| 4 |
+
_S = TypeVar("_S")
|
| 5 |
+
|
| 6 |
+
class UserList(MutableSequence[_T]):
|
| 7 |
+
data: List[_T]
|
| 8 |
+
def insert(self, index: int, object: _T) -> None: ...
|
| 9 |
+
@overload
|
| 10 |
+
def __setitem__(self, i: int, o: _T) -> None: ...
|
| 11 |
+
@overload
|
| 12 |
+
def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...
|
| 13 |
+
def __delitem__(self, i: Union[int, slice]) -> None: ...
|
| 14 |
+
def __len__(self) -> int: ...
|
| 15 |
+
@overload
|
| 16 |
+
def __getitem__(self, i: int) -> _T: ...
|
| 17 |
+
@overload
|
| 18 |
+
def __getitem__(self: _S, s: slice) -> _S: ...
|
| 19 |
+
def sort(self) -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/_ast.pyi
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import typing
|
| 2 |
+
from typing import Optional
|
| 3 |
+
|
| 4 |
+
__version__: str
|
| 5 |
+
PyCF_ONLY_AST: int
|
| 6 |
+
_identifier = str
|
| 7 |
+
|
| 8 |
+
class AST:
|
| 9 |
+
_attributes: typing.Tuple[str, ...]
|
| 10 |
+
_fields: typing.Tuple[str, ...]
|
| 11 |
+
def __init__(self, *args, **kwargs) -> None: ...
|
| 12 |
+
|
| 13 |
+
class mod(AST): ...
|
| 14 |
+
|
| 15 |
+
class Module(mod):
|
| 16 |
+
body: typing.List[stmt]
|
| 17 |
+
|
| 18 |
+
class Interactive(mod):
|
| 19 |
+
body: typing.List[stmt]
|
| 20 |
+
|
| 21 |
+
class Expression(mod):
|
| 22 |
+
body: expr
|
| 23 |
+
|
| 24 |
+
class Suite(mod):
|
| 25 |
+
body: typing.List[stmt]
|
| 26 |
+
|
| 27 |
+
class stmt(AST):
|
| 28 |
+
lineno: int
|
| 29 |
+
col_offset: int
|
| 30 |
+
|
| 31 |
+
class FunctionDef(stmt):
|
| 32 |
+
name: _identifier
|
| 33 |
+
args: arguments
|
| 34 |
+
body: typing.List[stmt]
|
| 35 |
+
decorator_list: typing.List[expr]
|
| 36 |
+
|
| 37 |
+
class ClassDef(stmt):
|
| 38 |
+
name: _identifier
|
| 39 |
+
bases: typing.List[expr]
|
| 40 |
+
body: typing.List[stmt]
|
| 41 |
+
decorator_list: typing.List[expr]
|
| 42 |
+
|
| 43 |
+
class Return(stmt):
|
| 44 |
+
value: Optional[expr]
|
| 45 |
+
|
| 46 |
+
class Delete(stmt):
|
| 47 |
+
targets: typing.List[expr]
|
| 48 |
+
|
| 49 |
+
class Assign(stmt):
|
| 50 |
+
targets: typing.List[expr]
|
| 51 |
+
value: expr
|
| 52 |
+
|
| 53 |
+
class AugAssign(stmt):
|
| 54 |
+
target: expr
|
| 55 |
+
op: operator
|
| 56 |
+
value: expr
|
| 57 |
+
|
| 58 |
+
class Print(stmt):
|
| 59 |
+
dest: Optional[expr]
|
| 60 |
+
values: typing.List[expr]
|
| 61 |
+
nl: bool
|
| 62 |
+
|
| 63 |
+
class For(stmt):
|
| 64 |
+
target: expr
|
| 65 |
+
iter: expr
|
| 66 |
+
body: typing.List[stmt]
|
| 67 |
+
orelse: typing.List[stmt]
|
| 68 |
+
|
| 69 |
+
class While(stmt):
|
| 70 |
+
test: expr
|
| 71 |
+
body: typing.List[stmt]
|
| 72 |
+
orelse: typing.List[stmt]
|
| 73 |
+
|
| 74 |
+
class If(stmt):
|
| 75 |
+
test: expr
|
| 76 |
+
body: typing.List[stmt]
|
| 77 |
+
orelse: typing.List[stmt]
|
| 78 |
+
|
| 79 |
+
class With(stmt):
|
| 80 |
+
context_expr: expr
|
| 81 |
+
optional_vars: Optional[expr]
|
| 82 |
+
body: typing.List[stmt]
|
| 83 |
+
|
| 84 |
+
class Raise(stmt):
|
| 85 |
+
type: Optional[expr]
|
| 86 |
+
inst: Optional[expr]
|
| 87 |
+
tback: Optional[expr]
|
| 88 |
+
|
| 89 |
+
class TryExcept(stmt):
|
| 90 |
+
body: typing.List[stmt]
|
| 91 |
+
handlers: typing.List[ExceptHandler]
|
| 92 |
+
orelse: typing.List[stmt]
|
| 93 |
+
|
| 94 |
+
class TryFinally(stmt):
|
| 95 |
+
body: typing.List[stmt]
|
| 96 |
+
finalbody: typing.List[stmt]
|
| 97 |
+
|
| 98 |
+
class Assert(stmt):
|
| 99 |
+
test: expr
|
| 100 |
+
msg: Optional[expr]
|
| 101 |
+
|
| 102 |
+
class Import(stmt):
|
| 103 |
+
names: typing.List[alias]
|
| 104 |
+
|
| 105 |
+
class ImportFrom(stmt):
|
| 106 |
+
module: Optional[_identifier]
|
| 107 |
+
names: typing.List[alias]
|
| 108 |
+
level: Optional[int]
|
| 109 |
+
|
| 110 |
+
class Exec(stmt):
|
| 111 |
+
body: expr
|
| 112 |
+
globals: Optional[expr]
|
| 113 |
+
locals: Optional[expr]
|
| 114 |
+
|
| 115 |
+
class Global(stmt):
|
| 116 |
+
names: typing.List[_identifier]
|
| 117 |
+
|
| 118 |
+
class Expr(stmt):
|
| 119 |
+
value: expr
|
| 120 |
+
|
| 121 |
+
class Pass(stmt): ...
|
| 122 |
+
class Break(stmt): ...
|
| 123 |
+
class Continue(stmt): ...
|
| 124 |
+
class slice(AST): ...
|
| 125 |
+
|
| 126 |
+
_slice = slice # this lets us type the variable named 'slice' below
|
| 127 |
+
|
| 128 |
+
class Slice(slice):
|
| 129 |
+
lower: Optional[expr]
|
| 130 |
+
upper: Optional[expr]
|
| 131 |
+
step: Optional[expr]
|
| 132 |
+
|
| 133 |
+
class ExtSlice(slice):
|
| 134 |
+
dims: typing.List[slice]
|
| 135 |
+
|
| 136 |
+
class Index(slice):
|
| 137 |
+
value: expr
|
| 138 |
+
|
| 139 |
+
class Ellipsis(slice): ...
|
| 140 |
+
|
| 141 |
+
class expr(AST):
|
| 142 |
+
lineno: int
|
| 143 |
+
col_offset: int
|
| 144 |
+
|
| 145 |
+
class BoolOp(expr):
|
| 146 |
+
op: boolop
|
| 147 |
+
values: typing.List[expr]
|
| 148 |
+
|
| 149 |
+
class BinOp(expr):
|
| 150 |
+
left: expr
|
| 151 |
+
op: operator
|
| 152 |
+
right: expr
|
| 153 |
+
|
| 154 |
+
class UnaryOp(expr):
|
| 155 |
+
op: unaryop
|
| 156 |
+
operand: expr
|
| 157 |
+
|
| 158 |
+
class Lambda(expr):
|
| 159 |
+
args: arguments
|
| 160 |
+
body: expr
|
| 161 |
+
|
| 162 |
+
class IfExp(expr):
|
| 163 |
+
test: expr
|
| 164 |
+
body: expr
|
| 165 |
+
orelse: expr
|
| 166 |
+
|
| 167 |
+
class Dict(expr):
|
| 168 |
+
keys: typing.List[expr]
|
| 169 |
+
values: typing.List[expr]
|
| 170 |
+
|
| 171 |
+
class Set(expr):
|
| 172 |
+
elts: typing.List[expr]
|
| 173 |
+
|
| 174 |
+
class ListComp(expr):
|
| 175 |
+
elt: expr
|
| 176 |
+
generators: typing.List[comprehension]
|
| 177 |
+
|
| 178 |
+
class SetComp(expr):
|
| 179 |
+
elt: expr
|
| 180 |
+
generators: typing.List[comprehension]
|
| 181 |
+
|
| 182 |
+
class DictComp(expr):
|
| 183 |
+
key: expr
|
| 184 |
+
value: expr
|
| 185 |
+
generators: typing.List[comprehension]
|
| 186 |
+
|
| 187 |
+
class GeneratorExp(expr):
|
| 188 |
+
elt: expr
|
| 189 |
+
generators: typing.List[comprehension]
|
| 190 |
+
|
| 191 |
+
class Yield(expr):
|
| 192 |
+
value: Optional[expr]
|
| 193 |
+
|
| 194 |
+
class Compare(expr):
|
| 195 |
+
left: expr
|
| 196 |
+
ops: typing.List[cmpop]
|
| 197 |
+
comparators: typing.List[expr]
|
| 198 |
+
|
| 199 |
+
class Call(expr):
|
| 200 |
+
func: expr
|
| 201 |
+
args: typing.List[expr]
|
| 202 |
+
keywords: typing.List[keyword]
|
| 203 |
+
starargs: Optional[expr]
|
| 204 |
+
kwargs: Optional[expr]
|
| 205 |
+
|
| 206 |
+
class Repr(expr):
|
| 207 |
+
value: expr
|
| 208 |
+
|
| 209 |
+
class Num(expr):
|
| 210 |
+
n: float
|
| 211 |
+
|
| 212 |
+
class Str(expr):
|
| 213 |
+
s: str
|
| 214 |
+
|
| 215 |
+
class Attribute(expr):
|
| 216 |
+
value: expr
|
| 217 |
+
attr: _identifier
|
| 218 |
+
ctx: expr_context
|
| 219 |
+
|
| 220 |
+
class Subscript(expr):
|
| 221 |
+
value: expr
|
| 222 |
+
slice: _slice
|
| 223 |
+
ctx: expr_context
|
| 224 |
+
|
| 225 |
+
class Name(expr):
|
| 226 |
+
id: _identifier
|
| 227 |
+
ctx: expr_context
|
| 228 |
+
|
| 229 |
+
class List(expr):
|
| 230 |
+
elts: typing.List[expr]
|
| 231 |
+
ctx: expr_context
|
| 232 |
+
|
| 233 |
+
class Tuple(expr):
|
| 234 |
+
elts: typing.List[expr]
|
| 235 |
+
ctx: expr_context
|
| 236 |
+
|
| 237 |
+
class expr_context(AST): ...
|
| 238 |
+
class AugLoad(expr_context): ...
|
| 239 |
+
class AugStore(expr_context): ...
|
| 240 |
+
class Del(expr_context): ...
|
| 241 |
+
class Load(expr_context): ...
|
| 242 |
+
class Param(expr_context): ...
|
| 243 |
+
class Store(expr_context): ...
|
| 244 |
+
class boolop(AST): ...
|
| 245 |
+
class And(boolop): ...
|
| 246 |
+
class Or(boolop): ...
|
| 247 |
+
class operator(AST): ...
|
| 248 |
+
class Add(operator): ...
|
| 249 |
+
class BitAnd(operator): ...
|
| 250 |
+
class BitOr(operator): ...
|
| 251 |
+
class BitXor(operator): ...
|
| 252 |
+
class Div(operator): ...
|
| 253 |
+
class FloorDiv(operator): ...
|
| 254 |
+
class LShift(operator): ...
|
| 255 |
+
class Mod(operator): ...
|
| 256 |
+
class Mult(operator): ...
|
| 257 |
+
class Pow(operator): ...
|
| 258 |
+
class RShift(operator): ...
|
| 259 |
+
class Sub(operator): ...
|
| 260 |
+
class unaryop(AST): ...
|
| 261 |
+
class Invert(unaryop): ...
|
| 262 |
+
class Not(unaryop): ...
|
| 263 |
+
class UAdd(unaryop): ...
|
| 264 |
+
class USub(unaryop): ...
|
| 265 |
+
class cmpop(AST): ...
|
| 266 |
+
class Eq(cmpop): ...
|
| 267 |
+
class Gt(cmpop): ...
|
| 268 |
+
class GtE(cmpop): ...
|
| 269 |
+
class In(cmpop): ...
|
| 270 |
+
class Is(cmpop): ...
|
| 271 |
+
class IsNot(cmpop): ...
|
| 272 |
+
class Lt(cmpop): ...
|
| 273 |
+
class LtE(cmpop): ...
|
| 274 |
+
class NotEq(cmpop): ...
|
| 275 |
+
class NotIn(cmpop): ...
|
| 276 |
+
|
| 277 |
+
class comprehension(AST):
|
| 278 |
+
target: expr
|
| 279 |
+
iter: expr
|
| 280 |
+
ifs: typing.List[expr]
|
| 281 |
+
|
| 282 |
+
class excepthandler(AST): ...
|
| 283 |
+
|
| 284 |
+
class ExceptHandler(excepthandler):
|
| 285 |
+
type: Optional[expr]
|
| 286 |
+
name: Optional[expr]
|
| 287 |
+
body: typing.List[stmt]
|
| 288 |
+
lineno: int
|
| 289 |
+
col_offset: int
|
| 290 |
+
|
| 291 |
+
class arguments(AST):
|
| 292 |
+
args: typing.List[expr]
|
| 293 |
+
vararg: Optional[_identifier]
|
| 294 |
+
kwarg: Optional[_identifier]
|
| 295 |
+
defaults: typing.List[expr]
|
| 296 |
+
|
| 297 |
+
class keyword(AST):
|
| 298 |
+
arg: _identifier
|
| 299 |
+
value: expr
|
| 300 |
+
|
| 301 |
+
class alias(AST):
|
| 302 |
+
name: _identifier
|
| 303 |
+
asname: Optional[_identifier]
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/_hotshot.pyi
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, Generic, List, Tuple
|
| 2 |
+
|
| 3 |
+
def coverage(a: str) -> Any: ...
|
| 4 |
+
def logreader(a: str) -> LogReaderType: ...
|
| 5 |
+
def profiler(a: str, *args, **kwargs) -> Any: ...
|
| 6 |
+
def resolution() -> Tuple[Any, ...]: ...
|
| 7 |
+
|
| 8 |
+
class LogReaderType(object):
|
| 9 |
+
def close(self) -> None: ...
|
| 10 |
+
def fileno(self) -> int: ...
|
| 11 |
+
|
| 12 |
+
class ProfilerType(object):
|
| 13 |
+
def addinfo(self, a: str, b: str) -> None: ...
|
| 14 |
+
def close(self) -> None: ...
|
| 15 |
+
def fileno(self) -> int: ...
|
| 16 |
+
def runcall(self, *args, **kwargs) -> Any: ...
|
| 17 |
+
def runcode(self, a, b, *args, **kwargs) -> Any: ...
|
| 18 |
+
def start(self) -> None: ...
|
| 19 |
+
def stop(self) -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/_sha.pyi
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
blocksize: int
|
| 2 |
+
block_size: int
|
| 3 |
+
digest_size: int
|
| 4 |
+
|
| 5 |
+
class sha(object): # not actually exposed
|
| 6 |
+
name: str
|
| 7 |
+
block_size: int
|
| 8 |
+
digest_size: int
|
| 9 |
+
digestsize: int
|
| 10 |
+
def copy(self) -> sha: ...
|
| 11 |
+
def digest(self) -> str: ...
|
| 12 |
+
def hexdigest(self) -> str: ...
|
| 13 |
+
def update(self, arg: str) -> None: ...
|
| 14 |
+
|
| 15 |
+
def new(arg: str = ...) -> sha: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/abc.pyi
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import _weakrefset
|
| 2 |
+
from typing import Any, Callable, Dict, Set, Tuple, Type, TypeVar
|
| 3 |
+
|
| 4 |
+
_FuncT = TypeVar("_FuncT", bound=Callable[..., Any])
|
| 5 |
+
|
| 6 |
+
# NOTE: mypy has special processing for ABCMeta and abstractmethod.
|
| 7 |
+
|
| 8 |
+
def abstractmethod(funcobj: _FuncT) -> _FuncT: ...
|
| 9 |
+
|
| 10 |
+
class ABCMeta(type):
|
| 11 |
+
# TODO: FrozenSet
|
| 12 |
+
__abstractmethods__: Set[Any]
|
| 13 |
+
_abc_cache: _weakrefset.WeakSet[Any]
|
| 14 |
+
_abc_invalidation_counter: int
|
| 15 |
+
_abc_negative_cache: _weakrefset.WeakSet[Any]
|
| 16 |
+
_abc_negative_cache_version: int
|
| 17 |
+
_abc_registry: _weakrefset.WeakSet[Any]
|
| 18 |
+
def __init__(self, name: str, bases: Tuple[type, ...], namespace: Dict[Any, Any]) -> None: ...
|
| 19 |
+
def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ...
|
| 20 |
+
def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ...
|
| 21 |
+
def _dump_registry(cls: ABCMeta, *args: Any, **kwargs: Any) -> None: ...
|
| 22 |
+
def register(cls: ABCMeta, subclass: Type[Any]) -> None: ...
|
| 23 |
+
|
| 24 |
+
# TODO: The real abc.abstractproperty inherits from "property".
|
| 25 |
+
class abstractproperty(object):
|
| 26 |
+
def __new__(cls, func: Any) -> Any: ...
|
| 27 |
+
__isabstractmethod__: bool
|
| 28 |
+
doc: Any
|
| 29 |
+
fdel: Any
|
| 30 |
+
fget: Any
|
| 31 |
+
fset: Any
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/atexit.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, TypeVar
|
| 2 |
+
|
| 3 |
+
_FT = TypeVar("_FT")
|
| 4 |
+
|
| 5 |
+
def register(func: _FT, *args: Any, **kargs: Any) -> _FT: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/builtins.pyi
ADDED
|
@@ -0,0 +1,1195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# True and False are deliberately omitted because they are keywords in
|
| 2 |
+
# Python 3, and stub files conform to Python 3 syntax.
|
| 3 |
+
|
| 4 |
+
from _typeshed import ReadableBuffer, SupportsKeysAndGetItem, SupportsWrite
|
| 5 |
+
from abc import ABCMeta
|
| 6 |
+
from ast import mod
|
| 7 |
+
from types import CodeType
|
| 8 |
+
from typing import (
|
| 9 |
+
AbstractSet,
|
| 10 |
+
Any,
|
| 11 |
+
AnyStr,
|
| 12 |
+
BinaryIO,
|
| 13 |
+
ByteString,
|
| 14 |
+
Callable,
|
| 15 |
+
Container,
|
| 16 |
+
Dict,
|
| 17 |
+
FrozenSet,
|
| 18 |
+
Generic,
|
| 19 |
+
ItemsView,
|
| 20 |
+
Iterable,
|
| 21 |
+
Iterator,
|
| 22 |
+
KeysView,
|
| 23 |
+
List,
|
| 24 |
+
Mapping,
|
| 25 |
+
MutableMapping,
|
| 26 |
+
MutableSequence,
|
| 27 |
+
MutableSet,
|
| 28 |
+
NoReturn,
|
| 29 |
+
Optional,
|
| 30 |
+
Protocol,
|
| 31 |
+
Reversible,
|
| 32 |
+
Sequence,
|
| 33 |
+
Set,
|
| 34 |
+
Sized,
|
| 35 |
+
SupportsAbs,
|
| 36 |
+
SupportsComplex,
|
| 37 |
+
SupportsFloat,
|
| 38 |
+
SupportsInt,
|
| 39 |
+
Text,
|
| 40 |
+
Tuple,
|
| 41 |
+
Type,
|
| 42 |
+
TypeVar,
|
| 43 |
+
Union,
|
| 44 |
+
ValuesView,
|
| 45 |
+
overload,
|
| 46 |
+
runtime_checkable,
|
| 47 |
+
)
|
| 48 |
+
from typing_extensions import Literal
|
| 49 |
+
|
| 50 |
+
class _SupportsIndex(Protocol):
|
| 51 |
+
def __index__(self) -> int: ...
|
| 52 |
+
|
| 53 |
+
class _SupportsTrunc(Protocol):
|
| 54 |
+
def __trunc__(self) -> int: ...
|
| 55 |
+
|
| 56 |
+
_T = TypeVar("_T")
|
| 57 |
+
_T_co = TypeVar("_T_co", covariant=True)
|
| 58 |
+
_KT = TypeVar("_KT")
|
| 59 |
+
_VT = TypeVar("_VT")
|
| 60 |
+
_S = TypeVar("_S")
|
| 61 |
+
_T1 = TypeVar("_T1")
|
| 62 |
+
_T2 = TypeVar("_T2")
|
| 63 |
+
_T3 = TypeVar("_T3")
|
| 64 |
+
_T4 = TypeVar("_T4")
|
| 65 |
+
_T5 = TypeVar("_T5")
|
| 66 |
+
_TT = TypeVar("_TT", bound="type")
|
| 67 |
+
_TBE = TypeVar("_TBE", bound="BaseException")
|
| 68 |
+
|
| 69 |
+
class object:
|
| 70 |
+
__doc__: Optional[str]
|
| 71 |
+
__dict__: Dict[str, Any]
|
| 72 |
+
__slots__: Union[Text, Iterable[Text]]
|
| 73 |
+
__module__: str
|
| 74 |
+
@property
|
| 75 |
+
def __class__(self: _T) -> Type[_T]: ...
|
| 76 |
+
@__class__.setter
|
| 77 |
+
def __class__(self, __type: Type[object]) -> None: ... # noqa: F811
|
| 78 |
+
def __init__(self) -> None: ...
|
| 79 |
+
def __new__(cls) -> Any: ...
|
| 80 |
+
def __setattr__(self, name: str, value: Any) -> None: ...
|
| 81 |
+
def __eq__(self, o: object) -> bool: ...
|
| 82 |
+
def __ne__(self, o: object) -> bool: ...
|
| 83 |
+
def __str__(self) -> str: ...
|
| 84 |
+
def __repr__(self) -> str: ...
|
| 85 |
+
def __hash__(self) -> int: ...
|
| 86 |
+
def __format__(self, format_spec: str) -> str: ...
|
| 87 |
+
def __getattribute__(self, name: str) -> Any: ...
|
| 88 |
+
def __delattr__(self, name: str) -> None: ...
|
| 89 |
+
def __sizeof__(self) -> int: ...
|
| 90 |
+
def __reduce__(self) -> Union[str, Tuple[Any, ...]]: ...
|
| 91 |
+
def __reduce_ex__(self, protocol: int) -> Union[str, Tuple[Any, ...]]: ...
|
| 92 |
+
|
| 93 |
+
class staticmethod(object): # Special, only valid as a decorator.
|
| 94 |
+
__func__: Callable[..., Any]
|
| 95 |
+
def __init__(self, f: Callable[..., Any]) -> None: ...
|
| 96 |
+
def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...
|
| 97 |
+
def __get__(self, obj: _T, type: Optional[Type[_T]] = ...) -> Callable[..., Any]: ...
|
| 98 |
+
|
| 99 |
+
class classmethod(object): # Special, only valid as a decorator.
|
| 100 |
+
__func__: Callable[..., Any]
|
| 101 |
+
def __init__(self, f: Callable[..., Any]) -> None: ...
|
| 102 |
+
def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...
|
| 103 |
+
def __get__(self, obj: _T, type: Optional[Type[_T]] = ...) -> Callable[..., Any]: ...
|
| 104 |
+
|
| 105 |
+
class type(object):
|
| 106 |
+
__base__: type
|
| 107 |
+
__bases__: Tuple[type, ...]
|
| 108 |
+
__basicsize__: int
|
| 109 |
+
__dict__: Dict[str, Any]
|
| 110 |
+
__dictoffset__: int
|
| 111 |
+
__flags__: int
|
| 112 |
+
__itemsize__: int
|
| 113 |
+
__module__: str
|
| 114 |
+
__mro__: Tuple[type, ...]
|
| 115 |
+
__name__: str
|
| 116 |
+
__weakrefoffset__: int
|
| 117 |
+
@overload
|
| 118 |
+
def __init__(self, o: object) -> None: ...
|
| 119 |
+
@overload
|
| 120 |
+
def __init__(self, name: str, bases: Tuple[type, ...], dict: Dict[str, Any]) -> None: ...
|
| 121 |
+
@overload
|
| 122 |
+
def __new__(cls, o: object) -> type: ...
|
| 123 |
+
@overload
|
| 124 |
+
def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ...
|
| 125 |
+
def __call__(self, *args: Any, **kwds: Any) -> Any: ...
|
| 126 |
+
def __subclasses__(self: _TT) -> List[_TT]: ...
|
| 127 |
+
# Note: the documentation doesnt specify what the return type is, the standard
|
| 128 |
+
# implementation seems to be returning a list.
|
| 129 |
+
def mro(self) -> List[type]: ...
|
| 130 |
+
def __instancecheck__(self, instance: Any) -> bool: ...
|
| 131 |
+
def __subclasscheck__(self, subclass: type) -> bool: ...
|
| 132 |
+
|
| 133 |
+
class super(object):
|
| 134 |
+
@overload
|
| 135 |
+
def __init__(self, t: Any, obj: Any) -> None: ...
|
| 136 |
+
@overload
|
| 137 |
+
def __init__(self, t: Any) -> None: ...
|
| 138 |
+
|
| 139 |
+
class int:
|
| 140 |
+
@overload
|
| 141 |
+
def __new__(cls: Type[_T], x: Union[Text, bytes, SupportsInt, _SupportsIndex, _SupportsTrunc] = ...) -> _T: ...
|
| 142 |
+
@overload
|
| 143 |
+
def __new__(cls: Type[_T], x: Union[Text, bytes, bytearray], base: int) -> _T: ...
|
| 144 |
+
@property
|
| 145 |
+
def real(self) -> int: ...
|
| 146 |
+
@property
|
| 147 |
+
def imag(self) -> int: ...
|
| 148 |
+
@property
|
| 149 |
+
def numerator(self) -> int: ...
|
| 150 |
+
@property
|
| 151 |
+
def denominator(self) -> int: ...
|
| 152 |
+
def conjugate(self) -> int: ...
|
| 153 |
+
def bit_length(self) -> int: ...
|
| 154 |
+
def __add__(self, x: int) -> int: ...
|
| 155 |
+
def __sub__(self, x: int) -> int: ...
|
| 156 |
+
def __mul__(self, x: int) -> int: ...
|
| 157 |
+
def __floordiv__(self, x: int) -> int: ...
|
| 158 |
+
def __div__(self, x: int) -> int: ...
|
| 159 |
+
def __truediv__(self, x: int) -> float: ...
|
| 160 |
+
def __mod__(self, x: int) -> int: ...
|
| 161 |
+
def __divmod__(self, x: int) -> Tuple[int, int]: ...
|
| 162 |
+
def __radd__(self, x: int) -> int: ...
|
| 163 |
+
def __rsub__(self, x: int) -> int: ...
|
| 164 |
+
def __rmul__(self, x: int) -> int: ...
|
| 165 |
+
def __rfloordiv__(self, x: int) -> int: ...
|
| 166 |
+
def __rdiv__(self, x: int) -> int: ...
|
| 167 |
+
def __rtruediv__(self, x: int) -> float: ...
|
| 168 |
+
def __rmod__(self, x: int) -> int: ...
|
| 169 |
+
def __rdivmod__(self, x: int) -> Tuple[int, int]: ...
|
| 170 |
+
@overload
|
| 171 |
+
def __pow__(self, __x: Literal[2], __modulo: Optional[int] = ...) -> int: ...
|
| 172 |
+
@overload
|
| 173 |
+
def __pow__(self, __x: int, __modulo: Optional[int] = ...) -> Any: ... # Return type can be int or float, depending on x.
|
| 174 |
+
def __rpow__(self, x: int, mod: Optional[int] = ...) -> Any: ...
|
| 175 |
+
def __and__(self, n: int) -> int: ...
|
| 176 |
+
def __or__(self, n: int) -> int: ...
|
| 177 |
+
def __xor__(self, n: int) -> int: ...
|
| 178 |
+
def __lshift__(self, n: int) -> int: ...
|
| 179 |
+
def __rshift__(self, n: int) -> int: ...
|
| 180 |
+
def __rand__(self, n: int) -> int: ...
|
| 181 |
+
def __ror__(self, n: int) -> int: ...
|
| 182 |
+
def __rxor__(self, n: int) -> int: ...
|
| 183 |
+
def __rlshift__(self, n: int) -> int: ...
|
| 184 |
+
def __rrshift__(self, n: int) -> int: ...
|
| 185 |
+
def __neg__(self) -> int: ...
|
| 186 |
+
def __pos__(self) -> int: ...
|
| 187 |
+
def __invert__(self) -> int: ...
|
| 188 |
+
def __trunc__(self) -> int: ...
|
| 189 |
+
def __getnewargs__(self) -> Tuple[int]: ...
|
| 190 |
+
def __eq__(self, x: object) -> bool: ...
|
| 191 |
+
def __ne__(self, x: object) -> bool: ...
|
| 192 |
+
def __lt__(self, x: int) -> bool: ...
|
| 193 |
+
def __le__(self, x: int) -> bool: ...
|
| 194 |
+
def __gt__(self, x: int) -> bool: ...
|
| 195 |
+
def __ge__(self, x: int) -> bool: ...
|
| 196 |
+
def __str__(self) -> str: ...
|
| 197 |
+
def __float__(self) -> float: ...
|
| 198 |
+
def __int__(self) -> int: ...
|
| 199 |
+
def __abs__(self) -> int: ...
|
| 200 |
+
def __hash__(self) -> int: ...
|
| 201 |
+
def __nonzero__(self) -> bool: ...
|
| 202 |
+
def __index__(self) -> int: ...
|
| 203 |
+
|
| 204 |
+
class float:
|
| 205 |
+
def __new__(cls: Type[_T], x: Union[SupportsFloat, _SupportsIndex, Text, bytes, bytearray] = ...) -> _T: ...
|
| 206 |
+
def as_integer_ratio(self) -> Tuple[int, int]: ...
|
| 207 |
+
def hex(self) -> str: ...
|
| 208 |
+
def is_integer(self) -> bool: ...
|
| 209 |
+
@classmethod
|
| 210 |
+
def fromhex(cls, __s: str) -> float: ...
|
| 211 |
+
@property
|
| 212 |
+
def real(self) -> float: ...
|
| 213 |
+
@property
|
| 214 |
+
def imag(self) -> float: ...
|
| 215 |
+
def conjugate(self) -> float: ...
|
| 216 |
+
def __add__(self, x: float) -> float: ...
|
| 217 |
+
def __sub__(self, x: float) -> float: ...
|
| 218 |
+
def __mul__(self, x: float) -> float: ...
|
| 219 |
+
def __floordiv__(self, x: float) -> float: ...
|
| 220 |
+
def __div__(self, x: float) -> float: ...
|
| 221 |
+
def __truediv__(self, x: float) -> float: ...
|
| 222 |
+
def __mod__(self, x: float) -> float: ...
|
| 223 |
+
def __divmod__(self, x: float) -> Tuple[float, float]: ...
|
| 224 |
+
def __pow__(
|
| 225 |
+
self, x: float, mod: None = ...
|
| 226 |
+
) -> float: ... # In Python 3, returns complex if self is negative and x is not whole
|
| 227 |
+
def __radd__(self, x: float) -> float: ...
|
| 228 |
+
def __rsub__(self, x: float) -> float: ...
|
| 229 |
+
def __rmul__(self, x: float) -> float: ...
|
| 230 |
+
def __rfloordiv__(self, x: float) -> float: ...
|
| 231 |
+
def __rdiv__(self, x: float) -> float: ...
|
| 232 |
+
def __rtruediv__(self, x: float) -> float: ...
|
| 233 |
+
def __rmod__(self, x: float) -> float: ...
|
| 234 |
+
def __rdivmod__(self, x: float) -> Tuple[float, float]: ...
|
| 235 |
+
def __rpow__(self, x: float, mod: None = ...) -> float: ...
|
| 236 |
+
def __getnewargs__(self) -> Tuple[float]: ...
|
| 237 |
+
def __trunc__(self) -> int: ...
|
| 238 |
+
def __eq__(self, x: object) -> bool: ...
|
| 239 |
+
def __ne__(self, x: object) -> bool: ...
|
| 240 |
+
def __lt__(self, x: float) -> bool: ...
|
| 241 |
+
def __le__(self, x: float) -> bool: ...
|
| 242 |
+
def __gt__(self, x: float) -> bool: ...
|
| 243 |
+
def __ge__(self, x: float) -> bool: ...
|
| 244 |
+
def __neg__(self) -> float: ...
|
| 245 |
+
def __pos__(self) -> float: ...
|
| 246 |
+
def __str__(self) -> str: ...
|
| 247 |
+
def __int__(self) -> int: ...
|
| 248 |
+
def __float__(self) -> float: ...
|
| 249 |
+
def __abs__(self) -> float: ...
|
| 250 |
+
def __hash__(self) -> int: ...
|
| 251 |
+
def __nonzero__(self) -> bool: ...
|
| 252 |
+
|
| 253 |
+
class complex:
|
| 254 |
+
@overload
|
| 255 |
+
def __new__(cls: Type[_T], real: float = ..., imag: float = ...) -> _T: ...
|
| 256 |
+
@overload
|
| 257 |
+
def __new__(cls: Type[_T], real: Union[str, SupportsComplex, _SupportsIndex]) -> _T: ...
|
| 258 |
+
@property
|
| 259 |
+
def real(self) -> float: ...
|
| 260 |
+
@property
|
| 261 |
+
def imag(self) -> float: ...
|
| 262 |
+
def conjugate(self) -> complex: ...
|
| 263 |
+
def __add__(self, x: complex) -> complex: ...
|
| 264 |
+
def __sub__(self, x: complex) -> complex: ...
|
| 265 |
+
def __mul__(self, x: complex) -> complex: ...
|
| 266 |
+
def __pow__(self, x: complex, mod: None = ...) -> complex: ...
|
| 267 |
+
def __div__(self, x: complex) -> complex: ...
|
| 268 |
+
def __truediv__(self, x: complex) -> complex: ...
|
| 269 |
+
def __radd__(self, x: complex) -> complex: ...
|
| 270 |
+
def __rsub__(self, x: complex) -> complex: ...
|
| 271 |
+
def __rmul__(self, x: complex) -> complex: ...
|
| 272 |
+
def __rpow__(self, x: complex, mod: None = ...) -> complex: ...
|
| 273 |
+
def __rdiv__(self, x: complex) -> complex: ...
|
| 274 |
+
def __rtruediv__(self, x: complex) -> complex: ...
|
| 275 |
+
def __eq__(self, x: object) -> bool: ...
|
| 276 |
+
def __ne__(self, x: object) -> bool: ...
|
| 277 |
+
def __neg__(self) -> complex: ...
|
| 278 |
+
def __pos__(self) -> complex: ...
|
| 279 |
+
def __str__(self) -> str: ...
|
| 280 |
+
def __complex__(self) -> complex: ...
|
| 281 |
+
def __abs__(self) -> float: ...
|
| 282 |
+
def __hash__(self) -> int: ...
|
| 283 |
+
def __nonzero__(self) -> bool: ...
|
| 284 |
+
|
| 285 |
+
class basestring(metaclass=ABCMeta): ...
|
| 286 |
+
|
| 287 |
+
class unicode(basestring, Sequence[unicode]):
|
| 288 |
+
@overload
|
| 289 |
+
def __init__(self) -> None: ...
|
| 290 |
+
@overload
|
| 291 |
+
def __init__(self, o: object) -> None: ...
|
| 292 |
+
@overload
|
| 293 |
+
def __init__(self, o: str, encoding: unicode = ..., errors: unicode = ...) -> None: ...
|
| 294 |
+
def capitalize(self) -> unicode: ...
|
| 295 |
+
def center(self, width: int, fillchar: unicode = ...) -> unicode: ...
|
| 296 |
+
def count(self, x: unicode) -> int: ...
|
| 297 |
+
def decode(self, encoding: unicode = ..., errors: unicode = ...) -> unicode: ...
|
| 298 |
+
def encode(self, encoding: unicode = ..., errors: unicode = ...) -> str: ...
|
| 299 |
+
def endswith(self, suffix: Union[unicode, Tuple[unicode, ...]], start: int = ..., end: int = ...) -> bool: ...
|
| 300 |
+
def expandtabs(self, tabsize: int = ...) -> unicode: ...
|
| 301 |
+
def find(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 302 |
+
def format(self, *args: object, **kwargs: object) -> unicode: ...
|
| 303 |
+
def index(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 304 |
+
def isalnum(self) -> bool: ...
|
| 305 |
+
def isalpha(self) -> bool: ...
|
| 306 |
+
def isdecimal(self) -> bool: ...
|
| 307 |
+
def isdigit(self) -> bool: ...
|
| 308 |
+
def isidentifier(self) -> bool: ...
|
| 309 |
+
def islower(self) -> bool: ...
|
| 310 |
+
def isnumeric(self) -> bool: ...
|
| 311 |
+
def isprintable(self) -> bool: ...
|
| 312 |
+
def isspace(self) -> bool: ...
|
| 313 |
+
def istitle(self) -> bool: ...
|
| 314 |
+
def isupper(self) -> bool: ...
|
| 315 |
+
def join(self, iterable: Iterable[unicode]) -> unicode: ...
|
| 316 |
+
def ljust(self, width: int, fillchar: unicode = ...) -> unicode: ...
|
| 317 |
+
def lower(self) -> unicode: ...
|
| 318 |
+
def lstrip(self, chars: unicode = ...) -> unicode: ...
|
| 319 |
+
def partition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ...
|
| 320 |
+
def replace(self, old: unicode, new: unicode, count: int = ...) -> unicode: ...
|
| 321 |
+
def rfind(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 322 |
+
def rindex(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 323 |
+
def rjust(self, width: int, fillchar: unicode = ...) -> unicode: ...
|
| 324 |
+
def rpartition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ...
|
| 325 |
+
def rsplit(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ...
|
| 326 |
+
def rstrip(self, chars: unicode = ...) -> unicode: ...
|
| 327 |
+
def split(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ...
|
| 328 |
+
def splitlines(self, keepends: bool = ...) -> List[unicode]: ...
|
| 329 |
+
def startswith(self, prefix: Union[unicode, Tuple[unicode, ...]], start: int = ..., end: int = ...) -> bool: ...
|
| 330 |
+
def strip(self, chars: unicode = ...) -> unicode: ...
|
| 331 |
+
def swapcase(self) -> unicode: ...
|
| 332 |
+
def title(self) -> unicode: ...
|
| 333 |
+
def translate(self, table: Union[Dict[int, Any], unicode]) -> unicode: ...
|
| 334 |
+
def upper(self) -> unicode: ...
|
| 335 |
+
def zfill(self, width: int) -> unicode: ...
|
| 336 |
+
@overload
|
| 337 |
+
def __getitem__(self, i: int) -> unicode: ...
|
| 338 |
+
@overload
|
| 339 |
+
def __getitem__(self, s: slice) -> unicode: ...
|
| 340 |
+
def __getslice__(self, start: int, stop: int) -> unicode: ...
|
| 341 |
+
def __add__(self, s: unicode) -> unicode: ...
|
| 342 |
+
def __mul__(self, n: int) -> unicode: ...
|
| 343 |
+
def __rmul__(self, n: int) -> unicode: ...
|
| 344 |
+
def __mod__(self, x: Any) -> unicode: ...
|
| 345 |
+
def __eq__(self, x: object) -> bool: ...
|
| 346 |
+
def __ne__(self, x: object) -> bool: ...
|
| 347 |
+
def __lt__(self, x: unicode) -> bool: ...
|
| 348 |
+
def __le__(self, x: unicode) -> bool: ...
|
| 349 |
+
def __gt__(self, x: unicode) -> bool: ...
|
| 350 |
+
def __ge__(self, x: unicode) -> bool: ...
|
| 351 |
+
def __len__(self) -> int: ...
|
| 352 |
+
# The argument type is incompatible with Sequence
|
| 353 |
+
def __contains__(self, s: Union[unicode, bytes]) -> bool: ... # type: ignore
|
| 354 |
+
def __iter__(self) -> Iterator[unicode]: ...
|
| 355 |
+
def __str__(self) -> str: ...
|
| 356 |
+
def __repr__(self) -> str: ...
|
| 357 |
+
def __int__(self) -> int: ...
|
| 358 |
+
def __float__(self) -> float: ...
|
| 359 |
+
def __hash__(self) -> int: ...
|
| 360 |
+
def __getnewargs__(self) -> Tuple[unicode]: ...
|
| 361 |
+
|
| 362 |
+
class _FormatMapMapping(Protocol):
|
| 363 |
+
def __getitem__(self, __key: str) -> Any: ...
|
| 364 |
+
|
| 365 |
+
class str(Sequence[str], basestring):
|
| 366 |
+
def __init__(self, o: object = ...) -> None: ...
|
| 367 |
+
def capitalize(self) -> str: ...
|
| 368 |
+
def center(self, __width: int, __fillchar: str = ...) -> str: ...
|
| 369 |
+
def count(self, x: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 370 |
+
def decode(self, encoding: Text = ..., errors: Text = ...) -> unicode: ...
|
| 371 |
+
def encode(self, encoding: Text = ..., errors: Text = ...) -> bytes: ...
|
| 372 |
+
def endswith(self, suffix: Union[Text, Tuple[Text, ...]]) -> bool: ...
|
| 373 |
+
def expandtabs(self, tabsize: int = ...) -> str: ...
|
| 374 |
+
def find(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 375 |
+
def format(self, *args: object, **kwargs: object) -> str: ...
|
| 376 |
+
def format_map(self, map: _FormatMapMapping) -> str: ...
|
| 377 |
+
def index(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 378 |
+
def isalnum(self) -> bool: ...
|
| 379 |
+
def isalpha(self) -> bool: ...
|
| 380 |
+
def isdigit(self) -> bool: ...
|
| 381 |
+
def islower(self) -> bool: ...
|
| 382 |
+
def isspace(self) -> bool: ...
|
| 383 |
+
def istitle(self) -> bool: ...
|
| 384 |
+
def isupper(self) -> bool: ...
|
| 385 |
+
def join(self, __iterable: Iterable[AnyStr]) -> AnyStr: ...
|
| 386 |
+
def ljust(self, __width: int, __fillchar: str = ...) -> str: ...
|
| 387 |
+
def lower(self) -> str: ...
|
| 388 |
+
@overload
|
| 389 |
+
def lstrip(self, __chars: str = ...) -> str: ...
|
| 390 |
+
@overload
|
| 391 |
+
def lstrip(self, __chars: unicode) -> unicode: ...
|
| 392 |
+
@overload
|
| 393 |
+
def partition(self, __sep: bytearray) -> Tuple[str, bytearray, str]: ...
|
| 394 |
+
@overload
|
| 395 |
+
def partition(self, __sep: str) -> Tuple[str, str, str]: ...
|
| 396 |
+
@overload
|
| 397 |
+
def partition(self, __sep: unicode) -> Tuple[unicode, unicode, unicode]: ...
|
| 398 |
+
def replace(self, __old: AnyStr, __new: AnyStr, __count: int = ...) -> AnyStr: ...
|
| 399 |
+
def rfind(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 400 |
+
def rindex(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
| 401 |
+
def rjust(self, __width: int, __fillchar: str = ...) -> str: ...
|
| 402 |
+
@overload
|
| 403 |
+
def rpartition(self, __sep: bytearray) -> Tuple[str, bytearray, str]: ...
|
| 404 |
+
@overload
|
| 405 |
+
def rpartition(self, __sep: str) -> Tuple[str, str, str]: ...
|
| 406 |
+
@overload
|
| 407 |
+
def rpartition(self, __sep: unicode) -> Tuple[unicode, unicode, unicode]: ...
|
| 408 |
+
@overload
|
| 409 |
+
def rsplit(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...
|
| 410 |
+
@overload
|
| 411 |
+
def rsplit(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...
|
| 412 |
+
@overload
|
| 413 |
+
def rstrip(self, __chars: str = ...) -> str: ...
|
| 414 |
+
@overload
|
| 415 |
+
def rstrip(self, __chars: unicode) -> unicode: ...
|
| 416 |
+
@overload
|
| 417 |
+
def split(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...
|
| 418 |
+
@overload
|
| 419 |
+
def split(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...
|
| 420 |
+
def splitlines(self, keepends: bool = ...) -> List[str]: ...
|
| 421 |
+
def startswith(self, prefix: Union[Text, Tuple[Text, ...]]) -> bool: ...
|
| 422 |
+
@overload
|
| 423 |
+
def strip(self, __chars: str = ...) -> str: ...
|
| 424 |
+
@overload
|
| 425 |
+
def strip(self, chars: unicode) -> unicode: ...
|
| 426 |
+
def swapcase(self) -> str: ...
|
| 427 |
+
def title(self) -> str: ...
|
| 428 |
+
def translate(self, __table: Optional[AnyStr], deletechars: AnyStr = ...) -> AnyStr: ...
|
| 429 |
+
def upper(self) -> str: ...
|
| 430 |
+
def zfill(self, __width: int) -> str: ...
|
| 431 |
+
def __add__(self, s: AnyStr) -> AnyStr: ...
|
| 432 |
+
# Incompatible with Sequence.__contains__
|
| 433 |
+
def __contains__(self, o: Union[str, Text]) -> bool: ... # type: ignore
|
| 434 |
+
def __eq__(self, x: object) -> bool: ...
|
| 435 |
+
def __ge__(self, x: Text) -> bool: ...
|
| 436 |
+
def __getitem__(self, i: Union[int, slice]) -> str: ...
|
| 437 |
+
def __gt__(self, x: Text) -> bool: ...
|
| 438 |
+
def __hash__(self) -> int: ...
|
| 439 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 440 |
+
def __le__(self, x: Text) -> bool: ...
|
| 441 |
+
def __len__(self) -> int: ...
|
| 442 |
+
def __lt__(self, x: Text) -> bool: ...
|
| 443 |
+
def __mod__(self, x: Any) -> str: ...
|
| 444 |
+
def __mul__(self, n: int) -> str: ...
|
| 445 |
+
def __ne__(self, x: object) -> bool: ...
|
| 446 |
+
def __repr__(self) -> str: ...
|
| 447 |
+
def __rmul__(self, n: int) -> str: ...
|
| 448 |
+
def __str__(self) -> str: ...
|
| 449 |
+
def __getnewargs__(self) -> Tuple[str]: ...
|
| 450 |
+
def __getslice__(self, start: int, stop: int) -> str: ...
|
| 451 |
+
def __float__(self) -> float: ...
|
| 452 |
+
def __int__(self) -> int: ...
|
| 453 |
+
|
| 454 |
+
bytes = str
|
| 455 |
+
|
| 456 |
+
class bytearray(MutableSequence[int], ByteString):
|
| 457 |
+
@overload
|
| 458 |
+
def __init__(self) -> None: ...
|
| 459 |
+
@overload
|
| 460 |
+
def __init__(self, ints: Iterable[int]) -> None: ...
|
| 461 |
+
@overload
|
| 462 |
+
def __init__(self, string: str) -> None: ...
|
| 463 |
+
@overload
|
| 464 |
+
def __init__(self, string: Text, encoding: Text, errors: Text = ...) -> None: ...
|
| 465 |
+
@overload
|
| 466 |
+
def __init__(self, length: int) -> None: ...
|
| 467 |
+
def capitalize(self) -> bytearray: ...
|
| 468 |
+
def center(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...
|
| 469 |
+
def count(self, __sub: str) -> int: ...
|
| 470 |
+
def decode(self, encoding: Text = ..., errors: Text = ...) -> str: ...
|
| 471 |
+
def endswith(self, __suffix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...
|
| 472 |
+
def expandtabs(self, tabsize: int = ...) -> bytearray: ...
|
| 473 |
+
def extend(self, iterable: Union[str, Iterable[int]]) -> None: ...
|
| 474 |
+
def find(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...
|
| 475 |
+
def index(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...
|
| 476 |
+
def insert(self, __index: int, __item: int) -> None: ...
|
| 477 |
+
def isalnum(self) -> bool: ...
|
| 478 |
+
def isalpha(self) -> bool: ...
|
| 479 |
+
def isdigit(self) -> bool: ...
|
| 480 |
+
def islower(self) -> bool: ...
|
| 481 |
+
def isspace(self) -> bool: ...
|
| 482 |
+
def istitle(self) -> bool: ...
|
| 483 |
+
def isupper(self) -> bool: ...
|
| 484 |
+
def join(self, __iterable: Iterable[str]) -> bytearray: ...
|
| 485 |
+
def ljust(self, __width: int, __fillchar: str = ...) -> bytearray: ...
|
| 486 |
+
def lower(self) -> bytearray: ...
|
| 487 |
+
def lstrip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...
|
| 488 |
+
def partition(self, __sep: bytes) -> Tuple[bytearray, bytearray, bytearray]: ...
|
| 489 |
+
def replace(self, __old: bytes, __new: bytes, __count: int = ...) -> bytearray: ...
|
| 490 |
+
def rfind(self, __sub: bytes, __start: int = ..., __end: int = ...) -> int: ...
|
| 491 |
+
def rindex(self, __sub: bytes, __start: int = ..., __end: int = ...) -> int: ...
|
| 492 |
+
def rjust(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...
|
| 493 |
+
def rpartition(self, __sep: bytes) -> Tuple[bytearray, bytearray, bytearray]: ...
|
| 494 |
+
def rsplit(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...
|
| 495 |
+
def rstrip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...
|
| 496 |
+
def split(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...
|
| 497 |
+
def splitlines(self, keepends: bool = ...) -> List[bytearray]: ...
|
| 498 |
+
def startswith(
|
| 499 |
+
self, __prefix: Union[bytes, Tuple[bytes, ...]], __start: Optional[int] = ..., __end: Optional[int] = ...
|
| 500 |
+
) -> bool: ...
|
| 501 |
+
def strip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...
|
| 502 |
+
def swapcase(self) -> bytearray: ...
|
| 503 |
+
def title(self) -> bytearray: ...
|
| 504 |
+
def translate(self, __table: str) -> bytearray: ...
|
| 505 |
+
def upper(self) -> bytearray: ...
|
| 506 |
+
def zfill(self, __width: int) -> bytearray: ...
|
| 507 |
+
@classmethod
|
| 508 |
+
def fromhex(cls, __string: str) -> bytearray: ...
|
| 509 |
+
def __len__(self) -> int: ...
|
| 510 |
+
def __iter__(self) -> Iterator[int]: ...
|
| 511 |
+
def __str__(self) -> str: ...
|
| 512 |
+
def __repr__(self) -> str: ...
|
| 513 |
+
def __int__(self) -> int: ...
|
| 514 |
+
def __float__(self) -> float: ...
|
| 515 |
+
__hash__: None # type: ignore
|
| 516 |
+
@overload
|
| 517 |
+
def __getitem__(self, i: int) -> int: ...
|
| 518 |
+
@overload
|
| 519 |
+
def __getitem__(self, s: slice) -> bytearray: ...
|
| 520 |
+
@overload
|
| 521 |
+
def __setitem__(self, i: int, x: int) -> None: ...
|
| 522 |
+
@overload
|
| 523 |
+
def __setitem__(self, s: slice, x: Union[Iterable[int], bytes]) -> None: ...
|
| 524 |
+
def __delitem__(self, i: Union[int, slice]) -> None: ...
|
| 525 |
+
def __getslice__(self, start: int, stop: int) -> bytearray: ...
|
| 526 |
+
def __setslice__(self, start: int, stop: int, x: Union[Sequence[int], str]) -> None: ...
|
| 527 |
+
def __delslice__(self, start: int, stop: int) -> None: ...
|
| 528 |
+
def __add__(self, s: bytes) -> bytearray: ...
|
| 529 |
+
def __mul__(self, n: int) -> bytearray: ...
|
| 530 |
+
# Incompatible with Sequence.__contains__
|
| 531 |
+
def __contains__(self, o: Union[int, bytes]) -> bool: ... # type: ignore
|
| 532 |
+
def __eq__(self, x: object) -> bool: ...
|
| 533 |
+
def __ne__(self, x: object) -> bool: ...
|
| 534 |
+
def __lt__(self, x: bytes) -> bool: ...
|
| 535 |
+
def __le__(self, x: bytes) -> bool: ...
|
| 536 |
+
def __gt__(self, x: bytes) -> bool: ...
|
| 537 |
+
def __ge__(self, x: bytes) -> bool: ...
|
| 538 |
+
|
| 539 |
+
class memoryview(Sized, Container[str]):
|
| 540 |
+
format: str
|
| 541 |
+
itemsize: int
|
| 542 |
+
shape: Optional[Tuple[int, ...]]
|
| 543 |
+
strides: Optional[Tuple[int, ...]]
|
| 544 |
+
suboffsets: Optional[Tuple[int, ...]]
|
| 545 |
+
readonly: bool
|
| 546 |
+
ndim: int
|
| 547 |
+
def __init__(self, obj: ReadableBuffer) -> None: ...
|
| 548 |
+
@overload
|
| 549 |
+
def __getitem__(self, i: int) -> str: ...
|
| 550 |
+
@overload
|
| 551 |
+
def __getitem__(self, s: slice) -> memoryview: ...
|
| 552 |
+
def __contains__(self, x: object) -> bool: ...
|
| 553 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 554 |
+
def __len__(self) -> int: ...
|
| 555 |
+
@overload
|
| 556 |
+
def __setitem__(self, s: slice, o: memoryview) -> None: ...
|
| 557 |
+
@overload
|
| 558 |
+
def __setitem__(self, i: int, o: bytes) -> None: ...
|
| 559 |
+
@overload
|
| 560 |
+
def __setitem__(self, s: slice, o: Sequence[bytes]) -> None: ...
|
| 561 |
+
def tobytes(self) -> bytes: ...
|
| 562 |
+
def tolist(self) -> List[int]: ...
|
| 563 |
+
|
| 564 |
+
class bool(int):
|
| 565 |
+
def __new__(cls: Type[_T], __o: object = ...) -> _T: ...
|
| 566 |
+
@overload
|
| 567 |
+
def __and__(self, x: bool) -> bool: ...
|
| 568 |
+
@overload
|
| 569 |
+
def __and__(self, x: int) -> int: ...
|
| 570 |
+
@overload
|
| 571 |
+
def __or__(self, x: bool) -> bool: ...
|
| 572 |
+
@overload
|
| 573 |
+
def __or__(self, x: int) -> int: ...
|
| 574 |
+
@overload
|
| 575 |
+
def __xor__(self, x: bool) -> bool: ...
|
| 576 |
+
@overload
|
| 577 |
+
def __xor__(self, x: int) -> int: ...
|
| 578 |
+
@overload
|
| 579 |
+
def __rand__(self, x: bool) -> bool: ...
|
| 580 |
+
@overload
|
| 581 |
+
def __rand__(self, x: int) -> int: ...
|
| 582 |
+
@overload
|
| 583 |
+
def __ror__(self, x: bool) -> bool: ...
|
| 584 |
+
@overload
|
| 585 |
+
def __ror__(self, x: int) -> int: ...
|
| 586 |
+
@overload
|
| 587 |
+
def __rxor__(self, x: bool) -> bool: ...
|
| 588 |
+
@overload
|
| 589 |
+
def __rxor__(self, x: int) -> int: ...
|
| 590 |
+
def __getnewargs__(self) -> Tuple[int]: ...
|
| 591 |
+
|
| 592 |
+
class slice(object):
|
| 593 |
+
start: Any
|
| 594 |
+
step: Any
|
| 595 |
+
stop: Any
|
| 596 |
+
@overload
|
| 597 |
+
def __init__(self, stop: Any) -> None: ...
|
| 598 |
+
@overload
|
| 599 |
+
def __init__(self, start: Any, stop: Any, step: Any = ...) -> None: ...
|
| 600 |
+
__hash__: None # type: ignore
|
| 601 |
+
def indices(self, len: int) -> Tuple[int, int, int]: ...
|
| 602 |
+
|
| 603 |
+
class tuple(Sequence[_T_co], Generic[_T_co]):
|
| 604 |
+
def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ...
|
| 605 |
+
def __len__(self) -> int: ...
|
| 606 |
+
def __contains__(self, x: object) -> bool: ...
|
| 607 |
+
@overload
|
| 608 |
+
def __getitem__(self, x: int) -> _T_co: ...
|
| 609 |
+
@overload
|
| 610 |
+
def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ...
|
| 611 |
+
def __iter__(self) -> Iterator[_T_co]: ...
|
| 612 |
+
def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 613 |
+
def __le__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 614 |
+
def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 615 |
+
def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ...
|
| 616 |
+
@overload
|
| 617 |
+
def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ...
|
| 618 |
+
@overload
|
| 619 |
+
def __add__(self, x: Tuple[Any, ...]) -> Tuple[Any, ...]: ...
|
| 620 |
+
def __mul__(self, n: int) -> Tuple[_T_co, ...]: ...
|
| 621 |
+
def __rmul__(self, n: int) -> Tuple[_T_co, ...]: ...
|
| 622 |
+
def count(self, __value: Any) -> int: ...
|
| 623 |
+
def index(self, __value: Any) -> int: ...
|
| 624 |
+
|
| 625 |
+
class function:
|
| 626 |
+
# TODO not defined in builtins!
|
| 627 |
+
__name__: str
|
| 628 |
+
__module__: str
|
| 629 |
+
__code__: CodeType
|
| 630 |
+
|
| 631 |
+
class list(MutableSequence[_T], Generic[_T]):
|
| 632 |
+
@overload
|
| 633 |
+
def __init__(self) -> None: ...
|
| 634 |
+
@overload
|
| 635 |
+
def __init__(self, iterable: Iterable[_T]) -> None: ...
|
| 636 |
+
def append(self, __object: _T) -> None: ...
|
| 637 |
+
def extend(self, __iterable: Iterable[_T]) -> None: ...
|
| 638 |
+
def pop(self, __index: int = ...) -> _T: ...
|
| 639 |
+
def index(self, __value: _T, __start: int = ..., __stop: int = ...) -> int: ...
|
| 640 |
+
def count(self, __value: _T) -> int: ...
|
| 641 |
+
def insert(self, __index: int, __object: _T) -> None: ...
|
| 642 |
+
def remove(self, __value: _T) -> None: ...
|
| 643 |
+
def reverse(self) -> None: ...
|
| 644 |
+
def sort(self, cmp: Callable[[_T, _T], Any] = ..., key: Callable[[_T], Any] = ..., reverse: bool = ...) -> None: ...
|
| 645 |
+
def __len__(self) -> int: ...
|
| 646 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 647 |
+
def __str__(self) -> str: ...
|
| 648 |
+
__hash__: None # type: ignore
|
| 649 |
+
@overload
|
| 650 |
+
def __getitem__(self, i: int) -> _T: ...
|
| 651 |
+
@overload
|
| 652 |
+
def __getitem__(self, s: slice) -> List[_T]: ...
|
| 653 |
+
@overload
|
| 654 |
+
def __setitem__(self, i: int, o: _T) -> None: ...
|
| 655 |
+
@overload
|
| 656 |
+
def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...
|
| 657 |
+
def __delitem__(self, i: Union[int, slice]) -> None: ...
|
| 658 |
+
def __getslice__(self, start: int, stop: int) -> List[_T]: ...
|
| 659 |
+
def __setslice__(self, start: int, stop: int, o: Sequence[_T]) -> None: ...
|
| 660 |
+
def __delslice__(self, start: int, stop: int) -> None: ...
|
| 661 |
+
def __add__(self, x: List[_T]) -> List[_T]: ...
|
| 662 |
+
def __iadd__(self: _S, x: Iterable[_T]) -> _S: ...
|
| 663 |
+
def __mul__(self, n: int) -> List[_T]: ...
|
| 664 |
+
def __rmul__(self, n: int) -> List[_T]: ...
|
| 665 |
+
def __contains__(self, o: object) -> bool: ...
|
| 666 |
+
def __reversed__(self) -> Iterator[_T]: ...
|
| 667 |
+
def __gt__(self, x: List[_T]) -> bool: ...
|
| 668 |
+
def __ge__(self, x: List[_T]) -> bool: ...
|
| 669 |
+
def __lt__(self, x: List[_T]) -> bool: ...
|
| 670 |
+
def __le__(self, x: List[_T]) -> bool: ...
|
| 671 |
+
|
| 672 |
+
class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
| 673 |
+
# NOTE: Keyword arguments are special. If they are used, _KT must include
|
| 674 |
+
# str, but we have no way of enforcing it here.
|
| 675 |
+
@overload
|
| 676 |
+
def __init__(self, **kwargs: _VT) -> None: ...
|
| 677 |
+
@overload
|
| 678 |
+
def __init__(self, map: SupportsKeysAndGetItem[_KT, _VT], **kwargs: _VT) -> None: ...
|
| 679 |
+
@overload
|
| 680 |
+
def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...
|
| 681 |
+
def __new__(cls: Type[_T1], *args: Any, **kwargs: Any) -> _T1: ...
|
| 682 |
+
def has_key(self, k: _KT) -> bool: ...
|
| 683 |
+
def clear(self) -> None: ...
|
| 684 |
+
def copy(self) -> Dict[_KT, _VT]: ...
|
| 685 |
+
def popitem(self) -> Tuple[_KT, _VT]: ...
|
| 686 |
+
def setdefault(self, __key: _KT, __default: _VT = ...) -> _VT: ...
|
| 687 |
+
@overload
|
| 688 |
+
def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...
|
| 689 |
+
@overload
|
| 690 |
+
def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...
|
| 691 |
+
@overload
|
| 692 |
+
def update(self, **kwargs: _VT) -> None: ...
|
| 693 |
+
def iterkeys(self) -> Iterator[_KT]: ...
|
| 694 |
+
def itervalues(self) -> Iterator[_VT]: ...
|
| 695 |
+
def iteritems(self) -> Iterator[Tuple[_KT, _VT]]: ...
|
| 696 |
+
def viewkeys(self) -> KeysView[_KT]: ...
|
| 697 |
+
def viewvalues(self) -> ValuesView[_VT]: ...
|
| 698 |
+
def viewitems(self) -> ItemsView[_KT, _VT]: ...
|
| 699 |
+
@classmethod
|
| 700 |
+
@overload
|
| 701 |
+
def fromkeys(cls, __iterable: Iterable[_T]) -> Dict[_T, Any]: ...
|
| 702 |
+
@classmethod
|
| 703 |
+
@overload
|
| 704 |
+
def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> Dict[_T, _S]: ...
|
| 705 |
+
def __len__(self) -> int: ...
|
| 706 |
+
def __getitem__(self, k: _KT) -> _VT: ...
|
| 707 |
+
def __setitem__(self, k: _KT, v: _VT) -> None: ...
|
| 708 |
+
def __delitem__(self, v: _KT) -> None: ...
|
| 709 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
| 710 |
+
def __str__(self) -> str: ...
|
| 711 |
+
__hash__: None # type: ignore
|
| 712 |
+
|
| 713 |
+
class set(MutableSet[_T], Generic[_T]):
|
| 714 |
+
def __init__(self, iterable: Iterable[_T] = ...) -> None: ...
|
| 715 |
+
def add(self, element: _T) -> None: ...
|
| 716 |
+
def clear(self) -> None: ...
|
| 717 |
+
def copy(self) -> Set[_T]: ...
|
| 718 |
+
def difference(self, *s: Iterable[Any]) -> Set[_T]: ...
|
| 719 |
+
def difference_update(self, *s: Iterable[Any]) -> None: ...
|
| 720 |
+
def discard(self, element: _T) -> None: ...
|
| 721 |
+
def intersection(self, *s: Iterable[Any]) -> Set[_T]: ...
|
| 722 |
+
def intersection_update(self, *s: Iterable[Any]) -> None: ...
|
| 723 |
+
def isdisjoint(self, s: Iterable[Any]) -> bool: ...
|
| 724 |
+
def issubset(self, s: Iterable[Any]) -> bool: ...
|
| 725 |
+
def issuperset(self, s: Iterable[Any]) -> bool: ...
|
| 726 |
+
def pop(self) -> _T: ...
|
| 727 |
+
def remove(self, element: _T) -> None: ...
|
| 728 |
+
def symmetric_difference(self, s: Iterable[_T]) -> Set[_T]: ...
|
| 729 |
+
def symmetric_difference_update(self, s: Iterable[_T]) -> None: ...
|
| 730 |
+
def union(self, *s: Iterable[_T]) -> Set[_T]: ...
|
| 731 |
+
def update(self, *s: Iterable[_T]) -> None: ...
|
| 732 |
+
def __len__(self) -> int: ...
|
| 733 |
+
def __contains__(self, o: object) -> bool: ...
|
| 734 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 735 |
+
def __str__(self) -> str: ...
|
| 736 |
+
def __and__(self, s: AbstractSet[object]) -> Set[_T]: ...
|
| 737 |
+
def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ...
|
| 738 |
+
def __or__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 739 |
+
def __ior__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 740 |
+
@overload
|
| 741 |
+
def __sub__(self: Set[str], s: AbstractSet[Optional[Text]]) -> Set[_T]: ...
|
| 742 |
+
@overload
|
| 743 |
+
def __sub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...
|
| 744 |
+
@overload # type: ignore
|
| 745 |
+
def __isub__(self: Set[str], s: AbstractSet[Optional[Text]]) -> Set[_T]: ...
|
| 746 |
+
@overload
|
| 747 |
+
def __isub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...
|
| 748 |
+
def __xor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 749 |
+
def __ixor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...
|
| 750 |
+
def __le__(self, s: AbstractSet[object]) -> bool: ...
|
| 751 |
+
def __lt__(self, s: AbstractSet[object]) -> bool: ...
|
| 752 |
+
def __ge__(self, s: AbstractSet[object]) -> bool: ...
|
| 753 |
+
def __gt__(self, s: AbstractSet[object]) -> bool: ...
|
| 754 |
+
__hash__: None # type: ignore
|
| 755 |
+
|
| 756 |
+
class frozenset(AbstractSet[_T_co], Generic[_T_co]):
|
| 757 |
+
def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...
|
| 758 |
+
def copy(self) -> FrozenSet[_T_co]: ...
|
| 759 |
+
def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
|
| 760 |
+
def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...
|
| 761 |
+
def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...
|
| 762 |
+
def issubset(self, s: Iterable[object]) -> bool: ...
|
| 763 |
+
def issuperset(self, s: Iterable[object]) -> bool: ...
|
| 764 |
+
def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
|
| 765 |
+
def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...
|
| 766 |
+
def __len__(self) -> int: ...
|
| 767 |
+
def __contains__(self, o: object) -> bool: ...
|
| 768 |
+
def __iter__(self) -> Iterator[_T_co]: ...
|
| 769 |
+
def __str__(self) -> str: ...
|
| 770 |
+
def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
|
| 771 |
+
def __or__(self, s: AbstractSet[_S]) -> FrozenSet[Union[_T_co, _S]]: ...
|
| 772 |
+
def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...
|
| 773 |
+
def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[Union[_T_co, _S]]: ...
|
| 774 |
+
def __le__(self, s: AbstractSet[object]) -> bool: ...
|
| 775 |
+
def __lt__(self, s: AbstractSet[object]) -> bool: ...
|
| 776 |
+
def __ge__(self, s: AbstractSet[object]) -> bool: ...
|
| 777 |
+
def __gt__(self, s: AbstractSet[object]) -> bool: ...
|
| 778 |
+
|
| 779 |
+
class enumerate(Iterator[Tuple[int, _T]], Generic[_T]):
|
| 780 |
+
def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ...
|
| 781 |
+
def __iter__(self) -> Iterator[Tuple[int, _T]]: ...
|
| 782 |
+
def next(self) -> Tuple[int, _T]: ...
|
| 783 |
+
|
| 784 |
+
class xrange(Sized, Iterable[int], Reversible[int]):
|
| 785 |
+
@overload
|
| 786 |
+
def __init__(self, stop: int) -> None: ...
|
| 787 |
+
@overload
|
| 788 |
+
def __init__(self, start: int, stop: int, step: int = ...) -> None: ...
|
| 789 |
+
def __len__(self) -> int: ...
|
| 790 |
+
def __iter__(self) -> Iterator[int]: ...
|
| 791 |
+
def __getitem__(self, i: int) -> int: ...
|
| 792 |
+
def __reversed__(self) -> Iterator[int]: ...
|
| 793 |
+
|
| 794 |
+
class property(object):
|
| 795 |
+
def __init__(
|
| 796 |
+
self,
|
| 797 |
+
fget: Optional[Callable[[Any], Any]] = ...,
|
| 798 |
+
fset: Optional[Callable[[Any, Any], None]] = ...,
|
| 799 |
+
fdel: Optional[Callable[[Any], None]] = ...,
|
| 800 |
+
doc: Optional[str] = ...,
|
| 801 |
+
) -> None: ...
|
| 802 |
+
def getter(self, fget: Callable[[Any], Any]) -> property: ...
|
| 803 |
+
def setter(self, fset: Callable[[Any, Any], None]) -> property: ...
|
| 804 |
+
def deleter(self, fdel: Callable[[Any], None]) -> property: ...
|
| 805 |
+
def __get__(self, obj: Any, type: Optional[type] = ...) -> Any: ...
|
| 806 |
+
def __set__(self, obj: Any, value: Any) -> None: ...
|
| 807 |
+
def __delete__(self, obj: Any) -> None: ...
|
| 808 |
+
def fget(self) -> Any: ...
|
| 809 |
+
def fset(self, value: Any) -> None: ...
|
| 810 |
+
def fdel(self) -> None: ...
|
| 811 |
+
|
| 812 |
+
long = int
|
| 813 |
+
|
| 814 |
+
class _NotImplementedType(Any): # type: ignore
|
| 815 |
+
# A little weird, but typing the __call__ as NotImplemented makes the error message
|
| 816 |
+
# for NotImplemented() much better
|
| 817 |
+
__call__: NotImplemented # type: ignore
|
| 818 |
+
|
| 819 |
+
NotImplemented: _NotImplementedType
|
| 820 |
+
|
| 821 |
+
def abs(__x: SupportsAbs[_T]) -> _T: ...
|
| 822 |
+
def all(__iterable: Iterable[object]) -> bool: ...
|
| 823 |
+
def any(__iterable: Iterable[object]) -> bool: ...
|
| 824 |
+
def apply(__func: Callable[..., _T], __args: Optional[Sequence[Any]] = ..., __kwds: Optional[Mapping[str, Any]] = ...) -> _T: ...
|
| 825 |
+
def bin(__number: Union[int, _SupportsIndex]) -> str: ...
|
| 826 |
+
def callable(__obj: object) -> bool: ...
|
| 827 |
+
def chr(__i: int) -> str: ...
|
| 828 |
+
def cmp(__x: Any, __y: Any) -> int: ...
|
| 829 |
+
|
| 830 |
+
_N1 = TypeVar("_N1", bool, int, float, complex)
|
| 831 |
+
|
| 832 |
+
def coerce(__x: _N1, __y: _N1) -> Tuple[_N1, _N1]: ...
|
| 833 |
+
|
| 834 |
+
# This class is to be exported as PathLike from os,
|
| 835 |
+
# but we define it here as _PathLike to avoid import cycle issues.
|
| 836 |
+
# See https://github.com/python/typeshed/pull/991#issuecomment-288160993
|
| 837 |
+
_AnyStr_co = TypeVar("_AnyStr_co", str, bytes, covariant=True)
|
| 838 |
+
@runtime_checkable
|
| 839 |
+
class _PathLike(Protocol[_AnyStr_co]):
|
| 840 |
+
def __fspath__(self) -> _AnyStr_co: ...
|
| 841 |
+
|
| 842 |
+
def compile(source: Union[Text, mod], filename: Text, mode: Text, flags: int = ..., dont_inherit: int = ...) -> Any: ...
|
| 843 |
+
def delattr(__obj: Any, __name: Text) -> None: ...
|
| 844 |
+
def dir(__o: object = ...) -> List[str]: ...
|
| 845 |
+
|
| 846 |
+
_N2 = TypeVar("_N2", int, float)
|
| 847 |
+
|
| 848 |
+
def divmod(__x: _N2, __y: _N2) -> Tuple[_N2, _N2]: ...
|
| 849 |
+
def eval(
|
| 850 |
+
__source: Union[Text, bytes, CodeType], __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Mapping[str, Any]] = ...
|
| 851 |
+
) -> Any: ...
|
| 852 |
+
def execfile(__filename: str, __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Dict[str, Any]] = ...) -> None: ...
|
| 853 |
+
def exit(code: object = ...) -> NoReturn: ...
|
| 854 |
+
@overload
|
| 855 |
+
def filter(__function: Callable[[AnyStr], Any], __iterable: AnyStr) -> AnyStr: ... # type: ignore
|
| 856 |
+
@overload
|
| 857 |
+
def filter(__function: None, __iterable: Tuple[Optional[_T], ...]) -> Tuple[_T, ...]: ... # type: ignore
|
| 858 |
+
@overload
|
| 859 |
+
def filter(__function: Callable[[_T], Any], __iterable: Tuple[_T, ...]) -> Tuple[_T, ...]: ... # type: ignore
|
| 860 |
+
@overload
|
| 861 |
+
def filter(__function: None, __iterable: Iterable[Optional[_T]]) -> List[_T]: ...
|
| 862 |
+
@overload
|
| 863 |
+
def filter(__function: Callable[[_T], Any], __iterable: Iterable[_T]) -> List[_T]: ...
|
| 864 |
+
def format(__value: object, __format_spec: str = ...) -> str: ... # TODO unicode
|
| 865 |
+
def getattr(__o: Any, name: Text, __default: Any = ...) -> Any: ...
|
| 866 |
+
def globals() -> Dict[str, Any]: ...
|
| 867 |
+
def hasattr(__obj: Any, __name: Text) -> bool: ...
|
| 868 |
+
def hash(__obj: object) -> int: ...
|
| 869 |
+
def hex(__number: Union[int, _SupportsIndex]) -> str: ...
|
| 870 |
+
def id(__obj: object) -> int: ...
|
| 871 |
+
def input(__prompt: Any = ...) -> Any: ...
|
| 872 |
+
def intern(__string: str) -> str: ...
|
| 873 |
+
@overload
|
| 874 |
+
def iter(__iterable: Iterable[_T]) -> Iterator[_T]: ...
|
| 875 |
+
@overload
|
| 876 |
+
def iter(__function: Callable[[], Optional[_T]], __sentinel: None) -> Iterator[_T]: ...
|
| 877 |
+
@overload
|
| 878 |
+
def iter(__function: Callable[[], _T], __sentinel: Any) -> Iterator[_T]: ...
|
| 879 |
+
def isinstance(__obj: object, __class_or_tuple: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
|
| 880 |
+
def issubclass(__cls: type, __class_or_tuple: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...
|
| 881 |
+
def len(__obj: Sized) -> int: ...
|
| 882 |
+
def locals() -> Dict[str, Any]: ...
|
| 883 |
+
@overload
|
| 884 |
+
def map(__func: None, __iter1: Iterable[_T1]) -> List[_T1]: ...
|
| 885 |
+
@overload
|
| 886 |
+
def map(__func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[Tuple[_T1, _T2]]: ...
|
| 887 |
+
@overload
|
| 888 |
+
def map(__func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]) -> List[Tuple[_T1, _T2, _T3]]: ...
|
| 889 |
+
@overload
|
| 890 |
+
def map(
|
| 891 |
+
__func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4]
|
| 892 |
+
) -> List[Tuple[_T1, _T2, _T3, _T4]]: ...
|
| 893 |
+
@overload
|
| 894 |
+
def map(
|
| 895 |
+
__func: None,
|
| 896 |
+
__iter1: Iterable[_T1],
|
| 897 |
+
__iter2: Iterable[_T2],
|
| 898 |
+
__iter3: Iterable[_T3],
|
| 899 |
+
__iter4: Iterable[_T4],
|
| 900 |
+
__iter5: Iterable[_T5],
|
| 901 |
+
) -> List[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...
|
| 902 |
+
@overload
|
| 903 |
+
def map(
|
| 904 |
+
__func: None,
|
| 905 |
+
__iter1: Iterable[Any],
|
| 906 |
+
__iter2: Iterable[Any],
|
| 907 |
+
__iter3: Iterable[Any],
|
| 908 |
+
__iter4: Iterable[Any],
|
| 909 |
+
__iter5: Iterable[Any],
|
| 910 |
+
__iter6: Iterable[Any],
|
| 911 |
+
*iterables: Iterable[Any],
|
| 912 |
+
) -> List[Tuple[Any, ...]]: ...
|
| 913 |
+
@overload
|
| 914 |
+
def map(__func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> List[_S]: ...
|
| 915 |
+
@overload
|
| 916 |
+
def map(__func: Callable[[_T1, _T2], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[_S]: ...
|
| 917 |
+
@overload
|
| 918 |
+
def map(
|
| 919 |
+
__func: Callable[[_T1, _T2, _T3], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]
|
| 920 |
+
) -> List[_S]: ...
|
| 921 |
+
@overload
|
| 922 |
+
def map(
|
| 923 |
+
__func: Callable[[_T1, _T2, _T3, _T4], _S],
|
| 924 |
+
__iter1: Iterable[_T1],
|
| 925 |
+
__iter2: Iterable[_T2],
|
| 926 |
+
__iter3: Iterable[_T3],
|
| 927 |
+
__iter4: Iterable[_T4],
|
| 928 |
+
) -> List[_S]: ...
|
| 929 |
+
@overload
|
| 930 |
+
def map(
|
| 931 |
+
__func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
|
| 932 |
+
__iter1: Iterable[_T1],
|
| 933 |
+
__iter2: Iterable[_T2],
|
| 934 |
+
__iter3: Iterable[_T3],
|
| 935 |
+
__iter4: Iterable[_T4],
|
| 936 |
+
__iter5: Iterable[_T5],
|
| 937 |
+
) -> List[_S]: ...
|
| 938 |
+
@overload
|
| 939 |
+
def map(
|
| 940 |
+
__func: Callable[..., _S],
|
| 941 |
+
__iter1: Iterable[Any],
|
| 942 |
+
__iter2: Iterable[Any],
|
| 943 |
+
__iter3: Iterable[Any],
|
| 944 |
+
__iter4: Iterable[Any],
|
| 945 |
+
__iter5: Iterable[Any],
|
| 946 |
+
__iter6: Iterable[Any],
|
| 947 |
+
*iterables: Iterable[Any],
|
| 948 |
+
) -> List[_S]: ...
|
| 949 |
+
@overload
|
| 950 |
+
def max(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], Any] = ...) -> _T: ...
|
| 951 |
+
@overload
|
| 952 |
+
def max(__iterable: Iterable[_T], *, key: Callable[[_T], Any] = ...) -> _T: ...
|
| 953 |
+
@overload
|
| 954 |
+
def min(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], Any] = ...) -> _T: ...
|
| 955 |
+
@overload
|
| 956 |
+
def min(__iterable: Iterable[_T], *, key: Callable[[_T], Any] = ...) -> _T: ...
|
| 957 |
+
@overload
|
| 958 |
+
def next(__i: Iterator[_T]) -> _T: ...
|
| 959 |
+
@overload
|
| 960 |
+
def next(__i: Iterator[_T], default: _VT) -> Union[_T, _VT]: ...
|
| 961 |
+
def oct(__number: Union[int, _SupportsIndex]) -> str: ...
|
| 962 |
+
def open(name: Union[unicode, int], mode: unicode = ..., buffering: int = ...) -> BinaryIO: ...
|
| 963 |
+
def ord(__c: Union[Text, bytes]) -> int: ...
|
| 964 |
+
|
| 965 |
+
# This is only available after from __future__ import print_function.
|
| 966 |
+
def print(
|
| 967 |
+
*values: object, sep: Optional[Text] = ..., end: Optional[Text] = ..., file: Optional[SupportsWrite[Any]] = ...
|
| 968 |
+
) -> None: ...
|
| 969 |
+
|
| 970 |
+
_E = TypeVar("_E", contravariant=True)
|
| 971 |
+
_M = TypeVar("_M", contravariant=True)
|
| 972 |
+
|
| 973 |
+
class _SupportsPow2(Protocol[_E, _T_co]):
|
| 974 |
+
def __pow__(self, __other: _E) -> _T_co: ...
|
| 975 |
+
|
| 976 |
+
class _SupportsPow3(Protocol[_E, _M, _T_co]):
|
| 977 |
+
def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ...
|
| 978 |
+
|
| 979 |
+
@overload
|
| 980 |
+
def pow(__base: int, __exp: int, __mod: None = ...) -> Any: ... # returns int or float depending on whether exp is non-negative
|
| 981 |
+
@overload
|
| 982 |
+
def pow(__base: int, __exp: int, __mod: int) -> int: ...
|
| 983 |
+
@overload
|
| 984 |
+
def pow(__base: float, __exp: float, __mod: None = ...) -> float: ...
|
| 985 |
+
@overload
|
| 986 |
+
def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ...
|
| 987 |
+
@overload
|
| 988 |
+
def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ...
|
| 989 |
+
def quit(code: object = ...) -> NoReturn: ...
|
| 990 |
+
def range(__x: int, __y: int = ..., __step: int = ...) -> List[int]: ... # noqa: F811
|
| 991 |
+
def raw_input(__prompt: Any = ...) -> str: ...
|
| 992 |
+
@overload
|
| 993 |
+
def reduce(__function: Callable[[_T, _S], _T], __iterable: Iterable[_S], __initializer: _T) -> _T: ...
|
| 994 |
+
@overload
|
| 995 |
+
def reduce(__function: Callable[[_T, _T], _T], __iterable: Iterable[_T]) -> _T: ...
|
| 996 |
+
def reload(__module: Any) -> Any: ...
|
| 997 |
+
@overload
|
| 998 |
+
def reversed(__sequence: Sequence[_T]) -> Iterator[_T]: ...
|
| 999 |
+
@overload
|
| 1000 |
+
def reversed(__sequence: Reversible[_T]) -> Iterator[_T]: ...
|
| 1001 |
+
def repr(__obj: object) -> str: ...
|
| 1002 |
+
@overload
|
| 1003 |
+
def round(number: float) -> float: ...
|
| 1004 |
+
@overload
|
| 1005 |
+
def round(number: float, ndigits: int) -> float: ...
|
| 1006 |
+
@overload
|
| 1007 |
+
def round(number: SupportsFloat) -> float: ...
|
| 1008 |
+
@overload
|
| 1009 |
+
def round(number: SupportsFloat, ndigits: int) -> float: ...
|
| 1010 |
+
def setattr(__obj: Any, __name: Text, __value: Any) -> None: ...
|
| 1011 |
+
def sorted(
|
| 1012 |
+
__iterable: Iterable[_T],
|
| 1013 |
+
*,
|
| 1014 |
+
cmp: Callable[[_T, _T], int] = ...,
|
| 1015 |
+
key: Optional[Callable[[_T], Any]] = ...,
|
| 1016 |
+
reverse: bool = ...,
|
| 1017 |
+
) -> List[_T]: ...
|
| 1018 |
+
@overload
|
| 1019 |
+
def sum(__iterable: Iterable[_T]) -> Union[_T, int]: ...
|
| 1020 |
+
@overload
|
| 1021 |
+
def sum(__iterable: Iterable[_T], __start: _S) -> Union[_T, _S]: ...
|
| 1022 |
+
def unichr(__i: int) -> unicode: ...
|
| 1023 |
+
def vars(__object: Any = ...) -> Dict[str, Any]: ...
|
| 1024 |
+
@overload
|
| 1025 |
+
def zip(__iter1: Iterable[_T1]) -> List[Tuple[_T1]]: ...
|
| 1026 |
+
@overload
|
| 1027 |
+
def zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[Tuple[_T1, _T2]]: ...
|
| 1028 |
+
@overload
|
| 1029 |
+
def zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]) -> List[Tuple[_T1, _T2, _T3]]: ...
|
| 1030 |
+
@overload
|
| 1031 |
+
def zip(
|
| 1032 |
+
__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4]
|
| 1033 |
+
) -> List[Tuple[_T1, _T2, _T3, _T4]]: ...
|
| 1034 |
+
@overload
|
| 1035 |
+
def zip(
|
| 1036 |
+
__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4], __iter5: Iterable[_T5]
|
| 1037 |
+
) -> List[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...
|
| 1038 |
+
@overload
|
| 1039 |
+
def zip(
|
| 1040 |
+
__iter1: Iterable[Any],
|
| 1041 |
+
__iter2: Iterable[Any],
|
| 1042 |
+
__iter3: Iterable[Any],
|
| 1043 |
+
__iter4: Iterable[Any],
|
| 1044 |
+
__iter5: Iterable[Any],
|
| 1045 |
+
__iter6: Iterable[Any],
|
| 1046 |
+
*iterables: Iterable[Any],
|
| 1047 |
+
) -> List[Tuple[Any, ...]]: ...
|
| 1048 |
+
def __import__(
|
| 1049 |
+
name: Text,
|
| 1050 |
+
globals: Optional[Mapping[str, Any]] = ...,
|
| 1051 |
+
locals: Optional[Mapping[str, Any]] = ...,
|
| 1052 |
+
fromlist: Sequence[str] = ...,
|
| 1053 |
+
level: int = ...,
|
| 1054 |
+
) -> Any: ...
|
| 1055 |
+
|
| 1056 |
+
# Actually the type of Ellipsis is <type 'ellipsis'>, but since it's
|
| 1057 |
+
# not exposed anywhere under that name, we make it private here.
|
| 1058 |
+
class ellipsis: ...
|
| 1059 |
+
|
| 1060 |
+
Ellipsis: ellipsis
|
| 1061 |
+
|
| 1062 |
+
# TODO: buffer support is incomplete; e.g. some_string.startswith(some_buffer) doesn't type check.
|
| 1063 |
+
_AnyBuffer = TypeVar("_AnyBuffer", str, unicode, bytearray, buffer)
|
| 1064 |
+
|
| 1065 |
+
class buffer(Sized):
|
| 1066 |
+
def __init__(self, object: _AnyBuffer, offset: int = ..., size: int = ...) -> None: ...
|
| 1067 |
+
def __add__(self, other: _AnyBuffer) -> str: ...
|
| 1068 |
+
def __cmp__(self, other: _AnyBuffer) -> bool: ...
|
| 1069 |
+
def __getitem__(self, key: Union[int, slice]) -> str: ...
|
| 1070 |
+
def __getslice__(self, i: int, j: int) -> str: ...
|
| 1071 |
+
def __len__(self) -> int: ...
|
| 1072 |
+
def __mul__(self, x: int) -> str: ...
|
| 1073 |
+
|
| 1074 |
+
class BaseException(object):
|
| 1075 |
+
args: Tuple[Any, ...]
|
| 1076 |
+
message: Any
|
| 1077 |
+
def __init__(self, *args: object) -> None: ...
|
| 1078 |
+
def __str__(self) -> str: ...
|
| 1079 |
+
def __repr__(self) -> str: ...
|
| 1080 |
+
def __getitem__(self, i: int) -> Any: ...
|
| 1081 |
+
def __getslice__(self, start: int, stop: int) -> Tuple[Any, ...]: ...
|
| 1082 |
+
|
| 1083 |
+
class GeneratorExit(BaseException): ...
|
| 1084 |
+
class KeyboardInterrupt(BaseException): ...
|
| 1085 |
+
|
| 1086 |
+
class SystemExit(BaseException):
|
| 1087 |
+
code: int
|
| 1088 |
+
|
| 1089 |
+
class Exception(BaseException): ...
|
| 1090 |
+
class StopIteration(Exception): ...
|
| 1091 |
+
class StandardError(Exception): ...
|
| 1092 |
+
|
| 1093 |
+
_StandardError = StandardError
|
| 1094 |
+
|
| 1095 |
+
class EnvironmentError(StandardError):
|
| 1096 |
+
errno: int
|
| 1097 |
+
strerror: str
|
| 1098 |
+
# TODO can this be unicode?
|
| 1099 |
+
filename: str
|
| 1100 |
+
|
| 1101 |
+
class OSError(EnvironmentError): ...
|
| 1102 |
+
class IOError(EnvironmentError): ...
|
| 1103 |
+
class ArithmeticError(_StandardError): ...
|
| 1104 |
+
class AssertionError(_StandardError): ...
|
| 1105 |
+
class AttributeError(_StandardError): ...
|
| 1106 |
+
class BufferError(_StandardError): ...
|
| 1107 |
+
class EOFError(_StandardError): ...
|
| 1108 |
+
class ImportError(_StandardError): ...
|
| 1109 |
+
class LookupError(_StandardError): ...
|
| 1110 |
+
class MemoryError(_StandardError): ...
|
| 1111 |
+
class NameError(_StandardError): ...
|
| 1112 |
+
class ReferenceError(_StandardError): ...
|
| 1113 |
+
class RuntimeError(_StandardError): ...
|
| 1114 |
+
|
| 1115 |
+
class SyntaxError(_StandardError):
|
| 1116 |
+
msg: str
|
| 1117 |
+
lineno: Optional[int]
|
| 1118 |
+
offset: Optional[int]
|
| 1119 |
+
text: Optional[str]
|
| 1120 |
+
filename: Optional[str]
|
| 1121 |
+
|
| 1122 |
+
class SystemError(_StandardError): ...
|
| 1123 |
+
class TypeError(_StandardError): ...
|
| 1124 |
+
class ValueError(_StandardError): ...
|
| 1125 |
+
class FloatingPointError(ArithmeticError): ...
|
| 1126 |
+
class OverflowError(ArithmeticError): ...
|
| 1127 |
+
class ZeroDivisionError(ArithmeticError): ...
|
| 1128 |
+
class IndexError(LookupError): ...
|
| 1129 |
+
class KeyError(LookupError): ...
|
| 1130 |
+
class UnboundLocalError(NameError): ...
|
| 1131 |
+
|
| 1132 |
+
class WindowsError(OSError):
|
| 1133 |
+
winerror: int
|
| 1134 |
+
|
| 1135 |
+
class NotImplementedError(RuntimeError): ...
|
| 1136 |
+
class IndentationError(SyntaxError): ...
|
| 1137 |
+
class TabError(IndentationError): ...
|
| 1138 |
+
class UnicodeError(ValueError): ...
|
| 1139 |
+
|
| 1140 |
+
class UnicodeDecodeError(UnicodeError):
|
| 1141 |
+
encoding: str
|
| 1142 |
+
object: bytes
|
| 1143 |
+
start: int
|
| 1144 |
+
end: int
|
| 1145 |
+
reason: str
|
| 1146 |
+
def __init__(self, __encoding: str, __object: bytes, __start: int, __end: int, __reason: str) -> None: ...
|
| 1147 |
+
|
| 1148 |
+
class UnicodeEncodeError(UnicodeError):
|
| 1149 |
+
encoding: str
|
| 1150 |
+
object: Text
|
| 1151 |
+
start: int
|
| 1152 |
+
end: int
|
| 1153 |
+
reason: str
|
| 1154 |
+
def __init__(self, __encoding: str, __object: Text, __start: int, __end: int, __reason: str) -> None: ...
|
| 1155 |
+
|
| 1156 |
+
class UnicodeTranslateError(UnicodeError): ...
|
| 1157 |
+
class Warning(Exception): ...
|
| 1158 |
+
class UserWarning(Warning): ...
|
| 1159 |
+
class DeprecationWarning(Warning): ...
|
| 1160 |
+
class SyntaxWarning(Warning): ...
|
| 1161 |
+
class RuntimeWarning(Warning): ...
|
| 1162 |
+
class FutureWarning(Warning): ...
|
| 1163 |
+
class PendingDeprecationWarning(Warning): ...
|
| 1164 |
+
class ImportWarning(Warning): ...
|
| 1165 |
+
class UnicodeWarning(Warning): ...
|
| 1166 |
+
class BytesWarning(Warning): ...
|
| 1167 |
+
|
| 1168 |
+
class file(BinaryIO):
|
| 1169 |
+
@overload
|
| 1170 |
+
def __init__(self, file: str, mode: str = ..., buffering: int = ...) -> None: ...
|
| 1171 |
+
@overload
|
| 1172 |
+
def __init__(self, file: unicode, mode: str = ..., buffering: int = ...) -> None: ...
|
| 1173 |
+
@overload
|
| 1174 |
+
def __init__(self, file: int, mode: str = ..., buffering: int = ...) -> None: ...
|
| 1175 |
+
def __iter__(self) -> Iterator[str]: ...
|
| 1176 |
+
def next(self) -> str: ...
|
| 1177 |
+
def read(self, n: int = ...) -> str: ...
|
| 1178 |
+
def __enter__(self) -> BinaryIO: ...
|
| 1179 |
+
def __exit__(
|
| 1180 |
+
self, t: Optional[type] = ..., exc: Optional[BaseException] = ..., tb: Optional[Any] = ...
|
| 1181 |
+
) -> Optional[bool]: ...
|
| 1182 |
+
def flush(self) -> None: ...
|
| 1183 |
+
def fileno(self) -> int: ...
|
| 1184 |
+
def isatty(self) -> bool: ...
|
| 1185 |
+
def close(self) -> None: ...
|
| 1186 |
+
def readable(self) -> bool: ...
|
| 1187 |
+
def writable(self) -> bool: ...
|
| 1188 |
+
def seekable(self) -> bool: ...
|
| 1189 |
+
def seek(self, offset: int, whence: int = ...) -> int: ...
|
| 1190 |
+
def tell(self) -> int: ...
|
| 1191 |
+
def readline(self, limit: int = ...) -> str: ...
|
| 1192 |
+
def readlines(self, hint: int = ...) -> List[str]: ...
|
| 1193 |
+
def write(self, data: str) -> int: ...
|
| 1194 |
+
def writelines(self, data: Iterable[str]) -> None: ...
|
| 1195 |
+
def truncate(self, pos: Optional[int] = ...) -> int: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/compileall.pyi
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _typeshed import AnyPath
|
| 2 |
+
from typing import Any, Optional, Pattern
|
| 3 |
+
|
| 4 |
+
# rx can be any object with a 'search' method; once we have Protocols we can change the type
|
| 5 |
+
def compile_dir(
|
| 6 |
+
dir: AnyPath,
|
| 7 |
+
maxlevels: int = ...,
|
| 8 |
+
ddir: Optional[AnyPath] = ...,
|
| 9 |
+
force: bool = ...,
|
| 10 |
+
rx: Optional[Pattern[Any]] = ...,
|
| 11 |
+
quiet: int = ...,
|
| 12 |
+
) -> int: ...
|
| 13 |
+
def compile_file(
|
| 14 |
+
fullname: AnyPath, ddir: Optional[AnyPath] = ..., force: bool = ..., rx: Optional[Pattern[Any]] = ..., quiet: int = ...
|
| 15 |
+
) -> int: ...
|
| 16 |
+
def compile_path(skip_curdir: bool = ..., maxlevels: int = ..., force: bool = ..., quiet: int = ...) -> int: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/copy_reg.pyi
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Hashable, List, Optional, SupportsInt, Tuple, TypeVar, Union
|
| 2 |
+
|
| 3 |
+
_Type = TypeVar("_Type", bound=type)
|
| 4 |
+
_Reduce = Union[Tuple[Callable[..., _Type], Tuple[Any, ...]], Tuple[Callable[..., _Type], Tuple[Any, ...], Optional[Any]]]
|
| 5 |
+
|
| 6 |
+
__all__: List[str]
|
| 7 |
+
|
| 8 |
+
def pickle(
|
| 9 |
+
ob_type: _Type,
|
| 10 |
+
pickle_function: Callable[[_Type], Union[str, _Reduce[_Type]]],
|
| 11 |
+
constructor_ob: Optional[Callable[[_Reduce[_Type]], _Type]] = ...,
|
| 12 |
+
) -> None: ...
|
| 13 |
+
def constructor(object: Callable[[_Reduce[_Type]], _Type]) -> None: ...
|
| 14 |
+
def add_extension(module: Hashable, name: Hashable, code: SupportsInt) -> None: ...
|
| 15 |
+
def remove_extension(module: Hashable, name: Hashable, code: int) -> None: ...
|
| 16 |
+
def clear_extension_cache() -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/dummy_thread.pyi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Dict, NoReturn, Optional, Tuple
|
| 2 |
+
|
| 3 |
+
class error(Exception):
|
| 4 |
+
def __init__(self, *args: Any) -> None: ...
|
| 5 |
+
|
| 6 |
+
def start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: Dict[str, Any] = ...) -> None: ...
|
| 7 |
+
def exit() -> NoReturn: ...
|
| 8 |
+
def get_ident() -> int: ...
|
| 9 |
+
def allocate_lock() -> LockType: ...
|
| 10 |
+
def stack_size(size: Optional[int] = ...) -> int: ...
|
| 11 |
+
|
| 12 |
+
class LockType(object):
|
| 13 |
+
locked_status: bool
|
| 14 |
+
def __init__(self) -> None: ...
|
| 15 |
+
def acquire(self, waitflag: Optional[bool] = ...) -> bool: ...
|
| 16 |
+
def __enter__(self, waitflag: Optional[bool] = ...) -> bool: ...
|
| 17 |
+
def __exit__(self, typ: Any, val: Any, tb: Any) -> None: ...
|
| 18 |
+
def release(self) -> bool: ...
|
| 19 |
+
def locked(self) -> bool: ...
|
| 20 |
+
|
| 21 |
+
def interrupt_main() -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/exceptions.pyi
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __builtin__ import (
|
| 2 |
+
ArithmeticError as ArithmeticError,
|
| 3 |
+
AssertionError as AssertionError,
|
| 4 |
+
AttributeError as AttributeError,
|
| 5 |
+
BaseException as BaseException,
|
| 6 |
+
BufferError as BufferError,
|
| 7 |
+
BytesWarning as BytesWarning,
|
| 8 |
+
DeprecationWarning as DeprecationWarning,
|
| 9 |
+
EnvironmentError as EnvironmentError,
|
| 10 |
+
EOFError as EOFError,
|
| 11 |
+
Exception as Exception,
|
| 12 |
+
FloatingPointError as FloatingPointError,
|
| 13 |
+
FutureWarning as FutureWarning,
|
| 14 |
+
GeneratorExit as GeneratorExit,
|
| 15 |
+
ImportError as ImportError,
|
| 16 |
+
ImportWarning as ImportWarning,
|
| 17 |
+
IndentationError as IndentationError,
|
| 18 |
+
IndexError as IndexError,
|
| 19 |
+
IOError as IOError,
|
| 20 |
+
KeyboardInterrupt as KeyboardInterrupt,
|
| 21 |
+
KeyError as KeyError,
|
| 22 |
+
LookupError as LookupError,
|
| 23 |
+
MemoryError as MemoryError,
|
| 24 |
+
NameError as NameError,
|
| 25 |
+
NotImplementedError as NotImplementedError,
|
| 26 |
+
OSError as OSError,
|
| 27 |
+
OverflowError as OverflowError,
|
| 28 |
+
PendingDeprecationWarning as PendingDeprecationWarning,
|
| 29 |
+
ReferenceError as ReferenceError,
|
| 30 |
+
RuntimeError as RuntimeError,
|
| 31 |
+
RuntimeWarning as RuntimeWarning,
|
| 32 |
+
StandardError as StandardError,
|
| 33 |
+
StopIteration as StopIteration,
|
| 34 |
+
SyntaxError as SyntaxError,
|
| 35 |
+
SyntaxWarning as SyntaxWarning,
|
| 36 |
+
SystemError as SystemError,
|
| 37 |
+
SystemExit as SystemExit,
|
| 38 |
+
TabError as TabError,
|
| 39 |
+
TypeError as TypeError,
|
| 40 |
+
UnboundLocalError as UnboundLocalError,
|
| 41 |
+
UnicodeDecodeError as UnicodeDecodeError,
|
| 42 |
+
UnicodeEncodeError as UnicodeEncodeError,
|
| 43 |
+
UnicodeError as UnicodeError,
|
| 44 |
+
UnicodeTranslateError as UnicodeTranslateError,
|
| 45 |
+
UnicodeWarning as UnicodeWarning,
|
| 46 |
+
UserWarning as UserWarning,
|
| 47 |
+
ValueError as ValueError,
|
| 48 |
+
Warning as Warning,
|
| 49 |
+
ZeroDivisionError as ZeroDivisionError,
|
| 50 |
+
)
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/fcntl.pyi
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _typeshed import FileDescriptorLike
|
| 2 |
+
from typing import Any, Union
|
| 3 |
+
|
| 4 |
+
FASYNC: int
|
| 5 |
+
FD_CLOEXEC: int
|
| 6 |
+
|
| 7 |
+
DN_ACCESS: int
|
| 8 |
+
DN_ATTRIB: int
|
| 9 |
+
DN_CREATE: int
|
| 10 |
+
DN_DELETE: int
|
| 11 |
+
DN_MODIFY: int
|
| 12 |
+
DN_MULTISHOT: int
|
| 13 |
+
DN_RENAME: int
|
| 14 |
+
F_DUPFD: int
|
| 15 |
+
F_EXLCK: int
|
| 16 |
+
F_GETFD: int
|
| 17 |
+
F_GETFL: int
|
| 18 |
+
F_GETLEASE: int
|
| 19 |
+
F_GETLK: int
|
| 20 |
+
F_GETLK64: int
|
| 21 |
+
F_GETOWN: int
|
| 22 |
+
F_GETSIG: int
|
| 23 |
+
F_NOTIFY: int
|
| 24 |
+
F_RDLCK: int
|
| 25 |
+
F_SETFD: int
|
| 26 |
+
F_SETFL: int
|
| 27 |
+
F_SETLEASE: int
|
| 28 |
+
F_SETLK: int
|
| 29 |
+
F_SETLK64: int
|
| 30 |
+
F_SETLKW: int
|
| 31 |
+
F_SETLKW64: int
|
| 32 |
+
F_SETOWN: int
|
| 33 |
+
F_SETSIG: int
|
| 34 |
+
F_SHLCK: int
|
| 35 |
+
F_UNLCK: int
|
| 36 |
+
F_WRLCK: int
|
| 37 |
+
I_ATMARK: int
|
| 38 |
+
I_CANPUT: int
|
| 39 |
+
I_CKBAND: int
|
| 40 |
+
I_FDINSERT: int
|
| 41 |
+
I_FIND: int
|
| 42 |
+
I_FLUSH: int
|
| 43 |
+
I_FLUSHBAND: int
|
| 44 |
+
I_GETBAND: int
|
| 45 |
+
I_GETCLTIME: int
|
| 46 |
+
I_GETSIG: int
|
| 47 |
+
I_GRDOPT: int
|
| 48 |
+
I_GWROPT: int
|
| 49 |
+
I_LINK: int
|
| 50 |
+
I_LIST: int
|
| 51 |
+
I_LOOK: int
|
| 52 |
+
I_NREAD: int
|
| 53 |
+
I_PEEK: int
|
| 54 |
+
I_PLINK: int
|
| 55 |
+
I_POP: int
|
| 56 |
+
I_PUNLINK: int
|
| 57 |
+
I_PUSH: int
|
| 58 |
+
I_RECVFD: int
|
| 59 |
+
I_SENDFD: int
|
| 60 |
+
I_SETCLTIME: int
|
| 61 |
+
I_SETSIG: int
|
| 62 |
+
I_SRDOPT: int
|
| 63 |
+
I_STR: int
|
| 64 |
+
I_SWROPT: int
|
| 65 |
+
I_UNLINK: int
|
| 66 |
+
LOCK_EX: int
|
| 67 |
+
LOCK_MAND: int
|
| 68 |
+
LOCK_NB: int
|
| 69 |
+
LOCK_READ: int
|
| 70 |
+
LOCK_RW: int
|
| 71 |
+
LOCK_SH: int
|
| 72 |
+
LOCK_UN: int
|
| 73 |
+
LOCK_WRITE: int
|
| 74 |
+
|
| 75 |
+
# TODO All these return either int or bytes depending on the value of
|
| 76 |
+
# cmd (not on the type of arg).
|
| 77 |
+
def fcntl(fd: FileDescriptorLike, op: int, arg: Union[int, bytes] = ...) -> Any: ...
|
| 78 |
+
|
| 79 |
+
# TODO: arg: int or read-only buffer interface or read-write buffer interface
|
| 80 |
+
def ioctl(fd: FileDescriptorLike, op: int, arg: Union[int, bytes] = ..., mutate_flag: bool = ...) -> Any: ...
|
| 81 |
+
def flock(fd: FileDescriptorLike, op: int) -> None: ...
|
| 82 |
+
def lockf(fd: FileDescriptorLike, op: int, length: int = ..., start: int = ..., whence: int = ...) -> Any: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/functools.pyi
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import Any, Callable, Dict, Generic, Iterable, Optional, Sequence, Tuple, Type, TypeVar, overload
|
| 3 |
+
|
| 4 |
+
_AnyCallable = Callable[..., Any]
|
| 5 |
+
|
| 6 |
+
_T = TypeVar("_T")
|
| 7 |
+
_S = TypeVar("_S")
|
| 8 |
+
@overload
|
| 9 |
+
def reduce(function: Callable[[_T, _T], _T], sequence: Iterable[_T]) -> _T: ...
|
| 10 |
+
@overload
|
| 11 |
+
def reduce(function: Callable[[_T, _S], _T], sequence: Iterable[_S], initial: _T) -> _T: ...
|
| 12 |
+
|
| 13 |
+
WRAPPER_ASSIGNMENTS: Sequence[str]
|
| 14 |
+
WRAPPER_UPDATES: Sequence[str]
|
| 15 |
+
|
| 16 |
+
def update_wrapper(
|
| 17 |
+
wrapper: _AnyCallable, wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...
|
| 18 |
+
) -> _AnyCallable: ...
|
| 19 |
+
def wraps(
|
| 20 |
+
wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...
|
| 21 |
+
) -> Callable[[_AnyCallable], _AnyCallable]: ...
|
| 22 |
+
def total_ordering(cls: Type[_T]) -> Type[_T]: ...
|
| 23 |
+
def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], Any]: ...
|
| 24 |
+
|
| 25 |
+
class partial(Generic[_T]):
|
| 26 |
+
func = ... # Callable[..., _T]
|
| 27 |
+
args: Tuple[Any, ...]
|
| 28 |
+
keywords: Dict[str, Any]
|
| 29 |
+
def __init__(self, func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...
|
| 30 |
+
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/getopt.pyi
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List, Tuple
|
| 2 |
+
|
| 3 |
+
class GetoptError(Exception):
|
| 4 |
+
opt: str
|
| 5 |
+
msg: str
|
| 6 |
+
def __init__(self, msg: str, opt: str = ...) -> None: ...
|
| 7 |
+
def __str__(self) -> str: ...
|
| 8 |
+
|
| 9 |
+
error = GetoptError
|
| 10 |
+
|
| 11 |
+
def getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...
|
| 12 |
+
def gnu_getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/getpass.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any
|
| 2 |
+
|
| 3 |
+
class GetPassWarning(UserWarning): ...
|
| 4 |
+
|
| 5 |
+
def getpass(prompt: str = ..., stream: IO[Any] = ...) -> str: ...
|
| 6 |
+
def getuser() -> str: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/gettext.pyi
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any, Container, Dict, List, Optional, Sequence, Type, Union
|
| 2 |
+
|
| 3 |
+
def bindtextdomain(domain: str, localedir: str = ...) -> str: ...
|
| 4 |
+
def bind_textdomain_codeset(domain: str, codeset: str = ...) -> str: ...
|
| 5 |
+
def textdomain(domain: str = ...) -> str: ...
|
| 6 |
+
def gettext(message: str) -> str: ...
|
| 7 |
+
def lgettext(message: str) -> str: ...
|
| 8 |
+
def dgettext(domain: str, message: str) -> str: ...
|
| 9 |
+
def ldgettext(domain: str, message: str) -> str: ...
|
| 10 |
+
def ngettext(singular: str, plural: str, n: int) -> str: ...
|
| 11 |
+
def lngettext(singular: str, plural: str, n: int) -> str: ...
|
| 12 |
+
def dngettext(domain: str, singular: str, plural: str, n: int) -> str: ...
|
| 13 |
+
def ldngettext(domain: str, singular: str, plural: str, n: int) -> str: ...
|
| 14 |
+
|
| 15 |
+
class NullTranslations(object):
|
| 16 |
+
def __init__(self, fp: IO[str] = ...) -> None: ...
|
| 17 |
+
def _parse(self, fp: IO[str]) -> None: ...
|
| 18 |
+
def add_fallback(self, fallback: NullTranslations) -> None: ...
|
| 19 |
+
def gettext(self, message: str) -> str: ...
|
| 20 |
+
def lgettext(self, message: str) -> str: ...
|
| 21 |
+
def ugettext(self, message: Union[str, unicode]) -> unicode: ...
|
| 22 |
+
def ngettext(self, singular: str, plural: str, n: int) -> str: ...
|
| 23 |
+
def lngettext(self, singular: str, plural: str, n: int) -> str: ...
|
| 24 |
+
def ungettext(self, singular: Union[str, unicode], plural: Union[str, unicode], n: int) -> unicode: ...
|
| 25 |
+
def info(self) -> Dict[str, str]: ...
|
| 26 |
+
def charset(self) -> Optional[str]: ...
|
| 27 |
+
def output_charset(self) -> Optional[str]: ...
|
| 28 |
+
def set_output_charset(self, charset: Optional[str]) -> None: ...
|
| 29 |
+
def install(self, unicode: bool = ..., names: Container[str] = ...) -> None: ...
|
| 30 |
+
|
| 31 |
+
class GNUTranslations(NullTranslations):
|
| 32 |
+
LE_MAGIC: int
|
| 33 |
+
BE_MAGIC: int
|
| 34 |
+
|
| 35 |
+
def find(
|
| 36 |
+
domain: str, localedir: Optional[str] = ..., languages: Optional[Sequence[str]] = ..., all: Any = ...
|
| 37 |
+
) -> Optional[Union[str, List[str]]]: ...
|
| 38 |
+
def translation(
|
| 39 |
+
domain: str,
|
| 40 |
+
localedir: Optional[str] = ...,
|
| 41 |
+
languages: Optional[Sequence[str]] = ...,
|
| 42 |
+
class_: Optional[Type[NullTranslations]] = ...,
|
| 43 |
+
fallback: bool = ...,
|
| 44 |
+
codeset: Optional[str] = ...,
|
| 45 |
+
) -> NullTranslations: ...
|
| 46 |
+
def install(
|
| 47 |
+
domain: str, localedir: Optional[str] = ..., unicode: bool = ..., codeset: Optional[str] = ..., names: Container[str] = ...
|
| 48 |
+
) -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/hashlib.pyi
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Tuple, Union
|
| 2 |
+
|
| 3 |
+
_DataType = Union[str, unicode, bytearray, buffer, memoryview]
|
| 4 |
+
|
| 5 |
+
class _hash(object): # This is not actually in the module namespace.
|
| 6 |
+
name: str
|
| 7 |
+
block_size: int
|
| 8 |
+
digest_size: int
|
| 9 |
+
digestsize: int
|
| 10 |
+
def __init__(self, arg: _DataType = ...) -> None: ...
|
| 11 |
+
def update(self, arg: _DataType) -> None: ...
|
| 12 |
+
def digest(self) -> str: ...
|
| 13 |
+
def hexdigest(self) -> str: ...
|
| 14 |
+
def copy(self) -> _hash: ...
|
| 15 |
+
|
| 16 |
+
def new(name: str, data: str = ...) -> _hash: ...
|
| 17 |
+
def md5(s: _DataType = ...) -> _hash: ...
|
| 18 |
+
def sha1(s: _DataType = ...) -> _hash: ...
|
| 19 |
+
def sha224(s: _DataType = ...) -> _hash: ...
|
| 20 |
+
def sha256(s: _DataType = ...) -> _hash: ...
|
| 21 |
+
def sha384(s: _DataType = ...) -> _hash: ...
|
| 22 |
+
def sha512(s: _DataType = ...) -> _hash: ...
|
| 23 |
+
|
| 24 |
+
algorithms: Tuple[str, ...]
|
| 25 |
+
algorithms_guaranteed: Tuple[str, ...]
|
| 26 |
+
algorithms_available: Tuple[str, ...]
|
| 27 |
+
|
| 28 |
+
def pbkdf2_hmac(name: str, password: str, salt: str, rounds: int, dklen: int = ...) -> str: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/httplib.pyi
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import mimetools
|
| 2 |
+
import ssl
|
| 3 |
+
from typing import Any, Dict, Optional, Protocol
|
| 4 |
+
|
| 5 |
+
class HTTPMessage(mimetools.Message):
|
| 6 |
+
def addcontinue(self, key: str, more: str) -> None: ...
|
| 7 |
+
dict: Dict[str, str]
|
| 8 |
+
def addheader(self, key: str, value: str) -> None: ...
|
| 9 |
+
unixfrom: str
|
| 10 |
+
headers: Any
|
| 11 |
+
status: str
|
| 12 |
+
seekable: bool
|
| 13 |
+
def readheaders(self) -> None: ...
|
| 14 |
+
|
| 15 |
+
class HTTPResponse:
|
| 16 |
+
fp: Any
|
| 17 |
+
debuglevel: Any
|
| 18 |
+
strict: Any
|
| 19 |
+
msg: Any
|
| 20 |
+
version: Any
|
| 21 |
+
status: Any
|
| 22 |
+
reason: Any
|
| 23 |
+
chunked: Any
|
| 24 |
+
chunk_left: Any
|
| 25 |
+
length: Any
|
| 26 |
+
will_close: Any
|
| 27 |
+
def __init__(
|
| 28 |
+
self, sock, debuglevel: int = ..., strict: int = ..., method: Optional[Any] = ..., buffering: bool = ...
|
| 29 |
+
) -> None: ...
|
| 30 |
+
def begin(self): ...
|
| 31 |
+
def close(self): ...
|
| 32 |
+
def isclosed(self): ...
|
| 33 |
+
def read(self, amt: Optional[Any] = ...): ...
|
| 34 |
+
def fileno(self): ...
|
| 35 |
+
def getheader(self, name, default: Optional[Any] = ...): ...
|
| 36 |
+
def getheaders(self): ...
|
| 37 |
+
|
| 38 |
+
# This is an API stub only for HTTPConnection and HTTPSConnection, as used in
|
| 39 |
+
# urllib2.AbstractHTTPHandler.do_open, which takes either the class
|
| 40 |
+
# HTTPConnection or the class HTTPSConnection, *not* an instance of either
|
| 41 |
+
# class. do_open does not use all of the parameters of HTTPConnection.__init__
|
| 42 |
+
# or HTTPSConnection.__init__, so HTTPConnectionProtocol only implements the
|
| 43 |
+
# parameters that do_open does use.
|
| 44 |
+
class HTTPConnectionProtocol(Protocol):
|
| 45 |
+
def __call__(self, host: str, timeout: int = ..., **http_con_args: Any) -> HTTPConnection: ...
|
| 46 |
+
|
| 47 |
+
class HTTPConnection:
|
| 48 |
+
response_class: Any
|
| 49 |
+
default_port: Any
|
| 50 |
+
auto_open: Any
|
| 51 |
+
debuglevel: Any
|
| 52 |
+
strict: Any
|
| 53 |
+
timeout: Any
|
| 54 |
+
source_address: Any
|
| 55 |
+
sock: Any
|
| 56 |
+
host: str = ...
|
| 57 |
+
port: int = ...
|
| 58 |
+
def __init__(
|
| 59 |
+
self, host, port: Optional[Any] = ..., strict: Optional[Any] = ..., timeout=..., source_address: Optional[Any] = ...
|
| 60 |
+
) -> None: ...
|
| 61 |
+
def set_tunnel(self, host, port: Optional[Any] = ..., headers: Optional[Any] = ...): ...
|
| 62 |
+
def set_debuglevel(self, level): ...
|
| 63 |
+
def connect(self): ...
|
| 64 |
+
def close(self): ...
|
| 65 |
+
def send(self, data): ...
|
| 66 |
+
def putrequest(self, method, url, skip_host: int = ..., skip_accept_encoding: int = ...): ...
|
| 67 |
+
def putheader(self, header, *values): ...
|
| 68 |
+
def endheaders(self, message_body: Optional[Any] = ...): ...
|
| 69 |
+
def request(self, method, url, body: Optional[Any] = ..., headers=...): ...
|
| 70 |
+
def getresponse(self, buffering: bool = ...): ...
|
| 71 |
+
|
| 72 |
+
class HTTP:
|
| 73 |
+
debuglevel: Any
|
| 74 |
+
def __init__(self, host: str = ..., port: Optional[Any] = ..., strict: Optional[Any] = ...) -> None: ...
|
| 75 |
+
def connect(self, host: Optional[Any] = ..., port: Optional[Any] = ...): ...
|
| 76 |
+
def getfile(self): ...
|
| 77 |
+
file: Any
|
| 78 |
+
headers: Any
|
| 79 |
+
def getreply(self, buffering: bool = ...): ...
|
| 80 |
+
def close(self): ...
|
| 81 |
+
|
| 82 |
+
class HTTPSConnection(HTTPConnection):
|
| 83 |
+
default_port: Any
|
| 84 |
+
key_file: Any
|
| 85 |
+
cert_file: Any
|
| 86 |
+
def __init__(
|
| 87 |
+
self,
|
| 88 |
+
host,
|
| 89 |
+
port: Optional[Any] = ...,
|
| 90 |
+
key_file: Optional[Any] = ...,
|
| 91 |
+
cert_file: Optional[Any] = ...,
|
| 92 |
+
strict: Optional[Any] = ...,
|
| 93 |
+
timeout=...,
|
| 94 |
+
source_address: Optional[Any] = ...,
|
| 95 |
+
context: Optional[Any] = ...,
|
| 96 |
+
) -> None: ...
|
| 97 |
+
sock: Any
|
| 98 |
+
def connect(self): ...
|
| 99 |
+
|
| 100 |
+
class HTTPS(HTTP):
|
| 101 |
+
key_file: Any
|
| 102 |
+
cert_file: Any
|
| 103 |
+
def __init__(
|
| 104 |
+
self,
|
| 105 |
+
host: str = ...,
|
| 106 |
+
port: Optional[Any] = ...,
|
| 107 |
+
key_file: Optional[Any] = ...,
|
| 108 |
+
cert_file: Optional[Any] = ...,
|
| 109 |
+
strict: Optional[Any] = ...,
|
| 110 |
+
context: Optional[Any] = ...,
|
| 111 |
+
) -> None: ...
|
| 112 |
+
|
| 113 |
+
class HTTPException(Exception): ...
|
| 114 |
+
class NotConnected(HTTPException): ...
|
| 115 |
+
class InvalidURL(HTTPException): ...
|
| 116 |
+
|
| 117 |
+
class UnknownProtocol(HTTPException):
|
| 118 |
+
args: Any
|
| 119 |
+
version: Any
|
| 120 |
+
def __init__(self, version) -> None: ...
|
| 121 |
+
|
| 122 |
+
class UnknownTransferEncoding(HTTPException): ...
|
| 123 |
+
class UnimplementedFileMode(HTTPException): ...
|
| 124 |
+
|
| 125 |
+
class IncompleteRead(HTTPException):
|
| 126 |
+
args: Any
|
| 127 |
+
partial: Any
|
| 128 |
+
expected: Any
|
| 129 |
+
def __init__(self, partial, expected: Optional[Any] = ...) -> None: ...
|
| 130 |
+
|
| 131 |
+
class ImproperConnectionState(HTTPException): ...
|
| 132 |
+
class CannotSendRequest(ImproperConnectionState): ...
|
| 133 |
+
class CannotSendHeader(ImproperConnectionState): ...
|
| 134 |
+
class ResponseNotReady(ImproperConnectionState): ...
|
| 135 |
+
|
| 136 |
+
class BadStatusLine(HTTPException):
|
| 137 |
+
args: Any
|
| 138 |
+
line: Any
|
| 139 |
+
def __init__(self, line) -> None: ...
|
| 140 |
+
|
| 141 |
+
class LineTooLong(HTTPException):
|
| 142 |
+
def __init__(self, line_type) -> None: ...
|
| 143 |
+
|
| 144 |
+
error: Any
|
| 145 |
+
|
| 146 |
+
class LineAndFileWrapper:
|
| 147 |
+
def __init__(self, line, file) -> None: ...
|
| 148 |
+
def __getattr__(self, attr): ...
|
| 149 |
+
def read(self, amt: Optional[Any] = ...): ...
|
| 150 |
+
def readline(self): ...
|
| 151 |
+
def readlines(self, size: Optional[Any] = ...): ...
|
| 152 |
+
|
| 153 |
+
# Constants
|
| 154 |
+
|
| 155 |
+
responses: Dict[int, str]
|
| 156 |
+
|
| 157 |
+
HTTP_PORT: int
|
| 158 |
+
HTTPS_PORT: int
|
| 159 |
+
|
| 160 |
+
# status codes
|
| 161 |
+
# informational
|
| 162 |
+
CONTINUE: int
|
| 163 |
+
SWITCHING_PROTOCOLS: int
|
| 164 |
+
PROCESSING: int
|
| 165 |
+
|
| 166 |
+
# successful
|
| 167 |
+
OK: int
|
| 168 |
+
CREATED: int
|
| 169 |
+
ACCEPTED: int
|
| 170 |
+
NON_AUTHORITATIVE_INFORMATION: int
|
| 171 |
+
NO_CONTENT: int
|
| 172 |
+
RESET_CONTENT: int
|
| 173 |
+
PARTIAL_CONTENT: int
|
| 174 |
+
MULTI_STATUS: int
|
| 175 |
+
IM_USED: int
|
| 176 |
+
|
| 177 |
+
# redirection
|
| 178 |
+
MULTIPLE_CHOICES: int
|
| 179 |
+
MOVED_PERMANENTLY: int
|
| 180 |
+
FOUND: int
|
| 181 |
+
SEE_OTHER: int
|
| 182 |
+
NOT_MODIFIED: int
|
| 183 |
+
USE_PROXY: int
|
| 184 |
+
TEMPORARY_REDIRECT: int
|
| 185 |
+
|
| 186 |
+
# client error
|
| 187 |
+
BAD_REQUEST: int
|
| 188 |
+
UNAUTHORIZED: int
|
| 189 |
+
PAYMENT_REQUIRED: int
|
| 190 |
+
FORBIDDEN: int
|
| 191 |
+
NOT_FOUND: int
|
| 192 |
+
METHOD_NOT_ALLOWED: int
|
| 193 |
+
NOT_ACCEPTABLE: int
|
| 194 |
+
PROXY_AUTHENTICATION_REQUIRED: int
|
| 195 |
+
REQUEST_TIMEOUT: int
|
| 196 |
+
CONFLICT: int
|
| 197 |
+
GONE: int
|
| 198 |
+
LENGTH_REQUIRED: int
|
| 199 |
+
PRECONDITION_FAILED: int
|
| 200 |
+
REQUEST_ENTITY_TOO_LARGE: int
|
| 201 |
+
REQUEST_URI_TOO_LONG: int
|
| 202 |
+
UNSUPPORTED_MEDIA_TYPE: int
|
| 203 |
+
REQUESTED_RANGE_NOT_SATISFIABLE: int
|
| 204 |
+
EXPECTATION_FAILED: int
|
| 205 |
+
UNPROCESSABLE_ENTITY: int
|
| 206 |
+
LOCKED: int
|
| 207 |
+
FAILED_DEPENDENCY: int
|
| 208 |
+
UPGRADE_REQUIRED: int
|
| 209 |
+
|
| 210 |
+
# server error
|
| 211 |
+
INTERNAL_SERVER_ERROR: int
|
| 212 |
+
NOT_IMPLEMENTED: int
|
| 213 |
+
BAD_GATEWAY: int
|
| 214 |
+
SERVICE_UNAVAILABLE: int
|
| 215 |
+
GATEWAY_TIMEOUT: int
|
| 216 |
+
HTTP_VERSION_NOT_SUPPORTED: int
|
| 217 |
+
INSUFFICIENT_STORAGE: int
|
| 218 |
+
NOT_EXTENDED: int
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/json.pyi
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from _typeshed import SupportsRead
|
| 2 |
+
from typing import IO, Any, Callable, Dict, List, Optional, Text, Tuple, Type, Union
|
| 3 |
+
|
| 4 |
+
def dumps(
|
| 5 |
+
obj: Any,
|
| 6 |
+
skipkeys: bool = ...,
|
| 7 |
+
ensure_ascii: bool = ...,
|
| 8 |
+
check_circular: bool = ...,
|
| 9 |
+
allow_nan: bool = ...,
|
| 10 |
+
cls: Optional[Type[JSONEncoder]] = ...,
|
| 11 |
+
indent: Optional[int] = ...,
|
| 12 |
+
separators: Optional[Tuple[str, str]] = ...,
|
| 13 |
+
encoding: str = ...,
|
| 14 |
+
default: Optional[Callable[[Any], Any]] = ...,
|
| 15 |
+
sort_keys: bool = ...,
|
| 16 |
+
**kwds: Any,
|
| 17 |
+
) -> str: ...
|
| 18 |
+
def dump(
|
| 19 |
+
obj: Any,
|
| 20 |
+
fp: Union[IO[str], IO[Text]],
|
| 21 |
+
skipkeys: bool = ...,
|
| 22 |
+
ensure_ascii: bool = ...,
|
| 23 |
+
check_circular: bool = ...,
|
| 24 |
+
allow_nan: bool = ...,
|
| 25 |
+
cls: Optional[Type[JSONEncoder]] = ...,
|
| 26 |
+
indent: Optional[int] = ...,
|
| 27 |
+
separators: Optional[Tuple[str, str]] = ...,
|
| 28 |
+
encoding: str = ...,
|
| 29 |
+
default: Optional[Callable[[Any], Any]] = ...,
|
| 30 |
+
sort_keys: bool = ...,
|
| 31 |
+
**kwds: Any,
|
| 32 |
+
) -> None: ...
|
| 33 |
+
def loads(
|
| 34 |
+
s: Union[Text, bytes],
|
| 35 |
+
encoding: Any = ...,
|
| 36 |
+
cls: Optional[Type[JSONDecoder]] = ...,
|
| 37 |
+
object_hook: Optional[Callable[[Dict[Any, Any]], Any]] = ...,
|
| 38 |
+
parse_float: Optional[Callable[[str], Any]] = ...,
|
| 39 |
+
parse_int: Optional[Callable[[str], Any]] = ...,
|
| 40 |
+
parse_constant: Optional[Callable[[str], Any]] = ...,
|
| 41 |
+
object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ...,
|
| 42 |
+
**kwds: Any,
|
| 43 |
+
) -> Any: ...
|
| 44 |
+
def load(
|
| 45 |
+
fp: SupportsRead[Union[Text, bytes]],
|
| 46 |
+
encoding: Optional[str] = ...,
|
| 47 |
+
cls: Optional[Type[JSONDecoder]] = ...,
|
| 48 |
+
object_hook: Optional[Callable[[Dict[Any, Any]], Any]] = ...,
|
| 49 |
+
parse_float: Optional[Callable[[str], Any]] = ...,
|
| 50 |
+
parse_int: Optional[Callable[[str], Any]] = ...,
|
| 51 |
+
parse_constant: Optional[Callable[[str], Any]] = ...,
|
| 52 |
+
object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ...,
|
| 53 |
+
**kwds: Any,
|
| 54 |
+
) -> Any: ...
|
| 55 |
+
|
| 56 |
+
class JSONDecoder(object):
|
| 57 |
+
def __init__(
|
| 58 |
+
self,
|
| 59 |
+
encoding: Union[Text, bytes] = ...,
|
| 60 |
+
object_hook: Callable[..., Any] = ...,
|
| 61 |
+
parse_float: Callable[[str], float] = ...,
|
| 62 |
+
parse_int: Callable[[str], int] = ...,
|
| 63 |
+
parse_constant: Callable[[str], Any] = ...,
|
| 64 |
+
strict: bool = ...,
|
| 65 |
+
object_pairs_hook: Callable[..., Any] = ...,
|
| 66 |
+
) -> None: ...
|
| 67 |
+
def decode(self, s: Union[Text, bytes], _w: Any = ...) -> Any: ...
|
| 68 |
+
def raw_decode(self, s: Union[Text, bytes], idx: int = ...) -> Tuple[Any, Any]: ...
|
| 69 |
+
|
| 70 |
+
class JSONEncoder(object):
|
| 71 |
+
item_separator: str
|
| 72 |
+
key_separator: str
|
| 73 |
+
skipkeys: bool
|
| 74 |
+
ensure_ascii: bool
|
| 75 |
+
check_circular: bool
|
| 76 |
+
allow_nan: bool
|
| 77 |
+
sort_keys: bool
|
| 78 |
+
indent: Optional[int]
|
| 79 |
+
def __init__(
|
| 80 |
+
self,
|
| 81 |
+
skipkeys: bool = ...,
|
| 82 |
+
ensure_ascii: bool = ...,
|
| 83 |
+
check_circular: bool = ...,
|
| 84 |
+
allow_nan: bool = ...,
|
| 85 |
+
sort_keys: bool = ...,
|
| 86 |
+
indent: Optional[int] = ...,
|
| 87 |
+
separators: Tuple[Union[Text, bytes], Union[Text, bytes]] = ...,
|
| 88 |
+
encoding: Union[Text, bytes] = ...,
|
| 89 |
+
default: Callable[..., Any] = ...,
|
| 90 |
+
) -> None: ...
|
| 91 |
+
def default(self, o: Any) -> Any: ...
|
| 92 |
+
def encode(self, o: Any) -> str: ...
|
| 93 |
+
def iterencode(self, o: Any, _one_shot: bool = ...) -> str: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/md5.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from hashlib import md5 as md5
|
| 2 |
+
|
| 3 |
+
new = md5
|
| 4 |
+
blocksize: int
|
| 5 |
+
digest_size: int
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/mutex.pyi
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Deque, TypeVar
|
| 2 |
+
|
| 3 |
+
_ArgType = TypeVar("_ArgType")
|
| 4 |
+
|
| 5 |
+
class mutex:
|
| 6 |
+
locked: bool
|
| 7 |
+
queue: Deque[Any]
|
| 8 |
+
def __init__(self) -> None: ...
|
| 9 |
+
def test(self) -> bool: ...
|
| 10 |
+
def testandset(self) -> bool: ...
|
| 11 |
+
def lock(self, function: Callable[[_ArgType], Any], argument: _ArgType) -> None: ...
|
| 12 |
+
def unlock(self) -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/ntpath.pyi
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
from _typeshed import AnyPath, BytesPath, StrPath
|
| 4 |
+
from genericpath import exists as exists
|
| 5 |
+
from typing import Any, AnyStr, Callable, List, Optional, Sequence, Text, Tuple, TypeVar, overload
|
| 6 |
+
|
| 7 |
+
_T = TypeVar("_T")
|
| 8 |
+
|
| 9 |
+
# ----- os.path variables -----
|
| 10 |
+
supports_unicode_filenames: bool
|
| 11 |
+
# aliases (also in os)
|
| 12 |
+
curdir: str
|
| 13 |
+
pardir: str
|
| 14 |
+
sep: str
|
| 15 |
+
if sys.platform == "win32":
|
| 16 |
+
altsep: str
|
| 17 |
+
else:
|
| 18 |
+
altsep: Optional[str]
|
| 19 |
+
extsep: str
|
| 20 |
+
pathsep: str
|
| 21 |
+
defpath: str
|
| 22 |
+
devnull: str
|
| 23 |
+
|
| 24 |
+
# ----- os.path function stubs -----
|
| 25 |
+
def abspath(path: AnyStr) -> AnyStr: ...
|
| 26 |
+
def basename(p: AnyStr) -> AnyStr: ...
|
| 27 |
+
def dirname(p: AnyStr) -> AnyStr: ...
|
| 28 |
+
def expanduser(path: AnyStr) -> AnyStr: ...
|
| 29 |
+
def expandvars(path: AnyStr) -> AnyStr: ...
|
| 30 |
+
def normcase(s: AnyStr) -> AnyStr: ...
|
| 31 |
+
def normpath(path: AnyStr) -> AnyStr: ...
|
| 32 |
+
|
| 33 |
+
if sys.platform == "win32":
|
| 34 |
+
def realpath(path: AnyStr) -> AnyStr: ...
|
| 35 |
+
|
| 36 |
+
else:
|
| 37 |
+
def realpath(filename: AnyStr) -> AnyStr: ...
|
| 38 |
+
|
| 39 |
+
# NOTE: Empty lists results in '' (str) regardless of contained type.
|
| 40 |
+
# Also, in Python 2 mixed sequences of Text and bytes results in either Text or bytes
|
| 41 |
+
# So, fall back to Any
|
| 42 |
+
def commonprefix(m: Sequence[AnyPath]) -> Any: ...
|
| 43 |
+
def lexists(path: AnyPath) -> bool: ...
|
| 44 |
+
|
| 45 |
+
# These return float if os.stat_float_times() == True,
|
| 46 |
+
# but int is a subclass of float.
|
| 47 |
+
def getatime(filename: AnyPath) -> float: ...
|
| 48 |
+
def getmtime(filename: AnyPath) -> float: ...
|
| 49 |
+
def getctime(filename: AnyPath) -> float: ...
|
| 50 |
+
def getsize(filename: AnyPath) -> int: ...
|
| 51 |
+
def isabs(s: AnyPath) -> bool: ...
|
| 52 |
+
def isfile(path: AnyPath) -> bool: ...
|
| 53 |
+
def isdir(s: AnyPath) -> bool: ...
|
| 54 |
+
def islink(path: AnyPath) -> bool: ...
|
| 55 |
+
def ismount(path: AnyPath) -> bool: ...
|
| 56 |
+
|
| 57 |
+
# Make sure signatures are disjunct, and allow combinations of bytes and unicode.
|
| 58 |
+
# (Since Python 2 allows that, too)
|
| 59 |
+
# Note that e.g. os.path.join("a", "b", "c", "d", u"e") will still result in
|
| 60 |
+
# a type error.
|
| 61 |
+
@overload
|
| 62 |
+
def join(__p1: bytes, *p: bytes) -> bytes: ...
|
| 63 |
+
@overload
|
| 64 |
+
def join(__p1: bytes, __p2: bytes, __p3: bytes, __p4: Text, *p: AnyPath) -> Text: ...
|
| 65 |
+
@overload
|
| 66 |
+
def join(__p1: bytes, __p2: bytes, __p3: Text, *p: AnyPath) -> Text: ...
|
| 67 |
+
@overload
|
| 68 |
+
def join(__p1: bytes, __p2: Text, *p: AnyPath) -> Text: ...
|
| 69 |
+
@overload
|
| 70 |
+
def join(__p1: Text, *p: AnyPath) -> Text: ...
|
| 71 |
+
@overload
|
| 72 |
+
def relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...
|
| 73 |
+
@overload
|
| 74 |
+
def relpath(path: StrPath, start: Optional[StrPath] = ...) -> Text: ...
|
| 75 |
+
def samefile(f1: AnyPath, f2: AnyPath) -> bool: ...
|
| 76 |
+
def sameopenfile(fp1: int, fp2: int) -> bool: ...
|
| 77 |
+
def samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...
|
| 78 |
+
def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 79 |
+
def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 80 |
+
def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 81 |
+
|
| 82 |
+
if sys.platform == "win32":
|
| 83 |
+
def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated
|
| 84 |
+
|
| 85 |
+
def walk(path: AnyStr, visit: Callable[[_T, AnyStr, List[AnyStr]], Any], arg: _T) -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/nturl2path.pyi
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import AnyStr
|
| 2 |
+
|
| 3 |
+
def url2pathname(url: AnyStr) -> AnyStr: ...
|
| 4 |
+
def pathname2url(p: AnyStr) -> AnyStr: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/os2emxpath.pyi
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
from _typeshed import AnyPath, BytesPath, StrPath
|
| 4 |
+
from genericpath import exists as exists
|
| 5 |
+
from typing import Any, AnyStr, Callable, List, Optional, Sequence, Text, Tuple, TypeVar, overload
|
| 6 |
+
|
| 7 |
+
_T = TypeVar("_T")
|
| 8 |
+
|
| 9 |
+
# ----- os.path variables -----
|
| 10 |
+
supports_unicode_filenames: bool
|
| 11 |
+
# aliases (also in os)
|
| 12 |
+
curdir: str
|
| 13 |
+
pardir: str
|
| 14 |
+
sep: str
|
| 15 |
+
if sys.platform == "win32":
|
| 16 |
+
altsep: str
|
| 17 |
+
else:
|
| 18 |
+
altsep: Optional[str]
|
| 19 |
+
extsep: str
|
| 20 |
+
pathsep: str
|
| 21 |
+
defpath: str
|
| 22 |
+
devnull: str
|
| 23 |
+
|
| 24 |
+
# ----- os.path function stubs -----
|
| 25 |
+
def abspath(path: AnyStr) -> AnyStr: ...
|
| 26 |
+
def basename(p: AnyStr) -> AnyStr: ...
|
| 27 |
+
def dirname(p: AnyStr) -> AnyStr: ...
|
| 28 |
+
def expanduser(path: AnyStr) -> AnyStr: ...
|
| 29 |
+
def expandvars(path: AnyStr) -> AnyStr: ...
|
| 30 |
+
def normcase(s: AnyStr) -> AnyStr: ...
|
| 31 |
+
def normpath(path: AnyStr) -> AnyStr: ...
|
| 32 |
+
|
| 33 |
+
if sys.platform == "win32":
|
| 34 |
+
def realpath(path: AnyStr) -> AnyStr: ...
|
| 35 |
+
|
| 36 |
+
else:
|
| 37 |
+
def realpath(filename: AnyStr) -> AnyStr: ...
|
| 38 |
+
|
| 39 |
+
# NOTE: Empty lists results in '' (str) regardless of contained type.
|
| 40 |
+
# Also, in Python 2 mixed sequences of Text and bytes results in either Text or bytes
|
| 41 |
+
# So, fall back to Any
|
| 42 |
+
def commonprefix(m: Sequence[AnyPath]) -> Any: ...
|
| 43 |
+
def lexists(path: AnyPath) -> bool: ...
|
| 44 |
+
|
| 45 |
+
# These return float if os.stat_float_times() == True,
|
| 46 |
+
# but int is a subclass of float.
|
| 47 |
+
def getatime(filename: AnyPath) -> float: ...
|
| 48 |
+
def getmtime(filename: AnyPath) -> float: ...
|
| 49 |
+
def getctime(filename: AnyPath) -> float: ...
|
| 50 |
+
def getsize(filename: AnyPath) -> int: ...
|
| 51 |
+
def isabs(s: AnyPath) -> bool: ...
|
| 52 |
+
def isfile(path: AnyPath) -> bool: ...
|
| 53 |
+
def isdir(s: AnyPath) -> bool: ...
|
| 54 |
+
def islink(path: AnyPath) -> bool: ...
|
| 55 |
+
def ismount(path: AnyPath) -> bool: ...
|
| 56 |
+
|
| 57 |
+
# Make sure signatures are disjunct, and allow combinations of bytes and unicode.
|
| 58 |
+
# (Since Python 2 allows that, too)
|
| 59 |
+
# Note that e.g. os.path.join("a", "b", "c", "d", u"e") will still result in
|
| 60 |
+
# a type error.
|
| 61 |
+
@overload
|
| 62 |
+
def join(__p1: bytes, *p: bytes) -> bytes: ...
|
| 63 |
+
@overload
|
| 64 |
+
def join(__p1: bytes, __p2: bytes, __p3: bytes, __p4: Text, *p: AnyPath) -> Text: ...
|
| 65 |
+
@overload
|
| 66 |
+
def join(__p1: bytes, __p2: bytes, __p3: Text, *p: AnyPath) -> Text: ...
|
| 67 |
+
@overload
|
| 68 |
+
def join(__p1: bytes, __p2: Text, *p: AnyPath) -> Text: ...
|
| 69 |
+
@overload
|
| 70 |
+
def join(__p1: Text, *p: AnyPath) -> Text: ...
|
| 71 |
+
@overload
|
| 72 |
+
def relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...
|
| 73 |
+
@overload
|
| 74 |
+
def relpath(path: StrPath, start: Optional[StrPath] = ...) -> Text: ...
|
| 75 |
+
def samefile(f1: AnyPath, f2: AnyPath) -> bool: ...
|
| 76 |
+
def sameopenfile(fp1: int, fp2: int) -> bool: ...
|
| 77 |
+
def samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...
|
| 78 |
+
def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 79 |
+
def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 80 |
+
def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 81 |
+
|
| 82 |
+
if sys.platform == "win32":
|
| 83 |
+
def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated
|
| 84 |
+
|
| 85 |
+
def walk(path: AnyStr, visit: Callable[[_T, AnyStr, List[AnyStr]], Any], arg: _T) -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/pipes.pyi
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any, AnyStr
|
| 2 |
+
|
| 3 |
+
class Template:
|
| 4 |
+
def __init__(self) -> None: ...
|
| 5 |
+
def reset(self) -> None: ...
|
| 6 |
+
def clone(self) -> Template: ...
|
| 7 |
+
def debug(self, flag: bool) -> None: ...
|
| 8 |
+
def append(self, cmd: str, kind: str) -> None: ...
|
| 9 |
+
def prepend(self, cmd: str, kind: str) -> None: ...
|
| 10 |
+
def open(self, file: str, mode: str) -> IO[Any]: ...
|
| 11 |
+
def copy(self, infile: str, outfile: str) -> None: ...
|
| 12 |
+
|
| 13 |
+
def quote(s: AnyStr) -> AnyStr: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/posixpath.pyi
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
from _typeshed import AnyPath, BytesPath, StrPath
|
| 4 |
+
from genericpath import exists as exists
|
| 5 |
+
from typing import Any, AnyStr, Callable, List, Optional, Sequence, Text, Tuple, TypeVar, overload
|
| 6 |
+
|
| 7 |
+
_T = TypeVar("_T")
|
| 8 |
+
|
| 9 |
+
# ----- os.path variables -----
|
| 10 |
+
supports_unicode_filenames: bool
|
| 11 |
+
# aliases (also in os)
|
| 12 |
+
curdir: str
|
| 13 |
+
pardir: str
|
| 14 |
+
sep: str
|
| 15 |
+
if sys.platform == "win32":
|
| 16 |
+
altsep: str
|
| 17 |
+
else:
|
| 18 |
+
altsep: Optional[str]
|
| 19 |
+
extsep: str
|
| 20 |
+
pathsep: str
|
| 21 |
+
defpath: str
|
| 22 |
+
devnull: str
|
| 23 |
+
|
| 24 |
+
# ----- os.path function stubs -----
|
| 25 |
+
def abspath(path: AnyStr) -> AnyStr: ...
|
| 26 |
+
def basename(p: AnyStr) -> AnyStr: ...
|
| 27 |
+
def dirname(p: AnyStr) -> AnyStr: ...
|
| 28 |
+
def expanduser(path: AnyStr) -> AnyStr: ...
|
| 29 |
+
def expandvars(path: AnyStr) -> AnyStr: ...
|
| 30 |
+
def normcase(s: AnyStr) -> AnyStr: ...
|
| 31 |
+
def normpath(path: AnyStr) -> AnyStr: ...
|
| 32 |
+
|
| 33 |
+
if sys.platform == "win32":
|
| 34 |
+
def realpath(path: AnyStr) -> AnyStr: ...
|
| 35 |
+
|
| 36 |
+
else:
|
| 37 |
+
def realpath(filename: AnyStr) -> AnyStr: ...
|
| 38 |
+
|
| 39 |
+
# NOTE: Empty lists results in '' (str) regardless of contained type.
|
| 40 |
+
# Also, in Python 2 mixed sequences of Text and bytes results in either Text or bytes
|
| 41 |
+
# So, fall back to Any
|
| 42 |
+
def commonprefix(m: Sequence[AnyPath]) -> Any: ...
|
| 43 |
+
def lexists(path: AnyPath) -> bool: ...
|
| 44 |
+
|
| 45 |
+
# These return float if os.stat_float_times() == True,
|
| 46 |
+
# but int is a subclass of float.
|
| 47 |
+
def getatime(filename: AnyPath) -> float: ...
|
| 48 |
+
def getmtime(filename: AnyPath) -> float: ...
|
| 49 |
+
def getctime(filename: AnyPath) -> float: ...
|
| 50 |
+
def getsize(filename: AnyPath) -> int: ...
|
| 51 |
+
def isabs(s: AnyPath) -> bool: ...
|
| 52 |
+
def isfile(path: AnyPath) -> bool: ...
|
| 53 |
+
def isdir(s: AnyPath) -> bool: ...
|
| 54 |
+
def islink(path: AnyPath) -> bool: ...
|
| 55 |
+
def ismount(path: AnyPath) -> bool: ...
|
| 56 |
+
|
| 57 |
+
# Make sure signatures are disjunct, and allow combinations of bytes and unicode.
|
| 58 |
+
# (Since Python 2 allows that, too)
|
| 59 |
+
# Note that e.g. os.path.join("a", "b", "c", "d", u"e") will still result in
|
| 60 |
+
# a type error.
|
| 61 |
+
@overload
|
| 62 |
+
def join(__p1: bytes, *p: bytes) -> bytes: ...
|
| 63 |
+
@overload
|
| 64 |
+
def join(__p1: bytes, __p2: bytes, __p3: bytes, __p4: Text, *p: AnyPath) -> Text: ...
|
| 65 |
+
@overload
|
| 66 |
+
def join(__p1: bytes, __p2: bytes, __p3: Text, *p: AnyPath) -> Text: ...
|
| 67 |
+
@overload
|
| 68 |
+
def join(__p1: bytes, __p2: Text, *p: AnyPath) -> Text: ...
|
| 69 |
+
@overload
|
| 70 |
+
def join(__p1: Text, *p: AnyPath) -> Text: ...
|
| 71 |
+
@overload
|
| 72 |
+
def relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...
|
| 73 |
+
@overload
|
| 74 |
+
def relpath(path: StrPath, start: Optional[StrPath] = ...) -> Text: ...
|
| 75 |
+
def samefile(f1: AnyPath, f2: AnyPath) -> bool: ...
|
| 76 |
+
def sameopenfile(fp1: int, fp2: int) -> bool: ...
|
| 77 |
+
def samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...
|
| 78 |
+
def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 79 |
+
def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 80 |
+
def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
| 81 |
+
|
| 82 |
+
if sys.platform == "win32":
|
| 83 |
+
def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated
|
| 84 |
+
|
| 85 |
+
def walk(path: AnyStr, visit: Callable[[_T, AnyStr, List[AnyStr]], Any], arg: _T) -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/random.pyi
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import _random
|
| 2 |
+
from typing import AbstractSet, Any, Callable, Iterator, List, MutableSequence, Protocol, Sequence, TypeVar, Union, overload
|
| 3 |
+
|
| 4 |
+
_T = TypeVar("_T")
|
| 5 |
+
_T_co = TypeVar("_T_co", covariant=True)
|
| 6 |
+
|
| 7 |
+
class _Sampleable(Protocol[_T_co]):
|
| 8 |
+
def __iter__(self) -> Iterator[_T_co]: ...
|
| 9 |
+
def __len__(self) -> int: ...
|
| 10 |
+
|
| 11 |
+
class Random(_random.Random):
|
| 12 |
+
def __init__(self, x: object = ...) -> None: ...
|
| 13 |
+
def seed(self, x: object = ...) -> None: ...
|
| 14 |
+
def getstate(self) -> _random._State: ...
|
| 15 |
+
def setstate(self, state: _random._State) -> None: ...
|
| 16 |
+
def jumpahead(self, n: int) -> None: ...
|
| 17 |
+
def getrandbits(self, k: int) -> int: ...
|
| 18 |
+
@overload
|
| 19 |
+
def randrange(self, stop: int) -> int: ...
|
| 20 |
+
@overload
|
| 21 |
+
def randrange(self, start: int, stop: int, step: int = ...) -> int: ...
|
| 22 |
+
def randint(self, a: int, b: int) -> int: ...
|
| 23 |
+
def choice(self, seq: Sequence[_T]) -> _T: ...
|
| 24 |
+
def shuffle(self, x: MutableSequence[Any], random: Callable[[], None] = ...) -> None: ...
|
| 25 |
+
def sample(self, population: _Sampleable[_T], k: int) -> List[_T]: ...
|
| 26 |
+
def random(self) -> float: ...
|
| 27 |
+
def uniform(self, a: float, b: float) -> float: ...
|
| 28 |
+
def triangular(self, low: float = ..., high: float = ..., mode: float = ...) -> float: ...
|
| 29 |
+
def betavariate(self, alpha: float, beta: float) -> float: ...
|
| 30 |
+
def expovariate(self, lambd: float) -> float: ...
|
| 31 |
+
def gammavariate(self, alpha: float, beta: float) -> float: ...
|
| 32 |
+
def gauss(self, mu: float, sigma: float) -> float: ...
|
| 33 |
+
def lognormvariate(self, mu: float, sigma: float) -> float: ...
|
| 34 |
+
def normalvariate(self, mu: float, sigma: float) -> float: ...
|
| 35 |
+
def vonmisesvariate(self, mu: float, kappa: float) -> float: ...
|
| 36 |
+
def paretovariate(self, alpha: float) -> float: ...
|
| 37 |
+
def weibullvariate(self, alpha: float, beta: float) -> float: ...
|
| 38 |
+
|
| 39 |
+
# SystemRandom is not implemented for all OS's; good on Windows & Linux
|
| 40 |
+
class SystemRandom(Random): ...
|
| 41 |
+
|
| 42 |
+
# ----- random function stubs -----
|
| 43 |
+
def seed(x: object = ...) -> None: ...
|
| 44 |
+
def getstate() -> object: ...
|
| 45 |
+
def setstate(state: object) -> None: ...
|
| 46 |
+
def jumpahead(n: int) -> None: ...
|
| 47 |
+
def getrandbits(k: int) -> int: ...
|
| 48 |
+
@overload
|
| 49 |
+
def randrange(stop: int) -> int: ...
|
| 50 |
+
@overload
|
| 51 |
+
def randrange(start: int, stop: int, step: int = ...) -> int: ...
|
| 52 |
+
def randint(a: int, b: int) -> int: ...
|
| 53 |
+
def choice(seq: Sequence[_T]) -> _T: ...
|
| 54 |
+
def shuffle(x: MutableSequence[Any], random: Callable[[], float] = ...) -> None: ...
|
| 55 |
+
def sample(population: _Sampleable[_T], k: int) -> List[_T]: ...
|
| 56 |
+
def random() -> float: ...
|
| 57 |
+
def uniform(a: float, b: float) -> float: ...
|
| 58 |
+
def triangular(low: float = ..., high: float = ..., mode: float = ...) -> float: ...
|
| 59 |
+
def betavariate(alpha: float, beta: float) -> float: ...
|
| 60 |
+
def expovariate(lambd: float) -> float: ...
|
| 61 |
+
def gammavariate(alpha: float, beta: float) -> float: ...
|
| 62 |
+
def gauss(mu: float, sigma: float) -> float: ...
|
| 63 |
+
def lognormvariate(mu: float, sigma: float) -> float: ...
|
| 64 |
+
def normalvariate(mu: float, sigma: float) -> float: ...
|
| 65 |
+
def vonmisesvariate(mu: float, kappa: float) -> float: ...
|
| 66 |
+
def paretovariate(alpha: float) -> float: ...
|
| 67 |
+
def weibullvariate(alpha: float, beta: float) -> float: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/resource.pyi
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import NamedTuple, Tuple
|
| 2 |
+
|
| 3 |
+
class error(Exception): ...
|
| 4 |
+
|
| 5 |
+
RLIM_INFINITY: int
|
| 6 |
+
|
| 7 |
+
def getrlimit(resource: int) -> Tuple[int, int]: ...
|
| 8 |
+
def setrlimit(resource: int, limits: Tuple[int, int]) -> None: ...
|
| 9 |
+
|
| 10 |
+
RLIMIT_CORE: int
|
| 11 |
+
RLIMIT_CPU: int
|
| 12 |
+
RLIMIT_FSIZE: int
|
| 13 |
+
RLIMIT_DATA: int
|
| 14 |
+
RLIMIT_STACK: int
|
| 15 |
+
RLIMIT_RSS: int
|
| 16 |
+
RLIMIT_NPROC: int
|
| 17 |
+
RLIMIT_NOFILE: int
|
| 18 |
+
RLIMIT_OFILE: int
|
| 19 |
+
RLIMIT_MEMLOCK: int
|
| 20 |
+
RLIMIT_VMEM: int
|
| 21 |
+
RLIMIT_AS: int
|
| 22 |
+
|
| 23 |
+
class _RUsage(NamedTuple):
|
| 24 |
+
ru_utime: float
|
| 25 |
+
ru_stime: float
|
| 26 |
+
ru_maxrss: int
|
| 27 |
+
ru_ixrss: int
|
| 28 |
+
ru_idrss: int
|
| 29 |
+
ru_isrss: int
|
| 30 |
+
ru_minflt: int
|
| 31 |
+
ru_majflt: int
|
| 32 |
+
ru_nswap: int
|
| 33 |
+
ru_inblock: int
|
| 34 |
+
ru_oublock: int
|
| 35 |
+
ru_msgsnd: int
|
| 36 |
+
ru_msgrcv: int
|
| 37 |
+
ru_nsignals: int
|
| 38 |
+
ru_nvcsw: int
|
| 39 |
+
ru_nivcsw: int
|
| 40 |
+
|
| 41 |
+
def getrusage(who: int) -> _RUsage: ...
|
| 42 |
+
def getpagesize() -> int: ...
|
| 43 |
+
|
| 44 |
+
RUSAGE_SELF: int
|
| 45 |
+
RUSAGE_CHILDREN: int
|
| 46 |
+
RUSAGE_BOTH: int
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/robotparser.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class RobotFileParser:
|
| 2 |
+
def set_url(self, url: str): ...
|
| 3 |
+
def read(self): ...
|
| 4 |
+
def parse(self, lines: str): ...
|
| 5 |
+
def can_fetch(self, user_agent: str, url: str): ...
|
| 6 |
+
def mtime(self): ...
|
| 7 |
+
def modified(self): ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/sets.pyi
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Hashable, Iterable, Iterator, MutableMapping, Optional, TypeVar, Union
|
| 2 |
+
|
| 3 |
+
_T = TypeVar("_T")
|
| 4 |
+
_Setlike = Union[BaseSet[_T], Iterable[_T]]
|
| 5 |
+
_SelfT = TypeVar("_SelfT")
|
| 6 |
+
|
| 7 |
+
class BaseSet(Iterable[_T]):
|
| 8 |
+
def __init__(self) -> None: ...
|
| 9 |
+
def __len__(self) -> int: ...
|
| 10 |
+
def __repr__(self) -> str: ...
|
| 11 |
+
def __str__(self) -> str: ...
|
| 12 |
+
def __iter__(self) -> Iterator[_T]: ...
|
| 13 |
+
def __cmp__(self, other: Any) -> int: ...
|
| 14 |
+
def __eq__(self, other: Any) -> bool: ...
|
| 15 |
+
def __ne__(self, other: Any) -> bool: ...
|
| 16 |
+
def copy(self: _SelfT) -> _SelfT: ...
|
| 17 |
+
def __copy__(self: _SelfT) -> _SelfT: ...
|
| 18 |
+
def __deepcopy__(self: _SelfT, memo: MutableMapping[int, BaseSet[_T]]) -> _SelfT: ...
|
| 19 |
+
def __or__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 20 |
+
def union(self: _SelfT, other: _Setlike[_T]) -> _SelfT: ...
|
| 21 |
+
def __and__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 22 |
+
def intersection(self: _SelfT, other: _Setlike[Any]) -> _SelfT: ...
|
| 23 |
+
def __xor__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 24 |
+
def symmetric_difference(self: _SelfT, other: _Setlike[_T]) -> _SelfT: ...
|
| 25 |
+
def __sub__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 26 |
+
def difference(self: _SelfT, other: _Setlike[Any]) -> _SelfT: ...
|
| 27 |
+
def __contains__(self, element: Any) -> bool: ...
|
| 28 |
+
def issubset(self, other: BaseSet[_T]) -> bool: ...
|
| 29 |
+
def issuperset(self, other: BaseSet[_T]) -> bool: ...
|
| 30 |
+
def __le__(self, other: BaseSet[_T]) -> bool: ...
|
| 31 |
+
def __ge__(self, other: BaseSet[_T]) -> bool: ...
|
| 32 |
+
def __lt__(self, other: BaseSet[_T]) -> bool: ...
|
| 33 |
+
def __gt__(self, other: BaseSet[_T]) -> bool: ...
|
| 34 |
+
|
| 35 |
+
class ImmutableSet(BaseSet[_T], Hashable):
|
| 36 |
+
def __init__(self, iterable: Optional[_Setlike[_T]] = ...) -> None: ...
|
| 37 |
+
def __hash__(self) -> int: ...
|
| 38 |
+
|
| 39 |
+
class Set(BaseSet[_T]):
|
| 40 |
+
def __init__(self, iterable: Optional[_Setlike[_T]] = ...) -> None: ...
|
| 41 |
+
def __ior__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 42 |
+
def union_update(self, other: _Setlike[_T]) -> None: ...
|
| 43 |
+
def __iand__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 44 |
+
def intersection_update(self, other: _Setlike[Any]) -> None: ...
|
| 45 |
+
def __ixor__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 46 |
+
def symmetric_difference_update(self, other: _Setlike[_T]) -> None: ...
|
| 47 |
+
def __isub__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...
|
| 48 |
+
def difference_update(self, other: _Setlike[Any]) -> None: ...
|
| 49 |
+
def update(self, iterable: _Setlike[_T]) -> None: ...
|
| 50 |
+
def clear(self) -> None: ...
|
| 51 |
+
def add(self, element: _T) -> None: ...
|
| 52 |
+
def remove(self, element: _T) -> None: ...
|
| 53 |
+
def discard(self, element: _T) -> None: ...
|
| 54 |
+
def pop(self) -> _T: ...
|
| 55 |
+
def __as_immutable__(self) -> ImmutableSet[_T]: ...
|
| 56 |
+
def __as_temporarily_immutable__(self) -> _TemporarilyImmutableSet[_T]: ...
|
| 57 |
+
|
| 58 |
+
class _TemporarilyImmutableSet(BaseSet[_T]):
|
| 59 |
+
def __init__(self, set: BaseSet[_T]) -> None: ...
|
| 60 |
+
def __hash__(self) -> int: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/shlex.pyi
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any, List, Optional, Text, TypeVar, Union
|
| 2 |
+
|
| 3 |
+
def split(s: Optional[str], comments: bool = ..., posix: bool = ...) -> List[str]: ...
|
| 4 |
+
|
| 5 |
+
_SLT = TypeVar("_SLT", bound=shlex)
|
| 6 |
+
|
| 7 |
+
class shlex:
|
| 8 |
+
def __init__(self, instream: Union[IO[Any], Text] = ..., infile: IO[Any] = ..., posix: bool = ...) -> None: ...
|
| 9 |
+
def __iter__(self: _SLT) -> _SLT: ...
|
| 10 |
+
def next(self) -> str: ...
|
| 11 |
+
def get_token(self) -> Optional[str]: ...
|
| 12 |
+
def push_token(self, _str: str) -> None: ...
|
| 13 |
+
def read_token(self) -> str: ...
|
| 14 |
+
def sourcehook(self, filename: str) -> None: ...
|
| 15 |
+
def push_source(self, stream: IO[Any], filename: str = ...) -> None: ...
|
| 16 |
+
def pop_source(self) -> IO[Any]: ...
|
| 17 |
+
def error_leader(self, file: str = ..., line: int = ...) -> str: ...
|
| 18 |
+
commenters: str
|
| 19 |
+
wordchars: str
|
| 20 |
+
whitespace: str
|
| 21 |
+
escape: str
|
| 22 |
+
quotes: str
|
| 23 |
+
escapedquotes: str
|
| 24 |
+
whitespace_split: bool
|
| 25 |
+
infile: IO[Any]
|
| 26 |
+
source: Optional[str]
|
| 27 |
+
debug: int
|
| 28 |
+
lineno: int
|
| 29 |
+
token: Any
|
| 30 |
+
eof: Optional[str]
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/spwd.pyi
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List, NamedTuple
|
| 2 |
+
|
| 3 |
+
class struct_spwd(NamedTuple):
|
| 4 |
+
sp_nam: str
|
| 5 |
+
sp_pwd: str
|
| 6 |
+
sp_lstchg: int
|
| 7 |
+
sp_min: int
|
| 8 |
+
sp_max: int
|
| 9 |
+
sp_warn: int
|
| 10 |
+
sp_inact: int
|
| 11 |
+
sp_expire: int
|
| 12 |
+
sp_flag: int
|
| 13 |
+
|
| 14 |
+
def getspall() -> List[struct_spwd]: ...
|
| 15 |
+
def getspnam(name: str) -> struct_spwd: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/stringold.pyi
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import AnyStr, Iterable, List, Optional, Type
|
| 2 |
+
|
| 3 |
+
whitespace: str
|
| 4 |
+
lowercase: str
|
| 5 |
+
uppercase: str
|
| 6 |
+
letters: str
|
| 7 |
+
digits: str
|
| 8 |
+
hexdigits: str
|
| 9 |
+
octdigits: str
|
| 10 |
+
_idmap: str
|
| 11 |
+
_idmapL: Optional[List[str]]
|
| 12 |
+
index_error = ValueError
|
| 13 |
+
atoi_error = ValueError
|
| 14 |
+
atof_error = ValueError
|
| 15 |
+
atol_error = ValueError
|
| 16 |
+
|
| 17 |
+
def lower(s: AnyStr) -> AnyStr: ...
|
| 18 |
+
def upper(s: AnyStr) -> AnyStr: ...
|
| 19 |
+
def swapcase(s: AnyStr) -> AnyStr: ...
|
| 20 |
+
def strip(s: AnyStr) -> AnyStr: ...
|
| 21 |
+
def lstrip(s: AnyStr) -> AnyStr: ...
|
| 22 |
+
def rstrip(s: AnyStr) -> AnyStr: ...
|
| 23 |
+
def split(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...
|
| 24 |
+
def splitfields(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...
|
| 25 |
+
def join(words: Iterable[AnyStr], sep: AnyStr = ...) -> AnyStr: ...
|
| 26 |
+
def joinfields(words: Iterable[AnyStr], sep: AnyStr = ...) -> AnyStr: ...
|
| 27 |
+
def index(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 28 |
+
def rindex(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 29 |
+
def count(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 30 |
+
def find(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 31 |
+
def rfind(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
| 32 |
+
def atof(s: unicode) -> float: ...
|
| 33 |
+
def atoi(s: unicode, base: int = ...) -> int: ...
|
| 34 |
+
def atol(s: unicode, base: int = ...) -> long: ...
|
| 35 |
+
def ljust(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...
|
| 36 |
+
def rjust(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...
|
| 37 |
+
def center(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...
|
| 38 |
+
def zfill(s: AnyStr, width: int) -> AnyStr: ...
|
| 39 |
+
def expandtabs(s: AnyStr, tabsize: int = ...) -> AnyStr: ...
|
| 40 |
+
def translate(s: str, table: str, deletions: str = ...) -> str: ...
|
| 41 |
+
def capitalize(s: AnyStr) -> AnyStr: ...
|
| 42 |
+
def capwords(s: AnyStr, sep: AnyStr = ...) -> AnyStr: ...
|
| 43 |
+
def maketrans(fromstr: str, tostr: str) -> str: ...
|
| 44 |
+
def replace(s: AnyStr, old: AnyStr, new: AnyStr, maxreplace: int = ...) -> AnyStr: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/strop.pyi
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List, Sequence
|
| 2 |
+
|
| 3 |
+
lowercase: str
|
| 4 |
+
uppercase: str
|
| 5 |
+
whitespace: str
|
| 6 |
+
|
| 7 |
+
def atof(a: str) -> float: ...
|
| 8 |
+
def atoi(a: str, base: int = ...) -> int: ...
|
| 9 |
+
def atol(a: str, base: int = ...) -> long: ...
|
| 10 |
+
def capitalize(s: str) -> str: ...
|
| 11 |
+
def count(s: str, sub: str, start: int = ..., end: int = ...) -> int: ...
|
| 12 |
+
def expandtabs(string: str, tabsize: int = ...) -> str: ...
|
| 13 |
+
def find(s: str, sub: str, start: int = ..., end: int = ...) -> int: ...
|
| 14 |
+
def join(list: Sequence[str], sep: str = ...) -> str: ...
|
| 15 |
+
def joinfields(list: Sequence[str], sep: str = ...) -> str: ...
|
| 16 |
+
def lower(s: str) -> str: ...
|
| 17 |
+
def lstrip(s: str) -> str: ...
|
| 18 |
+
def maketrans(frm: str, to: str) -> str: ...
|
| 19 |
+
def replace(s: str, old: str, new: str, maxsplit: int = ...) -> str: ...
|
| 20 |
+
def rfind(s: str, sub: str, start: int = ..., end: int = ...) -> int: ...
|
| 21 |
+
def rstrip(s: str) -> str: ...
|
| 22 |
+
def split(s: str, sep: str, maxsplit: int = ...) -> List[str]: ...
|
| 23 |
+
def splitfields(s: str, sep: str, maxsplit: int = ...) -> List[str]: ...
|
| 24 |
+
def strip(s: str) -> str: ...
|
| 25 |
+
def swapcase(s: str) -> str: ...
|
| 26 |
+
def translate(s: str, table: str, deletechars: str = ...) -> str: ...
|
| 27 |
+
def upper(s: str) -> str: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/symbol.pyi
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Dict
|
| 2 |
+
|
| 3 |
+
single_input: int
|
| 4 |
+
file_input: int
|
| 5 |
+
eval_input: int
|
| 6 |
+
decorator: int
|
| 7 |
+
decorators: int
|
| 8 |
+
decorated: int
|
| 9 |
+
funcdef: int
|
| 10 |
+
parameters: int
|
| 11 |
+
varargslist: int
|
| 12 |
+
fpdef: int
|
| 13 |
+
fplist: int
|
| 14 |
+
stmt: int
|
| 15 |
+
simple_stmt: int
|
| 16 |
+
small_stmt: int
|
| 17 |
+
expr_stmt: int
|
| 18 |
+
augassign: int
|
| 19 |
+
print_stmt: int
|
| 20 |
+
del_stmt: int
|
| 21 |
+
pass_stmt: int
|
| 22 |
+
flow_stmt: int
|
| 23 |
+
break_stmt: int
|
| 24 |
+
continue_stmt: int
|
| 25 |
+
return_stmt: int
|
| 26 |
+
yield_stmt: int
|
| 27 |
+
raise_stmt: int
|
| 28 |
+
import_stmt: int
|
| 29 |
+
import_name: int
|
| 30 |
+
import_from: int
|
| 31 |
+
import_as_name: int
|
| 32 |
+
dotted_as_name: int
|
| 33 |
+
import_as_names: int
|
| 34 |
+
dotted_as_names: int
|
| 35 |
+
dotted_name: int
|
| 36 |
+
global_stmt: int
|
| 37 |
+
exec_stmt: int
|
| 38 |
+
assert_stmt: int
|
| 39 |
+
compound_stmt: int
|
| 40 |
+
if_stmt: int
|
| 41 |
+
while_stmt: int
|
| 42 |
+
for_stmt: int
|
| 43 |
+
try_stmt: int
|
| 44 |
+
with_stmt: int
|
| 45 |
+
with_item: int
|
| 46 |
+
except_clause: int
|
| 47 |
+
suite: int
|
| 48 |
+
testlist_safe: int
|
| 49 |
+
old_test: int
|
| 50 |
+
old_lambdef: int
|
| 51 |
+
test: int
|
| 52 |
+
or_test: int
|
| 53 |
+
and_test: int
|
| 54 |
+
not_test: int
|
| 55 |
+
comparison: int
|
| 56 |
+
comp_op: int
|
| 57 |
+
expr: int
|
| 58 |
+
xor_expr: int
|
| 59 |
+
and_expr: int
|
| 60 |
+
shift_expr: int
|
| 61 |
+
arith_expr: int
|
| 62 |
+
term: int
|
| 63 |
+
factor: int
|
| 64 |
+
power: int
|
| 65 |
+
atom: int
|
| 66 |
+
listmaker: int
|
| 67 |
+
testlist_comp: int
|
| 68 |
+
lambdef: int
|
| 69 |
+
trailer: int
|
| 70 |
+
subscriptlist: int
|
| 71 |
+
subscript: int
|
| 72 |
+
sliceop: int
|
| 73 |
+
exprlist: int
|
| 74 |
+
testlist: int
|
| 75 |
+
dictorsetmaker: int
|
| 76 |
+
classdef: int
|
| 77 |
+
arglist: int
|
| 78 |
+
argument: int
|
| 79 |
+
list_iter: int
|
| 80 |
+
list_for: int
|
| 81 |
+
list_if: int
|
| 82 |
+
comp_iter: int
|
| 83 |
+
comp_for: int
|
| 84 |
+
comp_if: int
|
| 85 |
+
testlist1: int
|
| 86 |
+
encoding_decl: int
|
| 87 |
+
yield_expr: int
|
| 88 |
+
|
| 89 |
+
sym_name: Dict[int, str]
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/toaiff.pyi
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pipes import Template
|
| 2 |
+
from typing import Dict, List
|
| 3 |
+
|
| 4 |
+
table: Dict[str, Template]
|
| 5 |
+
t: Template
|
| 6 |
+
uncompress: Template
|
| 7 |
+
|
| 8 |
+
class error(Exception): ...
|
| 9 |
+
|
| 10 |
+
def toaiff(filename: str) -> str: ...
|
| 11 |
+
def _toaiff(filename: str, temps: List[str]) -> str: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/unittest.pyi
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import datetime
|
| 2 |
+
import types
|
| 3 |
+
from abc import ABCMeta, abstractmethod
|
| 4 |
+
from typing import (
|
| 5 |
+
Any,
|
| 6 |
+
Callable,
|
| 7 |
+
Dict,
|
| 8 |
+
FrozenSet,
|
| 9 |
+
Iterable,
|
| 10 |
+
Iterator,
|
| 11 |
+
List,
|
| 12 |
+
Mapping,
|
| 13 |
+
NoReturn,
|
| 14 |
+
Optional,
|
| 15 |
+
Pattern,
|
| 16 |
+
Sequence,
|
| 17 |
+
Set,
|
| 18 |
+
Text,
|
| 19 |
+
TextIO,
|
| 20 |
+
Tuple,
|
| 21 |
+
Type,
|
| 22 |
+
TypeVar,
|
| 23 |
+
Union,
|
| 24 |
+
overload,
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
_T = TypeVar("_T")
|
| 28 |
+
_FT = TypeVar("_FT")
|
| 29 |
+
|
| 30 |
+
_ExceptionType = Union[Type[BaseException], Tuple[Type[BaseException], ...]]
|
| 31 |
+
_Regexp = Union[Text, Pattern[Text]]
|
| 32 |
+
|
| 33 |
+
_SysExcInfoType = Union[Tuple[Type[BaseException], BaseException, types.TracebackType], Tuple[None, None, None]]
|
| 34 |
+
|
| 35 |
+
class Testable(metaclass=ABCMeta):
|
| 36 |
+
@abstractmethod
|
| 37 |
+
def run(self, result: TestResult) -> None: ...
|
| 38 |
+
@abstractmethod
|
| 39 |
+
def debug(self) -> None: ...
|
| 40 |
+
@abstractmethod
|
| 41 |
+
def countTestCases(self) -> int: ...
|
| 42 |
+
|
| 43 |
+
# TODO ABC for test runners?
|
| 44 |
+
|
| 45 |
+
class TestResult:
|
| 46 |
+
errors: List[Tuple[TestCase, str]]
|
| 47 |
+
failures: List[Tuple[TestCase, str]]
|
| 48 |
+
skipped: List[Tuple[TestCase, str]]
|
| 49 |
+
expectedFailures: List[Tuple[TestCase, str]]
|
| 50 |
+
unexpectedSuccesses: List[TestCase]
|
| 51 |
+
shouldStop: bool
|
| 52 |
+
testsRun: int
|
| 53 |
+
buffer: bool
|
| 54 |
+
failfast: bool
|
| 55 |
+
def wasSuccessful(self) -> bool: ...
|
| 56 |
+
def stop(self) -> None: ...
|
| 57 |
+
def startTest(self, test: TestCase) -> None: ...
|
| 58 |
+
def stopTest(self, test: TestCase) -> None: ...
|
| 59 |
+
def startTestRun(self) -> None: ...
|
| 60 |
+
def stopTestRun(self) -> None: ...
|
| 61 |
+
def addError(self, test: TestCase, err: _SysExcInfoType) -> None: ...
|
| 62 |
+
def addFailure(self, test: TestCase, err: _SysExcInfoType) -> None: ...
|
| 63 |
+
def addSuccess(self, test: TestCase) -> None: ...
|
| 64 |
+
def addSkip(self, test: TestCase, reason: str) -> None: ...
|
| 65 |
+
def addExpectedFailure(self, test: TestCase, err: str) -> None: ...
|
| 66 |
+
def addUnexpectedSuccess(self, test: TestCase) -> None: ...
|
| 67 |
+
|
| 68 |
+
class _AssertRaisesBaseContext:
|
| 69 |
+
expected: Any
|
| 70 |
+
failureException: Type[BaseException]
|
| 71 |
+
obj_name: str
|
| 72 |
+
expected_regex: Pattern[str]
|
| 73 |
+
|
| 74 |
+
class _AssertRaisesContext(_AssertRaisesBaseContext):
|
| 75 |
+
exception: Any
|
| 76 |
+
def __enter__(self) -> _AssertRaisesContext: ...
|
| 77 |
+
def __exit__(self, exc_type, exc_value, tb) -> bool: ...
|
| 78 |
+
|
| 79 |
+
class TestCase(Testable):
|
| 80 |
+
failureException: Type[BaseException]
|
| 81 |
+
longMessage: bool
|
| 82 |
+
maxDiff: Optional[int]
|
| 83 |
+
# undocumented
|
| 84 |
+
_testMethodName: str
|
| 85 |
+
def __init__(self, methodName: str = ...) -> None: ...
|
| 86 |
+
def setUp(self) -> None: ...
|
| 87 |
+
def tearDown(self) -> None: ...
|
| 88 |
+
@classmethod
|
| 89 |
+
def setUpClass(cls) -> None: ...
|
| 90 |
+
@classmethod
|
| 91 |
+
def tearDownClass(cls) -> None: ...
|
| 92 |
+
def run(self, result: TestResult = ...) -> None: ...
|
| 93 |
+
def debug(self) -> None: ...
|
| 94 |
+
def assert_(self, expr: Any, msg: object = ...) -> None: ...
|
| 95 |
+
def failUnless(self, expr: Any, msg: object = ...) -> None: ...
|
| 96 |
+
def assertTrue(self, expr: Any, msg: object = ...) -> None: ...
|
| 97 |
+
def assertEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...
|
| 98 |
+
def assertEquals(self, first: Any, second: Any, msg: object = ...) -> None: ...
|
| 99 |
+
def failUnlessEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...
|
| 100 |
+
def assertNotEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...
|
| 101 |
+
def assertNotEquals(self, first: Any, second: Any, msg: object = ...) -> None: ...
|
| 102 |
+
def failIfEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...
|
| 103 |
+
@overload
|
| 104 |
+
def assertAlmostEqual(self, first: float, second: float, places: int = ..., msg: Any = ...) -> None: ...
|
| 105 |
+
@overload
|
| 106 |
+
def assertAlmostEqual(self, first: float, second: float, *, msg: Any = ..., delta: float = ...) -> None: ...
|
| 107 |
+
@overload
|
| 108 |
+
def assertAlmostEqual(
|
| 109 |
+
self, first: datetime.datetime, second: datetime.datetime, *, msg: Any = ..., delta: datetime.timedelta = ...
|
| 110 |
+
) -> None: ...
|
| 111 |
+
@overload
|
| 112 |
+
def assertAlmostEquals(self, first: float, second: float, places: int = ..., msg: Any = ...) -> None: ...
|
| 113 |
+
@overload
|
| 114 |
+
def assertAlmostEquals(self, first: float, second: float, *, msg: Any = ..., delta: float = ...) -> None: ...
|
| 115 |
+
@overload
|
| 116 |
+
def assertAlmostEquals(
|
| 117 |
+
self, first: datetime.datetime, second: datetime.datetime, *, msg: Any = ..., delta: datetime.timedelta = ...
|
| 118 |
+
) -> None: ...
|
| 119 |
+
def failUnlessAlmostEqual(self, first: float, second: float, places: int = ..., msg: object = ...) -> None: ...
|
| 120 |
+
@overload
|
| 121 |
+
def assertNotAlmostEqual(self, first: float, second: float, places: int = ..., msg: Any = ...) -> None: ...
|
| 122 |
+
@overload
|
| 123 |
+
def assertNotAlmostEqual(self, first: float, second: float, *, msg: Any = ..., delta: float = ...) -> None: ...
|
| 124 |
+
@overload
|
| 125 |
+
def assertNotAlmostEqual(
|
| 126 |
+
self, first: datetime.datetime, second: datetime.datetime, *, msg: Any = ..., delta: datetime.timedelta = ...
|
| 127 |
+
) -> None: ...
|
| 128 |
+
@overload
|
| 129 |
+
def assertNotAlmostEquals(self, first: float, second: float, places: int = ..., msg: Any = ...) -> None: ...
|
| 130 |
+
@overload
|
| 131 |
+
def assertNotAlmostEquals(self, first: float, second: float, *, msg: Any = ..., delta: float = ...) -> None: ...
|
| 132 |
+
@overload
|
| 133 |
+
def assertNotAlmostEquals(
|
| 134 |
+
self, first: datetime.datetime, second: datetime.datetime, *, msg: Any = ..., delta: datetime.timedelta = ...
|
| 135 |
+
) -> None: ...
|
| 136 |
+
def failIfAlmostEqual(
|
| 137 |
+
self, first: float, second: float, places: int = ..., msg: object = ..., delta: float = ...
|
| 138 |
+
) -> None: ...
|
| 139 |
+
def assertGreater(self, first: Any, second: Any, msg: object = ...) -> None: ...
|
| 140 |
+
def assertGreaterEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...
|
| 141 |
+
def assertMultiLineEqual(self, first: str, second: str, msg: object = ...) -> None: ...
|
| 142 |
+
def assertSequenceEqual(
|
| 143 |
+
self, first: Sequence[Any], second: Sequence[Any], msg: object = ..., seq_type: type = ...
|
| 144 |
+
) -> None: ...
|
| 145 |
+
def assertListEqual(self, first: List[Any], second: List[Any], msg: object = ...) -> None: ...
|
| 146 |
+
def assertTupleEqual(self, first: Tuple[Any, ...], second: Tuple[Any, ...], msg: object = ...) -> None: ...
|
| 147 |
+
def assertSetEqual(
|
| 148 |
+
self, first: Union[Set[Any], FrozenSet[Any]], second: Union[Set[Any], FrozenSet[Any]], msg: object = ...
|
| 149 |
+
) -> None: ...
|
| 150 |
+
def assertDictEqual(self, first: Dict[Any, Any], second: Dict[Any, Any], msg: object = ...) -> None: ...
|
| 151 |
+
def assertLess(self, first: Any, second: Any, msg: object = ...) -> None: ...
|
| 152 |
+
def assertLessEqual(self, first: Any, second: Any, msg: object = ...) -> None: ...
|
| 153 |
+
@overload
|
| 154 |
+
def assertRaises(self, exception: _ExceptionType, callable: Callable[..., Any], *args: Any, **kwargs: Any) -> None: ...
|
| 155 |
+
@overload
|
| 156 |
+
def assertRaises(self, exception: _ExceptionType) -> _AssertRaisesContext: ...
|
| 157 |
+
@overload
|
| 158 |
+
def assertRaisesRegexp(
|
| 159 |
+
self, exception: _ExceptionType, regexp: _Regexp, callable: Callable[..., Any], *args: Any, **kwargs: Any
|
| 160 |
+
) -> None: ...
|
| 161 |
+
@overload
|
| 162 |
+
def assertRaisesRegexp(self, exception: _ExceptionType, regexp: _Regexp) -> _AssertRaisesContext: ...
|
| 163 |
+
def assertRegexpMatches(self, text: Text, regexp: _Regexp, msg: object = ...) -> None: ...
|
| 164 |
+
def assertNotRegexpMatches(self, text: Text, regexp: _Regexp, msg: object = ...) -> None: ...
|
| 165 |
+
def assertItemsEqual(self, first: Iterable[Any], second: Iterable[Any], msg: object = ...) -> None: ...
|
| 166 |
+
def assertDictContainsSubset(self, expected: Mapping[Any, Any], actual: Mapping[Any, Any], msg: object = ...) -> None: ...
|
| 167 |
+
def addTypeEqualityFunc(self, typeobj: type, function: Callable[..., None]) -> None: ...
|
| 168 |
+
@overload
|
| 169 |
+
def failUnlessRaises(self, exception: _ExceptionType, callable: Callable[..., Any], *args: Any, **kwargs: Any) -> None: ...
|
| 170 |
+
@overload
|
| 171 |
+
def failUnlessRaises(self, exception: _ExceptionType) -> _AssertRaisesContext: ...
|
| 172 |
+
def failIf(self, expr: Any, msg: object = ...) -> None: ...
|
| 173 |
+
def assertFalse(self, expr: Any, msg: object = ...) -> None: ...
|
| 174 |
+
def assertIs(self, first: object, second: object, msg: object = ...) -> None: ...
|
| 175 |
+
def assertIsNot(self, first: object, second: object, msg: object = ...) -> None: ...
|
| 176 |
+
def assertIsNone(self, expr: Any, msg: object = ...) -> None: ...
|
| 177 |
+
def assertIsNotNone(self, expr: Any, msg: object = ...) -> None: ...
|
| 178 |
+
def assertIn(self, first: _T, second: Iterable[_T], msg: object = ...) -> None: ...
|
| 179 |
+
def assertNotIn(self, first: _T, second: Iterable[_T], msg: object = ...) -> None: ...
|
| 180 |
+
def assertIsInstance(self, obj: Any, cls: Union[type, Tuple[type, ...]], msg: object = ...) -> None: ...
|
| 181 |
+
def assertNotIsInstance(self, obj: Any, cls: Union[type, Tuple[type, ...]], msg: object = ...) -> None: ...
|
| 182 |
+
def fail(self, msg: object = ...) -> NoReturn: ...
|
| 183 |
+
def countTestCases(self) -> int: ...
|
| 184 |
+
def defaultTestResult(self) -> TestResult: ...
|
| 185 |
+
def id(self) -> str: ...
|
| 186 |
+
def shortDescription(self) -> str: ... # May return None
|
| 187 |
+
def addCleanup(self, function: Any, *args: Any, **kwargs: Any) -> None: ...
|
| 188 |
+
def doCleanups(self) -> bool: ...
|
| 189 |
+
def skipTest(self, reason: Any) -> None: ...
|
| 190 |
+
def _formatMessage(self, msg: Optional[Text], standardMsg: Text) -> str: ... # undocumented
|
| 191 |
+
def _getAssertEqualityFunc(self, first: Any, second: Any) -> Callable[..., None]: ... # undocumented
|
| 192 |
+
|
| 193 |
+
class FunctionTestCase(TestCase):
|
| 194 |
+
def __init__(
|
| 195 |
+
self,
|
| 196 |
+
testFunc: Callable[[], None],
|
| 197 |
+
setUp: Optional[Callable[[], None]] = ...,
|
| 198 |
+
tearDown: Optional[Callable[[], None]] = ...,
|
| 199 |
+
description: Optional[str] = ...,
|
| 200 |
+
) -> None: ...
|
| 201 |
+
def debug(self) -> None: ...
|
| 202 |
+
def countTestCases(self) -> int: ...
|
| 203 |
+
|
| 204 |
+
class TestSuite(Testable):
|
| 205 |
+
def __init__(self, tests: Iterable[Testable] = ...) -> None: ...
|
| 206 |
+
def addTest(self, test: Testable) -> None: ...
|
| 207 |
+
def addTests(self, tests: Iterable[Testable]) -> None: ...
|
| 208 |
+
def run(self, result: TestResult) -> None: ...
|
| 209 |
+
def debug(self) -> None: ...
|
| 210 |
+
def countTestCases(self) -> int: ...
|
| 211 |
+
def __iter__(self) -> Iterator[Testable]: ...
|
| 212 |
+
|
| 213 |
+
class TestLoader:
|
| 214 |
+
testMethodPrefix: str
|
| 215 |
+
sortTestMethodsUsing: Optional[Callable[[str, str], int]]
|
| 216 |
+
suiteClass: Callable[[List[TestCase]], TestSuite]
|
| 217 |
+
def loadTestsFromTestCase(self, testCaseClass: Type[TestCase]) -> TestSuite: ...
|
| 218 |
+
def loadTestsFromModule(self, module: types.ModuleType = ..., use_load_tests: bool = ...) -> TestSuite: ...
|
| 219 |
+
def loadTestsFromName(self, name: str = ..., module: Optional[types.ModuleType] = ...) -> TestSuite: ...
|
| 220 |
+
def loadTestsFromNames(self, names: List[str] = ..., module: Optional[types.ModuleType] = ...) -> TestSuite: ...
|
| 221 |
+
def discover(self, start_dir: str, pattern: str = ..., top_level_dir: Optional[str] = ...) -> TestSuite: ...
|
| 222 |
+
def getTestCaseNames(self, testCaseClass: Type[TestCase] = ...) -> List[str]: ...
|
| 223 |
+
|
| 224 |
+
defaultTestLoader: TestLoader
|
| 225 |
+
|
| 226 |
+
class TextTestResult(TestResult):
|
| 227 |
+
def __init__(self, stream: TextIO, descriptions: bool, verbosity: int) -> None: ...
|
| 228 |
+
def getDescription(self, test: TestCase) -> str: ... # undocumented
|
| 229 |
+
def printErrors(self) -> None: ... # undocumented
|
| 230 |
+
def printErrorList(self, flavour: str, errors: List[Tuple[TestCase, str]]) -> None: ... # undocumented
|
| 231 |
+
|
| 232 |
+
class TextTestRunner:
|
| 233 |
+
def __init__(
|
| 234 |
+
self,
|
| 235 |
+
stream: Optional[TextIO] = ...,
|
| 236 |
+
descriptions: bool = ...,
|
| 237 |
+
verbosity: int = ...,
|
| 238 |
+
failfast: bool = ...,
|
| 239 |
+
buffer: bool = ...,
|
| 240 |
+
resultclass: Optional[Type[TestResult]] = ...,
|
| 241 |
+
) -> None: ...
|
| 242 |
+
def _makeResult(self) -> TestResult: ...
|
| 243 |
+
def run(self, test: Testable) -> TestResult: ... # undocumented
|
| 244 |
+
|
| 245 |
+
class SkipTest(Exception): ...
|
| 246 |
+
|
| 247 |
+
# TODO precise types
|
| 248 |
+
def skipUnless(condition: Any, reason: Union[str, unicode]) -> Any: ...
|
| 249 |
+
def skipIf(condition: Any, reason: Union[str, unicode]) -> Any: ...
|
| 250 |
+
def expectedFailure(func: _FT) -> _FT: ...
|
| 251 |
+
def skip(reason: Union[str, unicode]) -> Any: ...
|
| 252 |
+
|
| 253 |
+
# not really documented
|
| 254 |
+
class TestProgram:
|
| 255 |
+
result: TestResult
|
| 256 |
+
def runTests(self) -> None: ... # undocumented
|
| 257 |
+
|
| 258 |
+
def main(
|
| 259 |
+
module: Union[None, Text, types.ModuleType] = ...,
|
| 260 |
+
defaultTest: Optional[str] = ...,
|
| 261 |
+
argv: Optional[Sequence[str]] = ...,
|
| 262 |
+
testRunner: Union[Type[TextTestRunner], TextTestRunner, None] = ...,
|
| 263 |
+
testLoader: TestLoader = ...,
|
| 264 |
+
exit: bool = ...,
|
| 265 |
+
verbosity: int = ...,
|
| 266 |
+
failfast: Optional[bool] = ...,
|
| 267 |
+
catchbreak: Optional[bool] = ...,
|
| 268 |
+
buffer: Optional[bool] = ...,
|
| 269 |
+
) -> TestProgram: ...
|
| 270 |
+
def load_tests(loader: TestLoader, tests: TestSuite, pattern: Optional[Text]) -> TestSuite: ...
|
| 271 |
+
def installHandler() -> None: ...
|
| 272 |
+
def registerResult(result: TestResult) -> None: ...
|
| 273 |
+
def removeResult(result: TestResult) -> bool: ...
|
| 274 |
+
@overload
|
| 275 |
+
def removeHandler() -> None: ...
|
| 276 |
+
@overload
|
| 277 |
+
def removeHandler(function: Callable[..., Any]) -> Callable[..., Any]: ...
|
| 278 |
+
|
| 279 |
+
# private but occasionally used
|
| 280 |
+
util: types.ModuleType
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/urllib2.pyi
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ssl
|
| 2 |
+
from httplib import HTTPConnectionProtocol, HTTPResponse
|
| 3 |
+
from typing import Any, AnyStr, Callable, Dict, List, Mapping, Optional, Sequence, Text, Tuple, Type, Union
|
| 4 |
+
from urllib import addinfourl
|
| 5 |
+
|
| 6 |
+
_string = Union[str, unicode]
|
| 7 |
+
|
| 8 |
+
class URLError(IOError):
|
| 9 |
+
reason: Union[str, BaseException]
|
| 10 |
+
|
| 11 |
+
class HTTPError(URLError, addinfourl):
|
| 12 |
+
code: int
|
| 13 |
+
headers: Mapping[str, str]
|
| 14 |
+
def __init__(self, url, code: int, msg: str, hdrs: Mapping[str, str], fp: addinfourl) -> None: ...
|
| 15 |
+
|
| 16 |
+
class Request(object):
|
| 17 |
+
host: str
|
| 18 |
+
port: str
|
| 19 |
+
data: str
|
| 20 |
+
headers: Dict[str, str]
|
| 21 |
+
unverifiable: bool
|
| 22 |
+
type: Optional[str]
|
| 23 |
+
origin_req_host = ...
|
| 24 |
+
unredirected_hdrs: Dict[str, str]
|
| 25 |
+
def __init__(
|
| 26 |
+
self,
|
| 27 |
+
url: str,
|
| 28 |
+
data: Optional[str] = ...,
|
| 29 |
+
headers: Dict[str, str] = ...,
|
| 30 |
+
origin_req_host: Optional[str] = ...,
|
| 31 |
+
unverifiable: bool = ...,
|
| 32 |
+
) -> None: ...
|
| 33 |
+
def __getattr__(self, attr): ...
|
| 34 |
+
def get_method(self) -> str: ...
|
| 35 |
+
def add_data(self, data) -> None: ...
|
| 36 |
+
def has_data(self) -> bool: ...
|
| 37 |
+
def get_data(self) -> str: ...
|
| 38 |
+
def get_full_url(self) -> str: ...
|
| 39 |
+
def get_type(self): ...
|
| 40 |
+
def get_host(self) -> str: ...
|
| 41 |
+
def get_selector(self): ...
|
| 42 |
+
def set_proxy(self, host, type) -> None: ...
|
| 43 |
+
def has_proxy(self) -> bool: ...
|
| 44 |
+
def get_origin_req_host(self) -> str: ...
|
| 45 |
+
def is_unverifiable(self) -> bool: ...
|
| 46 |
+
def add_header(self, key: str, val: str) -> None: ...
|
| 47 |
+
def add_unredirected_header(self, key: str, val: str) -> None: ...
|
| 48 |
+
def has_header(self, header_name: str) -> bool: ...
|
| 49 |
+
def get_header(self, header_name: str, default: Optional[str] = ...) -> str: ...
|
| 50 |
+
def header_items(self): ...
|
| 51 |
+
|
| 52 |
+
class OpenerDirector(object):
|
| 53 |
+
addheaders: List[Tuple[str, str]]
|
| 54 |
+
def add_handler(self, handler: BaseHandler) -> None: ...
|
| 55 |
+
def open(
|
| 56 |
+
self, fullurl: Union[Request, _string], data: Optional[_string] = ..., timeout: Optional[float] = ...
|
| 57 |
+
) -> Optional[addinfourl]: ...
|
| 58 |
+
def error(self, proto: _string, *args: Any): ...
|
| 59 |
+
|
| 60 |
+
# Note that this type is somewhat a lie. The return *can* be None if
|
| 61 |
+
# a custom opener has been installed that fails to handle the request.
|
| 62 |
+
def urlopen(
|
| 63 |
+
url: Union[Request, _string],
|
| 64 |
+
data: Optional[_string] = ...,
|
| 65 |
+
timeout: Optional[float] = ...,
|
| 66 |
+
cafile: Optional[_string] = ...,
|
| 67 |
+
capath: Optional[_string] = ...,
|
| 68 |
+
cadefault: bool = ...,
|
| 69 |
+
context: Optional[ssl.SSLContext] = ...,
|
| 70 |
+
) -> addinfourl: ...
|
| 71 |
+
def install_opener(opener: OpenerDirector) -> None: ...
|
| 72 |
+
def build_opener(*handlers: Union[BaseHandler, Type[BaseHandler]]) -> OpenerDirector: ...
|
| 73 |
+
|
| 74 |
+
class BaseHandler:
|
| 75 |
+
handler_order: int
|
| 76 |
+
parent: OpenerDirector
|
| 77 |
+
def add_parent(self, parent: OpenerDirector) -> None: ...
|
| 78 |
+
def close(self) -> None: ...
|
| 79 |
+
def __lt__(self, other: Any) -> bool: ...
|
| 80 |
+
|
| 81 |
+
class HTTPErrorProcessor(BaseHandler):
|
| 82 |
+
def http_response(self, request, response): ...
|
| 83 |
+
|
| 84 |
+
class HTTPDefaultErrorHandler(BaseHandler):
|
| 85 |
+
def http_error_default(self, req: Request, fp: addinfourl, code: int, msg: str, hdrs: Mapping[str, str]): ...
|
| 86 |
+
|
| 87 |
+
class HTTPRedirectHandler(BaseHandler):
|
| 88 |
+
max_repeats: int
|
| 89 |
+
max_redirections: int
|
| 90 |
+
def redirect_request(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str], newurl): ...
|
| 91 |
+
def http_error_301(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 92 |
+
def http_error_302(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 93 |
+
def http_error_303(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 94 |
+
def http_error_307(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 95 |
+
inf_msg: str
|
| 96 |
+
|
| 97 |
+
class ProxyHandler(BaseHandler):
|
| 98 |
+
proxies: Mapping[str, str]
|
| 99 |
+
def __init__(self, proxies: Optional[Mapping[str, str]] = ...): ...
|
| 100 |
+
def proxy_open(self, req: Request, proxy, type): ...
|
| 101 |
+
|
| 102 |
+
class HTTPPasswordMgr:
|
| 103 |
+
def __init__(self) -> None: ...
|
| 104 |
+
def add_password(self, realm: Optional[Text], uri: Union[Text, Sequence[Text]], user: Text, passwd: Text) -> None: ...
|
| 105 |
+
def find_user_password(self, realm: Optional[Text], authuri: Text) -> Tuple[Any, Any]: ...
|
| 106 |
+
def reduce_uri(self, uri: _string, default_port: bool = ...) -> Tuple[Any, Any]: ...
|
| 107 |
+
def is_suburi(self, base: _string, test: _string) -> bool: ...
|
| 108 |
+
|
| 109 |
+
class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr): ...
|
| 110 |
+
|
| 111 |
+
class AbstractBasicAuthHandler:
|
| 112 |
+
def __init__(self, password_mgr: Optional[HTTPPasswordMgr] = ...) -> None: ...
|
| 113 |
+
def add_password(self, realm: Optional[Text], uri: Union[Text, Sequence[Text]], user: Text, passwd: Text) -> None: ...
|
| 114 |
+
def http_error_auth_reqed(self, authreq, host, req: Request, headers: Mapping[str, str]): ...
|
| 115 |
+
def retry_http_basic_auth(self, host, req: Request, realm): ...
|
| 116 |
+
|
| 117 |
+
class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
|
| 118 |
+
auth_header: str
|
| 119 |
+
def http_error_401(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 120 |
+
|
| 121 |
+
class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
|
| 122 |
+
auth_header: str
|
| 123 |
+
def http_error_407(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 124 |
+
|
| 125 |
+
class AbstractDigestAuthHandler:
|
| 126 |
+
def __init__(self, passwd: Optional[HTTPPasswordMgr] = ...) -> None: ...
|
| 127 |
+
def add_password(self, realm: Optional[Text], uri: Union[Text, Sequence[Text]], user: Text, passwd: Text) -> None: ...
|
| 128 |
+
def reset_retry_count(self) -> None: ...
|
| 129 |
+
def http_error_auth_reqed(self, auth_header: str, host: str, req: Request, headers: Mapping[str, str]) -> None: ...
|
| 130 |
+
def retry_http_digest_auth(self, req: Request, auth: str) -> Optional[HTTPResponse]: ...
|
| 131 |
+
def get_cnonce(self, nonce: str) -> str: ...
|
| 132 |
+
def get_authorization(self, req: Request, chal: Mapping[str, str]) -> str: ...
|
| 133 |
+
def get_algorithm_impls(self, algorithm: str) -> Tuple[Callable[[str], str], Callable[[str, str], str]]: ...
|
| 134 |
+
def get_entity_digest(self, data: Optional[bytes], chal: Mapping[str, str]) -> Optional[str]: ...
|
| 135 |
+
|
| 136 |
+
class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
|
| 137 |
+
auth_header: str
|
| 138 |
+
handler_order: int
|
| 139 |
+
def http_error_401(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 140 |
+
|
| 141 |
+
class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
|
| 142 |
+
auth_header: str
|
| 143 |
+
handler_order: int
|
| 144 |
+
def http_error_407(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
|
| 145 |
+
|
| 146 |
+
class AbstractHTTPHandler(BaseHandler): # undocumented
|
| 147 |
+
def __init__(self, debuglevel: int = ...) -> None: ...
|
| 148 |
+
def set_http_debuglevel(self, level: int) -> None: ...
|
| 149 |
+
def do_request_(self, request: Request) -> Request: ...
|
| 150 |
+
def do_open(self, http_class: HTTPConnectionProtocol, req: Request, **http_conn_args: Optional[Any]) -> addinfourl: ...
|
| 151 |
+
|
| 152 |
+
class HTTPHandler(AbstractHTTPHandler):
|
| 153 |
+
def http_open(self, req: Request) -> addinfourl: ...
|
| 154 |
+
def http_request(self, request: Request) -> Request: ... # undocumented
|
| 155 |
+
|
| 156 |
+
class HTTPSHandler(AbstractHTTPHandler):
|
| 157 |
+
def __init__(self, debuglevel: int = ..., context: Optional[ssl.SSLContext] = ...) -> None: ...
|
| 158 |
+
def https_open(self, req: Request) -> addinfourl: ...
|
| 159 |
+
def https_request(self, request: Request) -> Request: ... # undocumented
|
| 160 |
+
|
| 161 |
+
class HTTPCookieProcessor(BaseHandler):
|
| 162 |
+
def __init__(self, cookiejar: Optional[Any] = ...): ...
|
| 163 |
+
def http_request(self, request: Request): ...
|
| 164 |
+
def http_response(self, request: Request, response): ...
|
| 165 |
+
|
| 166 |
+
class UnknownHandler(BaseHandler):
|
| 167 |
+
def unknown_open(self, req: Request): ...
|
| 168 |
+
|
| 169 |
+
class FileHandler(BaseHandler):
|
| 170 |
+
def file_open(self, req: Request): ...
|
| 171 |
+
def get_names(self): ...
|
| 172 |
+
def open_local_file(self, req: Request): ...
|
| 173 |
+
|
| 174 |
+
class FTPHandler(BaseHandler):
|
| 175 |
+
def ftp_open(self, req: Request): ...
|
| 176 |
+
def connect_ftp(self, user, passwd, host, port, dirs, timeout): ...
|
| 177 |
+
|
| 178 |
+
class CacheFTPHandler(FTPHandler):
|
| 179 |
+
def __init__(self) -> None: ...
|
| 180 |
+
def setTimeout(self, t: Optional[float]): ...
|
| 181 |
+
def setMaxConns(self, m: int): ...
|
| 182 |
+
def check_cache(self): ...
|
| 183 |
+
def clear_cache(self): ...
|
| 184 |
+
|
| 185 |
+
def parse_http_list(s: AnyStr) -> List[AnyStr]: ...
|
| 186 |
+
def parse_keqv_list(l: List[AnyStr]) -> Dict[AnyStr, AnyStr]: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/user.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def __getattr__(name) -> Any: ...
|
| 4 |
+
|
| 5 |
+
home: str
|
| 6 |
+
pythonrc: str
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2/xmlrpclib.pyi
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import datetime
|
| 2 |
+
from gzip import GzipFile
|
| 3 |
+
from httplib import HTTPConnection, HTTPResponse, HTTPSConnection
|
| 4 |
+
from ssl import SSLContext
|
| 5 |
+
from StringIO import StringIO
|
| 6 |
+
from time import struct_time
|
| 7 |
+
from types import InstanceType
|
| 8 |
+
from typing import IO, Any, AnyStr, Callable, Iterable, List, Mapping, MutableMapping, Optional, Tuple, Type, TypeVar, Union
|
| 9 |
+
|
| 10 |
+
_Unmarshaller = Any
|
| 11 |
+
_timeTuple = Tuple[int, int, int, int, int, int, int, int, int]
|
| 12 |
+
# Represents types that can be compared against a DateTime object
|
| 13 |
+
_dateTimeComp = Union[unicode, DateTime, datetime]
|
| 14 |
+
# A "host description" used by Transport factories
|
| 15 |
+
_hostDesc = Union[str, Tuple[str, Mapping[Any, Any]]]
|
| 16 |
+
|
| 17 |
+
def escape(s: AnyStr, replace: Callable[[AnyStr, AnyStr, AnyStr], AnyStr] = ...) -> AnyStr: ...
|
| 18 |
+
|
| 19 |
+
MAXINT: int
|
| 20 |
+
MININT: int
|
| 21 |
+
PARSE_ERROR: int
|
| 22 |
+
SERVER_ERROR: int
|
| 23 |
+
APPLICATION_ERROR: int
|
| 24 |
+
SYSTEM_ERROR: int
|
| 25 |
+
TRANSPORT_ERROR: int
|
| 26 |
+
NOT_WELLFORMED_ERROR: int
|
| 27 |
+
UNSUPPORTED_ENCODING: int
|
| 28 |
+
INVALID_ENCODING_CHAR: int
|
| 29 |
+
INVALID_XMLRPC: int
|
| 30 |
+
METHOD_NOT_FOUND: int
|
| 31 |
+
INVALID_METHOD_PARAMS: int
|
| 32 |
+
INTERNAL_ERROR: int
|
| 33 |
+
|
| 34 |
+
class Error(Exception): ...
|
| 35 |
+
|
| 36 |
+
class ProtocolError(Error):
|
| 37 |
+
url: str
|
| 38 |
+
errcode: int
|
| 39 |
+
errmsg: str
|
| 40 |
+
headers: Any
|
| 41 |
+
def __init__(self, url: str, errcode: int, errmsg: str, headers: Any) -> None: ...
|
| 42 |
+
|
| 43 |
+
class ResponseError(Error): ...
|
| 44 |
+
|
| 45 |
+
class Fault(Error):
|
| 46 |
+
faultCode: Any
|
| 47 |
+
faultString: str
|
| 48 |
+
def __init__(self, faultCode: Any, faultString: str, **extra: Any) -> None: ...
|
| 49 |
+
|
| 50 |
+
boolean: Type[bool]
|
| 51 |
+
Boolean: Type[bool]
|
| 52 |
+
|
| 53 |
+
class DateTime:
|
| 54 |
+
value: str
|
| 55 |
+
def __init__(self, value: Union[str, unicode, datetime, float, int, _timeTuple, struct_time] = ...) -> None: ...
|
| 56 |
+
def make_comparable(self, other: _dateTimeComp) -> Tuple[unicode, unicode]: ...
|
| 57 |
+
def __lt__(self, other: _dateTimeComp) -> bool: ...
|
| 58 |
+
def __le__(self, other: _dateTimeComp) -> bool: ...
|
| 59 |
+
def __gt__(self, other: _dateTimeComp) -> bool: ...
|
| 60 |
+
def __ge__(self, other: _dateTimeComp) -> bool: ...
|
| 61 |
+
def __eq__(self, other: _dateTimeComp) -> bool: ... # type: ignore
|
| 62 |
+
def __ne__(self, other: _dateTimeComp) -> bool: ... # type: ignore
|
| 63 |
+
def timetuple(self) -> struct_time: ...
|
| 64 |
+
def __cmp__(self, other: _dateTimeComp) -> int: ...
|
| 65 |
+
def decode(self, data: Any) -> None: ...
|
| 66 |
+
def encode(self, out: IO[str]) -> None: ...
|
| 67 |
+
|
| 68 |
+
class Binary:
|
| 69 |
+
data: str
|
| 70 |
+
def __init__(self, data: Optional[str] = ...) -> None: ...
|
| 71 |
+
def __cmp__(self, other: Any) -> int: ...
|
| 72 |
+
def decode(self, data: str) -> None: ...
|
| 73 |
+
def encode(self, out: IO[str]) -> None: ...
|
| 74 |
+
|
| 75 |
+
WRAPPERS: Tuple[Type[Any], ...]
|
| 76 |
+
|
| 77 |
+
# Still part of the public API, but see http://bugs.python.org/issue1773632
|
| 78 |
+
FastParser: None
|
| 79 |
+
FastUnmarshaller: None
|
| 80 |
+
FastMarshaller: None
|
| 81 |
+
|
| 82 |
+
# xmlrpclib.py will leave ExpatParser undefined if it can't import expat from
|
| 83 |
+
# xml.parsers. Because this is Python 2.7, the import will succeed.
|
| 84 |
+
class ExpatParser:
|
| 85 |
+
def __init__(self, target: _Unmarshaller) -> None: ...
|
| 86 |
+
def feed(self, data: str): ...
|
| 87 |
+
def close(self): ...
|
| 88 |
+
|
| 89 |
+
# TODO: Add xmllib.XMLParser as base class
|
| 90 |
+
class SlowParser:
|
| 91 |
+
handle_xml: Callable[[str, bool], None]
|
| 92 |
+
unknown_starttag: Callable[[str, Any], None]
|
| 93 |
+
handle_data: Callable[[str], None]
|
| 94 |
+
handle_cdata: Callable[[str], None]
|
| 95 |
+
unknown_endtag: Callable[[str, Callable[[Iterable[str], str], str]], None]
|
| 96 |
+
def __init__(self, target: _Unmarshaller) -> None: ...
|
| 97 |
+
|
| 98 |
+
class Marshaller:
|
| 99 |
+
memo: MutableMapping[int, Any]
|
| 100 |
+
data: Optional[str]
|
| 101 |
+
encoding: Optional[str]
|
| 102 |
+
allow_none: bool
|
| 103 |
+
def __init__(self, encoding: Optional[str] = ..., allow_none: bool = ...) -> None: ...
|
| 104 |
+
dispatch: Mapping[type, Callable[[Marshaller, str, Callable[[str], None]], None]]
|
| 105 |
+
def dumps(
|
| 106 |
+
self,
|
| 107 |
+
values: Union[
|
| 108 |
+
Iterable[
|
| 109 |
+
Union[
|
| 110 |
+
None,
|
| 111 |
+
int,
|
| 112 |
+
bool,
|
| 113 |
+
long,
|
| 114 |
+
float,
|
| 115 |
+
str,
|
| 116 |
+
unicode,
|
| 117 |
+
List[Any],
|
| 118 |
+
Tuple[Any, ...],
|
| 119 |
+
Mapping[Any, Any],
|
| 120 |
+
datetime,
|
| 121 |
+
InstanceType,
|
| 122 |
+
]
|
| 123 |
+
],
|
| 124 |
+
Fault,
|
| 125 |
+
],
|
| 126 |
+
) -> str: ...
|
| 127 |
+
def dump_nil(self, value: None, write: Callable[[str], None]) -> None: ...
|
| 128 |
+
def dump_int(self, value: int, write: Callable[[str], None]) -> None: ...
|
| 129 |
+
def dump_bool(self, value: bool, write: Callable[[str], None]) -> None: ...
|
| 130 |
+
def dump_long(self, value: long, write: Callable[[str], None]) -> None: ...
|
| 131 |
+
def dump_double(self, value: float, write: Callable[[str], None]) -> None: ...
|
| 132 |
+
def dump_string(
|
| 133 |
+
self,
|
| 134 |
+
value: str,
|
| 135 |
+
write: Callable[[str], None],
|
| 136 |
+
escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ...,
|
| 137 |
+
) -> None: ...
|
| 138 |
+
def dump_unicode(
|
| 139 |
+
self,
|
| 140 |
+
value: unicode,
|
| 141 |
+
write: Callable[[str], None],
|
| 142 |
+
escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ...,
|
| 143 |
+
) -> None: ...
|
| 144 |
+
def dump_array(self, value: Iterable[Any], write: Callable[[str], None]) -> None: ...
|
| 145 |
+
def dump_struct(
|
| 146 |
+
self,
|
| 147 |
+
value: Mapping[unicode, Any],
|
| 148 |
+
write: Callable[[str], None],
|
| 149 |
+
escape: Callable[[AnyStr, Callable[[AnyStr, AnyStr, AnyStr], AnyStr]], AnyStr] = ...,
|
| 150 |
+
) -> None: ...
|
| 151 |
+
def dump_datetime(self, value: datetime, write: Callable[[str], None]) -> None: ...
|
| 152 |
+
def dump_instance(self, value: InstanceType, write: Callable[[str], None]) -> None: ...
|
| 153 |
+
|
| 154 |
+
class Unmarshaller:
|
| 155 |
+
def append(self, object: Any) -> None: ...
|
| 156 |
+
def __init__(self, use_datetime: bool = ...) -> None: ...
|
| 157 |
+
def close(self) -> Tuple[Any, ...]: ...
|
| 158 |
+
def getmethodname(self) -> Optional[str]: ...
|
| 159 |
+
def xml(self, encoding: str, standalone: bool) -> None: ...
|
| 160 |
+
def start(self, tag: str, attrs: Any) -> None: ...
|
| 161 |
+
def data(self, text: str) -> None: ...
|
| 162 |
+
def end(self, tag: str, join: Callable[[Iterable[str], str], str] = ...) -> None: ...
|
| 163 |
+
def end_dispatch(self, tag: str, data: str) -> None: ...
|
| 164 |
+
dispatch: Mapping[str, Callable[[Unmarshaller, str], None]]
|
| 165 |
+
def end_nil(self, data: str): ...
|
| 166 |
+
def end_boolean(self, data: str) -> None: ...
|
| 167 |
+
def end_int(self, data: str) -> None: ...
|
| 168 |
+
def end_double(self, data: str) -> None: ...
|
| 169 |
+
def end_string(self, data: str) -> None: ...
|
| 170 |
+
def end_array(self, data: str) -> None: ...
|
| 171 |
+
def end_struct(self, data: str) -> None: ...
|
| 172 |
+
def end_base64(self, data: str) -> None: ...
|
| 173 |
+
def end_dateTime(self, data: str) -> None: ...
|
| 174 |
+
def end_value(self, data: str) -> None: ...
|
| 175 |
+
def end_params(self, data: str) -> None: ...
|
| 176 |
+
def end_fault(self, data: str) -> None: ...
|
| 177 |
+
def end_methodName(self, data: str) -> None: ...
|
| 178 |
+
|
| 179 |
+
class _MultiCallMethod:
|
| 180 |
+
def __init__(self, call_list: List[Tuple[str, Tuple[Any, ...]]], name: str) -> None: ...
|
| 181 |
+
|
| 182 |
+
class MultiCallIterator:
|
| 183 |
+
def __init__(self, results: List[Any]) -> None: ...
|
| 184 |
+
|
| 185 |
+
class MultiCall:
|
| 186 |
+
def __init__(self, server: ServerProxy) -> None: ...
|
| 187 |
+
def __getattr__(self, name: str) -> _MultiCallMethod: ...
|
| 188 |
+
def __call__(self) -> MultiCallIterator: ...
|
| 189 |
+
|
| 190 |
+
def getparser(use_datetime: bool = ...) -> Tuple[Union[ExpatParser, SlowParser], Unmarshaller]: ...
|
| 191 |
+
def dumps(
|
| 192 |
+
params: Union[Tuple[Any, ...], Fault],
|
| 193 |
+
methodname: Optional[str] = ...,
|
| 194 |
+
methodresponse: Optional[bool] = ...,
|
| 195 |
+
encoding: Optional[str] = ...,
|
| 196 |
+
allow_none: bool = ...,
|
| 197 |
+
) -> str: ...
|
| 198 |
+
def loads(data: str, use_datetime: bool = ...) -> Tuple[Tuple[Any, ...], Optional[str]]: ...
|
| 199 |
+
def gzip_encode(data: str) -> str: ...
|
| 200 |
+
def gzip_decode(data: str, max_decode: int = ...) -> str: ...
|
| 201 |
+
|
| 202 |
+
class GzipDecodedResponse(GzipFile):
|
| 203 |
+
stringio: StringIO[Any]
|
| 204 |
+
def __init__(self, response: HTTPResponse) -> None: ...
|
| 205 |
+
def close(self): ...
|
| 206 |
+
|
| 207 |
+
class _Method:
|
| 208 |
+
def __init__(self, send: Callable[[str, Tuple[Any, ...]], Any], name: str) -> None: ...
|
| 209 |
+
def __getattr__(self, name: str) -> _Method: ...
|
| 210 |
+
def __call__(self, *args: Any) -> Any: ...
|
| 211 |
+
|
| 212 |
+
class Transport:
|
| 213 |
+
user_agent: str
|
| 214 |
+
accept_gzip_encoding: bool
|
| 215 |
+
encode_threshold: Optional[int]
|
| 216 |
+
def __init__(self, use_datetime: bool = ...) -> None: ...
|
| 217 |
+
def request(self, host: _hostDesc, handler: str, request_body: str, verbose: bool = ...) -> Tuple[Any, ...]: ...
|
| 218 |
+
verbose: bool
|
| 219 |
+
def single_request(self, host: _hostDesc, handler: str, request_body: str, verbose: bool = ...) -> Tuple[Any, ...]: ...
|
| 220 |
+
def getparser(self) -> Tuple[Union[ExpatParser, SlowParser], Unmarshaller]: ...
|
| 221 |
+
def get_host_info(self, host: _hostDesc) -> Tuple[str, Optional[List[Tuple[str, str]]], Optional[Mapping[Any, Any]]]: ...
|
| 222 |
+
def make_connection(self, host: _hostDesc) -> HTTPConnection: ...
|
| 223 |
+
def close(self) -> None: ...
|
| 224 |
+
def send_request(self, connection: HTTPConnection, handler: str, request_body: str) -> None: ...
|
| 225 |
+
def send_host(self, connection: HTTPConnection, host: str) -> None: ...
|
| 226 |
+
def send_user_agent(self, connection: HTTPConnection) -> None: ...
|
| 227 |
+
def send_content(self, connection: HTTPConnection, request_body: str) -> None: ...
|
| 228 |
+
def parse_response(self, response: HTTPResponse) -> Tuple[Any, ...]: ...
|
| 229 |
+
|
| 230 |
+
class SafeTransport(Transport):
|
| 231 |
+
def __init__(self, use_datetime: bool = ..., context: Optional[SSLContext] = ...) -> None: ...
|
| 232 |
+
def make_connection(self, host: _hostDesc) -> HTTPSConnection: ...
|
| 233 |
+
|
| 234 |
+
class ServerProxy:
|
| 235 |
+
def __init__(
|
| 236 |
+
self,
|
| 237 |
+
uri: str,
|
| 238 |
+
transport: Optional[Transport] = ...,
|
| 239 |
+
encoding: Optional[str] = ...,
|
| 240 |
+
verbose: bool = ...,
|
| 241 |
+
allow_none: bool = ...,
|
| 242 |
+
use_datetime: bool = ...,
|
| 243 |
+
context: Optional[SSLContext] = ...,
|
| 244 |
+
) -> None: ...
|
| 245 |
+
def __getattr__(self, name: str) -> _Method: ...
|
| 246 |
+
def __call__(self, attr: str) -> Optional[Transport]: ...
|
| 247 |
+
|
| 248 |
+
Server = ServerProxy
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2and3/_bisect.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import MutableSequence, Optional, Sequence, TypeVar
|
| 2 |
+
|
| 3 |
+
_T = TypeVar("_T")
|
| 4 |
+
|
| 5 |
+
def bisect_left(a: Sequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> int: ...
|
| 6 |
+
def bisect_right(a: Sequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> int: ...
|
| 7 |
+
def insort_left(a: MutableSequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> None: ...
|
| 8 |
+
def insort_right(a: MutableSequence[_T], x: _T, lo: int = ..., hi: Optional[int] = ...) -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2and3/_curses.pyi
ADDED
|
@@ -0,0 +1,490 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import IO, Any, BinaryIO, NamedTuple, Optional, Tuple, Union, overload
|
| 3 |
+
|
| 4 |
+
_chtype = Union[str, bytes, int]
|
| 5 |
+
|
| 6 |
+
ALL_MOUSE_EVENTS: int
|
| 7 |
+
A_ALTCHARSET: int
|
| 8 |
+
A_ATTRIBUTES: int
|
| 9 |
+
A_BLINK: int
|
| 10 |
+
A_BOLD: int
|
| 11 |
+
A_CHARTEXT: int
|
| 12 |
+
A_COLOR: int
|
| 13 |
+
A_DIM: int
|
| 14 |
+
A_HORIZONTAL: int
|
| 15 |
+
A_INVIS: int
|
| 16 |
+
if sys.version_info >= (3, 7):
|
| 17 |
+
A_ITALIC: int
|
| 18 |
+
A_LEFT: int
|
| 19 |
+
A_LOW: int
|
| 20 |
+
A_NORMAL: int
|
| 21 |
+
A_PROTECT: int
|
| 22 |
+
A_REVERSE: int
|
| 23 |
+
A_RIGHT: int
|
| 24 |
+
A_STANDOUT: int
|
| 25 |
+
A_TOP: int
|
| 26 |
+
A_UNDERLINE: int
|
| 27 |
+
A_VERTICAL: int
|
| 28 |
+
BUTTON1_CLICKED: int
|
| 29 |
+
BUTTON1_DOUBLE_CLICKED: int
|
| 30 |
+
BUTTON1_PRESSED: int
|
| 31 |
+
BUTTON1_RELEASED: int
|
| 32 |
+
BUTTON1_TRIPLE_CLICKED: int
|
| 33 |
+
BUTTON2_CLICKED: int
|
| 34 |
+
BUTTON2_DOUBLE_CLICKED: int
|
| 35 |
+
BUTTON2_PRESSED: int
|
| 36 |
+
BUTTON2_RELEASED: int
|
| 37 |
+
BUTTON2_TRIPLE_CLICKED: int
|
| 38 |
+
BUTTON3_CLICKED: int
|
| 39 |
+
BUTTON3_DOUBLE_CLICKED: int
|
| 40 |
+
BUTTON3_PRESSED: int
|
| 41 |
+
BUTTON3_RELEASED: int
|
| 42 |
+
BUTTON3_TRIPLE_CLICKED: int
|
| 43 |
+
BUTTON4_CLICKED: int
|
| 44 |
+
BUTTON4_DOUBLE_CLICKED: int
|
| 45 |
+
BUTTON4_PRESSED: int
|
| 46 |
+
BUTTON4_RELEASED: int
|
| 47 |
+
BUTTON4_TRIPLE_CLICKED: int
|
| 48 |
+
BUTTON_ALT: int
|
| 49 |
+
BUTTON_CTRL: int
|
| 50 |
+
BUTTON_SHIFT: int
|
| 51 |
+
COLOR_BLACK: int
|
| 52 |
+
COLOR_BLUE: int
|
| 53 |
+
COLOR_CYAN: int
|
| 54 |
+
COLOR_GREEN: int
|
| 55 |
+
COLOR_MAGENTA: int
|
| 56 |
+
COLOR_RED: int
|
| 57 |
+
COLOR_WHITE: int
|
| 58 |
+
COLOR_YELLOW: int
|
| 59 |
+
ERR: int
|
| 60 |
+
KEY_A1: int
|
| 61 |
+
KEY_A3: int
|
| 62 |
+
KEY_B2: int
|
| 63 |
+
KEY_BACKSPACE: int
|
| 64 |
+
KEY_BEG: int
|
| 65 |
+
KEY_BREAK: int
|
| 66 |
+
KEY_BTAB: int
|
| 67 |
+
KEY_C1: int
|
| 68 |
+
KEY_C3: int
|
| 69 |
+
KEY_CANCEL: int
|
| 70 |
+
KEY_CATAB: int
|
| 71 |
+
KEY_CLEAR: int
|
| 72 |
+
KEY_CLOSE: int
|
| 73 |
+
KEY_COMMAND: int
|
| 74 |
+
KEY_COPY: int
|
| 75 |
+
KEY_CREATE: int
|
| 76 |
+
KEY_CTAB: int
|
| 77 |
+
KEY_DC: int
|
| 78 |
+
KEY_DL: int
|
| 79 |
+
KEY_DOWN: int
|
| 80 |
+
KEY_EIC: int
|
| 81 |
+
KEY_END: int
|
| 82 |
+
KEY_ENTER: int
|
| 83 |
+
KEY_EOL: int
|
| 84 |
+
KEY_EOS: int
|
| 85 |
+
KEY_EXIT: int
|
| 86 |
+
KEY_F0: int
|
| 87 |
+
KEY_F1: int
|
| 88 |
+
KEY_F10: int
|
| 89 |
+
KEY_F11: int
|
| 90 |
+
KEY_F12: int
|
| 91 |
+
KEY_F13: int
|
| 92 |
+
KEY_F14: int
|
| 93 |
+
KEY_F15: int
|
| 94 |
+
KEY_F16: int
|
| 95 |
+
KEY_F17: int
|
| 96 |
+
KEY_F18: int
|
| 97 |
+
KEY_F19: int
|
| 98 |
+
KEY_F2: int
|
| 99 |
+
KEY_F20: int
|
| 100 |
+
KEY_F21: int
|
| 101 |
+
KEY_F22: int
|
| 102 |
+
KEY_F23: int
|
| 103 |
+
KEY_F24: int
|
| 104 |
+
KEY_F25: int
|
| 105 |
+
KEY_F26: int
|
| 106 |
+
KEY_F27: int
|
| 107 |
+
KEY_F28: int
|
| 108 |
+
KEY_F29: int
|
| 109 |
+
KEY_F3: int
|
| 110 |
+
KEY_F30: int
|
| 111 |
+
KEY_F31: int
|
| 112 |
+
KEY_F32: int
|
| 113 |
+
KEY_F33: int
|
| 114 |
+
KEY_F34: int
|
| 115 |
+
KEY_F35: int
|
| 116 |
+
KEY_F36: int
|
| 117 |
+
KEY_F37: int
|
| 118 |
+
KEY_F38: int
|
| 119 |
+
KEY_F39: int
|
| 120 |
+
KEY_F4: int
|
| 121 |
+
KEY_F40: int
|
| 122 |
+
KEY_F41: int
|
| 123 |
+
KEY_F42: int
|
| 124 |
+
KEY_F43: int
|
| 125 |
+
KEY_F44: int
|
| 126 |
+
KEY_F45: int
|
| 127 |
+
KEY_F46: int
|
| 128 |
+
KEY_F47: int
|
| 129 |
+
KEY_F48: int
|
| 130 |
+
KEY_F49: int
|
| 131 |
+
KEY_F5: int
|
| 132 |
+
KEY_F50: int
|
| 133 |
+
KEY_F51: int
|
| 134 |
+
KEY_F52: int
|
| 135 |
+
KEY_F53: int
|
| 136 |
+
KEY_F54: int
|
| 137 |
+
KEY_F55: int
|
| 138 |
+
KEY_F56: int
|
| 139 |
+
KEY_F57: int
|
| 140 |
+
KEY_F58: int
|
| 141 |
+
KEY_F59: int
|
| 142 |
+
KEY_F6: int
|
| 143 |
+
KEY_F60: int
|
| 144 |
+
KEY_F61: int
|
| 145 |
+
KEY_F62: int
|
| 146 |
+
KEY_F63: int
|
| 147 |
+
KEY_F7: int
|
| 148 |
+
KEY_F8: int
|
| 149 |
+
KEY_F9: int
|
| 150 |
+
KEY_FIND: int
|
| 151 |
+
KEY_HELP: int
|
| 152 |
+
KEY_HOME: int
|
| 153 |
+
KEY_IC: int
|
| 154 |
+
KEY_IL: int
|
| 155 |
+
KEY_LEFT: int
|
| 156 |
+
KEY_LL: int
|
| 157 |
+
KEY_MARK: int
|
| 158 |
+
KEY_MAX: int
|
| 159 |
+
KEY_MESSAGE: int
|
| 160 |
+
KEY_MIN: int
|
| 161 |
+
KEY_MOUSE: int
|
| 162 |
+
KEY_MOVE: int
|
| 163 |
+
KEY_NEXT: int
|
| 164 |
+
KEY_NPAGE: int
|
| 165 |
+
KEY_OPEN: int
|
| 166 |
+
KEY_OPTIONS: int
|
| 167 |
+
KEY_PPAGE: int
|
| 168 |
+
KEY_PREVIOUS: int
|
| 169 |
+
KEY_PRINT: int
|
| 170 |
+
KEY_REDO: int
|
| 171 |
+
KEY_REFERENCE: int
|
| 172 |
+
KEY_REFRESH: int
|
| 173 |
+
KEY_REPLACE: int
|
| 174 |
+
KEY_RESET: int
|
| 175 |
+
KEY_RESIZE: int
|
| 176 |
+
KEY_RESTART: int
|
| 177 |
+
KEY_RESUME: int
|
| 178 |
+
KEY_RIGHT: int
|
| 179 |
+
KEY_SAVE: int
|
| 180 |
+
KEY_SBEG: int
|
| 181 |
+
KEY_SCANCEL: int
|
| 182 |
+
KEY_SCOMMAND: int
|
| 183 |
+
KEY_SCOPY: int
|
| 184 |
+
KEY_SCREATE: int
|
| 185 |
+
KEY_SDC: int
|
| 186 |
+
KEY_SDL: int
|
| 187 |
+
KEY_SELECT: int
|
| 188 |
+
KEY_SEND: int
|
| 189 |
+
KEY_SEOL: int
|
| 190 |
+
KEY_SEXIT: int
|
| 191 |
+
KEY_SF: int
|
| 192 |
+
KEY_SFIND: int
|
| 193 |
+
KEY_SHELP: int
|
| 194 |
+
KEY_SHOME: int
|
| 195 |
+
KEY_SIC: int
|
| 196 |
+
KEY_SLEFT: int
|
| 197 |
+
KEY_SMESSAGE: int
|
| 198 |
+
KEY_SMOVE: int
|
| 199 |
+
KEY_SNEXT: int
|
| 200 |
+
KEY_SOPTIONS: int
|
| 201 |
+
KEY_SPREVIOUS: int
|
| 202 |
+
KEY_SPRINT: int
|
| 203 |
+
KEY_SR: int
|
| 204 |
+
KEY_SREDO: int
|
| 205 |
+
KEY_SREPLACE: int
|
| 206 |
+
KEY_SRESET: int
|
| 207 |
+
KEY_SRIGHT: int
|
| 208 |
+
KEY_SRSUME: int
|
| 209 |
+
KEY_SSAVE: int
|
| 210 |
+
KEY_SSUSPEND: int
|
| 211 |
+
KEY_STAB: int
|
| 212 |
+
KEY_SUNDO: int
|
| 213 |
+
KEY_SUSPEND: int
|
| 214 |
+
KEY_UNDO: int
|
| 215 |
+
KEY_UP: int
|
| 216 |
+
OK: int
|
| 217 |
+
REPORT_MOUSE_POSITION: int
|
| 218 |
+
_C_API: Any
|
| 219 |
+
version: bytes
|
| 220 |
+
|
| 221 |
+
def baudrate() -> int: ...
|
| 222 |
+
def beep() -> None: ...
|
| 223 |
+
def can_change_color() -> bool: ...
|
| 224 |
+
def cbreak(__flag: bool = ...) -> None: ...
|
| 225 |
+
def color_content(__color_number: int) -> Tuple[int, int, int]: ...
|
| 226 |
+
def color_pair(__color_number: int) -> int: ...
|
| 227 |
+
def curs_set(__visibility: int) -> int: ...
|
| 228 |
+
def def_prog_mode() -> None: ...
|
| 229 |
+
def def_shell_mode() -> None: ...
|
| 230 |
+
def delay_output(__ms: int) -> None: ...
|
| 231 |
+
def doupdate() -> None: ...
|
| 232 |
+
def echo(__flag: bool = ...) -> None: ...
|
| 233 |
+
def endwin() -> None: ...
|
| 234 |
+
def erasechar() -> bytes: ...
|
| 235 |
+
def filter() -> None: ...
|
| 236 |
+
def flash() -> None: ...
|
| 237 |
+
def flushinp() -> None: ...
|
| 238 |
+
def getmouse() -> Tuple[int, int, int, int, int]: ...
|
| 239 |
+
def getsyx() -> Tuple[int, int]: ...
|
| 240 |
+
def getwin(__file: BinaryIO) -> _CursesWindow: ...
|
| 241 |
+
def halfdelay(__tenths: int) -> None: ...
|
| 242 |
+
def has_colors() -> bool: ...
|
| 243 |
+
def has_ic() -> bool: ...
|
| 244 |
+
def has_il() -> bool: ...
|
| 245 |
+
def has_key(__key: int) -> bool: ...
|
| 246 |
+
def init_color(__color_number: int, __r: int, __g: int, __b: int) -> None: ...
|
| 247 |
+
def init_pair(__pair_number: int, __fg: int, __bg: int) -> None: ...
|
| 248 |
+
def initscr() -> _CursesWindow: ...
|
| 249 |
+
def intrflush(__flag: bool) -> None: ...
|
| 250 |
+
def is_term_resized(__nlines: int, __ncols: int) -> bool: ...
|
| 251 |
+
def isendwin() -> bool: ...
|
| 252 |
+
def keyname(__key: int) -> bytes: ...
|
| 253 |
+
def killchar() -> bytes: ...
|
| 254 |
+
def longname() -> bytes: ...
|
| 255 |
+
def meta(__yes: bool) -> None: ...
|
| 256 |
+
def mouseinterval(__interval: int) -> None: ...
|
| 257 |
+
def mousemask(__newmask: int) -> Tuple[int, int]: ...
|
| 258 |
+
def napms(__ms: int) -> int: ...
|
| 259 |
+
def newpad(__nlines: int, __ncols: int) -> _CursesWindow: ...
|
| 260 |
+
def newwin(__nlines: int, __ncols: int, __begin_y: int = ..., __begin_x: int = ...) -> _CursesWindow: ...
|
| 261 |
+
def nl(__flag: bool = ...) -> None: ...
|
| 262 |
+
def nocbreak() -> None: ...
|
| 263 |
+
def noecho() -> None: ...
|
| 264 |
+
def nonl() -> None: ...
|
| 265 |
+
def noqiflush() -> None: ...
|
| 266 |
+
def noraw() -> None: ...
|
| 267 |
+
def pair_content(__pair_number: int) -> Tuple[int, int]: ...
|
| 268 |
+
def pair_number(__attr: int) -> int: ...
|
| 269 |
+
def putp(__string: bytes) -> None: ...
|
| 270 |
+
def qiflush(__flag: bool = ...) -> None: ...
|
| 271 |
+
def raw(__flag: bool = ...) -> None: ...
|
| 272 |
+
def reset_prog_mode() -> None: ...
|
| 273 |
+
def reset_shell_mode() -> None: ...
|
| 274 |
+
def resetty() -> None: ...
|
| 275 |
+
def resize_term(__nlines: int, __ncols: int) -> None: ...
|
| 276 |
+
def resizeterm(__nlines: int, __ncols: int) -> None: ...
|
| 277 |
+
def savetty() -> None: ...
|
| 278 |
+
def setsyx(__y: int, __x: int) -> None: ...
|
| 279 |
+
def setupterm(term: Optional[str] = ..., fd: int = ...) -> None: ...
|
| 280 |
+
def start_color() -> None: ...
|
| 281 |
+
def termattrs() -> int: ...
|
| 282 |
+
def termname() -> bytes: ...
|
| 283 |
+
def tigetflag(__capname: str) -> int: ...
|
| 284 |
+
def tigetnum(__capname: str) -> int: ...
|
| 285 |
+
def tigetstr(__capname: str) -> bytes: ...
|
| 286 |
+
def tparm(
|
| 287 |
+
__str: bytes,
|
| 288 |
+
__i1: int = ...,
|
| 289 |
+
__i2: int = ...,
|
| 290 |
+
__i3: int = ...,
|
| 291 |
+
__i4: int = ...,
|
| 292 |
+
__i5: int = ...,
|
| 293 |
+
__i6: int = ...,
|
| 294 |
+
__i7: int = ...,
|
| 295 |
+
__i8: int = ...,
|
| 296 |
+
__i9: int = ...,
|
| 297 |
+
) -> bytes: ...
|
| 298 |
+
def typeahead(__fd: int) -> None: ...
|
| 299 |
+
def unctrl(__ch: _chtype) -> bytes: ...
|
| 300 |
+
|
| 301 |
+
if sys.version_info >= (3, 3):
|
| 302 |
+
def unget_wch(__ch: Union[int, str]) -> None: ...
|
| 303 |
+
|
| 304 |
+
def ungetch(__ch: _chtype) -> None: ...
|
| 305 |
+
def ungetmouse(__id: int, __x: int, __y: int, __z: int, __bstate: int) -> None: ...
|
| 306 |
+
|
| 307 |
+
if sys.version_info >= (3, 5):
|
| 308 |
+
def update_lines_cols() -> int: ...
|
| 309 |
+
|
| 310 |
+
def use_default_colors() -> None: ...
|
| 311 |
+
def use_env(__flag: bool) -> None: ...
|
| 312 |
+
|
| 313 |
+
class error(Exception): ...
|
| 314 |
+
|
| 315 |
+
class _CursesWindow:
|
| 316 |
+
if sys.version_info >= (3, 3):
|
| 317 |
+
encoding: str
|
| 318 |
+
@overload
|
| 319 |
+
def addch(self, ch: _chtype, attr: int = ...) -> None: ...
|
| 320 |
+
@overload
|
| 321 |
+
def addch(self, y: int, x: int, ch: _chtype, attr: int = ...) -> None: ...
|
| 322 |
+
@overload
|
| 323 |
+
def addnstr(self, str: str, n: int, attr: int = ...) -> None: ...
|
| 324 |
+
@overload
|
| 325 |
+
def addnstr(self, y: int, x: int, str: str, n: int, attr: int = ...) -> None: ...
|
| 326 |
+
@overload
|
| 327 |
+
def addstr(self, str: str, attr: int = ...) -> None: ...
|
| 328 |
+
@overload
|
| 329 |
+
def addstr(self, y: int, x: int, str: str, attr: int = ...) -> None: ...
|
| 330 |
+
def attroff(self, attr: int) -> None: ...
|
| 331 |
+
def attron(self, attr: int) -> None: ...
|
| 332 |
+
def attrset(self, attr: int) -> None: ...
|
| 333 |
+
def bkgd(self, ch: _chtype, attr: int = ...) -> None: ...
|
| 334 |
+
def bkgdset(self, ch: _chtype, attr: int = ...) -> None: ...
|
| 335 |
+
def border(
|
| 336 |
+
self,
|
| 337 |
+
ls: _chtype = ...,
|
| 338 |
+
rs: _chtype = ...,
|
| 339 |
+
ts: _chtype = ...,
|
| 340 |
+
bs: _chtype = ...,
|
| 341 |
+
tl: _chtype = ...,
|
| 342 |
+
tr: _chtype = ...,
|
| 343 |
+
bl: _chtype = ...,
|
| 344 |
+
br: _chtype = ...,
|
| 345 |
+
) -> None: ...
|
| 346 |
+
@overload
|
| 347 |
+
def box(self) -> None: ...
|
| 348 |
+
@overload
|
| 349 |
+
def box(self, vertch: _chtype = ..., horch: _chtype = ...) -> None: ...
|
| 350 |
+
@overload
|
| 351 |
+
def chgat(self, attr: int) -> None: ...
|
| 352 |
+
@overload
|
| 353 |
+
def chgat(self, num: int, attr: int) -> None: ...
|
| 354 |
+
@overload
|
| 355 |
+
def chgat(self, y: int, x: int, attr: int) -> None: ...
|
| 356 |
+
@overload
|
| 357 |
+
def chgat(self, y: int, x: int, num: int, attr: int) -> None: ...
|
| 358 |
+
def clear(self) -> None: ...
|
| 359 |
+
def clearok(self, yes: int) -> None: ...
|
| 360 |
+
def clrtobot(self) -> None: ...
|
| 361 |
+
def clrtoeol(self) -> None: ...
|
| 362 |
+
def cursyncup(self) -> None: ...
|
| 363 |
+
@overload
|
| 364 |
+
def delch(self) -> None: ...
|
| 365 |
+
@overload
|
| 366 |
+
def delch(self, y: int, x: int) -> None: ...
|
| 367 |
+
def deleteln(self) -> None: ...
|
| 368 |
+
@overload
|
| 369 |
+
def derwin(self, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 370 |
+
@overload
|
| 371 |
+
def derwin(self, nlines: int, ncols: int, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 372 |
+
def echochar(self, ch: _chtype, attr: int = ...) -> None: ...
|
| 373 |
+
def enclose(self, y: int, x: int) -> bool: ...
|
| 374 |
+
def erase(self) -> None: ...
|
| 375 |
+
def getbegyx(self) -> Tuple[int, int]: ...
|
| 376 |
+
def getbkgd(self) -> Tuple[int, int]: ...
|
| 377 |
+
@overload
|
| 378 |
+
def getch(self) -> int: ...
|
| 379 |
+
@overload
|
| 380 |
+
def getch(self, y: int, x: int) -> int: ...
|
| 381 |
+
if sys.version_info >= (3, 3):
|
| 382 |
+
@overload
|
| 383 |
+
def get_wch(self) -> Union[int, str]: ...
|
| 384 |
+
@overload
|
| 385 |
+
def get_wch(self, y: int, x: int) -> Union[int, str]: ...
|
| 386 |
+
@overload
|
| 387 |
+
def getkey(self) -> str: ...
|
| 388 |
+
@overload
|
| 389 |
+
def getkey(self, y: int, x: int) -> str: ...
|
| 390 |
+
def getmaxyx(self) -> Tuple[int, int]: ...
|
| 391 |
+
def getparyx(self) -> Tuple[int, int]: ...
|
| 392 |
+
@overload
|
| 393 |
+
def getstr(self) -> _chtype: ...
|
| 394 |
+
@overload
|
| 395 |
+
def getstr(self, n: int) -> _chtype: ...
|
| 396 |
+
@overload
|
| 397 |
+
def getstr(self, y: int, x: int) -> _chtype: ...
|
| 398 |
+
@overload
|
| 399 |
+
def getstr(self, y: int, x: int, n: int) -> _chtype: ...
|
| 400 |
+
def getyx(self) -> Tuple[int, int]: ...
|
| 401 |
+
@overload
|
| 402 |
+
def hline(self, ch: _chtype, n: int) -> None: ...
|
| 403 |
+
@overload
|
| 404 |
+
def hline(self, y: int, x: int, ch: _chtype, n: int) -> None: ...
|
| 405 |
+
def idcok(self, flag: bool) -> None: ...
|
| 406 |
+
def idlok(self, yes: bool) -> None: ...
|
| 407 |
+
def immedok(self, flag: bool) -> None: ...
|
| 408 |
+
@overload
|
| 409 |
+
def inch(self) -> _chtype: ...
|
| 410 |
+
@overload
|
| 411 |
+
def inch(self, y: int, x: int) -> _chtype: ...
|
| 412 |
+
@overload
|
| 413 |
+
def insch(self, ch: _chtype, attr: int = ...) -> None: ...
|
| 414 |
+
@overload
|
| 415 |
+
def insch(self, y: int, x: int, ch: _chtype, attr: int = ...) -> None: ...
|
| 416 |
+
def insdelln(self, nlines: int) -> None: ...
|
| 417 |
+
def insertln(self) -> None: ...
|
| 418 |
+
@overload
|
| 419 |
+
def insnstr(self, str: str, n: int, attr: int = ...) -> None: ...
|
| 420 |
+
@overload
|
| 421 |
+
def insnstr(self, y: int, x: int, str: str, n: int, attr: int = ...) -> None: ...
|
| 422 |
+
@overload
|
| 423 |
+
def insstr(self, str: str, attr: int = ...) -> None: ...
|
| 424 |
+
@overload
|
| 425 |
+
def insstr(self, y: int, x: int, str: str, attr: int = ...) -> None: ...
|
| 426 |
+
@overload
|
| 427 |
+
def instr(self, n: int = ...) -> _chtype: ...
|
| 428 |
+
@overload
|
| 429 |
+
def instr(self, y: int, x: int, n: int = ...) -> _chtype: ...
|
| 430 |
+
def is_linetouched(self, line: int) -> bool: ...
|
| 431 |
+
def is_wintouched(self) -> bool: ...
|
| 432 |
+
def keypad(self, yes: bool) -> None: ...
|
| 433 |
+
def leaveok(self, yes: bool) -> None: ...
|
| 434 |
+
def move(self, new_y: int, new_x: int) -> None: ...
|
| 435 |
+
def mvderwin(self, y: int, x: int) -> None: ...
|
| 436 |
+
def mvwin(self, new_y: int, new_x: int) -> None: ...
|
| 437 |
+
def nodelay(self, yes: bool) -> None: ...
|
| 438 |
+
def notimeout(self, yes: bool) -> None: ...
|
| 439 |
+
def noutrefresh(self) -> None: ...
|
| 440 |
+
@overload
|
| 441 |
+
def overlay(self, destwin: _CursesWindow) -> None: ...
|
| 442 |
+
@overload
|
| 443 |
+
def overlay(
|
| 444 |
+
self, destwin: _CursesWindow, sminrow: int, smincol: int, dminrow: int, dmincol: int, dmaxrow: int, dmaxcol: int
|
| 445 |
+
) -> None: ...
|
| 446 |
+
@overload
|
| 447 |
+
def overwrite(self, destwin: _CursesWindow) -> None: ...
|
| 448 |
+
@overload
|
| 449 |
+
def overwrite(
|
| 450 |
+
self, destwin: _CursesWindow, sminrow: int, smincol: int, dminrow: int, dmincol: int, dmaxrow: int, dmaxcol: int
|
| 451 |
+
) -> None: ...
|
| 452 |
+
def putwin(self, file: IO[Any]) -> None: ...
|
| 453 |
+
def redrawln(self, beg: int, num: int) -> None: ...
|
| 454 |
+
def redrawwin(self) -> None: ...
|
| 455 |
+
@overload
|
| 456 |
+
def refresh(self) -> None: ...
|
| 457 |
+
@overload
|
| 458 |
+
def refresh(self, pminrow: int, pmincol: int, sminrow: int, smincol: int, smaxrow: int, smaxcol: int) -> None: ...
|
| 459 |
+
def resize(self, nlines: int, ncols: int) -> None: ...
|
| 460 |
+
def scroll(self, lines: int = ...) -> None: ...
|
| 461 |
+
def scrollok(self, flag: bool) -> None: ...
|
| 462 |
+
def setscrreg(self, top: int, bottom: int) -> None: ...
|
| 463 |
+
def standend(self) -> None: ...
|
| 464 |
+
def standout(self) -> None: ...
|
| 465 |
+
@overload
|
| 466 |
+
def subpad(self, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 467 |
+
@overload
|
| 468 |
+
def subpad(self, nlines: int, ncols: int, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 469 |
+
@overload
|
| 470 |
+
def subwin(self, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 471 |
+
@overload
|
| 472 |
+
def subwin(self, nlines: int, ncols: int, begin_y: int, begin_x: int) -> _CursesWindow: ...
|
| 473 |
+
def syncdown(self) -> None: ...
|
| 474 |
+
def syncok(self, flag: bool) -> None: ...
|
| 475 |
+
def syncup(self) -> None: ...
|
| 476 |
+
def timeout(self, delay: int) -> None: ...
|
| 477 |
+
def touchline(self, start: int, count: int, changed: bool = ...) -> None: ...
|
| 478 |
+
def touchwin(self) -> None: ...
|
| 479 |
+
def untouchwin(self) -> None: ...
|
| 480 |
+
@overload
|
| 481 |
+
def vline(self, ch: _chtype, n: int) -> None: ...
|
| 482 |
+
@overload
|
| 483 |
+
def vline(self, y: int, x: int, ch: _chtype, n: int) -> None: ...
|
| 484 |
+
|
| 485 |
+
if sys.version_info >= (3, 8):
|
| 486 |
+
class _ncurses_version(NamedTuple):
|
| 487 |
+
major: int
|
| 488 |
+
minor: int
|
| 489 |
+
patch: int
|
| 490 |
+
ncurses_version: _ncurses_version
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2and3/_msi.pyi
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import List, Optional, Union
|
| 3 |
+
|
| 4 |
+
if sys.platform == "win32":
|
| 5 |
+
|
| 6 |
+
# Actual typename View, not exposed by the implementation
|
| 7 |
+
class _View:
|
| 8 |
+
def Execute(self, params: Optional[_Record] = ...) -> None: ...
|
| 9 |
+
def GetColumnInfo(self, kind: int) -> _Record: ...
|
| 10 |
+
def Fetch(self) -> _Record: ...
|
| 11 |
+
def Modify(self, mode: int, record: _Record) -> None: ...
|
| 12 |
+
def Close(self) -> None: ...
|
| 13 |
+
# Don't exist at runtime
|
| 14 |
+
__new__: None # type: ignore
|
| 15 |
+
__init__: None # type: ignore
|
| 16 |
+
# Actual typename Summary, not exposed by the implementation
|
| 17 |
+
class _Summary:
|
| 18 |
+
def GetProperty(self, propid: int) -> Optional[Union[str, bytes]]: ...
|
| 19 |
+
def GetPropertyCount(self) -> int: ...
|
| 20 |
+
def SetProperty(self, propid: int, value: Union[str, bytes]) -> None: ...
|
| 21 |
+
def Persist(self) -> None: ...
|
| 22 |
+
# Don't exist at runtime
|
| 23 |
+
__new__: None # type: ignore
|
| 24 |
+
__init__: None # type: ignore
|
| 25 |
+
# Actual typename Database, not exposed by the implementation
|
| 26 |
+
class _Database:
|
| 27 |
+
def OpenView(self, sql: str) -> _View: ...
|
| 28 |
+
def Commit(self) -> None: ...
|
| 29 |
+
def GetSummaryInformation(self, updateCount: int) -> _Summary: ...
|
| 30 |
+
def Close(self) -> None: ...
|
| 31 |
+
# Don't exist at runtime
|
| 32 |
+
__new__: None # type: ignore
|
| 33 |
+
__init__: None # type: ignore
|
| 34 |
+
# Actual typename Record, not exposed by the implementation
|
| 35 |
+
class _Record:
|
| 36 |
+
def GetFieldCount(self) -> int: ...
|
| 37 |
+
def GetInteger(self, field: int) -> int: ...
|
| 38 |
+
def GetString(self, field: int) -> str: ...
|
| 39 |
+
def SetString(self, field: int, str: str) -> None: ...
|
| 40 |
+
def SetStream(self, field: int, stream: str) -> None: ...
|
| 41 |
+
def SetInteger(self, field: int, int: int) -> None: ...
|
| 42 |
+
def ClearData(self) -> None: ...
|
| 43 |
+
# Don't exist at runtime
|
| 44 |
+
__new__: None # type: ignore
|
| 45 |
+
__init__: None # type: ignore
|
| 46 |
+
def UuidCreate() -> str: ...
|
| 47 |
+
def FCICreate(cabname: str, files: List[str]) -> None: ...
|
| 48 |
+
def OpenDatabase(name: str, flags: int) -> _Database: ...
|
| 49 |
+
def CreateRecord(count: int) -> _Record: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2and3/_random.pyi
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Tuple
|
| 3 |
+
|
| 4 |
+
# Actually Tuple[(int,) * 625]
|
| 5 |
+
_State = Tuple[int, ...]
|
| 6 |
+
|
| 7 |
+
class Random(object):
|
| 8 |
+
def __init__(self, seed: object = ...) -> None: ...
|
| 9 |
+
def seed(self, __n: object = ...) -> None: ...
|
| 10 |
+
def getstate(self) -> _State: ...
|
| 11 |
+
def setstate(self, __state: _State) -> None: ...
|
| 12 |
+
def random(self) -> float: ...
|
| 13 |
+
def getrandbits(self, __k: int) -> int: ...
|
| 14 |
+
if sys.version_info < (3,):
|
| 15 |
+
def jumpahead(self, i: int) -> None: ...
|
home/.vscode-server/extensions/ms-python.python-2026.4.0-linux-x64/python_files/lib/jedilsp/jedi/third_party/typeshed/stdlib/2and3/_warnings.pyi
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import Any, Dict, List, Optional, Tuple, Type, Union, overload
|
| 3 |
+
|
| 4 |
+
if sys.version_info >= (3, 0):
|
| 5 |
+
_defaultaction: str
|
| 6 |
+
_onceregistry: Dict[Any, Any]
|
| 7 |
+
else:
|
| 8 |
+
default_action: str
|
| 9 |
+
once_registry: Dict[Any, Any]
|
| 10 |
+
|
| 11 |
+
filters: List[Tuple[Any, ...]]
|
| 12 |
+
|
| 13 |
+
if sys.version_info >= (3, 6):
|
| 14 |
+
@overload
|
| 15 |
+
def warn(
|
| 16 |
+
message: str, category: Optional[Type[Warning]] = ..., stacklevel: int = ..., source: Optional[Any] = ...
|
| 17 |
+
) -> None: ...
|
| 18 |
+
@overload
|
| 19 |
+
def warn(message: Warning, category: Any = ..., stacklevel: int = ..., source: Optional[Any] = ...) -> None: ...
|
| 20 |
+
@overload
|
| 21 |
+
def warn_explicit(
|
| 22 |
+
message: str,
|
| 23 |
+
category: Type[Warning],
|
| 24 |
+
filename: str,
|
| 25 |
+
lineno: int,
|
| 26 |
+
module: Optional[str] = ...,
|
| 27 |
+
registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,
|
| 28 |
+
module_globals: Optional[Dict[str, Any]] = ...,
|
| 29 |
+
source: Optional[Any] = ...,
|
| 30 |
+
) -> None: ...
|
| 31 |
+
@overload
|
| 32 |
+
def warn_explicit(
|
| 33 |
+
message: Warning,
|
| 34 |
+
category: Any,
|
| 35 |
+
filename: str,
|
| 36 |
+
lineno: int,
|
| 37 |
+
module: Optional[str] = ...,
|
| 38 |
+
registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,
|
| 39 |
+
module_globals: Optional[Dict[str, Any]] = ...,
|
| 40 |
+
source: Optional[Any] = ...,
|
| 41 |
+
) -> None: ...
|
| 42 |
+
|
| 43 |
+
else:
|
| 44 |
+
@overload
|
| 45 |
+
def warn(message: str, category: Optional[Type[Warning]] = ..., stacklevel: int = ...) -> None: ...
|
| 46 |
+
@overload
|
| 47 |
+
def warn(message: Warning, category: Any = ..., stacklevel: int = ...) -> None: ...
|
| 48 |
+
@overload
|
| 49 |
+
def warn_explicit(
|
| 50 |
+
message: str,
|
| 51 |
+
category: Type[Warning],
|
| 52 |
+
filename: str,
|
| 53 |
+
lineno: int,
|
| 54 |
+
module: Optional[str] = ...,
|
| 55 |
+
registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,
|
| 56 |
+
module_globals: Optional[Dict[str, Any]] = ...,
|
| 57 |
+
) -> None: ...
|
| 58 |
+
@overload
|
| 59 |
+
def warn_explicit(
|
| 60 |
+
message: Warning,
|
| 61 |
+
category: Any,
|
| 62 |
+
filename: str,
|
| 63 |
+
lineno: int,
|
| 64 |
+
module: Optional[str] = ...,
|
| 65 |
+
registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,
|
| 66 |
+
module_globals: Optional[Dict[str, Any]] = ...,
|
| 67 |
+
) -> None: ...
|