def _set_bytes()

in common/memory.py [0:0]


    def _set_bytes(self, value: Union[float, int], input_unit: MemoryUnit) -> None:
        if value < 0:
            raise InvalidMemoryAmount("Memory must always be positive.")
        elif value in {float("inf"), float("NaN"), float("-inf")}:
            raise InvalidMemoryAmount(f"Memory must be real: {value}")
        self._bytes = int(value * self._base_unit_multiple(input_unit))