Skip to content

Commit

Permalink
point to common library
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloromeo committed Oct 7, 2024
1 parent df864b4 commit 09c0073
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from copy import deepcopy
from typing import Any, TypeVar

from common_library.errors_classes import OsparcErrorMixin
from models_library.basic_types import ConstrainedStr
from models_library.errors_classes import OsparcErrorMixin

from pydantic import BaseModel

from .utils.string_substitution import OSPARC_IDENTIFIER_PREFIX
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Any, NamedTuple, TypeAlias, cast

from models_library.errors_classes import OsparcErrorMixin
from common_library.errors_classes import OsparcErrorMixin

from pydantic import StrictBool, StrictFloat, StrictInt

from .json_serialization import json_dumps, json_loads
Expand Down
2 changes: 1 addition & 1 deletion packages/models-library/tests/test_errors_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Any

import pytest
from models_library.errors_classes import OsparcErrorMixin
from common_library.errors_classes import OsparcErrorMixin


def test_get_full_class_name():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from models_library.errors_classes import OsparcErrorMixin
from common_library.errors_classes import OsparcErrorMixin


class NotifierError(OsparcErrorMixin, Exception):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from models_library.errors_classes import OsparcErrorMixin
from common_library.errors_classes import OsparcErrorMixin


class CatalogApiBaseError(OsparcErrorMixin, Exception):
Expand Down

0 comments on commit 09c0073

Please sign in to comment.