While the aspirational behaviour of generate() has changed from filtering out None entries to leaving them in, allowing generators to express out-of-band failures to detectors, the current state of detectors' ability to handle None well is unknown. Until that can be stabilised, the code in generate() that filters out None should remain, and this Hugging Face test around empty input (leading to an exception) should expect the current, and not aspirational, behaviour. When we get to the goal state, this revised test should fail, and the code there can be updated accordingly.
While the aspirational behaviour of
generate()
has changed from filtering outNone
entries to leaving them in, allowing generators to express out-of-band failures to detectors, the current state of detectors' ability to handleNone
well is unknown. Until that can be stabilised, the code ingenerate()
that filters outNone
should remain, and this Hugging Face test around empty input (leading to an exception) should expect the current, and not aspirational, behaviour. When we get to the goal state, this revised test should fail, and the code there can be updated accordingly.