File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ alias of TypeVar(‘T’)
5252
5353### merge_insertion.Comparator
5454
55- A user-supplied function to compare two items.
55+ A user-supplied async function to compare two items.
5656The argument is a tuple of the two items to be compared; they must not be equal.
57- Must return a Promise resolving to 0 if the first item is ranked higher, or 1 if the second item is ranked higher.
57+ Must return 0 if the first item is ranked higher, or 1 if the second item is ranked higher.
5858
5959<a id =" merge_insertion.merge_insertion_sort " ></a >
6060
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ def _make_groups(array :Sequence[T]) -> Sequence[tuple[int, T]]:
101101 i += size
102102 return rv
103103
104- #: A user-supplied function to compare two items.
104+ #: A user-supplied async function to compare two items.
105105#: The argument is a tuple of the two items to be compared; they must not be equal.
106- #: Must return a Promise resolving to 0 if the first item is ranked higher, or 1 if the second item is ranked higher.
106+ #: Must return 0 if the first item is ranked higher, or 1 if the second item is ranked higher.
107107Comparator = Callable [[tuple [T , T ]], Awaitable [Literal [0 , 1 ]]]
108108
109109async def _bin_insert_index (array :Sequence [T ], item :T , comp :Comparator ) -> int :
You can’t perform that action at this time.
0 commit comments