SerializeAs#

class tierkreis.core.types.SerializeAs(*args, **kwargs)[source]#

Bases: Protocol[Base]

Methods implemented by Tierkreis-compatible types used as alternatives to Base

Methods

from_tierkreis_compatible

Convert the tierkreis-compatible type to a Base instance.

new_tierkreis_compatible

Create a new instance of the tierkreis-compatible type from a Base instance.

from_tierkreis_compatible() Base[source]#

Convert the tierkreis-compatible type to a Base instance.

classmethod new_tierkreis_compatible(value: Base) Self[source]#

Create a new instance of the tierkreis-compatible type from a Base instance.