11class 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
3028class 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
5753class 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
7367class 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
8981class StringContainer (SimpleContainer ):
90- __slots__ = ("children" , "child_type" , "namespace" , "tag" )
91-
9282 def empty_element (self ):
9383 from .elements import StringElement
9484
0 commit comments