Skip to content
Prev Previous commit
Add explanatory comment
  • Loading branch information
ocelotl committed Sep 7, 2023
commit 58d12160be65df25fec90a21788b1798c85ca0a5
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,8 @@ def collect(
)
if data_point is not None:
data_points.append(data_point)

# Returning here None instead of an empty list because the caller
# does not consume a sequence and to be consistent with the rest of
# collect methods that also return None.
return data_points or None