jangada.serialization.Serializable.remove_primitive_type#

classmethod Serializable.remove_primitive_type(primitive_type: type) None#

Remove a type from the primitive types registry.

Parameters:
primitive_typetype

The type to remove from the registry.

Notes

If the type is not in the registry, this method does nothing (no error).

Examples

>>> class CustomType:
...     pass
>>> Serializable.register_primitive_type(CustomType)
>>> Serializable.remove_primitive_type(CustomType)
>>> Serializable.is_primitive_type(CustomType)
False