Small description of a library to report.
| 266 | |
| 267 | @dataclass(frozen=True) |
| 268 | class LibrarySpec: |
| 269 | """Small description of a library to report.""" |
| 270 | |
| 271 | key: str |
| 272 | dist_name: str | None = None |
| 273 | module_name: str | None = None |
| 274 | prefer_module_version: bool = False |
| 275 | |
| 276 | def resolved_dist_name(self) -> str: |
| 277 | return self.dist_name or self.key |
| 278 | |
| 279 | def resolved_module_name(self) -> str: |
| 280 | return self.module_name or self.key |
| 281 | |
| 282 | |
| 283 | DLC_CORE_LIBS: tuple[LibrarySpec, ...] = ( |
no outgoing calls