diff --git a/stubs/python-xlib/Xlib/ext/xinput.pyi b/stubs/python-xlib/Xlib/ext/xinput.pyi index 563d49fe1..c72f9d4ac 100644 --- a/stubs/python-xlib/Xlib/ext/xinput.pyi +++ b/stubs/python-xlib/Xlib/ext/xinput.pyi @@ -179,7 +179,7 @@ def list_device_properties(self: Display | resource.Resource, deviceid: int) -> class XIGetProperty(rq.ReplyRequest): ... def get_device_property( - self: Display | resource.Resource, deviceid: int, property: int, type: int, offset: int, length: int, delete: int = False + self: Display | resource.Resource, deviceid: int, property: int, type: int, offset: int, length: int, delete: bool = False ) -> XIGetProperty: ... class XIChangeProperty(rq.Request): ... diff --git a/stubs/python-xlib/Xlib/protocol/rq.pyi b/stubs/python-xlib/Xlib/protocol/rq.pyi index 006e87872..a3ff00307 100644 --- a/stubs/python-xlib/Xlib/protocol/rq.pyi +++ b/stubs/python-xlib/Xlib/protocol/rq.pyi @@ -382,7 +382,7 @@ class Request: ) -> None: ... class ReplyRequest(GetAttrData): - def __init__(self, display: display.Display, defer: int = False, *args: object, **keys: object) -> None: ... + def __init__(self, display: display.Display, defer: bool = False, *args: object, **keys: object) -> None: ... def reply(self) -> None: ... class Event(GetAttrData):