added ruff test
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user