jangada.serialization.SerializableMetatype.remove_dataset_type#
- SerializableMetatype.remove_dataset_type(dataset_type: type) None#
Remove a dataset type registration.
- Parameters:
- dataset_typetype
The type to remove from the registry.
Notes
This also removes the type from the primitive types registry. If the type is not registered, this method does nothing.
Examples
>>> class CustomDataset: ... pass >>> Serializable.register_dataset_type( ... CustomDataset, ... lambda obj: (np.array([]), {}), ... lambda arr, attrs: CustomDataset() ... ) >>> Serializable.remove_dataset_type(CustomDataset) >>> Serializable.is_dataset_type(CustomDataset) False