MCPcopy Create free account
hub / github.com/archlinux/archinstall / normalize

Method normalize

archinstall/lib/models/device.py:337–341  ·  view source on GitHub ↗

will normalize the value of the unit to Byte

(self)

Source from the content-addressed store, hash-verified

335 )
336
337 def normalize(self) -> int:
338 """
339 will normalize the value of the unit to Byte
340 """
341 return int(self.value * self.unit.value)
342
343
344class _SizeSerialization(TypedDict):

Callers 1

_normalizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected