mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-17 20:15:00 +08:00
Stdlib: add container default values (#9909)
This commit is contained in:
@@ -17,7 +17,7 @@ class DecompressReader(RawIOBase):
|
||||
self,
|
||||
fp: _Reader,
|
||||
decomp_factory: Callable[..., object],
|
||||
trailing_error: type[Exception] | tuple[type[Exception], ...] = ...,
|
||||
trailing_error: type[Exception] | tuple[type[Exception], ...] = (),
|
||||
**decomp_args: Any,
|
||||
) -> None: ...
|
||||
def readinto(self, b: WriteableBuffer) -> int: ...
|
||||
|
||||
@@ -7,7 +7,7 @@ __all__ = ["error", "start_new_thread", "exit", "get_ident", "allocate_lock", "i
|
||||
TIMEOUT_MAX: int
|
||||
error = RuntimeError
|
||||
|
||||
def start_new_thread(function: Callable[..., object], args: tuple[Any, ...], kwargs: dict[str, Any] = ...) -> None: ...
|
||||
def start_new_thread(function: Callable[..., object], args: tuple[Any, ...], kwargs: dict[str, Any] = {}) -> None: ...
|
||||
def exit() -> NoReturn: ...
|
||||
def get_ident() -> int: ...
|
||||
def allocate_lock() -> LockType: ...
|
||||
|
||||
@@ -62,7 +62,7 @@ class Thread:
|
||||
group: None = None,
|
||||
target: Callable[..., object] | None = None,
|
||||
name: str | None = None,
|
||||
args: Iterable[Any] = ...,
|
||||
args: Iterable[Any] = (),
|
||||
kwargs: Mapping[str, Any] | None = None,
|
||||
*,
|
||||
daemon: bool | None = None,
|
||||
|
||||
@@ -10,7 +10,7 @@ class Quitter:
|
||||
|
||||
class _Printer:
|
||||
MAXLINES: ClassVar[Literal[23]]
|
||||
def __init__(self, name: str, data: str, files: Iterable[str] = ..., dirs: Iterable[str] = ...) -> None: ...
|
||||
def __init__(self, name: str, data: str, files: Iterable[str] = (), dirs: Iterable[str] = ()) -> None: ...
|
||||
def __call__(self) -> None: ...
|
||||
|
||||
class _Helper:
|
||||
|
||||
@@ -135,7 +135,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer):
|
||||
usage: str | None = None,
|
||||
description: str | None = None,
|
||||
epilog: str | None = None,
|
||||
parents: Sequence[ArgumentParser] = ...,
|
||||
parents: Sequence[ArgumentParser] = [],
|
||||
formatter_class: _FormatterClass = ...,
|
||||
prefix_chars: str = "-",
|
||||
fromfile_prefix_chars: str | None = None,
|
||||
@@ -152,7 +152,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer):
|
||||
usage: str | None = None,
|
||||
description: str | None = None,
|
||||
epilog: str | None = None,
|
||||
parents: Sequence[ArgumentParser] = ...,
|
||||
parents: Sequence[ArgumentParser] = [],
|
||||
formatter_class: _FormatterClass = ...,
|
||||
prefix_chars: str = "-",
|
||||
fromfile_prefix_chars: str | None = None,
|
||||
|
||||
@@ -15,7 +15,7 @@ if sys.platform == "win32":
|
||||
BUFSIZE: Literal[8192]
|
||||
PIPE = subprocess.PIPE
|
||||
STDOUT = subprocess.STDOUT
|
||||
def pipe(*, duplex: bool = False, overlapped: tuple[bool, bool] = ..., bufsize: int = 8192) -> tuple[int, int]: ...
|
||||
def pipe(*, duplex: bool = False, overlapped: tuple[bool, bool] = (True, True), bufsize: int = 8192) -> tuple[int, int]: ...
|
||||
|
||||
class PipeHandle:
|
||||
def __init__(self, handle: int) -> None: ...
|
||||
|
||||
@@ -1839,7 +1839,7 @@ def __import__(
|
||||
name: str,
|
||||
globals: Mapping[str, object] | None = None,
|
||||
locals: Mapping[str, object] | None = None,
|
||||
fromlist: Sequence[str] = ...,
|
||||
fromlist: Sequence[str] = (),
|
||||
level: int = 0,
|
||||
) -> types.ModuleType: ...
|
||||
def __build_class__(__func: Callable[[], _Cell | Any], __name: str, *bases: Any, metaclass: Any = ..., **kwds: Any) -> Any: ...
|
||||
|
||||
@@ -174,7 +174,7 @@ class ProcessPoolExecutor(Executor):
|
||||
max_workers: int | None = None,
|
||||
mp_context: BaseContext | None = None,
|
||||
initializer: Callable[..., object] | None = None,
|
||||
initargs: tuple[Any, ...] = ...,
|
||||
initargs: tuple[Any, ...] = (),
|
||||
*,
|
||||
max_tasks_per_child: int | None = None,
|
||||
) -> None: ...
|
||||
@@ -184,7 +184,7 @@ class ProcessPoolExecutor(Executor):
|
||||
max_workers: int | None = None,
|
||||
mp_context: BaseContext | None = None,
|
||||
initializer: Callable[..., object] | None = None,
|
||||
initargs: tuple[Any, ...] = ...,
|
||||
initargs: tuple[Any, ...] = (),
|
||||
) -> None: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def _start_executor_manager_thread(self) -> None: ...
|
||||
|
||||
@@ -53,7 +53,7 @@ class ThreadPoolExecutor(Executor):
|
||||
max_workers: int | None = None,
|
||||
thread_name_prefix: str = "",
|
||||
initializer: Callable[..., object] | None = None,
|
||||
initargs: tuple[Any, ...] = ...,
|
||||
initargs: tuple[Any, ...] = (),
|
||||
) -> None: ...
|
||||
def _adjust_thread_count(self) -> None: ...
|
||||
def _initializer_failed(self) -> None: ...
|
||||
|
||||
@@ -69,8 +69,8 @@ class RawConfigParser(_Parser):
|
||||
dict_type: type[Mapping[str, str]] = ...,
|
||||
*,
|
||||
allow_no_value: Literal[True],
|
||||
delimiters: Sequence[str] = ...,
|
||||
comment_prefixes: Sequence[str] = ...,
|
||||
delimiters: Sequence[str] = ("=", ":"),
|
||||
comment_prefixes: Sequence[str] = ("#", ";"),
|
||||
inline_comment_prefixes: Sequence[str] | None = None,
|
||||
strict: bool = True,
|
||||
empty_lines_in_values: bool = True,
|
||||
@@ -85,8 +85,8 @@ class RawConfigParser(_Parser):
|
||||
dict_type: type[Mapping[str, str]],
|
||||
allow_no_value: Literal[True],
|
||||
*,
|
||||
delimiters: Sequence[str] = ...,
|
||||
comment_prefixes: Sequence[str] = ...,
|
||||
delimiters: Sequence[str] = ("=", ":"),
|
||||
comment_prefixes: Sequence[str] = ("#", ";"),
|
||||
inline_comment_prefixes: Sequence[str] | None = None,
|
||||
strict: bool = True,
|
||||
empty_lines_in_values: bool = True,
|
||||
@@ -101,8 +101,8 @@ class RawConfigParser(_Parser):
|
||||
dict_type: type[Mapping[str, str]] = ...,
|
||||
allow_no_value: bool = False,
|
||||
*,
|
||||
delimiters: Sequence[str] = ...,
|
||||
comment_prefixes: Sequence[str] = ...,
|
||||
delimiters: Sequence[str] = ("=", ":"),
|
||||
comment_prefixes: Sequence[str] = ("#", ";"),
|
||||
inline_comment_prefixes: Sequence[str] | None = None,
|
||||
strict: bool = True,
|
||||
empty_lines_in_values: bool = True,
|
||||
|
||||
@@ -8,7 +8,7 @@ _T = TypeVar("_T")
|
||||
PyStringMap: Any
|
||||
|
||||
# Note: memo and _nil are internal kwargs.
|
||||
def deepcopy(x: _T, memo: dict[int, Any] | None = None, _nil: Any = ...) -> _T: ...
|
||||
def deepcopy(x: _T, memo: dict[int, Any] | None = None, _nil: Any = []) -> _T: ...
|
||||
def copy(x: _T) -> _T: ...
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
@@ -252,7 +252,7 @@ if sys.version_info >= (3, 11):
|
||||
cls_name: str,
|
||||
fields: Iterable[str | tuple[str, type] | tuple[str, type, Any]],
|
||||
*,
|
||||
bases: tuple[type, ...] = ...,
|
||||
bases: tuple[type, ...] = (),
|
||||
namespace: dict[str, Any] | None = None,
|
||||
init: bool = True,
|
||||
repr: bool = True,
|
||||
@@ -271,7 +271,7 @@ elif sys.version_info >= (3, 10):
|
||||
cls_name: str,
|
||||
fields: Iterable[str | tuple[str, type] | tuple[str, type, Any]],
|
||||
*,
|
||||
bases: tuple[type, ...] = ...,
|
||||
bases: tuple[type, ...] = (),
|
||||
namespace: dict[str, Any] | None = None,
|
||||
init: bool = True,
|
||||
repr: bool = True,
|
||||
@@ -289,7 +289,7 @@ else:
|
||||
cls_name: str,
|
||||
fields: Iterable[str | tuple[str, type] | tuple[str, type, Any]],
|
||||
*,
|
||||
bases: tuple[type, ...] = ...,
|
||||
bases: tuple[type, ...] = (),
|
||||
namespace: dict[str, Any] | None = None,
|
||||
init: bool = True,
|
||||
repr: bool = True,
|
||||
|
||||
@@ -74,7 +74,7 @@ class config(Command):
|
||||
library_dirs: Sequence[str] | None = None,
|
||||
headers: Sequence[str] | None = None,
|
||||
include_dirs: Sequence[str] | None = None,
|
||||
other_libraries: list[str] = ...,
|
||||
other_libraries: list[str] = [],
|
||||
) -> bool: ...
|
||||
def check_header(
|
||||
self, header: str, include_dirs: Sequence[str] | None = None, library_dirs: Sequence[str] | None = None, lang: str = "c"
|
||||
|
||||
@@ -110,7 +110,7 @@ class Distribution:
|
||||
def reinitialize_command(self, command: str, reinit_subcommands: bool = False) -> Command: ...
|
||||
@overload
|
||||
def reinitialize_command(self, command: _CommandT, reinit_subcommands: bool = False) -> _CommandT: ...
|
||||
def announce(self, msg, level: int = ...) -> None: ...
|
||||
def announce(self, msg, level: int = 2) -> None: ...
|
||||
def run_commands(self) -> None: ...
|
||||
def run_command(self, command: str) -> None: ...
|
||||
def has_pure_modules(self) -> bool: ...
|
||||
|
||||
@@ -31,4 +31,4 @@ def wrap_text(text: str, width: int) -> list[str]: ...
|
||||
def translate_longopt(opt: str) -> str: ...
|
||||
|
||||
class OptionDummy:
|
||||
def __init__(self, options: Iterable[str] = ...) -> None: ...
|
||||
def __init__(self, options: Iterable[str] = []) -> None: ...
|
||||
|
||||
@@ -105,7 +105,7 @@ class Message:
|
||||
|
||||
class MIMEPart(Message):
|
||||
def __init__(self, policy: Policy | None = None) -> None: ...
|
||||
def get_body(self, preferencelist: Sequence[str] = ...) -> Message | None: ...
|
||||
def get_body(self, preferencelist: Sequence[str] = ("related", "html", "plain")) -> Message | None: ...
|
||||
def iter_attachments(self) -> Iterator[Message]: ...
|
||||
def iter_parts(self) -> Iterator[Message]: ...
|
||||
def get_content(self, *args: Any, content_manager: ContentManager | None = None, **kw: Any) -> Any: ...
|
||||
|
||||
@@ -106,7 +106,7 @@ class FTP:
|
||||
def nlst(self, *args: str) -> list[str]: ...
|
||||
# Technically only the last arg can be a Callable but ...
|
||||
def dir(self, *args: str | Callable[[str], object]) -> None: ...
|
||||
def mlsd(self, path: str = "", facts: Iterable[str] = ...) -> Iterator[tuple[str, dict[str, str]]]: ...
|
||||
def mlsd(self, path: str = "", facts: Iterable[str] = []) -> Iterator[tuple[str, dict[str, str]]]: ...
|
||||
def rename(self, fromname: str, toname: str) -> str: ...
|
||||
def delete(self, filename: str) -> str: ...
|
||||
def cwd(self, dirname: str) -> str: ...
|
||||
|
||||
@@ -82,11 +82,13 @@ class _Wrapper(Generic[_PWrapped, _RWrapped]):
|
||||
def update_wrapper(
|
||||
wrapper: Callable[_PWrapper, _RWapper],
|
||||
wrapped: Callable[_PWrapped, _RWrapped],
|
||||
assigned: Sequence[str] = ...,
|
||||
updated: Sequence[str] = ...,
|
||||
assigned: Sequence[str] = ("__module__", "__name__", "__qualname__", "__doc__", "__annotations__"),
|
||||
updated: Sequence[str] = ("__dict__",),
|
||||
) -> _Wrapped[_PWrapped, _RWrapped, _PWrapper, _RWapper]: ...
|
||||
def wraps(
|
||||
wrapped: Callable[_PWrapped, _RWrapped], assigned: Sequence[str] = ..., updated: Sequence[str] = ...
|
||||
wrapped: Callable[_PWrapped, _RWrapped],
|
||||
assigned: Sequence[str] = ("__module__", "__name__", "__qualname__", "__doc__", "__annotations__"),
|
||||
updated: Sequence[str] = ("__dict__",),
|
||||
) -> _Wrapper[_PWrapped, _RWrapped]: ...
|
||||
def total_ordering(cls: type[_T]) -> type[_T]: ...
|
||||
def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], SupportsAllComparisons]: ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
__all__ = ["GetoptError", "error", "getopt", "gnu_getopt"]
|
||||
|
||||
def getopt(args: list[str], shortopts: str, longopts: list[str] = ...) -> tuple[list[tuple[str, str]], list[str]]: ...
|
||||
def gnu_getopt(args: list[str], shortopts: str, longopts: list[str] = ...) -> tuple[list[tuple[str, str]], list[str]]: ...
|
||||
def getopt(args: list[str], shortopts: str, longopts: list[str] = []) -> tuple[list[tuple[str, str]], list[str]]: ...
|
||||
def gnu_getopt(args: list[str], shortopts: str, longopts: list[str] = []) -> tuple[list[tuple[str, str]], list[str]]: ...
|
||||
|
||||
class GetoptError(Exception):
|
||||
msg: str
|
||||
|
||||
@@ -158,7 +158,7 @@ class HTTPConnection:
|
||||
method: str,
|
||||
url: str,
|
||||
body: _DataType | str | None = None,
|
||||
headers: Mapping[str, str] = ...,
|
||||
headers: Mapping[str, str] = {},
|
||||
*,
|
||||
encode_chunked: bool = False,
|
||||
) -> None: ...
|
||||
|
||||
@@ -99,7 +99,7 @@ class DefaultCookiePolicy(CookiePolicy):
|
||||
strict_ns_domain: int = 0,
|
||||
strict_ns_set_initial_dollar: bool = False,
|
||||
strict_ns_set_path: bool = False,
|
||||
secure_protocols: Sequence[str] = ...,
|
||||
secure_protocols: Sequence[str] = ("https", "wss"),
|
||||
) -> None: ...
|
||||
else:
|
||||
def __init__(
|
||||
|
||||
@@ -9,7 +9,7 @@ def __import__(
|
||||
name: str,
|
||||
globals: Mapping[str, object] | None = None,
|
||||
locals: Mapping[str, object] | None = None,
|
||||
fromlist: Sequence[str] = ...,
|
||||
fromlist: Sequence[str] = (),
|
||||
level: int = 0,
|
||||
) -> ModuleType: ...
|
||||
|
||||
|
||||
@@ -450,9 +450,9 @@ if sys.version_info < (3, 11):
|
||||
varargs: str | None = None,
|
||||
varkw: str | None = None,
|
||||
defaults: tuple[Any, ...] | None = None,
|
||||
kwonlyargs: Sequence[str] | None = ...,
|
||||
kwonlydefaults: Mapping[str, Any] | None = ...,
|
||||
annotations: Mapping[str, Any] = ...,
|
||||
kwonlyargs: Sequence[str] | None = (),
|
||||
kwonlydefaults: Mapping[str, Any] | None = {},
|
||||
annotations: Mapping[str, Any] = {},
|
||||
formatarg: Callable[[str], str] = ...,
|
||||
formatvarargs: Callable[[str], str] = ...,
|
||||
formatvarkw: Callable[[str], str] = ...,
|
||||
|
||||
@@ -57,7 +57,7 @@ class Leaf(Base):
|
||||
value: str
|
||||
fixers_applied: list[Any]
|
||||
def __init__(
|
||||
self, type: int, value: str, context: _Context | None = None, prefix: str | None = None, fixers_applied: list[Any] = ...
|
||||
self, type: int, value: str, context: _Context | None = None, prefix: str | None = None, fixers_applied: list[Any] = []
|
||||
) -> None: ...
|
||||
def __unicode__(self) -> str: ...
|
||||
|
||||
|
||||
@@ -114,7 +114,9 @@ class Error(Exception): ...
|
||||
def setlocale(category: int, locale: _str | Iterable[_str | None] | None = None) -> _str: ...
|
||||
def localeconv() -> Mapping[_str, int | _str | list[int]]: ...
|
||||
def nl_langinfo(__key: int) -> _str: ...
|
||||
def getdefaultlocale(envvars: tuple[_str, ...] = ...) -> tuple[_str | None, _str | None]: ...
|
||||
def getdefaultlocale(
|
||||
envvars: tuple[_str, ...] = ("LC_ALL", "LC_CTYPE", "LANG", "LANGUAGE")
|
||||
) -> tuple[_str | None, _str | None]: ...
|
||||
def getlocale(category: int = ...) -> tuple[_str | None, _str | None]: ...
|
||||
def getpreferredencoding(do_setlocale: bool = True) -> _str: ...
|
||||
def normalize(localename: _str) -> _str: ...
|
||||
|
||||
@@ -177,7 +177,9 @@ class SysLogHandler(Handler):
|
||||
priority_names: ClassVar[dict[str, int]] # undocumented
|
||||
facility_names: ClassVar[dict[str, int]] # undocumented
|
||||
priority_map: ClassVar[dict[str, str]] # undocumented
|
||||
def __init__(self, address: tuple[str, int] | str = ..., facility: int = 1, socktype: SocketKind | None = None) -> None: ...
|
||||
def __init__(
|
||||
self, address: tuple[str, int] | str = ("localhost", 514), facility: int = 1, socktype: SocketKind | None = None
|
||||
) -> None: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
def createSocket(self) -> None: ...
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@ _Cap: TypeAlias = dict[str, str | int]
|
||||
__all__ = ["getcaps", "findmatch"]
|
||||
|
||||
def findmatch(
|
||||
caps: Mapping[str, list[_Cap]], MIMEtype: str, key: str = "view", filename: str = "/dev/null", plist: Sequence[str] = ...
|
||||
caps: Mapping[str, list[_Cap]], MIMEtype: str, key: str = "view", filename: str = "/dev/null", plist: Sequence[str] = []
|
||||
) -> tuple[str | None, _Cap | None]: ...
|
||||
def getcaps() -> dict[str, list[_Cap]]: ...
|
||||
|
||||
@@ -43,7 +43,7 @@ class MimeTypes:
|
||||
encodings_map: dict[str, str]
|
||||
types_map: tuple[dict[str, str], dict[str, str]]
|
||||
types_map_inv: tuple[dict[str, str], dict[str, str]]
|
||||
def __init__(self, filenames: tuple[str, ...] = ..., strict: bool = True) -> None: ...
|
||||
def __init__(self, filenames: tuple[str, ...] = (), strict: bool = True) -> None: ...
|
||||
def guess_extension(self, type: str, strict: bool = True) -> str | None: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def guess_type(self, url: StrPath, strict: bool = True) -> tuple[str | None, str | None]: ...
|
||||
|
||||
@@ -44,8 +44,8 @@ class ModuleFinder:
|
||||
self,
|
||||
path: list[str] | None = None,
|
||||
debug: int = 0,
|
||||
excludes: Container[str] = ...,
|
||||
replace_paths: Sequence[tuple[str, str]] = ...,
|
||||
excludes: Container[str] = [],
|
||||
replace_paths: Sequence[tuple[str, str]] = [],
|
||||
) -> None: ...
|
||||
|
||||
def msg(self, level: int, str: str, *args: Any) -> None: ... # undocumented
|
||||
|
||||
@@ -72,7 +72,7 @@ class BaseContext:
|
||||
self,
|
||||
processes: int | None = None,
|
||||
initializer: Callable[..., object] | None = None,
|
||||
initargs: Iterable[Any] = ...,
|
||||
initargs: Iterable[Any] = (),
|
||||
maxtasksperchild: int | None = None,
|
||||
) -> _Pool: ...
|
||||
@overload
|
||||
|
||||
@@ -50,8 +50,8 @@ class DummyProcess(threading.Thread):
|
||||
group: Any = None,
|
||||
target: Callable[..., object] | None = None,
|
||||
name: str | None = None,
|
||||
args: Iterable[Any] = ...,
|
||||
kwargs: Mapping[str, Any] = ...,
|
||||
args: Iterable[Any] = (),
|
||||
kwargs: Mapping[str, Any] = {},
|
||||
) -> None: ...
|
||||
|
||||
Process = DummyProcess
|
||||
@@ -69,9 +69,7 @@ class Value:
|
||||
|
||||
def Array(typecode: Any, sequence: Sequence[Any], lock: Any = True) -> array.array[Any]: ...
|
||||
def Manager() -> Any: ...
|
||||
def Pool(
|
||||
processes: int | None = None, initializer: Callable[..., object] | None = None, initargs: Iterable[Any] = ...
|
||||
) -> Any: ...
|
||||
def Pool(processes: int | None = None, initializer: Callable[..., object] | None = None, initargs: Iterable[Any] = ()) -> Any: ...
|
||||
def active_children() -> list[Any]: ...
|
||||
|
||||
current_process = threading.current_thread
|
||||
|
||||
@@ -54,7 +54,7 @@ class BaseProxy:
|
||||
manager_owned: bool = False,
|
||||
) -> None: ...
|
||||
def __deepcopy__(self, memo: Any | None) -> Any: ...
|
||||
def _callmethod(self, methodname: str, args: tuple[Any, ...] = ..., kwds: dict[Any, Any] = ...) -> None: ...
|
||||
def _callmethod(self, methodname: str, args: tuple[Any, ...] = (), kwds: dict[Any, Any] = {}) -> None: ...
|
||||
def _getvalue(self) -> Any: ...
|
||||
def __reduce__(self) -> tuple[Any, tuple[Any, Any, str, dict[Any, Any]]]: ...
|
||||
|
||||
@@ -150,7 +150,7 @@ class BaseManager:
|
||||
|
||||
def get_server(self) -> Server: ...
|
||||
def connect(self) -> None: ...
|
||||
def start(self, initializer: Callable[..., object] | None = None, initargs: Iterable[Any] = ...) -> None: ...
|
||||
def start(self, initializer: Callable[..., object] | None = None, initargs: Iterable[Any] = ()) -> None: ...
|
||||
def shutdown(self) -> None: ... # only available after start() was called
|
||||
def join(self, timeout: float | None = None) -> None: ... # undocumented
|
||||
@property
|
||||
|
||||
@@ -72,16 +72,16 @@ class Pool:
|
||||
self,
|
||||
processes: int | None = None,
|
||||
initializer: Callable[..., object] | None = None,
|
||||
initargs: Iterable[Any] = ...,
|
||||
initargs: Iterable[Any] = (),
|
||||
maxtasksperchild: int | None = None,
|
||||
context: Any | None = None,
|
||||
) -> None: ...
|
||||
def apply(self, func: Callable[..., _T], args: Iterable[Any] = ..., kwds: Mapping[str, Any] = ...) -> _T: ...
|
||||
def apply(self, func: Callable[..., _T], args: Iterable[Any] = (), kwds: Mapping[str, Any] = {}) -> _T: ...
|
||||
def apply_async(
|
||||
self,
|
||||
func: Callable[..., _T],
|
||||
args: Iterable[Any] = ...,
|
||||
kwds: Mapping[str, Any] = ...,
|
||||
args: Iterable[Any] = (),
|
||||
kwds: Mapping[str, Any] = {},
|
||||
callback: Callable[[_T], object] | None = None,
|
||||
error_callback: Callable[[BaseException], object] | None = None,
|
||||
) -> AsyncResult[_T]: ...
|
||||
@@ -115,7 +115,7 @@ class Pool:
|
||||
|
||||
class ThreadPool(Pool):
|
||||
def __init__(
|
||||
self, processes: int | None = None, initializer: Callable[..., object] | None = None, initargs: Iterable[Any] = ...
|
||||
self, processes: int | None = None, initializer: Callable[..., object] | None = None, initargs: Iterable[Any] = ()
|
||||
) -> None: ...
|
||||
|
||||
# undocumented
|
||||
|
||||
@@ -17,8 +17,8 @@ class BaseProcess:
|
||||
group: None = None,
|
||||
target: Callable[..., object] | None = None,
|
||||
name: str | None = None,
|
||||
args: Iterable[Any] = ...,
|
||||
kwargs: Mapping[str, Any] = ...,
|
||||
args: Iterable[Any] = (),
|
||||
kwargs: Mapping[str, Any] = {},
|
||||
*,
|
||||
daemon: bool | None = None,
|
||||
) -> None: ...
|
||||
|
||||
@@ -50,14 +50,14 @@ class Finalize:
|
||||
self,
|
||||
obj: Incomplete | None,
|
||||
callback: Callable[..., Incomplete],
|
||||
args: Sequence[Any] = ...,
|
||||
args: Sequence[Any] = (),
|
||||
kwargs: Mapping[str, Any] | None = None,
|
||||
exitpriority: int | None = None,
|
||||
) -> None: ...
|
||||
def __call__(
|
||||
self,
|
||||
wr: Unused = None,
|
||||
_finalizer_registry: MutableMapping[Incomplete, Incomplete] = ...,
|
||||
_finalizer_registry: MutableMapping[Incomplete, Incomplete] = {},
|
||||
sub_debug: Callable[..., object] = ...,
|
||||
getpid: Callable[[], int] = ...,
|
||||
) -> Incomplete: ...
|
||||
|
||||
@@ -128,7 +128,7 @@ class Pdb(Bdb, Cmd):
|
||||
def _select_frame(self, number: int) -> None: ...
|
||||
def _getval_except(self, arg: str, frame: FrameType | None = None) -> object: ...
|
||||
def _print_lines(
|
||||
self, lines: Sequence[str], start: int, breaks: Sequence[int] = ..., frame: FrameType | None = None
|
||||
self, lines: Sequence[str], start: int, breaks: Sequence[int] = (), frame: FrameType | None = None
|
||||
) -> None: ...
|
||||
def _cmdloop(self) -> None: ...
|
||||
def do_display(self, arg: str) -> bool | None: ...
|
||||
|
||||
@@ -121,7 +121,7 @@ if sys.version_info >= (3, 8):
|
||||
fix_imports: bool = True,
|
||||
encoding: str = "ASCII",
|
||||
errors: str = "strict",
|
||||
buffers: Iterable[Any] | None = ...,
|
||||
buffers: Iterable[Any] | None = (),
|
||||
) -> Any: ...
|
||||
def loads(
|
||||
__data: ReadableBuffer,
|
||||
@@ -129,7 +129,7 @@ if sys.version_info >= (3, 8):
|
||||
fix_imports: bool = True,
|
||||
encoding: str = "ASCII",
|
||||
errors: str = "strict",
|
||||
buffers: Iterable[Any] | None = ...,
|
||||
buffers: Iterable[Any] | None = (),
|
||||
) -> Any: ...
|
||||
|
||||
else:
|
||||
|
||||
@@ -33,10 +33,10 @@ if sys.version_info >= (3, 8):
|
||||
def win32_is_iot() -> bool: ...
|
||||
|
||||
def mac_ver(
|
||||
release: str = "", versioninfo: tuple[str, str, str] = ..., machine: str = ""
|
||||
release: str = "", versioninfo: tuple[str, str, str] = ("", "", ""), machine: str = ""
|
||||
) -> tuple[str, tuple[str, str, str], str]: ...
|
||||
def java_ver(
|
||||
release: str = "", vendor: str = "", vminfo: tuple[str, str, str] = ..., osinfo: tuple[str, str, str] = ...
|
||||
release: str = "", vendor: str = "", vminfo: tuple[str, str, str] = ("", "", ""), osinfo: tuple[str, str, str] = ("", "", "")
|
||||
) -> tuple[str, str, tuple[str, str, str], tuple[str, str, str]]: ...
|
||||
def system_alias(system: str, release: str, version: str) -> tuple[str, str, str]: ...
|
||||
def architecture(executable: str = sys.executable, bits: str = "", linkage: str = "") -> tuple[str, str]: ...
|
||||
|
||||
@@ -30,7 +30,7 @@ def visiblename(name: str, all: Container[str] | None = None, obj: object = None
|
||||
def classify_class_attrs(object: object) -> list[tuple[str, str, type, str]]: ...
|
||||
def ispackage(path: str) -> bool: ...
|
||||
def source_synopsis(file: IO[AnyStr]) -> AnyStr | None: ...
|
||||
def synopsis(filename: str, cache: MutableMapping[str, tuple[int, str]] = ...) -> str | None: ...
|
||||
def synopsis(filename: str, cache: MutableMapping[str, tuple[int, str]] = {}) -> str | None: ...
|
||||
|
||||
class ErrorDuringImport(Exception):
|
||||
filename: str
|
||||
@@ -40,7 +40,7 @@ class ErrorDuringImport(Exception):
|
||||
def __init__(self, filename: str, exc_info: OptExcInfo) -> None: ...
|
||||
|
||||
def importfile(path: str) -> ModuleType: ...
|
||||
def safeimport(path: str, forceload: bool = ..., cache: MutableMapping[str, ModuleType] = ...) -> ModuleType | None: ...
|
||||
def safeimport(path: str, forceload: bool = ..., cache: MutableMapping[str, ModuleType] = {}) -> ModuleType | None: ...
|
||||
|
||||
class Doc:
|
||||
PYTHONDOCS: str
|
||||
@@ -113,9 +113,9 @@ class HTMLDoc(Doc):
|
||||
self,
|
||||
text: str,
|
||||
escape: Callable[[str], str] | None = None,
|
||||
funcs: Mapping[str, str] = ...,
|
||||
classes: Mapping[str, str] = ...,
|
||||
methods: Mapping[str, str] = ...,
|
||||
funcs: Mapping[str, str] = {},
|
||||
classes: Mapping[str, str] = {},
|
||||
methods: Mapping[str, str] = {},
|
||||
) -> str: ...
|
||||
def formattree(
|
||||
self, tree: list[tuple[type, tuple[type, ...]] | list[Any]], modname: str, parent: type | None = None
|
||||
@@ -126,8 +126,8 @@ class HTMLDoc(Doc):
|
||||
object: object,
|
||||
name: str | None = None,
|
||||
mod: str | None = None,
|
||||
funcs: Mapping[str, str] = ...,
|
||||
classes: Mapping[str, str] = ...,
|
||||
funcs: Mapping[str, str] = {},
|
||||
classes: Mapping[str, str] = {},
|
||||
*ignored: Any,
|
||||
) -> str: ...
|
||||
def formatvalue(self, object: object) -> str: ...
|
||||
@@ -136,9 +136,9 @@ class HTMLDoc(Doc):
|
||||
object: object,
|
||||
name: str | None = None,
|
||||
mod: str | None = None,
|
||||
funcs: Mapping[str, str] = ...,
|
||||
classes: Mapping[str, str] = ...,
|
||||
methods: Mapping[str, str] = ...,
|
||||
funcs: Mapping[str, str] = {},
|
||||
classes: Mapping[str, str] = {},
|
||||
methods: Mapping[str, str] = {},
|
||||
cl: type | None = None,
|
||||
) -> str: ...
|
||||
def docproperty(self, object: object, name: str | None = None, mod: str | None = None, cl: Any | None = None) -> str: ... # type: ignore[override]
|
||||
|
||||
@@ -30,10 +30,10 @@ class scheduler:
|
||||
|
||||
def __init__(self, timefunc: Callable[[], float] = ..., delayfunc: Callable[[float], object] = ...) -> None: ...
|
||||
def enterabs(
|
||||
self, time: float, priority: Any, action: _ActionCallback, argument: tuple[Any, ...] = ..., kwargs: dict[str, Any] = ...
|
||||
self, time: float, priority: Any, action: _ActionCallback, argument: tuple[Any, ...] = (), kwargs: dict[str, Any] = ...
|
||||
) -> Event: ...
|
||||
def enter(
|
||||
self, delay: float, priority: Any, action: _ActionCallback, argument: tuple[Any, ...] = ..., kwargs: dict[str, Any] = ...
|
||||
self, delay: float, priority: Any, action: _ActionCallback, argument: tuple[Any, ...] = (), kwargs: dict[str, Any] = ...
|
||||
) -> Event: ...
|
||||
def run(self, blocking: bool = True) -> float | None: ...
|
||||
def cancel(self, event: Event) -> None: ...
|
||||
|
||||
@@ -182,4 +182,4 @@ def register_unpack_format(
|
||||
) -> None: ...
|
||||
def unregister_unpack_format(name: str) -> None: ...
|
||||
def get_unpack_formats() -> list[tuple[str, list[str], str]]: ...
|
||||
def get_terminal_size(fallback: tuple[int, int] = ...) -> os.terminal_size: ...
|
||||
def get_terminal_size(fallback: tuple[int, int] = (80, 24)) -> os.terminal_size: ...
|
||||
|
||||
@@ -111,8 +111,8 @@ class SMTP:
|
||||
def help(self, args: str = "") -> bytes: ...
|
||||
def rset(self) -> _Reply: ...
|
||||
def noop(self) -> _Reply: ...
|
||||
def mail(self, sender: str, options: Sequence[str] = ...) -> _Reply: ...
|
||||
def rcpt(self, recip: str, options: Sequence[str] = ...) -> _Reply: ...
|
||||
def mail(self, sender: str, options: Sequence[str] = ()) -> _Reply: ...
|
||||
def rcpt(self, recip: str, options: Sequence[str] = ()) -> _Reply: ...
|
||||
def data(self, msg: ReadableBuffer | str) -> _Reply: ...
|
||||
def verify(self, address: str) -> _Reply: ...
|
||||
vrfy = verify
|
||||
@@ -134,16 +134,16 @@ class SMTP:
|
||||
from_addr: str,
|
||||
to_addrs: str | Sequence[str],
|
||||
msg: _BufferWithLen | str,
|
||||
mail_options: Sequence[str] = ...,
|
||||
rcpt_options: Sequence[str] = ...,
|
||||
mail_options: Sequence[str] = (),
|
||||
rcpt_options: Sequence[str] = (),
|
||||
) -> _SendErrs: ...
|
||||
def send_message(
|
||||
self,
|
||||
msg: _Message,
|
||||
from_addr: str | None = None,
|
||||
to_addrs: str | Sequence[str] | None = None,
|
||||
mail_options: Sequence[str] = ...,
|
||||
rcpt_options: Sequence[str] = ...,
|
||||
mail_options: Sequence[str] = (),
|
||||
rcpt_options: Sequence[str] = (),
|
||||
) -> _SendErrs: ...
|
||||
def close(self) -> None: ...
|
||||
def quit(self) -> _Reply: ...
|
||||
|
||||
@@ -377,7 +377,7 @@ class Cursor(Iterator[Any]):
|
||||
def rowcount(self) -> int: ...
|
||||
def __init__(self, __cursor: Connection) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def execute(self, __sql: str, __parameters: _Parameters = ...) -> Self: ...
|
||||
def execute(self, __sql: str, __parameters: _Parameters = ()) -> Self: ...
|
||||
def executemany(self, __sql: str, __seq_of_parameters: Iterable[_Parameters]) -> Self: ...
|
||||
def executescript(self, __sql_script: str) -> Cursor: ...
|
||||
def fetchall(self) -> list[Any]: ...
|
||||
|
||||
@@ -47,8 +47,8 @@ class Template(metaclass=_TemplateMetaclass):
|
||||
flags: ClassVar[RegexFlag]
|
||||
pattern: ClassVar[Pattern[str]]
|
||||
def __init__(self, template: str) -> None: ...
|
||||
def substitute(self, __mapping: Mapping[str, object] = ..., **kwds: object) -> str: ...
|
||||
def safe_substitute(self, __mapping: Mapping[str, object] = ..., **kwds: object) -> str: ...
|
||||
def substitute(self, __mapping: Mapping[str, object] = {}, **kwds: object) -> str: ...
|
||||
def safe_substitute(self, __mapping: Mapping[str, object] = {}, **kwds: object) -> str: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
def get_identifiers(self) -> list[str]: ...
|
||||
def is_valid(self) -> bool: ...
|
||||
|
||||
@@ -1870,7 +1870,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str,
|
||||
@@ -1901,7 +1901,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -1933,7 +1933,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
# where the *real* keyword only args start
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -1964,7 +1964,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: Literal[True],
|
||||
encoding: str | None = None,
|
||||
@@ -1995,7 +1995,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: Literal[None, False] = None,
|
||||
encoding: None = None,
|
||||
@@ -2026,7 +2026,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -2059,7 +2059,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str,
|
||||
@@ -2089,7 +2089,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -2120,7 +2120,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
# where the *real* keyword only args start
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -2150,7 +2150,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: Literal[True],
|
||||
encoding: str | None = None,
|
||||
@@ -2180,7 +2180,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: Literal[None, False] = None,
|
||||
encoding: None = None,
|
||||
@@ -2210,7 +2210,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -2242,7 +2242,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str,
|
||||
@@ -2271,7 +2271,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -2301,7 +2301,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
# where the *real* keyword only args start
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -2330,7 +2330,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: Literal[True],
|
||||
encoding: str | None = None,
|
||||
@@ -2359,7 +2359,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: Literal[None, False] = None,
|
||||
encoding: None = None,
|
||||
@@ -2388,7 +2388,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -2418,7 +2418,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str,
|
||||
@@ -2443,7 +2443,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -2469,7 +2469,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
# where the *real* keyword only args start
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
@@ -2494,7 +2494,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: Literal[True],
|
||||
encoding: str | None = None,
|
||||
@@ -2519,7 +2519,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: Literal[None, False] = None,
|
||||
encoding: None = None,
|
||||
@@ -2544,7 +2544,7 @@ class Popen(Generic[AnyStr]):
|
||||
creationflags: int = 0,
|
||||
restore_signals: bool = True,
|
||||
start_new_session: bool = False,
|
||||
pass_fds: Collection[int] = ...,
|
||||
pass_fds: Collection[int] = (),
|
||||
*,
|
||||
text: bool | None = None,
|
||||
encoding: str | None = None,
|
||||
|
||||
@@ -78,7 +78,7 @@ class Thread:
|
||||
group: None = None,
|
||||
target: Callable[..., object] | None = None,
|
||||
name: str | None = None,
|
||||
args: Iterable[Any] = ...,
|
||||
args: Iterable[Any] = (),
|
||||
kwargs: Mapping[str, Any] | None = None,
|
||||
*,
|
||||
daemon: bool | None = None,
|
||||
|
||||
@@ -504,7 +504,7 @@ class Misc:
|
||||
def grid_columnconfigure(
|
||||
self,
|
||||
index: _GridIndex,
|
||||
cnf: _GridIndexInfo = ...,
|
||||
cnf: _GridIndexInfo = {},
|
||||
*,
|
||||
minsize: _ScreenUnits = ...,
|
||||
pad: _ScreenUnits = ...,
|
||||
@@ -514,7 +514,7 @@ class Misc:
|
||||
def grid_rowconfigure(
|
||||
self,
|
||||
index: _GridIndex,
|
||||
cnf: _GridIndexInfo = ...,
|
||||
cnf: _GridIndexInfo = {},
|
||||
*,
|
||||
minsize: _ScreenUnits = ...,
|
||||
pad: _ScreenUnits = ...,
|
||||
@@ -825,7 +825,7 @@ class Pack:
|
||||
# replaced by **kwargs.
|
||||
def pack_configure(
|
||||
self,
|
||||
cnf: Mapping[str, Any] | None = ...,
|
||||
cnf: Mapping[str, Any] | None = {},
|
||||
*,
|
||||
after: Misc = ...,
|
||||
anchor: _Anchor = ...,
|
||||
@@ -861,7 +861,7 @@ class _PlaceInfo(_InMiscNonTotal): # empty dict if widget hasn't been placed
|
||||
class Place:
|
||||
def place_configure(
|
||||
self,
|
||||
cnf: Mapping[str, Any] | None = ...,
|
||||
cnf: Mapping[str, Any] | None = {},
|
||||
*,
|
||||
anchor: _Anchor = ...,
|
||||
bordermode: Literal["inside", "outside", "ignore"] = ...,
|
||||
@@ -896,7 +896,7 @@ class _GridInfo(_InMiscNonTotal): # empty dict if widget hasn't been gridded
|
||||
class Grid:
|
||||
def grid_configure(
|
||||
self,
|
||||
cnf: Mapping[str, Any] | None = ...,
|
||||
cnf: Mapping[str, Any] | None = {},
|
||||
*,
|
||||
column: int = ...,
|
||||
columnspan: int = ...,
|
||||
@@ -920,7 +920,7 @@ class Grid:
|
||||
class BaseWidget(Misc):
|
||||
master: Misc
|
||||
widgetName: Incomplete
|
||||
def __init__(self, master, widgetName, cnf=..., kw=..., extra=...) -> None: ...
|
||||
def __init__(self, master, widgetName, cnf={}, kw={}, extra=()) -> None: ...
|
||||
def destroy(self) -> None: ...
|
||||
|
||||
# This class represents any widget except Toplevel or Tk.
|
||||
@@ -947,7 +947,7 @@ class Toplevel(BaseWidget, Wm):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
@@ -1003,7 +1003,7 @@ class Button(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeforeground: _Color = ...,
|
||||
@@ -1100,7 +1100,7 @@ class Canvas(Widget, XView, YView):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
@@ -1721,7 +1721,7 @@ class Canvas(Widget, XView, YView):
|
||||
if sys.version_info >= (3, 8):
|
||||
def moveto(self, tagOrId: str | _CanvasItemId, x: Literal[""] | float = "", y: Literal[""] | float = "") -> None: ...
|
||||
|
||||
def postscript(self, cnf=..., **kw): ...
|
||||
def postscript(self, cnf={}, **kw): ...
|
||||
# tkinter does:
|
||||
# lower = tag_lower
|
||||
# lift = tkraise = tag_raise
|
||||
@@ -1746,7 +1746,7 @@ class Checkbutton(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeforeground: _Color = ...,
|
||||
@@ -1865,7 +1865,7 @@ class Entry(Widget, XView):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
@@ -1976,7 +1976,7 @@ class Frame(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
@@ -2028,7 +2028,7 @@ class Label(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeforeground: _Color = ...,
|
||||
@@ -2108,7 +2108,7 @@ class Listbox(Widget, XView, YView):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activestyle: Literal["dotbox", "none", "underline"] = ...,
|
||||
background: _Color = ...,
|
||||
@@ -2221,7 +2221,7 @@ class Menu(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeborderwidth: _ScreenUnits = ...,
|
||||
@@ -2281,11 +2281,11 @@ class Menu(Widget):
|
||||
config = configure
|
||||
def tk_popup(self, x: int, y: int, entry: str | int = "") -> None: ...
|
||||
def activate(self, index: str | int) -> None: ...
|
||||
def add(self, itemType, cnf=..., **kw): ... # docstring says "Internal function."
|
||||
def insert(self, index, itemType, cnf=..., **kw): ... # docstring says "Internal function."
|
||||
def add(self, itemType, cnf={}, **kw): ... # docstring says "Internal function."
|
||||
def insert(self, index, itemType, cnf={}, **kw): ... # docstring says "Internal function."
|
||||
def add_cascade(
|
||||
self,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2306,7 +2306,7 @@ class Menu(Widget):
|
||||
) -> None: ...
|
||||
def add_checkbutton(
|
||||
self,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2332,7 +2332,7 @@ class Menu(Widget):
|
||||
) -> None: ...
|
||||
def add_command(
|
||||
self,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2352,7 +2352,7 @@ class Menu(Widget):
|
||||
) -> None: ...
|
||||
def add_radiobutton(
|
||||
self,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2375,11 +2375,11 @@ class Menu(Widget):
|
||||
value: Any = ...,
|
||||
variable: Variable = ...,
|
||||
) -> None: ...
|
||||
def add_separator(self, cnf: dict[str, Any] | None = ..., *, background: _Color = ...) -> None: ...
|
||||
def add_separator(self, cnf: dict[str, Any] | None = {}, *, background: _Color = ...) -> None: ...
|
||||
def insert_cascade(
|
||||
self,
|
||||
index: str | int,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2401,7 +2401,7 @@ class Menu(Widget):
|
||||
def insert_checkbutton(
|
||||
self,
|
||||
index: str | int,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2428,7 +2428,7 @@ class Menu(Widget):
|
||||
def insert_command(
|
||||
self,
|
||||
index: str | int,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2449,7 +2449,7 @@ class Menu(Widget):
|
||||
def insert_radiobutton(
|
||||
self,
|
||||
index: str | int,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2472,7 +2472,7 @@ class Menu(Widget):
|
||||
value: Any = ...,
|
||||
variable: Variable = ...,
|
||||
) -> None: ...
|
||||
def insert_separator(self, index: str | int, cnf: dict[str, Any] | None = ..., *, background: _Color = ...) -> None: ...
|
||||
def insert_separator(self, index: str | int, cnf: dict[str, Any] | None = {}, *, background: _Color = ...) -> None: ...
|
||||
def delete(self, index1: str | int, index2: str | int | None = None) -> None: ...
|
||||
def entrycget(self, index: str | int, option: str) -> Any: ...
|
||||
def entryconfigure(
|
||||
@@ -2491,7 +2491,7 @@ class Menubutton(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeforeground: _Color = ...,
|
||||
@@ -2577,7 +2577,7 @@ class Message(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
anchor: _Anchor = ...,
|
||||
aspect: int = ...,
|
||||
@@ -2640,7 +2640,7 @@ class Radiobutton(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeforeground: _Color = ...,
|
||||
@@ -2744,7 +2744,7 @@ class Scale(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
background: _Color = ...,
|
||||
@@ -2835,7 +2835,7 @@ class Scrollbar(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activerelief: _Relief = ...,
|
||||
@@ -2907,7 +2907,7 @@ class Text(Widget, XView, YView):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
autoseparators: bool = ...,
|
||||
background: _Color = ...,
|
||||
@@ -3078,7 +3078,7 @@ class Text(Widget, XView, YView):
|
||||
# TODO: image_* methods
|
||||
def image_cget(self, index, option): ...
|
||||
def image_configure(self, index, cnf: Incomplete | None = None, **kw): ...
|
||||
def image_create(self, index, cnf=..., **kw): ...
|
||||
def image_create(self, index, cnf={}, **kw): ...
|
||||
def image_names(self): ...
|
||||
def index(self, index: _TextIndex) -> str: ...
|
||||
def insert(self, index: _TextIndex, chars: str, *args: str | list[str] | tuple[str, ...]) -> None: ...
|
||||
@@ -3092,7 +3092,7 @@ class Text(Widget, XView, YView):
|
||||
def mark_next(self, index: _TextIndex) -> str | None: ...
|
||||
def mark_previous(self, index: _TextIndex) -> str | None: ...
|
||||
# **kw of peer_create is same as the kwargs of Text.__init__
|
||||
def peer_create(self, newPathName: str | Text, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def peer_create(self, newPathName: str | Text, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def peer_names(self) -> tuple[_tkinter.Tcl_Obj, ...]: ...
|
||||
def replace(self, index1: _TextIndex, index2: _TextIndex, chars: str, *args: str | list[str] | tuple[str, ...]) -> None: ...
|
||||
def scan_mark(self, x: int, y: int) -> None: ...
|
||||
@@ -3181,7 +3181,7 @@ class Text(Widget, XView, YView):
|
||||
def window_cget(self, index, option): ...
|
||||
def window_configure(self, index, cnf: Incomplete | None = None, **kw): ...
|
||||
window_config = window_configure
|
||||
def window_create(self, index, cnf=..., **kw) -> None: ...
|
||||
def window_create(self, index, cnf={}, **kw) -> None: ...
|
||||
def window_names(self): ...
|
||||
def yview_pickplace(self, *what): ... # deprecated
|
||||
|
||||
@@ -3222,7 +3222,7 @@ class Image(_Image):
|
||||
name: Incomplete
|
||||
tk: _tkinter.TkappType
|
||||
def __init__(
|
||||
self, imgtype, name: Incomplete | None = None, cnf=..., master: Misc | _tkinter.TkappType | None = None, **kw
|
||||
self, imgtype, name: Incomplete | None = None, cnf={}, master: Misc | _tkinter.TkappType | None = None, **kw
|
||||
) -> None: ...
|
||||
def __del__(self) -> None: ...
|
||||
def __setitem__(self, key, value) -> None: ...
|
||||
@@ -3238,7 +3238,7 @@ class PhotoImage(Image, _PhotoImageLike):
|
||||
def __init__(
|
||||
self,
|
||||
name: str | None = None,
|
||||
cnf: dict[str, Any] = ...,
|
||||
cnf: dict[str, Any] = {},
|
||||
master: Misc | _tkinter.TkappType | None = None,
|
||||
*,
|
||||
data: str | bytes = ..., # not same as data argument of put()
|
||||
@@ -3291,7 +3291,7 @@ class BitmapImage(Image, _BitmapImageLike):
|
||||
def __init__(
|
||||
self,
|
||||
name: Incomplete | None = None,
|
||||
cnf: dict[str, Any] = ...,
|
||||
cnf: dict[str, Any] = {},
|
||||
master: Misc | _tkinter.TkappType | None = None,
|
||||
*,
|
||||
background: _Color = ...,
|
||||
@@ -3309,7 +3309,7 @@ class Spinbox(Widget, XView):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
background: _Color = ...,
|
||||
@@ -3449,7 +3449,7 @@ class LabelFrame(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
@@ -3514,7 +3514,7 @@ class PanedWindow(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
|
||||
@@ -12,5 +12,5 @@ DIALOG_ICON: str
|
||||
class Dialog(Widget):
|
||||
widgetName: str
|
||||
num: int
|
||||
def __init__(self, master: Incomplete | None = None, cnf: Mapping[str, Any] = ..., **kw: Incomplete) -> None: ...
|
||||
def __init__(self, master: Incomplete | None = None, cnf: Mapping[str, Any] = {}, **kw: Incomplete) -> None: ...
|
||||
def destroy(self) -> None: ...
|
||||
|
||||
@@ -14,7 +14,7 @@ class SimpleDialog:
|
||||
self,
|
||||
master: Misc | None,
|
||||
text: str = "",
|
||||
buttons: list[str] = ...,
|
||||
buttons: list[str] = [],
|
||||
default: int | None = None,
|
||||
cancel: int | None = None,
|
||||
title: str | None = None,
|
||||
|
||||
@@ -54,117 +54,117 @@ class TixWidget(tkinter.Widget):
|
||||
master: tkinter.Misc | None = None,
|
||||
widgetName: str | None = None,
|
||||
static_options: list[str] | None = None,
|
||||
cnf: dict[str, Any] = ...,
|
||||
kw: dict[str, Any] = ...,
|
||||
cnf: dict[str, Any] = {},
|
||||
kw: dict[str, Any] = {},
|
||||
) -> None: ...
|
||||
def __getattr__(self, name: str): ...
|
||||
def set_silent(self, value: str) -> None: ...
|
||||
def subwidget(self, name: str) -> tkinter.Widget: ...
|
||||
def subwidgets_all(self) -> list[tkinter.Widget]: ...
|
||||
def config_all(self, option: Any, value: Any) -> None: ...
|
||||
def image_create(self, imgtype: str, cnf: dict[str, Any] = ..., master: tkinter.Widget | None = None, **kw) -> None: ...
|
||||
def image_create(self, imgtype: str, cnf: dict[str, Any] = {}, master: tkinter.Widget | None = None, **kw) -> None: ...
|
||||
def image_delete(self, imgname: str) -> None: ...
|
||||
|
||||
class TixSubWidget(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget, name: str, destroy_physically: int = 1, check_intermediate: int = 1) -> None: ...
|
||||
|
||||
class DisplayStyle:
|
||||
def __init__(self, itemtype: str, cnf: dict[str, Any] = ..., *, master: tkinter.Widget | None = None, **kw) -> None: ...
|
||||
def __init__(self, itemtype: str, cnf: dict[str, Any] = {}, *, master: tkinter.Widget | None = None, **kw) -> None: ...
|
||||
def __getitem__(self, key: str): ...
|
||||
def __setitem__(self, key: str, value: Any) -> None: ...
|
||||
def delete(self) -> None: ...
|
||||
def config(self, cnf: dict[str, Any] = ..., **kw): ...
|
||||
def config(self, cnf: dict[str, Any] = {}, **kw): ...
|
||||
|
||||
class Balloon(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def bind_widget(self, widget: tkinter.Widget, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def bind_widget(self, widget: tkinter.Widget, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def unbind_widget(self, widget: tkinter.Widget) -> None: ...
|
||||
|
||||
class ButtonBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = ..., **kw) -> tkinter.Widget: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
|
||||
def invoke(self, name: str) -> None: ...
|
||||
|
||||
class ComboBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add_history(self, str: str) -> None: ...
|
||||
def append_history(self, str: str) -> None: ...
|
||||
def insert(self, index: int, str: str) -> None: ...
|
||||
def pick(self, index: int) -> None: ...
|
||||
|
||||
class Control(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def decrement(self) -> None: ...
|
||||
def increment(self) -> None: ...
|
||||
def invoke(self) -> None: ...
|
||||
|
||||
class LabelEntry(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
|
||||
class LabelFrame(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
|
||||
class Meter(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
|
||||
class OptionMenu(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add_command(self, name: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add_separator(self, name: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add_command(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add_separator(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def delete(self, name: str) -> None: ...
|
||||
def disable(self, name: str) -> None: ...
|
||||
def enable(self, name: str) -> None: ...
|
||||
|
||||
class PopupMenu(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def bind_widget(self, widget: tkinter.Widget) -> None: ...
|
||||
def unbind_widget(self, widget: tkinter.Widget) -> None: ...
|
||||
def post_widget(self, widget: tkinter.Widget, x: int, y: int) -> None: ...
|
||||
|
||||
class Select(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = ..., **kw) -> tkinter.Widget: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
|
||||
def invoke(self, name: str) -> None: ...
|
||||
|
||||
class StdButtonBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def invoke(self, name: str) -> None: ...
|
||||
|
||||
class DirList(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def chdir(self, dir: str) -> None: ...
|
||||
|
||||
class DirTree(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def chdir(self, dir: str) -> None: ...
|
||||
|
||||
class DirSelectDialog(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def popup(self) -> None: ...
|
||||
def popdown(self) -> None: ...
|
||||
|
||||
class DirSelectBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
|
||||
class ExFileSelectBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def filter(self) -> None: ...
|
||||
def invoke(self) -> None: ...
|
||||
|
||||
class FileSelectBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def apply_filter(self) -> None: ...
|
||||
def invoke(self) -> None: ...
|
||||
|
||||
class FileEntry(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def invoke(self) -> None: ...
|
||||
def file_dialog(self) -> None: ...
|
||||
|
||||
class HList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, entry: str, cnf: dict[str, Any] = ..., **kw) -> tkinter.Widget: ...
|
||||
def add_child(self, parent: str | None = None, cnf: dict[str, Any] = ..., **kw) -> tkinter.Widget: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
|
||||
def add_child(self, parent: str | None = None, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
|
||||
def anchor_set(self, entry: str) -> None: ...
|
||||
def anchor_clear(self) -> None: ...
|
||||
# FIXME: Overload, certain combos return, others don't
|
||||
@@ -177,16 +177,16 @@ class HList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def dragsite_clear(self) -> None: ...
|
||||
def dropsite_set(self, index: int) -> None: ...
|
||||
def dropsite_clear(self) -> None: ...
|
||||
def header_create(self, col: int, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def header_configure(self, col: int, cnf: dict[str, Any] = ..., **kw) -> Incomplete | None: ...
|
||||
def header_create(self, col: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def header_configure(self, col: int, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
|
||||
def header_cget(self, col: int, opt): ...
|
||||
def header_exists(self, col: int) -> bool: ...
|
||||
def header_exist(self, col: int) -> bool: ...
|
||||
def header_delete(self, col: int) -> None: ...
|
||||
def header_size(self, col: int) -> int: ...
|
||||
def hide_entry(self, entry: str) -> None: ...
|
||||
def indicator_create(self, entry: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def indicator_configure(self, entry: str, cnf: dict[str, Any] = ..., **kw) -> Incomplete | None: ...
|
||||
def indicator_create(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def indicator_configure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
|
||||
def indicator_cget(self, entry: str, opt): ...
|
||||
def indicator_exists(self, entry: str) -> bool: ...
|
||||
def indicator_delete(self, entry: str) -> None: ...
|
||||
@@ -204,21 +204,21 @@ class HList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def info_prev(self, entry: str) -> str: ...
|
||||
def info_selection(self) -> tuple[str, ...]: ...
|
||||
def item_cget(self, entry: str, col: int, opt): ...
|
||||
def item_configure(self, entry: str, col: int, cnf: dict[str, Any] = ..., **kw) -> Incomplete | None: ...
|
||||
def item_create(self, entry: str, col: int, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def item_configure(self, entry: str, col: int, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
|
||||
def item_create(self, entry: str, col: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def item_exists(self, entry: str, col: int) -> bool: ...
|
||||
def item_delete(self, entry: str, col: int) -> None: ...
|
||||
def entrycget(self, entry: str, opt): ...
|
||||
def entryconfigure(self, entry: str, cnf: dict[str, Any] = ..., **kw) -> Incomplete | None: ...
|
||||
def entryconfigure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
|
||||
def nearest(self, y: int) -> str: ...
|
||||
def see(self, entry: str) -> None: ...
|
||||
def selection_clear(self, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def selection_clear(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def selection_includes(self, entry: str) -> bool: ...
|
||||
def selection_set(self, first: str, last: str | None = None) -> None: ...
|
||||
def show_entry(self, entry: str) -> None: ...
|
||||
|
||||
class CheckList(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def autosetmode(self) -> None: ...
|
||||
def close(self, entrypath: str) -> None: ...
|
||||
def getmode(self, entrypath: str) -> str: ...
|
||||
@@ -228,7 +228,7 @@ class CheckList(TixWidget):
|
||||
def setstatus(self, entrypath: str, mode: str = "on") -> None: ...
|
||||
|
||||
class Tree(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def autosetmode(self) -> None: ...
|
||||
def close(self, entrypath: str) -> None: ...
|
||||
def getmode(self, entrypath: str) -> str: ...
|
||||
@@ -236,7 +236,7 @@ class Tree(TixWidget):
|
||||
def setmode(self, entrypath: str, mode: str = "none") -> None: ...
|
||||
|
||||
class TList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def active_set(self, index: int) -> None: ...
|
||||
def active_clear(self) -> None: ...
|
||||
def anchor_set(self, index: int) -> None: ...
|
||||
@@ -246,7 +246,7 @@ class TList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def dragsite_clear(self) -> None: ...
|
||||
def dropsite_set(self, index: int) -> None: ...
|
||||
def dropsite_clear(self) -> None: ...
|
||||
def insert(self, index: int, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def insert(self, index: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def info_active(self) -> int: ...
|
||||
def info_anchor(self) -> int: ...
|
||||
def info_down(self, index: int) -> int: ...
|
||||
@@ -257,29 +257,29 @@ class TList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def info_up(self, index: int) -> int: ...
|
||||
def nearest(self, x: int, y: int) -> int: ...
|
||||
def see(self, index: int) -> None: ...
|
||||
def selection_clear(self, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def selection_clear(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def selection_includes(self, index: int) -> bool: ...
|
||||
def selection_set(self, first: int, last: int | None = None) -> None: ...
|
||||
|
||||
class PanedWindow(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def delete(self, name: str) -> None: ...
|
||||
def forget(self, name: str) -> None: ... # type: ignore[override]
|
||||
def panecget(self, entry: str, opt): ...
|
||||
def paneconfigure(self, entry: str, cnf: dict[str, Any] = ..., **kw) -> Incomplete | None: ...
|
||||
def paneconfigure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
|
||||
def panes(self) -> list[tkinter.Widget]: ...
|
||||
|
||||
class ListNoteBook(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def page(self, name: str) -> tkinter.Widget: ...
|
||||
def pages(self) -> list[tkinter.Widget]: ...
|
||||
def raise_page(self, name: str) -> None: ...
|
||||
|
||||
class NoteBook(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def delete(self, name: str) -> None: ...
|
||||
def page(self, name: str) -> tkinter.Widget: ...
|
||||
def pages(self) -> list[tkinter.Widget]: ...
|
||||
@@ -287,12 +287,12 @@ class NoteBook(TixWidget):
|
||||
def raised(self) -> bool: ...
|
||||
|
||||
class InputOnly(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
|
||||
class Form:
|
||||
def __setitem__(self, key: str, value: Any) -> None: ...
|
||||
def config(self, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def form(self, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def config(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def form(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def check(self) -> bool: ...
|
||||
def forget(self) -> None: ...
|
||||
def grid(self, xsize: int = 0, ysize: int = 0) -> tuple[int, int] | None: ...
|
||||
|
||||
@@ -34,8 +34,8 @@ class Trace:
|
||||
trace: int = 1,
|
||||
countfuncs: int = 0,
|
||||
countcallers: int = 0,
|
||||
ignoremods: Sequence[str] = ...,
|
||||
ignoredirs: Sequence[str] = ...,
|
||||
ignoremods: Sequence[str] = (),
|
||||
ignoredirs: Sequence[str] = (),
|
||||
infile: StrPath | None = None,
|
||||
outfile: StrPath | None = None,
|
||||
timing: bool = False,
|
||||
|
||||
@@ -405,7 +405,9 @@ class RawTurtle(TPen, TNavigator):
|
||||
def begin_fill(self) -> None: ...
|
||||
def end_fill(self) -> None: ...
|
||||
def dot(self, size: int | None = None, *color: _Color) -> None: ...
|
||||
def write(self, arg: object, move: bool = False, align: str = "left", font: tuple[str, int, str] = ...) -> None: ...
|
||||
def write(
|
||||
self, arg: object, move: bool = False, align: str = "left", font: tuple[str, int, str] = ("Arial", 8, "normal")
|
||||
) -> None: ...
|
||||
def begin_poly(self) -> None: ...
|
||||
def end_poly(self) -> None: ...
|
||||
def get_poly(self) -> _PolygonCoords | None: ...
|
||||
@@ -674,7 +676,7 @@ def filling() -> bool: ...
|
||||
def begin_fill() -> None: ...
|
||||
def end_fill() -> None: ...
|
||||
def dot(size: int | None = None, *color: _Color) -> None: ...
|
||||
def write(arg: object, move: bool = False, align: str = "left", font: tuple[str, int, str] = ...) -> None: ...
|
||||
def write(arg: object, move: bool = False, align: str = "left", font: tuple[str, int, str] = ("Arial", 8, "normal")) -> None: ...
|
||||
def begin_poly() -> None: ...
|
||||
def end_poly() -> None: ...
|
||||
def get_poly() -> _PolygonCoords | None: ...
|
||||
|
||||
@@ -554,13 +554,13 @@ class MemberDescriptorType:
|
||||
|
||||
def new_class(
|
||||
name: str,
|
||||
bases: Iterable[object] = ...,
|
||||
bases: Iterable[object] = (),
|
||||
kwds: dict[str, Any] | None = None,
|
||||
exec_body: Callable[[dict[str, Any]], object] | None = None,
|
||||
) -> type: ...
|
||||
def resolve_bases(bases: Iterable[object]) -> tuple[Any, ...]: ...
|
||||
def prepare_class(
|
||||
name: str, bases: tuple[type, ...] = ..., kwds: dict[str, Any] | None = None
|
||||
name: str, bases: tuple[type, ...] = (), kwds: dict[str, Any] | None = None
|
||||
) -> tuple[type, dict[str, Any], dict[str, Any]]: ...
|
||||
|
||||
# Actually a different type, but `property` is special and we want that too.
|
||||
|
||||
@@ -798,7 +798,7 @@ if sys.version_info >= (3, 11):
|
||||
order_default: bool = False,
|
||||
kw_only_default: bool = False,
|
||||
frozen_default: bool = False, # on 3.11, runtime accepts it as part of kwargs
|
||||
field_specifiers: tuple[type[Any] | Callable[..., Any], ...] = ...,
|
||||
field_specifiers: tuple[type[Any] | Callable[..., Any], ...] = (),
|
||||
**kwargs: Any,
|
||||
) -> IdentityFunction: ...
|
||||
|
||||
|
||||
@@ -245,7 +245,7 @@ else:
|
||||
order_default: bool = False,
|
||||
kw_only_default: bool = False,
|
||||
frozen_default: bool = False,
|
||||
field_specifiers: tuple[type[Any] | Callable[..., Any], ...] = ...,
|
||||
field_specifiers: tuple[type[Any] | Callable[..., Any], ...] = (),
|
||||
**kwargs: object,
|
||||
) -> IdentityFunction: ...
|
||||
|
||||
|
||||
@@ -67,14 +67,14 @@ _CallValue: TypeAlias = str | tuple[Any, ...] | Mapping[str, Any] | _ArgsKwargs
|
||||
|
||||
class _Call(tuple[Any, ...]):
|
||||
def __new__(
|
||||
cls, value: _CallValue = ..., name: str | None = "", parent: Any | None = None, two: bool = False, from_kall: bool = True
|
||||
cls, value: _CallValue = (), name: str | None = "", parent: Any | None = None, two: bool = False, from_kall: bool = True
|
||||
) -> Self: ...
|
||||
name: Any
|
||||
parent: Any
|
||||
from_kall: Any
|
||||
def __init__(
|
||||
self,
|
||||
value: _CallValue = ...,
|
||||
value: _CallValue = (),
|
||||
name: str | None = None,
|
||||
parent: Any | None = None,
|
||||
two: bool = False,
|
||||
@@ -259,7 +259,7 @@ class _patch_dict:
|
||||
in_dict: Any
|
||||
values: Any
|
||||
clear: Any
|
||||
def __init__(self, in_dict: Any, values: Any = ..., clear: Any = False, **kwargs: Any) -> None: ...
|
||||
def __init__(self, in_dict: Any, values: Any = (), clear: Any = False, **kwargs: Any) -> None: ...
|
||||
def __call__(self, f: Any) -> Any: ...
|
||||
if sys.version_info >= (3, 10):
|
||||
def decorate_callable(self, f: _F) -> _F: ...
|
||||
|
||||
@@ -8,7 +8,7 @@ _TestType: TypeAlias = unittest.case.TestCase | TestSuite
|
||||
class BaseTestSuite(Iterable[_TestType]):
|
||||
_tests: list[unittest.case.TestCase]
|
||||
_removed_tests: int
|
||||
def __init__(self, tests: Iterable[_TestType] = ...) -> None: ...
|
||||
def __init__(self, tests: Iterable[_TestType] = ()) -> None: ...
|
||||
def __call__(self, result: unittest.result.TestResult) -> unittest.result.TestResult: ...
|
||||
def addTest(self, test: _TestType) -> None: ...
|
||||
def addTests(self, tests: Iterable[_TestType]) -> None: ...
|
||||
|
||||
@@ -102,7 +102,7 @@ class Request:
|
||||
self,
|
||||
url: str,
|
||||
data: _DataType = None,
|
||||
headers: MutableMapping[str, str] = ...,
|
||||
headers: MutableMapping[str, str] = {},
|
||||
origin_req_host: str | None = None,
|
||||
unverifiable: bool = False,
|
||||
method: str | None = None,
|
||||
|
||||
@@ -53,7 +53,7 @@ class WeakValueDictionary(MutableMapping[_KT, _VT]):
|
||||
def __init__(self: WeakValueDictionary[_KT, _VT], __other: Mapping[_KT, _VT] | Iterable[tuple[_KT, _VT]]) -> None: ...
|
||||
@overload
|
||||
def __init__(
|
||||
self: WeakValueDictionary[str, _VT], __other: Mapping[str, _VT] | Iterable[tuple[str, _VT]] = ..., **kwargs: _VT
|
||||
self: WeakValueDictionary[str, _VT], __other: Mapping[str, _VT] | Iterable[tuple[str, _VT]] = (), **kwargs: _VT
|
||||
) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __getitem__(self, key: _KT) -> _VT: ...
|
||||
|
||||
@@ -5,6 +5,4 @@ well_known_implementations: dict[str, str]
|
||||
registered: dict[str, Callable[[], DOMImplementation]]
|
||||
|
||||
def registerDOMImplementation(name: str, factory: Callable[[], DOMImplementation]) -> None: ...
|
||||
def getDOMImplementation(
|
||||
name: str | None = None, features: str | Iterable[tuple[str, str | None]] = ...
|
||||
) -> DOMImplementation: ...
|
||||
def getDOMImplementation(name: str | None = None, features: str | Iterable[tuple[str, str | None]] = ()) -> DOMImplementation: ...
|
||||
|
||||
@@ -218,7 +218,7 @@ class CDATASection(Text):
|
||||
def writexml(self, writer: SupportsWrite[str], indent: str = "", addindent: str = "", newl: str = "") -> None: ...
|
||||
|
||||
class ReadOnlySequentialNamedNodeMap:
|
||||
def __init__(self, seq=...) -> None: ...
|
||||
def __init__(self, seq=()) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
def getNamedItem(self, name): ...
|
||||
def getNamedItemNS(self, namespaceURI: str, localName): ...
|
||||
|
||||
@@ -28,7 +28,7 @@ class SAXReaderNotAvailable(SAXNotSupportedException): ...
|
||||
default_parser_list: list[str]
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def make_parser(parser_list: Iterable[str] = ...) -> XMLReader: ...
|
||||
def make_parser(parser_list: Iterable[str] = ()) -> XMLReader: ...
|
||||
def parse(
|
||||
source: StrPath | _SupportsReadClose[bytes] | _SupportsReadClose[str],
|
||||
handler: ContentHandler,
|
||||
@@ -36,7 +36,7 @@ if sys.version_info >= (3, 8):
|
||||
) -> None: ...
|
||||
|
||||
else:
|
||||
def make_parser(parser_list: list[str] = ...) -> XMLReader: ...
|
||||
def make_parser(parser_list: list[str] = []) -> XMLReader: ...
|
||||
def parse(
|
||||
source: str | _SupportsReadClose[bytes] | _SupportsReadClose[str],
|
||||
handler: ContentHandler,
|
||||
|
||||
@@ -4,9 +4,9 @@ from collections.abc import Mapping
|
||||
from io import RawIOBase, TextIOBase
|
||||
from xml.sax import handler, xmlreader
|
||||
|
||||
def escape(data: str, entities: Mapping[str, str] = ...) -> str: ...
|
||||
def unescape(data: str, entities: Mapping[str, str] = ...) -> str: ...
|
||||
def quoteattr(data: str, entities: Mapping[str, str] = ...) -> str: ...
|
||||
def escape(data: str, entities: Mapping[str, str] = {}) -> str: ...
|
||||
def unescape(data: str, entities: Mapping[str, str] = {}) -> str: ...
|
||||
def quoteattr(data: str, entities: Mapping[str, str] = {}) -> str: ...
|
||||
|
||||
class XMLGenerator(handler.ContentHandler):
|
||||
def __init__(
|
||||
|
||||
@@ -230,7 +230,7 @@ class Transport:
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def __init__(
|
||||
self, use_datetime: bool = False, use_builtin_types: bool = False, *, headers: Iterable[tuple[str, str]] = ...
|
||||
self, use_datetime: bool = False, use_builtin_types: bool = False, *, headers: Iterable[tuple[str, str]] = ()
|
||||
) -> None: ...
|
||||
else:
|
||||
def __init__(self, use_datetime: bool = False, use_builtin_types: bool = False) -> None: ...
|
||||
@@ -259,7 +259,7 @@ class SafeTransport(Transport):
|
||||
use_datetime: bool = False,
|
||||
use_builtin_types: bool = False,
|
||||
*,
|
||||
headers: Iterable[tuple[str, str]] = ...,
|
||||
headers: Iterable[tuple[str, str]] = (),
|
||||
context: Any | None = None,
|
||||
) -> None: ...
|
||||
else:
|
||||
@@ -288,7 +288,7 @@ class ServerProxy:
|
||||
use_datetime: bool = False,
|
||||
use_builtin_types: bool = False,
|
||||
*,
|
||||
headers: Iterable[tuple[str, str]] = ...,
|
||||
headers: Iterable[tuple[str, str]] = (),
|
||||
context: Any | None = None,
|
||||
) -> None: ...
|
||||
else:
|
||||
|
||||
@@ -108,9 +108,9 @@ class ServerHTMLDoc(pydoc.HTMLDoc): # undocumented
|
||||
object: object,
|
||||
name: str,
|
||||
mod: str | None = None,
|
||||
funcs: Mapping[str, str] = ...,
|
||||
classes: Mapping[str, str] = ...,
|
||||
methods: Mapping[str, str] = ...,
|
||||
funcs: Mapping[str, str] = {},
|
||||
classes: Mapping[str, str] = {},
|
||||
methods: Mapping[str, str] = {},
|
||||
cl: type | None = None,
|
||||
) -> str: ...
|
||||
def docserver(self, server_name: str, package_documentation: str, methods: dict[str, str]) -> str: ...
|
||||
|
||||
@@ -211,7 +211,7 @@ class ZipInfo:
|
||||
compress_size: int
|
||||
file_size: int
|
||||
orig_filename: str # undocumented
|
||||
def __init__(self, filename: str = "NoName", date_time: _DateTuple = ...) -> None: ...
|
||||
def __init__(self, filename: str = "NoName", date_time: _DateTuple = (1980, 1, 1, 0, 0, 0)) -> None: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
@classmethod
|
||||
def from_file(cls, filename: StrPath, arcname: StrPath | None = None, *, strict_timestamps: bool = True) -> Self: ...
|
||||
|
||||
Reference in New Issue
Block a user