Commits

Kirill Simonov committed d2be6d4

Allow for immutable subclasses of YAMLObject. Fixes #53.

Comments (0)

Files changed (1)

lib/yaml/__init__.py

     """
 
     __metaclass__ = YAMLObjectMetaclass
+    __slots__ = ()  # no direct instantiation, so allow immutable subclasses
 
     yaml_loader = Loader
     yaml_dumper = Dumper