mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add more default values to python-xlib (#9960)
This commit is contained in:
@@ -107,7 +107,7 @@ class Resource(Card32):
|
||||
cast_function: str
|
||||
class_name: str
|
||||
codes: tuple[int, ...]
|
||||
def __init__(self, name: str, codes: tuple[int, ...] = ..., default: int | None = None) -> None: ...
|
||||
def __init__(self, name: str, codes: tuple[int, ...] = (), default: int | None = None) -> None: ...
|
||||
@overload # type: ignore[override]
|
||||
def check_value(self, value: Callable[[], _T]) -> _T: ...
|
||||
@overload
|
||||
|
||||
@@ -17,5 +17,5 @@ class Xauthority:
|
||||
def __len__(self) -> int: ...
|
||||
def __getitem__(self, i: int) -> tuple[bytes, bytes, bytes, bytes, bytes]: ...
|
||||
def get_best_auth(
|
||||
self, family: bytes, address: bytes, dispno: bytes, types: tuple[bytes, ...] = ...
|
||||
self, family: bytes, address: bytes, dispno: bytes, types: tuple[bytes, ...] = (b"MIT-MAGIC-COOKIE-1",)
|
||||
) -> tuple[bytes, bytes]: ...
|
||||
|
||||
@@ -239,19 +239,19 @@ class Window(Drawable):
|
||||
def set_wm_client_machine(self, name: bytes | str, onerror: ErrorHandler[object] | None = None) -> None: ...
|
||||
def get_wm_client_machine(self) -> str | None: ...
|
||||
def set_wm_normal_hints(
|
||||
self, hints: rq.DictWrapper | dict[str, Any] = ..., onerror: ErrorHandler[object] | None = None, **keys: object
|
||||
self, hints: rq.DictWrapper | dict[str, Any] = {}, onerror: ErrorHandler[object] | None = None, **keys: object
|
||||
) -> None: ...
|
||||
def get_wm_normal_hints(self) -> rq.DictWrapper | None: ...
|
||||
def set_wm_hints(
|
||||
self, hints: rq.DictWrapper | dict[str, Any] = ..., onerror: ErrorHandler[object] | None = None, **keys: object
|
||||
self, hints: rq.DictWrapper | dict[str, Any] = {}, onerror: ErrorHandler[object] | None = None, **keys: object
|
||||
) -> None: ...
|
||||
def get_wm_hints(self) -> rq.DictWrapper | None: ...
|
||||
def set_wm_state(
|
||||
self, hints: rq.DictWrapper | dict[str, Any] = ..., onerror: ErrorHandler[object] | None = None, **keys: object
|
||||
self, hints: rq.DictWrapper | dict[str, Any] = {}, onerror: ErrorHandler[object] | None = None, **keys: object
|
||||
) -> None: ...
|
||||
def get_wm_state(self) -> rq.DictWrapper | None: ...
|
||||
def set_wm_icon_size(
|
||||
self, hints: rq.DictWrapper | dict[str, Any] = ..., onerror: ErrorHandler[object] | None = None, **keys: object
|
||||
self, hints: rq.DictWrapper | dict[str, Any] = {}, onerror: ErrorHandler[object] | None = None, **keys: object
|
||||
) -> None: ...
|
||||
def get_wm_icon_size(self) -> rq.DictWrapper | None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user