fix: improve typings and remove mypy ignores#93
Conversation
Signed-off-by: Tim Li <ltim@uber.com>
Signed-off-by: Tim Li <ltim@uber.com>
# Conflicts: # cadence/_internal/rpc/retry.py # cadence/_internal/rpc/yarpc.py # cadence/client.py # tests/cadence/_internal/rpc/test_error.py # tests/cadence/test_client_workflow.py # tests/integration_tests/workflow/test_retry_policy.py
Code Review 👍 Approved with suggestions 1 resolved / 2 findingsExpands the CadenceClient with comprehensive schedule and query workflow APIs while enforcing stricter type safety. The query decorator docstring requires an update to match the actual implementation. 💡 Quality: Query decorator docstring contradicts implementationThe Fix docstring to match implementation (name is required)Alternative: fall back to function name when name is None, matching the docstring✅ 1 resolved✅ Bug: is_retryable compares decoded str to bytes constant
🤖 Prompt for agentsOptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
What changed?
Improve typings and remove mypy ignores, also add clear mypy cache to
make cleancommandWhy?
we should not use ignore to override type safety check.
How did you test it?
only typing improvements
Potential risks
Release notes
Documentation Changes
Summary by Gitar
call_details.methodtobytesinretry.pyto handle runtime type changes ingrpciov1.75.0+.castin test suites to resolve type mismatches inGetWorkflowExecutionHistoryresponses andStartWorkflowOptionsdictionary mocking.This will update automatically on new commits.