@@ -44,7 +44,7 @@ def printer_flags(
44
44
45
45
# -------------------------------------------------------------------------------------
46
46
class Module :
47
- __slots__ = ("context" , "cdata" )
47
+ __slots__ = ("context" , "cdata" , "__dict__" )
48
48
49
49
def __init__ (self , context : "libyang.Context" , cdata ):
50
50
self .context = context
@@ -227,7 +227,7 @@ def parse_data_dict(
227
227
228
228
# -------------------------------------------------------------------------------------
229
229
class Revision :
230
- __slots__ = ("context" , "cdata" , "module" )
230
+ __slots__ = ("context" , "cdata" , "module" , "__dict__" )
231
231
232
232
def __init__ (self , context : "libyang.Context" , cdata , module ):
233
233
self .context = context
@@ -270,7 +270,7 @@ def __str__(self):
270
270
271
271
# -------------------------------------------------------------------------------------
272
272
class Extension :
273
- __slots__ = ("context" , "cdata" )
273
+ __slots__ = ("context" , "cdata" , "__dict__" )
274
274
275
275
def __init__ (self , context : "libyang.Context" , cdata , module_parent : Module = None ):
276
276
self .context = context
@@ -331,7 +331,7 @@ def module(self) -> Module:
331
331
332
332
# -------------------------------------------------------------------------------------
333
333
class _EnumBit :
334
- __slots__ = ("context" , "cdata" )
334
+ __slots__ = ("context" , "cdata" , "__dict__" )
335
335
336
336
def __init__ (self , context : "libyang.Context" , cdata ):
337
337
self .context = context
@@ -382,7 +382,7 @@ class Bit(_EnumBit):
382
382
383
383
# -------------------------------------------------------------------------------------
384
384
class Type :
385
- __slots__ = ("context" , "cdata" , "cdata_parsed" )
385
+ __slots__ = ("context" , "cdata" , "cdata_parsed" , "__dict__" )
386
386
387
387
UNKNOWN = lib .LY_TYPE_UNKNOWN
388
388
BINARY = lib .LY_TYPE_BINARY
@@ -609,7 +609,7 @@ def __str__(self):
609
609
610
610
# -------------------------------------------------------------------------------------
611
611
class Feature :
612
- __slots__ = ("context" , "cdata" )
612
+ __slots__ = ("context" , "cdata" , "__dict__" )
613
613
614
614
def __init__ (self , context : "libyang.Context" , cdata ):
615
615
self .context = context
@@ -652,7 +652,7 @@ def __str__(self):
652
652
653
653
# -------------------------------------------------------------------------------------
654
654
class IfFeatureExpr :
655
- __slots__ = ("context" , "cdata" , "module_features" , "compiled" )
655
+ __slots__ = ("context" , "cdata" , "module_features" , "compiled" , "__dict__" )
656
656
657
657
def __init__ (self , context : "libyang.Context" , cdata , module_features = None ):
658
658
"""
@@ -875,7 +875,7 @@ def __str__(self):
875
875
876
876
# -------------------------------------------------------------------------------------
877
877
class SNode :
878
- __slots__ = ("context" , "cdata" , "cdata_parsed" )
878
+ __slots__ = ("context" , "cdata" , "cdata_parsed" , "__dict__" )
879
879
880
880
CONTAINER = lib .LYS_CONTAINER
881
881
LEAF = lib .LYS_LEAF
0 commit comments