Skip to content

Commit cb223f1

Browse files
committed
fix: remove non assignment
1 parent 1eb37ba commit cb223f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

posthog/ai/gemini/gemini.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,14 @@ def _generate_content_streaming(
193193
):
194194
start_time = time.time()
195195
usage_stats: Dict[str, int] = {"input_tokens": 0, "output_tokens": 0}
196-
accumulated_content = [] # noqa: F824
196+
accumulated_content = []
197197

198198
kwargs_without_stream = {"model": model, "contents": contents, **kwargs}
199199
response = self._client.models.generate_content_stream(**kwargs_without_stream)
200200

201201
def generator():
202202
nonlocal usage_stats
203-
nonlocal accumulated_content
203+
nonlocal accumulated_content # noqa: F824
204204
try:
205205
for chunk in response:
206206
if hasattr(chunk, "usage_metadata") and chunk.usage_metadata:

0 commit comments

Comments
 (0)