added ruff test

This commit is contained in:
ykcheungab
2026-09-27 19:20:43 +08:00
parent bcab2790bf
commit fa2703968e
178 changed files with 3277 additions and 1034 deletions
@@ -61,7 +61,7 @@ class ZmotionResult:
def ok(self) -> bool:
return self.code == 0
def raise_for_status(self, detail: str = "") -> "ZmotionResult":
def raise_for_status(self, detail: str = "") -> ZmotionResult:
if not self.ok:
raise ZAuxError(self.code, detail)
return self
@@ -88,7 +88,7 @@ class ZmotionValue:
"""
return self.value if self.ok else None
def raise_for_status(self, detail: str = "") -> "ZmotionValue":
def raise_for_status(self, detail: str = "") -> ZmotionValue:
if not self.ok:
raise ZAuxError(self.code, detail)
return self
@@ -122,7 +122,7 @@ class ZmotionClient:
"""Directory the runtime was loaded from, for logs and About boxes."""
return self._dll_dir
def load(self) -> "ZmotionClient":
def load(self) -> ZmotionClient:
"""Resolve and load the native runtime. Idempotent."""
if self._dll is None:
resolved = resolve_dll_dir()