Skip to content

Commit 4e45473

Browse files
Bernd VerstCopilot
andcommitted
Align __exit__ typing with repo convention (BlobPayloadStore)
Use `*args: object` for the `__exit__` parameters instead of leaving them untyped. This matches the most recent context-manager class in the repo (`durabletask/extensions/azure_blob_payloads/blob_payload_store.py`), is more type-safe under Pylance/mypy, and avoids the parameter shadowing of the builtin `type` that exists in `TaskHubGrpcWorker.__exit__`. Behavior is unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6467377 commit 4e45473

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

durabletask/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def close(self) -> None:
369369
def __enter__(self) -> "TaskHubGrpcClient":
370370
return self
371371

372-
def __exit__(self, exc_type, exc_val, exc_tb) -> None:
372+
def __exit__(self, *args: object) -> None:
373373
self.close()
374374

375375
def schedule_new_orchestration(self, orchestrator: task.Orchestrator[TInput, TOutput] | str, *,

0 commit comments

Comments
 (0)