Skip to content

Commit f169836

Browse files
committed
Revert "Avoid user assigning unimplemented fields on containers. (pretix#102)"
This reverts commit 8ae3f59.
1 parent b2f60b7 commit f169836

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drafthorse/models/container.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
class Container:
2-
__slots__ = ("children", "child_type")
3-
42
def __init__(self, child_type):
53
super().__init__()
64
self.children = []
@@ -28,8 +26,6 @@ def add_from_etree(self, root, strict=True):
2826

2927

3028
class SimpleContainer(Container):
31-
__slots__ = ("children", "child_type", "namespace", "tag")
32-
3329
def __init__(self, child_type, namespace, tag):
3430
super().__init__(child_type)
3531
self.namespace = namespace
@@ -55,8 +51,6 @@ def add_from_etree(self, root, strict=True):
5551

5652

5753
class CurrencyContainer(SimpleContainer):
58-
__slots__ = ("children", "child_type", "namespace", "tag")
59-
6054
def empty_element(self):
6155
from .elements import CurrencyElement
6256

@@ -71,8 +65,6 @@ def add_from_etree(self, root, strict=True):
7165

7266

7367
class IDContainer(SimpleContainer):
74-
__slots__ = ("children", "child_type", "namespace", "tag")
75-
7668
def empty_element(self):
7769
from .elements import IDElement
7870

@@ -87,8 +79,6 @@ def add_from_etree(self, root, strict=True):
8779

8880

8981
class StringContainer(SimpleContainer):
90-
__slots__ = ("children", "child_type", "namespace", "tag")
91-
9282
def empty_element(self):
9383
from .elements import StringElement
9484

0 commit comments

Comments
 (0)