Skip to content

Commit 10a3ea3

Browse files
committed
Add type ignore to ignore stupid type checking
1 parent 5bca271 commit 10a3ea3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ygka/query_clients/reverse_engineered_chatgpt_client.py

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

44
from revChatGPT.V1 import Chatbot
55

@@ -40,7 +40,7 @@ def query(self, prompt: str) -> str:
4040

4141
response_text = ''
4242
for data in chatbot.ask(prompt):
43-
response_text = data['message']
43+
response_text = data['message'] # type: ignore
4444

45-
response_text = cast(str, response_text)
45+
response_text = response_text
4646
return response_text

0 commit comments

Comments
 (0)