more accurate docstring for dictutil.filter

This commit is contained in:
Jean-Paul Calderone 2023-07-20 14:27:50 -04:00
parent 4713573621
commit da43acf52e

View File

@ -10,7 +10,7 @@ V = TypeVar("V")
def filter(pred: Callable[[V], bool], orig: dict[K, V]) -> dict[K, V]:
"""
Filter out key/value pairs that fail to match a predicate.
Filter out key/value pairs whose value fails to match a predicate.
"""
return {
k: v