Skip to content

Commit 0ab72e5

Browse files
committed
chore(query_list): Fix typing in val_match
src/libtmux/_internal/query_list.py:355: error: Returning Any from function declared to return "bool" [no-any-return]
1 parent 49137a6 commit 0ab72e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libtmux/_internal/query_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def __eq__(
305305
return False
306306

307307
if len(self) == len(data):
308-
for (a, b) in zip(self, data):
308+
for a, b in zip(self, data):
309309
if isinstance(a, Mapping):
310310
a_keys = a.keys()
311311
if a.keys == b.keys():
@@ -352,7 +352,7 @@ def val_match(obj: Union[str, List[Any]]) -> bool:
352352
if isinstance(matcher, list):
353353
return obj in matcher
354354
else:
355-
return obj == matcher
355+
return bool(obj == matcher)
356356

357357
_filter = val_match
358358
else:

0 commit comments

Comments
 (0)