From 447cf5511ddd1d92072cc1141f2e5702f9bb9334 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 18 Jan 2025 16:04:27 -0800 Subject: [PATCH] fix python 3 install / usage --- litellm/integrations/langfuse/langfuse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/integrations/langfuse/langfuse.py b/litellm/integrations/langfuse/langfuse.py index 9fb2f86f683..13236b210f9 100644 --- a/litellm/integrations/langfuse/langfuse.py +++ b/litellm/integrations/langfuse/langfuse.py @@ -5,7 +5,7 @@ import json import os import traceback from collections.abc import MutableMapping, MutableSequence, MutableSet -from typing import TYPE_CHECKING, Any, Dict, Optional, cast +from typing import TYPE_CHECKING, Any, Dict, List, Optional, cast from packaging.version import Version from pydantic import BaseModel @@ -734,7 +734,7 @@ class LangFuseLogger: return None, None @staticmethod - def _get_langfuse_tags(metadata: dict) -> list[str]: + def _get_langfuse_tags(metadata: dict) -> List[str]: try: return json.loads(metadata.pop("tags", "[]")) except Exception as e: