🔀 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:
parent
83bb20d8f3
commit
b972e1a2de
1 changed files with 2 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING, List
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from langflow.services.store.schema import ListComponentResponse
|
from langflow.services.store.schema import ListComponentResponse
|
||||||
|
|
@ -14,7 +13,7 @@ def process_tags_for_post(component_dict):
|
||||||
|
|
||||||
|
|
||||||
def update_components_with_user_data(
|
def update_components_with_user_data(
|
||||||
components: "ListComponentResponse",
|
components: List["ListComponentResponse"],
|
||||||
store_service: "StoreService",
|
store_service: "StoreService",
|
||||||
store_api_Key: str,
|
store_api_Key: str,
|
||||||
):
|
):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue