🔀 refactor(utils.py): import List from typing module to improve code readability and maintainability

🔀 refactor(utils.py): update type hint for components parameter to use List instead of "ListComponentResponse" to improve code clarity and consistency
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-13 12:29:07 -03:00
commit b972e1a2de

View file

@ -1,5 +1,4 @@
from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, List
if TYPE_CHECKING:
from langflow.services.store.schema import ListComponentResponse
@ -14,7 +13,7 @@ def process_tags_for_post(component_dict):
def update_components_with_user_data(
components: "ListComponentResponse",
components: List["ListComponentResponse"],
store_service: "StoreService",
store_api_Key: str,
):