MCPcopy Index your code
hub / github.com/archlinux/archinstall / __add__

Method __add__

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

Source from the content-addressed store, hash-verified

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()
482 dest_norm = other._normalize()
483 return Size(abs(src_norm + dest_norm), Unit.B, self.sector_size)
484
485 def __lt__(self, other: Self) -> bool:
486 return self._normalize() < other._normalize()

Callers

nothing calls this directly

Calls 2

_normalizeMethod · 0.95
SizeClass · 0.85

Tested by

no test coverage detected