-
Notifications
You must be signed in to change notification settings - Fork 172
Open
Labels
triagelabel for issues that need to be triaged.label for issues that need to be triaged.
Description
I'm encountering a type-checking error when trying to define an async_driver like this:
driver = await async_driver.Builder().with_modules(my_flow).build()Current behavior
Type checker (e.g. Pyright or mypy) reports:
Diagnostics:
1. "Driver" is not awaitable
"Driver" is incompatible with protocol "Awaitable[_T_co@Awaitable]"
"__await__" is not present [reportGeneralTypeIssues]
It seems the returned Driver object is missing an __await__ implementation or the builder’s build() method isn’t correctly annotated as returning an awaitable type.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
triagelabel for issues that need to be triaged.label for issues that need to be triaged.