🔧 refactor(store.py): remove unnecessary import and type hinting for StoreService
🔧 refactor(store.py): remove unnecessary type hinting for StoreService in create_component function signature
This commit is contained in:
parent
c30bb79d64
commit
f3c9e20bcc
1 changed files with 2 additions and 3 deletions
|
|
@ -16,8 +16,7 @@ from fastapi import APIRouter, Depends, HTTPException, Query
|
|||
from sqlalchemy.exc import IntegrityError
|
||||
from datetime import datetime
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langflow.services.store.service import StoreService
|
||||
from langflow.services.store.service import StoreService
|
||||
|
||||
|
||||
router = APIRouter(prefix="/store", tags=["Components Store"])
|
||||
|
|
@ -26,7 +25,7 @@ router = APIRouter(prefix="/store", tags=["Components Store"])
|
|||
@router.post("/", response_model=ComponentResponse)
|
||||
def create_component(
|
||||
component: Flow,
|
||||
store_service: "StoreService" = Depends(get_store_service),
|
||||
store_service: StoreService = Depends(get_store_service),
|
||||
user=Depends(auth_utils.get_current_active_user),
|
||||
settings_service=Depends(get_settings_service),
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue