Xlib: Use bool for parameters where the default is False (#9990)

This commit is contained in:
Alex Waygood
2023-03-30 15:05:22 +01:00
committed by GitHub
parent 619125b722
commit 47ce3cb8db
2 changed files with 2 additions and 2 deletions

View File

@@ -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): ...

View File

@@ -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):