[BuildLibrary] eliminate BuiltLibrary and BuiltOverlayLibrary

This commit is contained in:
Jan Petykiewicz 2026-06-19 21:04:18 -07:00
commit 3dea61b05e
6 changed files with 95 additions and 191 deletions

View file

@ -549,20 +549,6 @@ class OverlayLibrary(ILibrary):
return tuple(name for name in self._order if name in self._entries)
class BuiltOverlayLibrary(OverlayLibrary):
"""
Internal overlay output returned by `BuildLibrary.build(output='overlay')`.
The type is intentionally not part of the public API. It exists so build
outputs can carry a `build_report` while still behaving like an
`OverlayLibrary`.
"""
def __init__(self, *, build_report: Any | None = None) -> None:
super().__init__()
self.build_report = build_report
def _iter_library_infos(library: Mapping[str, Pattern] | ILibraryView) -> Iterator[dict[str, Any]]:
info = getattr(library, 'library_info', None)
if isinstance(info, dict):