Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Cheong committed Feb 15, 2023
1 parent 359dd99 commit 8f31f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EdgeGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def __init__(self, conversation: Conversation) -> None:
conversation_id=conversation.struct["conversationId"],
)

async def ask_stream(self, prompt: str) -> Generator[str]:
async def ask_stream(self, prompt: str) -> Generator[str, None, None]:
"""
Ask a question to the bot
"""
Expand Down Expand Up @@ -220,7 +220,7 @@ async def ask(self, prompt: str) -> dict:
if final:
return response

async def ask_stream(self, prompt: str) -> Generator[str]:
async def ask_stream(self, prompt: str) -> Generator[str, None, None]:
"""
Ask a question to the bot
"""
Expand Down

0 comments on commit 8f31f82

Please sign in to comment.