more accurate docstring for dictutil.filter
This commit is contained in:
parent
4713573621
commit
da43acf52e
@ -10,7 +10,7 @@ V = TypeVar("V")
|
|||||||
|
|
||||||
def filter(pred: Callable[[V], bool], orig: dict[K, V]) -> dict[K, 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 {
|
return {
|
||||||
k: v
|
k: v
|
||||||
|
Loading…
Reference in New Issue
Block a user