Skip to content

Commit 5259348

Browse files
fix docs
Co-authored-by: Copilot <[email protected]>
1 parent 9909007 commit 5259348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cyaron/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ def get_one_query(
174174
- An integer, which will be treated as a range from 1 to that integer.
175175
- A tuple of two integers, representing the lower and upper bounds of the range.
176176
mode (RangeQueryRandomMode): The mode for generating the queries. It can be:
177-
- RangeQueryRandomMode.allow_equal: Allow the generated l and r to be equal.
178-
- RangeQueryRandomMode.less: Ensure that l and r are not equal.
177+
- RangeQueryRandomMode.ALLOW_EQUAL: Allow the generated l and r to be equal.
178+
- RangeQueryRandomMode.LESS: Ensure that l and r are not equal.
179179
weight_generator: A function that generates the weights for the queries. It should:
180180
- Take the index of query (starting from 1), starting and ending positions as input.
181181
- Return a list of weights of any length.

0 commit comments

Comments
 (0)