refactor: make writable an instance method

This commit is contained in:
Abdessamad Derraz committed 2026-11-17 09:48:13 +01:00
1 parent bc50106587
commit 81a94fc267
7 files changed
+31 -15

No files matched your search

+1 -2
View File
@@ -83,8 +83,7 @@ class Exporter(BaseExporter[str]):
# one from BIOS data alone would throw the component away.
return True
@classmethod
def writable(cls, fe: NativeFile, require: str = "") -> bool:
def writable(self, fe: NativeFile, require: str = "") -> bool:
"""An addition lands only in a manifest it can be placed in."""
if fe.platform is None and not fe.native("component", ""):
return False