From 20b5a0b919b69815dc5553fc9c1008f5ed9faa85 Mon Sep 17 00:00:00 2001 From: MattL1989 Date: Thu, 29 Oct 2026 22:10:14 +0000 Subject: [PATCH] fix(options): type wait_for_quiescence setter as bool waitForQuiescence is a boolean XCUITest capability and the getter returns bool, but the setter was annotated as accepting timedelta | float, copied from the timeout options. Type checkers therefore accepted a timedelta, which cannot be serialized when the session is created. Annotate the setter as bool and drop the unused timedelta import. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01K6zVKi1DtwmmBpy16MQyfY --- appium/options/ios/xcuitest/wda/wait_for_quiescence_option.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/appium/options/ios/xcuitest/wda/wait_for_quiescence_option.py b/appium/options/ios/xcuitest/wda/wait_for_quiescence_option.py index d4e10894..42cda743 100644 --- a/appium/options/ios/xcuitest/wda/wait_for_quiescence_option.py +++ b/appium/options/ios/xcuitest/wda/wait_for_quiescence_option.py @@ -15,8 +15,6 @@ # specific language governing permissions and limitations # under the License. -from datetime import timedelta - from appium.options.common.supports_capabilities import SupportsCapabilities WAIT_FOR_QUIESCENCE = 'waitForQuiescence' @@ -31,7 +29,7 @@ def wait_for_quiescence(self) -> bool | None: return self.get_capability(WAIT_FOR_QUIESCENCE) @wait_for_quiescence.setter - def wait_for_quiescence(self, value: timedelta | float) -> None: + def wait_for_quiescence(self, value: bool) -> None: """ It allows to turn on/off waiting for application quiescence in WebDriverAgent, while performing queries. The default value is true. You can avoid this kind