class documentation

class ImaginaryPart(Converter): (source)

View In Hierarchy

Converter for the imaginary part of complex numbers

Imaginary parts are instances of RealEntry.

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 real 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