Lines Matching refs:cls
66 def add_representer(cls, data_type, representer):
67 if not 'yaml_representers' in cls.__dict__:
68 cls.yaml_representers = cls.yaml_representers.copy()
69 cls.yaml_representers[data_type] = representer
72 def add_multi_representer(cls, data_type, representer):
73 if not 'yaml_multi_representers' in cls.__dict__:
74 cls.yaml_multi_representers = cls.yaml_multi_representers.copy()
75 cls.yaml_multi_representers[data_type] = representer
223 def represent_yaml_object(self, tag, data, cls, flow_style=None):
313 cls = type(data)
314 if cls in copyreg.dispatch_table:
315 reduce = copyreg.dispatch_table[cls](data)