class documentation

class ImaginaryPart(Converter): (source)

View In Hierarchy

Converter for the imaginary part of complex numbers

Imaginary parts are instances of RealEntry. Updating the imaginary part of a complex entry updates the type of the entire entry.

Class Method get Converts bytes -> RealEntry
Class Method set Converts RealEntry -> bytes
@classmethod
def get(cls, data: bytes, *, instance=None) -> _T: (source)

Converts bytes -> RealEntry

Parameters
data:bytesThe raw bytes to convert
instanceThe instance containing the data section
Returns
_TThe imaginary part of data converted to the appropriate type
@classmethod
def set(cls, value: _T, *, instance=None, **kwargs) -> bytes: (source)

Converts RealEntry -> bytes

Parameters
value:_TThe value to convert
instanceThe instance containing the data section
**kwargsUndocumented
Returns
bytesThe data of value