careful-address-89803
05/28/2023, 11:05 PMOptionalSingleSourcesField
implements optionality by setting expected_num_files: ClassVar[int | range] = range(0, 2)
, but just putting a large number (or the largest number) as the upper bound seems like a hack. Having no files matching the glob yields "Unmatched glob from ..."careful-address-89803
05/29/2023, 12:03 AMdefault
off, which I think in this case makes more sense, but isn't a fully general solution for "might have any number of optional files including 0"curved-television-6568
05/29/2023, 2:31 PM