Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackevansevo committed Apr 25, 2017
1 parent e9211a8 commit 2ec7b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basic_utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def set_in_dict(d: dict, keys: Sequence[str], value) -> None:

def prune_dict(d: dict, key: Callable=lambda x: x is not None) -> dict:
"""
Returns new dictionary with key / values pairs filtered by key function.
Returns new dictionary with values filtered by key fn.
Prunes None values by default
>>> d = {'Homer': 39, 'Marge': 36, 'Bart': 10}
Expand Down

0 comments on commit 2ec7b0e

Please sign in to comment.