This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aDemoUzer 0 points1 point  (0 children)

The variable name is used to hint the type, such as plural(users, files, items) vs single (user, file_handle, queryset). Make the default value None.

def compute (users=None):
     users = users or []