Skip to content

Commit a2a9446

Browse files
fix(ci): narrow async closure types and bump version to 0.22.0
* tests/adms/integration/test_e2e_async_flow.py — bind narrowed context.client / context.bo_type_id to local variables before the nested `_gather` async closure. ty re-widens optional attributes inside nested closures, so the outer-function asserts no longer apply once the closure references them. Local-variable binding preserves narrowing. * pyproject.toml + uv.lock — bump version 0.21.1 → 0.22.0. Required by check-version-bump CI now that the merge with main has introduced src/ changes (new ADMS module). Minor bump because this adds a new optional module.
1 parent ac41b57 commit a2a9446

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sap-cloud-sdk"
3-
version = "0.21.1"
3+
version = "0.22.0"
44
description = "SAP Cloud SDK for Python"
55
readme = "README.md"
66
license = "Apache-2.0"

tests/adms/integration/test_e2e_async_flow.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,14 @@ def create_concurrent_async_relations(
178178
) -> None:
179179
assert context.client is not None
180180
assert context.bo_type_id is not None
181+
client = context.client
182+
bo_type_id = context.bo_type_id
181183
bo_ids = [f"{base_node_id}-{i}" for i in range(3)]
182184

183185
async def _gather() -> list[DocumentRelation]:
184186
tasks = [
185-
context.client.relations.create(
186-
_make_relation_input(context.bo_type_id, bo_id, f"Concurrent_{i}.pdf")
187+
client.relations.create(
188+
_make_relation_input(bo_type_id, bo_id, f"Concurrent_{i}.pdf")
187189
)
188190
for i, bo_id in enumerate(bo_ids)
189191
]

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)