From 284ff33f802acb1ac490104f1b05eca261793cc3 Mon Sep 17 00:00:00 2001 From: VsevolodX <79542055+VsevolodX@users.noreply.github.com> Date: Tue, 11 Jun 2024 18:46:30 -0700 Subject: [PATCH] chore: fix typo ___ -> __ --- src/py/mat3ra/utils/factory.py | 4 ++-- tests/py/unit/test_factory.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/py/mat3ra/utils/factory.py b/src/py/mat3ra/utils/factory.py index fecc07a..4495f91 100644 --- a/src/py/mat3ra/utils/factory.py +++ b/src/py/mat3ra/utils/factory.py @@ -7,7 +7,7 @@ class BaseFactory(object): Base Factory class. """ - __class_registry___ = { + __class_registry__ = { "object_name1": "module.reference.to.ObjectName1", "object_name2": "module.reference.to.ObjectName2", } @@ -26,7 +26,7 @@ def get_class_by_name(cls, name: str) -> Callable: Returns: class """ - reference = cls.__class_registry___[name] + reference = cls.__class_registry__[name] return cls.get_class_by_module_reference(reference) @staticmethod diff --git a/tests/py/unit/test_factory.py b/tests/py/unit/test_factory.py index 2cd0f3c..98ee958 100644 --- a/tests/py/unit/test_factory.py +++ b/tests/py/unit/test_factory.py @@ -7,7 +7,7 @@ def test_BaseFactory(): """ class ObjectFactory(factory.BaseFactory): - __class_registry___ = { + __class_registry__ = { "object_name_1": "mat3ra.utils.factory.BaseFactory", }