(
libraries: Iterable[LibrarySpec | str] | None,
)
| 309 | |
| 310 | |
| 311 | def _normalize_library_specs( |
| 312 | libraries: Iterable[LibrarySpec | str] | None, |
| 313 | ) -> tuple[LibrarySpec, ...]: |
| 314 | if libraries is None: |
| 315 | return DLC_ALL_LIBS_SPECS |
| 316 | |
| 317 | normalized: list[LibrarySpec] = [] |
| 318 | for item in libraries: |
| 319 | if isinstance(item, LibrarySpec): |
| 320 | normalized.append(item) |
| 321 | else: |
| 322 | normalized.append(LibrarySpec(str(item))) |
| 323 | return tuple(normalized) |
| 324 | |
| 325 | |
| 326 | def _version(dist_name: str) -> str: |
no test coverage detected