Can't typehint tango.asyncio.DeviceProxy
Do we have a way to typehint asyncio device proxies as of version 10.1.3?
from tango.asyncio import DeviceProxy as AsyncDeviceProxy
from tango import DeviceProxy, CommandInfo, CommandInfoList, AttributeInfoEx, AttributeInfoList
from functools import partial
async def main():
sync_proxy = DeviceProxy("sys/tg_test/1")
sync_command_config: CommandInfo | CommandInfoList = sync_proxy.get_command_config('command')
sync_attribute_config: AttributeInfoEx | AttributeInfoList = sync_proxy.get_attribute_config('attribute')
partial_proxy: partial[DeviceProxy] = AsyncDeviceProxy
async_proxy: DeviceProxy = await partial_proxy("sys/tg_test/1")
async_command_config: CommandInfo | CommandInfoList = await async_proxy.get_command_config('command')
async_attribute_config: AttributeInfoEx | AttributeInfoList = await async_proxy.get_attribute_config('attribute')
/home/burkedev/pyright_test.py
/home/burkedev/pyright_test.py:11:38 - error: "DeviceProxy" is not awaitable
"DeviceProxy" is incompatible with protocol "Awaitable[_T_co@Awaitable]"
"__await__" is not present (reportGeneralTypeIssues)
/home/burkedev/pyright_test.py:13:66 - error: "CommandInfoList" is not awaitable
"CommandInfoList" is incompatible with protocol "Awaitable[_T_co@Awaitable]"
"__await__" is not present (reportGeneralTypeIssues)
/home/burkedev/pyright_test.py:13:66 - error: "CommandInfo" is not awaitable
"CommandInfo" is incompatible with protocol "Awaitable[_T_co@Awaitable]"
"__await__" is not present (reportGeneralTypeIssues)
/home/burkedev/pyright_test.py:14:73 - error: "AttributeInfoEx" is not awaitable
"AttributeInfoEx" is incompatible with protocol "Awaitable[_T_co@Awaitable]"
"__await__" is not present (reportGeneralTypeIssues)
/home/burkedev/pyright_test.py:14:73 - error: "AttributeInfoList" is not awaitable
"AttributeInfoList" is incompatible with protocol "Awaitable[_T_co@Awaitable]"
"__await__" is not present (reportGeneralTypeIssues)
5 errors, 0 warnings, 0 informations