PrefectHQ
prefect
BlogDocsChangelog

Branches performance

Pull requests

Fix misleading pyright error when calling async task with wrong argument types#19327
last run
53 minutes ago
Fix misleading pyright error when calling async task with wrong argument types When calling an async task with incorrect argument types, pyright would show a confusing error: "State[CoroutineType[...]] is not awaitable" instead of a normal argument type error. This happened because: 1. Task.__call__ lacked explicit overloads for async tasks (Task[P, Coroutine[Any, Any, R]]) 2. The return_state=True overload came before return_state=False 3. When pyright couldn't match argument types, it fell back to the *args overloads and picked the first match (return_state=True), inferring State[Coroutine[...]] Fix: - Add explicit Task[P, Coroutine[Any, Any, R]] overloads (matching submit/map) - Reorder overloads so return_state=False comes first (the default behavior) Now pyright shows normal argument type errors instead of the confusing "State is not awaitable" message. Closes #19326 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
59 minutes ago
50d1603
fix-task-call-overload-ordering
CodSpeed Performance Gauge
0%
revert ts file
2 days ago
181ab54
fix-19317-automation-readonly-failure
CodSpeed Performance Gauge
0%
Fix duration in `generate_deprecation_message`#19314
last run
3 days ago
Fix duration in `generate_deprecation_message`
3 days ago
72d5f7c
fix-deprecation-test-flake
CodSpeed Performance Gauge
0%
add debug log for fork handler registration failure closes #19116 this PR adds a debug log when fork handler registration fails, as requested in review feedback from the original PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
3 days ago
86a448a
fix/add-debug-log-fork-handler
CodSpeed Performance Gauge
0%
© 2025 CodSpeed Technology
Home Terms Privacy Docs