Skip to content

Commit

Permalink
Fix an incorrect docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-uoa committed Sep 10, 2024
1 parent 80c987b commit f89596e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/types/type_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def is_list_of(obj: Any, query_type: type[T]) -> TypeGuard[list[T]]:
def all_true(predicates: list[Predicate[T]]) -> Predicate[T]:
"""Compose a list of predicates into a single predicate.
The composed predicate will return True if any of the predicates in the list
return True for the object being tested.
The composed predicate will return True if all of the predicates in the list
return True for the given argument.
"""

def all_preds_true(obj: T) -> bool:
Expand Down

0 comments on commit f89596e

Please sign in to comment.