Fix typing error

This commit is contained in:
Matthias 2023-03-19 15:06:56 +01:00
parent 62c8dd98d5
commit f5f151fcc5
1 changed files with 2 additions and 2 deletions

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 fastapi import Depends
@ -17,7 +17,7 @@ def get_rpc_optional() -> Optional[RPC]:
return None
async def get_rpc() -> Optional[Iterator[RPC]]:
async def get_rpc() -> Optional[AsyncIterator[RPC]]:
_rpc = get_rpc_optional()
if _rpc: