jangada.serialization.SerializableMetatype.__new__#

static SerializableMetatype.__new__(mcs, name: str, bases: tuple[type, ...], namespace: dict[str, Any], **kwargs: Any) Type[Serializable]#

Create a new Serializable class with automatic registration.

This method is called when a new class is created. It handles: - Creating class-level registries on the Serializable base class - Registering subclasses in the global registry - Collecting SerializableProperty descriptors from the MRO

Parameters:
namestr

The name of the class being created.

basestuple[type, …]

The base classes.

namespacedict[str, Any]

The class namespace (attributes and methods).

**kwargsAny

Additional keyword arguments passed to the metaclass.

Returns:
Type[Serializable]

The newly created class.

Notes

For the Serializable base class itself, this creates the registries. For subclasses, this registers them and collects their properties.