@@ -44,7 +44,7 @@ def printer_flags(
4444
4545# -------------------------------------------------------------------------------------
4646class Module :
47- __slots__ = ("context" , "cdata" )
47+ __slots__ = ("context" , "cdata" , "__dict__" )
4848
4949 def __init__ (self , context : "libyang.Context" , cdata ):
5050 self .context = context
@@ -227,7 +227,7 @@ def parse_data_dict(
227227
228228# -------------------------------------------------------------------------------------
229229class Revision :
230- __slots__ = ("context" , "cdata" , "module" )
230+ __slots__ = ("context" , "cdata" , "module" , "__dict__" )
231231
232232 def __init__ (self , context : "libyang.Context" , cdata , module ):
233233 self .context = context
@@ -270,7 +270,7 @@ def __str__(self):
270270
271271# -------------------------------------------------------------------------------------
272272class Extension :
273- __slots__ = ("context" , "cdata" )
273+ __slots__ = ("context" , "cdata" , "__dict__" )
274274
275275 def __init__ (self , context : "libyang.Context" , cdata , module_parent : Module = None ):
276276 self .context = context
@@ -331,7 +331,7 @@ def module(self) -> Module:
331331
332332# -------------------------------------------------------------------------------------
333333class _EnumBit :
334- __slots__ = ("context" , "cdata" )
334+ __slots__ = ("context" , "cdata" , "__dict__" )
335335
336336 def __init__ (self , context : "libyang.Context" , cdata ):
337337 self .context = context
@@ -382,7 +382,7 @@ class Bit(_EnumBit):
382382
383383# -------------------------------------------------------------------------------------
384384class Type :
385- __slots__ = ("context" , "cdata" , "cdata_parsed" )
385+ __slots__ = ("context" , "cdata" , "cdata_parsed" , "__dict__" )
386386
387387 UNKNOWN = lib .LY_TYPE_UNKNOWN
388388 BINARY = lib .LY_TYPE_BINARY
@@ -609,7 +609,7 @@ def __str__(self):
609609
610610# -------------------------------------------------------------------------------------
611611class Feature :
612- __slots__ = ("context" , "cdata" )
612+ __slots__ = ("context" , "cdata" , "__dict__" )
613613
614614 def __init__ (self , context : "libyang.Context" , cdata ):
615615 self .context = context
@@ -652,7 +652,7 @@ def __str__(self):
652652
653653# -------------------------------------------------------------------------------------
654654class IfFeatureExpr :
655- __slots__ = ("context" , "cdata" , "module_features" , "compiled" )
655+ __slots__ = ("context" , "cdata" , "module_features" , "compiled" , "__dict__" )
656656
657657 def __init__ (self , context : "libyang.Context" , cdata , module_features = None ):
658658 """
@@ -875,7 +875,7 @@ def __str__(self):
875875
876876# -------------------------------------------------------------------------------------
877877class SNode :
878- __slots__ = ("context" , "cdata" , "cdata_parsed" )
878+ __slots__ = ("context" , "cdata" , "cdata_parsed" , "__dict__" )
879879
880880 CONTAINER = lib .LYS_CONTAINER
881881 LEAF = lib .LYS_LEAF
0 commit comments