Replacing the loop with this line: `(secret_dict.pop(k) for k in secret_dict.keys() if secret_dict[k] is None)`
does not remove anything from the dictionary.