Coverage for flogin/flow/fuzzy_search.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.9.2, created at 2025-07-03 22:51 +0000

1from .base import Base, add_prop 

2 

3__all__ = ("FuzzySearchResult",) 

4 

5 

6class FuzzySearchResult(Base): 

7 r"""A class which represents the result given from flow launcher to a fuzzy search request 

8 

9 .. NOTE:: 

10 This is not intended to be a class that you create yourself, use :func:`~flogin.flow.api.FlowLauncherAPI.fuzzy_search` instead. 

11 

12 Attributes 

13 -------- 

14 score: :class:`int` 

15 The score of the result 

16 highlight_data: list[:class:`int`] 

17 The highlight data included with the result 

18 search_percision: :class:`int` 

19 The perision of the result 

20 """ 

21 

22 score: int = add_prop("score") 

23 highlight_data: list[int] = add_prop("matchData") 

24 search_precision: int = add_prop("searchPrecision")