m1racoli commented on PR #47326:
URL: https://github.com/apache/airflow/pull/47326#issuecomment-2698875101
If you really want to keep `@property` you might be able to return a
coroutine
```python
class AwsGenericHook:
@property
def async_conn(self) -> coroutine[client]:
return sync_to_async(self._get_async_conn)()
```
but you will still need to await it
```python
async def run(self):
client = await self.hook.async_conn
```
--
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]