Skip to content

Commit c851f24

Browse files
committed
Resolve type warnings
1 parent 2e6bd42 commit c851f24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aishell/query_clients/reverse_engineered_chatgpt_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from typing import Optional
2+
from typing import Optional, cast
33

44
from revChatGPT.V1 import Chatbot
55

@@ -38,6 +38,6 @@ def query(self, prompt: str) -> str:
3838
for data in chatbot.ask(prompt):
3939
response_text = data['message']
4040

41-
response_text = make_executable_command(response_text)
41+
response_text = make_executable_command(cast(str, response_text))
4242

4343
return response_text

0 commit comments

Comments
 (0)