-
Notifications
You must be signed in to change notification settings - Fork 144
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
sdk-python/temporalio/workflow.py
Line 2185 in 49ca10e
| result_type: Optional[Type] = None, |
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
waydegilliam
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working