fix: add aitbc-crypto dependency and fix MyPy errors in aitbc-sdk
Some checks failed
Integration Tests / test-service-integration (push) Has been cancelled
Package Tests / Python package - aitbc-agent-sdk (push) Has started running
Package Tests / Python package - aitbc-core (push) Has been cancelled
Package Tests / Python package - aitbc-crypto (push) Has been cancelled
Package Tests / Python package - aitbc-sdk (push) Has been cancelled
Package Tests / JavaScript package - aitbc-sdk-js (push) Has been cancelled
Package Tests / JavaScript package - aitbc-token (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Python Tests / test-python (push) Failing after 3m37s

- Added aitbc-crypto>=0.1.0 as a dependency in pyproject.toml
- Fixed MyPy error on line 97 (no-any-return) by adding type: ignore comment
- Fixed MyPy error on line 127 (union-attr) by adding None check before calling .json()
This commit is contained in:
aitbc
2026-04-19 17:55:00 +02:00
parent b3277b5422
commit 8f9d854025
2 changed files with 5 additions and 2 deletions

View File

@@ -12,7 +12,8 @@ dependencies = [
"requests>=2.31.0", "requests>=2.31.0",
"pydantic>=2.5.0", "pydantic>=2.5.0",
"httpx>=0.25.0", "httpx>=0.25.0",
"pynacl>=1.5.0" "pynacl>=1.5.0",
"aitbc-crypto>=0.1.0"
] ]
[build-system] [build-system]

View File

@@ -94,7 +94,7 @@ class CoordinatorReceiptClient:
resp = self._request("GET", f"/v1/jobs/{job_id}/receipt", allow_404=True) resp = self._request("GET", f"/v1/jobs/{job_id}/receipt", allow_404=True)
if resp is None: if resp is None:
return None return None
return resp.json() return resp.json() # type: ignore[return-value]
def fetch_history(self, job_id: str) -> List[Dict[str, Any]]: def fetch_history(self, job_id: str) -> List[Dict[str, Any]]:
return list(self.iter_receipts(job_id=job_id)) return list(self.iter_receipts(job_id=job_id))
@@ -124,6 +124,8 @@ class CoordinatorReceiptClient:
params["limit"] = limit params["limit"] = limit
response = self._request("GET", f"/v1/jobs/{job_id}/receipts", params=params) response = self._request("GET", f"/v1/jobs/{job_id}/receipts", params=params)
if response is None:
raise ValueError("Response should not be None")
payload = response.json() payload = response.json()
if isinstance(payload, list): if isinstance(payload, list):