Commits

Kirill Simonov  committed d2be6d4

Allow for immutable subclasses of YAMLObject. Fixes #53.

  • Participants
  • Parent commits b89c966

Comments (0)

Files changed (1)

File lib/yaml/__init__.py

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