File: suggestion.pyi

package info (click to toggle)
python-libzim 3.6.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: python: 1,690; cpp: 397; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 511 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import annotations

from collections.abc import Iterator

from libzim.reader import Archive

class SuggestionResultSet:
    def __iter__(self) -> Iterator[str]: ...

class SuggestionSearch:
    def getEstimatedMatches(self) -> int: ...  # noqa: N802
    def getResults(  # noqa: N802
        self, start: int, count: int
    ) -> SuggestionResultSet: ...

class SuggestionSearcher:
    def __init__(self, archive: Archive) -> None: ...
    def suggest(self, query: str) -> SuggestionSearch: ...