Fix typing error

This commit is contained in:
Matthias 2023-03-19 15:06:56 +01:00
parent 62c8dd98d5
commit f5f151fcc5

View File

@ -1,4 +1,4 @@
from typing import Any, Dict, Iterator, Optional from typing import Any, AsyncIterator, Dict, Optional
from uuid import uuid4 from uuid import uuid4
from fastapi import Depends from fastapi import Depends
@ -17,7 +17,7 @@ def get_rpc_optional() -> Optional[RPC]:
return None return None
async def get_rpc() -> Optional[Iterator[RPC]]: async def get_rpc() -> Optional[AsyncIterator[RPC]]:
_rpc = get_rpc_optional() _rpc = get_rpc_optional()
if _rpc: if _rpc: