#5625·BentoML

BUG: 在 IODescriptor.from_output() 中出现 IndexError,带有 bare (未参数化) 迭代器返回标注

作者: devteamaegis创建于 2026年6月1日更新于 2026年9月13日

发生错误 IODescriptor.from_output() 遇到 IndexError,当服务方法的返回注解为未参数化的迭代器类型,例如 t.Iteratort.Generatort.AsyncIteratort.AsyncGenerator(以及它们的 collections.abc 等价类型)。

内容来源: bentoml/BentoML