Skip to content

Commit ebbb9ff

Browse files
committed
Fix docstrings
1 parent 630740f commit ebbb9ff

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

source_code/intersection_trees/naive_intersectionic_queries.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ def create_db(size: int = 1_000, max_end: int = 1_000_000) -> Db:
4444
Returns
4545
-------
4646
Db
47-
a set of half-open intervals
48-
49-
Note
50-
----
51-
The database may contain less than the specified number of intervals if the same interval is generated multiple times.
47+
a list of half-open intervals
5248
'''
5349
return [generate_interval(max_end) for _ in range(size)]
5450

@@ -66,11 +62,7 @@ def create_queries(size: int = 1_000, max_end: int = 1_000_000) -> Queries:
6662
Returns
6763
-------
6864
Queries
69-
a set of half-open intervals
70-
71-
Note
72-
----
73-
The queries may contain less than the specified number of intervals if the same interval is generated multiple times.
65+
a list of half-open intervals
7466
'''
7567
return create_db(size=size, max_end=max_end)
7668

@@ -106,4 +98,4 @@ def execute_queries(queries: Queries, db: Db) -> QueryResult:
10698
QueryResult
10799
set of tuples of query and database intervals that intersect
108100
'''
109-
return {(q, d) for q, d in itertools.product(queries, db) if have_intersection(q, d)}
101+
return {(q, d) for q, d in itertools.product(queries, db) if have_intersection(q, d)}

0 commit comments

Comments
 (0)