datalad_next.constraints.EnsureMapping
- class datalad_next.constraints.EnsureMapping(key: Constraint, value: Constraint, delimiter: str = ':', allow_length2_sequence: bool = True)[source]
Bases:
Constraint
Ensure a mapping of a key to a value of a specific nature
- for_dataset(dataset: DatasetParameter) Constraint [source]
Return a constraint-variant for a specific dataset context
The default implementation returns the unmodified, identical constraint. However, subclasses can implement different behaviors.