Skip to content

Commit

Permalink
Merge pull request #9 from Exabyte-io/hotfix/factory-typo
Browse files Browse the repository at this point in the history
chore: fix typo ___ -> __
  • Loading branch information
timurbazhirov authored Jun 12, 2024
2 parents 2b49aac + 284ff33 commit dbd4610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/py/mat3ra/utils/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/py/unit/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def test_BaseFactory():
"""

class ObjectFactory(factory.BaseFactory):
__class_registry___ = {
__class_registry__ = {
"object_name_1": "mat3ra.utils.factory.BaseFactory",
}

Expand Down

0 comments on commit dbd4610

Please sign in to comment.