MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / _normalize_library_specs

Function _normalize_library_specs

deeplabcut/core/debug/debug_logger.py:311–323  ·  view source on GitHub ↗
(
    libraries: Iterable[LibrarySpec | str] | None,
)

Source from the content-addressed store, hash-verified

309
310
311def _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
326def _version(dist_name: str) -> str:

Callers 1

collect_version_summaryFunction · 0.85

Calls 1

LibrarySpecClass · 0.85

Tested by

no test coverage detected