Skip to content

Commit a45b43e

Browse files
author
Gerit Wagner
committed
fix linter messages
1 parent ec81542 commit a45b43e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

search_query/not_query.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from search_query.query import Query
77
from search_query.query import SearchField
88

9+
# pylint: disable=duplicate-code
10+
911

1012
class NotQuery(Query):
1113
"""NOT Query"""

search_query/parser_validation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
from search_query.constants import QueryErrorCode
1010
from search_query.constants import TokenTypes
1111

12+
if typing.TYPE_CHECKING:
13+
import search_query.parser_ebsco
14+
1215

1316
# Could indeed be a general Validator class
1417
class QueryStringValidator:
@@ -141,7 +144,7 @@ def filter_search_field(self, strict: bool) -> None:
141144

142145
def validate_token_position(
143146
self,
144-
token_type: str,
147+
token_type: TokenTypes,
145148
previous_token_type: typing.Optional[TokenTypes],
146149
position: typing.Optional[tuple[int, int]],
147150
) -> None:

0 commit comments

Comments
 (0)