summaryrefslogtreecommitdiffstats
path: root/g4f/client/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/client/helper.py')
-rw-r--r--g4f/client/helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/client/helper.py b/g4f/client/helper.py
index 71bfd38a..93588c07 100644
--- a/g4f/client/helper.py
+++ b/g4f/client/helper.py
@@ -6,7 +6,7 @@ import threading
import logging
import asyncio
-from typing import AsyncIterator, Iterator, AsyncGenerator
+from typing import AsyncIterator, Iterator, AsyncGenerator, Optional
def filter_json(text: str) -> str:
"""
@@ -23,7 +23,7 @@ def filter_json(text: str) -> str:
return match.group("code")
return text
-def find_stop(stop, content: str, chunk: str = None):
+def find_stop(stop: Optional[list[str]], content: str, chunk: str = None):
first = -1
word = None
if stop is not None: