-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathsearch.pyi
More file actions
38 lines (18 loc) · 662 Bytes
/
search.pyi
File metadata and controls
38 lines (18 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from __future__ import annotations
from collections.abc import Iterator
from typing import Self
from libzim.reader import Archive
class Query:
def set_query(self, query: str) -> Self: ...
class SearchResult:
archive: Archive
path: str
class SearchResultSet:
def __iter__(self) -> Iterator[SearchResult]: ...
class Search:
def getEstimatedMatches(self) -> int: ... # noqa: N802
def getResults(self, start: int, count: int) -> SearchResultSet: ... # noqa: N802
class Searcher:
def __init__(self) -> None: ...
def addArchive(self, archive: Archive) -> None: ...
def search(self, query: Query) -> Search: ...