balazser opened a new issue, #1452:
URL: https://github.com/apache/hamilton/issues/1452
I'm encountering a type-checking error when trying to define an
`async_driver` like this:
```python
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]