diff --git a/pyproject.toml b/pyproject.toml index 6b1808967..c862c2e3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,4 +3,4 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" [tool.pylint] -good-names="Manager,ObjectManager,Report" +good-names="Manager0,Manager,ObjectManager,Report" diff --git a/src/stratis_cli/_actions/_stratisd_version.py b/src/stratis_cli/_actions/_stratisd_version.py index e4de864c4..9409a9671 100644 --- a/src/stratis_cli/_actions/_stratisd_version.py +++ b/src/stratis_cli/_actions/_stratisd_version.py @@ -21,6 +21,7 @@ from .._errors import StratisCliStratisdVersionError from ._connection import get_object from ._constants import MAXIMUM_STRATISD_VERSION, MINIMUM_STRATISD_VERSION, TOP_OBJECT +from ._dynamic import make_dyn_class def check_stratisd_version(): @@ -30,8 +31,7 @@ def check_stratisd_version(): :raises StratisCliStratisdVersionError """ - # pylint: disable=import-outside-toplevel - from ._data import Manager0 + Manager0 = make_dyn_class("Manager0") version_spec = SpecifierSet(f">={MINIMUM_STRATISD_VERSION}") & SpecifierSet( f"<{MAXIMUM_STRATISD_VERSION}"