mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +00:00
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]:
|
||||
"""
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user