datalad_next.constraints.DatasetParameter

class datalad_next.constraints.DatasetParameter(original, ds)[source]

Bases: object

Utility class to report an original and resolve dataset parameter value

This is used by EnsureDataset to be able to report the original argument semantics of a dataset parameter to a receiving command. It is consumed by any Constraint.for_dataset().

The original argument is provided via the original property. A corresponding Dataset instance is provided via the ds property.