Skip to content

Commit a4d90cc

Browse files
search: drop dependency on type alias
This type alias to string doesn't add any value to the unified search, and creates an unnecessary dependency to the GUI type definitions. If we introduce a query type again, then it will actually do something like parsing the string and perform certain validation/escaping. In the meantime, `str` is just fine. Change-Id: I2a35977064ae439aa2a16346a695c662c647b571
1 parent ee6081f commit a4d90cc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cmk/gui/search/unified.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
44
# conditions defined in the file COPYING, which is part of this source code package.
55

6-
from cmk.gui.type_defs import SearchQuery
7-
86
from .sorting import get_sorter
97
from .type_defs import (
108
Provider,
@@ -30,7 +28,7 @@ def __init__(
3028

3129
def search(
3230
self,
33-
query: SearchQuery,
31+
query: str,
3432
*,
3533
provider: Provider | None = None,
3634
sort_type: SortType | None = None,

0 commit comments

Comments
 (0)