From 367c12bc21ee81b12392f66b3c97857e49b10497 Mon Sep 17 00:00:00 2001 From: sanderegg <35365065+sanderegg@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:00:27 +0100 Subject: [PATCH] mypy --- .../src/models_library/api_schemas_webserver/projects.py | 4 ++-- packages/models-library/src/models_library/folders.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/models-library/src/models_library/api_schemas_webserver/projects.py b/packages/models-library/src/models_library/api_schemas_webserver/projects.py index eac3f29f4e9..976ee74a712 100644 --- a/packages/models-library/src/models_library/api_schemas_webserver/projects.py +++ b/packages/models-library/src/models_library/api_schemas_webserver/projects.py @@ -13,6 +13,7 @@ from ..api_schemas_long_running_tasks.tasks import TaskGet from ..basic_types import LongTruncatedStr, ShortTruncatedStr from ..emails import LowerCaseEmailStr +from ..folders import FolderID from ..projects import ClassifierID, DateTimeStr, NodesDict, ProjectID from ..projects_access import AccessRights, GroupIDStr from ..projects_state import ProjectState @@ -22,10 +23,9 @@ none_to_empty_str_pre_validator, null_or_none_str_to_none_validator, ) +from ..workspaces import WorkspaceID from ._base import EmptyModel, InputSchema, OutputSchema -from .folders import FolderID from .permalinks import ProjectPermalink -from .workspaces import WorkspaceID class ProjectCreateNew(InputSchema): diff --git a/packages/models-library/src/models_library/folders.py b/packages/models-library/src/models_library/folders.py index 829e3865c51..f514439d732 100644 --- a/packages/models-library/src/models_library/folders.py +++ b/packages/models-library/src/models_library/folders.py @@ -1,10 +1,11 @@ from datetime import datetime from typing import TypeAlias -from models_library.users import GroupID, UserID -from models_library.workspaces import WorkspaceID from pydantic import BaseModel, ConfigDict, Field, PositiveInt +from .users import GroupID, UserID +from .workspaces import WorkspaceID + FolderID: TypeAlias = PositiveInt