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

Method __sub__

archinstall/lib/models/device.py:475–478  ·  view source on GitHub ↗
(self, other: Self)

Source from the content-addressed store, hash-verified

473 return int(self.value * self.unit.value)
474
475 def __sub__(self, other: Self) -> Size:
476 src_norm = self._normalize()
477 dest_norm = other._normalize()
478 return Size(abs(src_norm - dest_norm), Unit.B, self.sector_size)
479
480 def __add__(self, other: Self) -> Size:
481 src_norm = self._normalize()

Callers

nothing calls this directly

Calls 2

_normalizeMethod · 0.95
SizeClass · 0.85

Tested by

no test coverage detected