Skip to content

Commit

Permalink
Add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Sep 7, 2023
1 parent cb97ad3 commit 58d1216
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 58d1216

Please sign in to comment.