Skip to content

Commit 32f8de7

Browse files
committed
Fix typing
1 parent 3912cbb commit 32f8de7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gramps/gui/filters/_searchbar.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# Typing modules
4343
#
4444
# -------------------------------------------------------------------------
45-
from typing import Tuple
45+
from typing import Literal, Tuple
4646
from gramps.gen.filters import GenericFilter
4747

4848
_ = glocale.translation.gettext
@@ -183,7 +183,10 @@ def apply_clear(self, obj):
183183

184184
def get_value(
185185
self,
186-
) -> Tuple[True, GenericFilter, False] | Tuple[False, Tuple[int, str, bool], False]:
186+
) -> (
187+
Tuple[Literal[True], GenericFilter, Literal[False]]
188+
| Tuple[Literal[False], Tuple[int, str, bool], Literal[False]]
189+
):
187190
"""
188191
get the active searchbar value
189192

0 commit comments

Comments
 (0)