Skip to content

Commit abedb21

Browse files
committed
!squash
1 parent 5204d86 commit abedb21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libtmux/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def where(self, attrs: Dict[str, str], first: bool = False) -> t.Union[List[O],
393393
"""
394394

395395
# from https://github.com/serkanyersen/underscore.py
396-
def by(val: D) -> bool:
396+
def by(val: O) -> bool:
397397
for key in attrs.keys():
398398
try:
399399
if attrs[key] != val[key]:
@@ -402,7 +402,7 @@ def by(val: D) -> bool:
402402
return False
403403
return True
404404

405-
target_children = [s for s in self.children if by(s)]
405+
target_children: t.List[O] = [s for s in self.children if by(s)]
406406

407407
if first:
408408
return target_children[0]

0 commit comments

Comments
 (0)