From da43acf52e25bad8c3158f9b6f1d56672d1ea5dd Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Thu, 20 Jul 2023 14:27:50 -0400 Subject: [PATCH] more accurate docstring for dictutil.filter --- src/allmydata/util/dictutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/util/dictutil.py b/src/allmydata/util/dictutil.py index 277fc30e9..58820993f 100644 --- a/src/allmydata/util/dictutil.py +++ b/src/allmydata/util/dictutil.py @@ -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