[Bug] Pyright typing issue
What are you really trying to do?
Ensure that my type checking returns minimal errors when using temporal execute_activity
Describe the bug
Type checking with Pyright strict returns partiallyUnknown error when using Temporal execute_activity I believe because the line here https://github.com/temporalio/sdk-python/blob/49ca10e413ba67e1adfeed3b5577cb4f5b007e54/temporalio/workflow.py#L2185 has an implicit Any on the optional Type
Adding an explicit Any allows Pyright to properly parse the block
Minimal Reproduction
Look at any execute_activity call in the samples repo with Pyright strict enabled in VSCode
Environment/Versions
- OS and processor: [e.g. M1 Mac, x86 Windows, Linux]
- Temporal Version: [e.g. 1.14.0?] and/or SDK version
- Are you using Docker or Kubernetes or building Temporal from source?
Additional context
Happy to open the PR for this if it's safe to add the explicit Any there
Thanks @mattbrandman. Yes, PR welcome!