Buckets:

download
raw
566 Bytes
"""Shared helpers for the integration presets."""
from collections.abc import Iterable
from typing import Final
def ensure_mappers(mapper_names: Iterable[str], *names: str) -> list[str]:
"""Return ``mapper_names`` with each of ``names`` appended if not already present.
Order is preserved and duplicates are skipped, so composing several presets
(or re-applying one) never double-adds a vocabulary.
"""
result: Final = list(mapper_names)
for name in names:
if name not in result:
result.append(name)
return result

Xet Storage Details

Size:
566 Bytes
·
Xet hash:
f8e5aa57c2fc81ac9549ed384158ada2840af95bda00f7cf25758ec696bf64c0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.