Skip to content

Commit

Permalink
move ModelBaseModel back to models
Browse files Browse the repository at this point in the history
  • Loading branch information
avishniakov committed Sep 20, 2023
1 parent a3db9c9 commit 0fa0d5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/zenml/model/model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

from zenml.exceptions import EntityExistsError
from zenml.logger import get_logger
from zenml.model.base_model import ModelBaseModel
from zenml.model.model_stages import ModelStages
from zenml.models.model_base_model import ModelBaseModel

if TYPE_CHECKING:
from zenml.models.model_models import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

from pydantic import BaseModel, Field

STR_FIELD_MAX_LENGTH = 255
TEXT_FIELD_MAX_LENGTH = 65535
from zenml.models.constants import STR_FIELD_MAX_LENGTH, TEXT_FIELD_MAX_LENGTH


class ModelBaseModel(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion src/zenml/models/model_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@

from pydantic import BaseModel, Field, validator

from zenml.model.base_model import ModelBaseModel
from zenml.models.artifact_models import ArtifactResponseModel
from zenml.models.base_models import (
WorkspaceScopedRequestModel,
WorkspaceScopedResponseModel,
)
from zenml.models.constants import STR_FIELD_MAX_LENGTH, TEXT_FIELD_MAX_LENGTH
from zenml.models.filter_models import WorkspaceScopedFilterModel
from zenml.models.model_base_model import ModelBaseModel
from zenml.models.pipeline_run_models import PipelineRunResponseModel

if TYPE_CHECKING:
Expand Down

0 comments on commit 0fa0d5a

Please sign in to comment.