From ef6afd2ca72f2f497e695741870c7cd5a14bd4f8 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Tue, 12 Apr 2022 19:28:32 +0300 Subject: [PATCH] Fixed the ElementMeta which wasnt properly calling the parent class's __new__. --- goblin/element.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goblin/element.py b/goblin/element.py index 89d4bcd..c93e723 100644 --- a/goblin/element.py +++ b/goblin/element.py @@ -61,7 +61,7 @@ class ElementMeta(ABCMeta): new_namespace['__properties__'] = props new_namespace['__immutable__'] = namespace.get('__immutable__', ImmutableMode.OFF) new_namespace['__locking__'] = namespace.get('__locking__', LockingMode.OFF) - result = type.__new__(cls, name, bases, new_namespace) + result = ABCMeta.__new__(cls, name, bases, new_namespace) return result -- GitLab