deviceTree.applyOverlays: Add remaining type annotations

Add remaining type annotations to apply_overlays.py.
This commit is contained in:
Elliot Berman 2025-07-14 10:20:34 -07:00
parent b09db1f090
commit b2749287ab
No known key found for this signature in database

View File

@ -15,16 +15,16 @@ class Overlay:
dtbo_file: Path
@cached_property
def fdt(self):
def fdt(self) -> Fdt:
with self.dtbo_file.open("rb") as fd:
return Fdt(fd.read())
@cached_property
def compatible(self):
def compatible(self) -> set[str]:
return get_compatible(self.fdt)
def get_compatible(fdt):
def get_compatible(fdt) -> set[str]:
root_offset = fdt.path_offset("/")
try: