fix(doctest): type annotate `collect()`