From a9314670366c5f981ddde709e59ea9823500b4de Mon Sep 17 00:00:00 2001 From: HUG0-D Date: Tue, 19 Nov 2024 11:19:12 +0100 Subject: [PATCH] removing pycgmes from base, and chevron_writer imports Signed-off-by: HUG0-D --- .../modernpython/templates/profile_template.mustache | 2 +- cimgen/languages/modernpython/utils/base.py | 4 ++-- cimgen/languages/modernpython/utils/chevron_writer.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cimgen/languages/modernpython/templates/profile_template.mustache b/cimgen/languages/modernpython/templates/profile_template.mustache index 0c0db152..0ecc6799 100644 --- a/cimgen/languages/modernpython/templates/profile_template.mustache +++ b/cimgen/languages/modernpython/templates/profile_template.mustache @@ -10,7 +10,7 @@ class BaseProfile(str, Enum): """ Profile parent. Use it if you need your own profiles. - All pycgmes objects requiring a Profile are actually asking for a `BaseProfile`. As + All CGMES objects requiring a Profile are actually asking for a `BaseProfile`. As Enum with fields cannot be inherited or composed, just create your own CustomProfile without trying to extend Profile. It will work. """ diff --git a/cimgen/languages/modernpython/utils/base.py b/cimgen/languages/modernpython/utils/base.py index e44b78ba..f6f75703 100644 --- a/cimgen/languages/modernpython/utils/base.py +++ b/cimgen/languages/modernpython/utils/base.py @@ -6,9 +6,9 @@ from pydantic.dataclasses import dataclass -from pycgmes.utils.constants import NAMESPACES +from .constants import NAMESPACES -from ..utils.config import cgmes_resource_config +from .config import cgmes_resource_config from .profile import BaseProfile diff --git a/cimgen/languages/modernpython/utils/chevron_writer.py b/cimgen/languages/modernpython/utils/chevron_writer.py index acd7b48f..103d9175 100644 --- a/cimgen/languages/modernpython/utils/chevron_writer.py +++ b/cimgen/languages/modernpython/utils/chevron_writer.py @@ -3,9 +3,9 @@ import chevron -from pycgmes.utils.base import Base -from pycgmes.utils.constants import NAMESPACES -from pycgmes.utils.profile import BaseProfile, Profile +from .base import Base +from .constants import NAMESPACES +from .profile import BaseProfile, Profile class ChevronWriter: