Skip to content

Commit ea820ac

Browse files
committed
Add type hinting to by return value
1 parent 7505db4 commit ea820ac

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

libtmux/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def by(val) -> bool:
346346
target_children = list(filter(by, self.children))
347347
if first:
348348
return target_children[0]
349-
return return target_children
349+
return target_children
350350

351351
def get_by_id(self, id):
352352
"""

libtmux/pane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _info(self):
6363
attrs = {"pane_id": self._pane_id}
6464

6565
# from https://github.com/serkanyersen/underscore.py
66-
def by(val):
66+
def by(val) -> bool:
6767
for key in attrs.keys():
6868
try:
6969
if attrs[key] != val[key]:

libtmux/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _info(self):
6363

6464
attrs = {"session_id": str(self._session_id)}
6565

66-
def by(val):
66+
def by(val) -> bool:
6767
for key in attrs.keys():
6868
try:
6969
if attrs[key] != val[key]:

libtmux/window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _info(self, *args):
6868
attrs = {"window_id": self._window_id}
6969

7070
# from https://github.com/serkanyersen/underscore.py
71-
def by(val):
71+
def by(val) -> bool:
7272
for key in attrs.keys():
7373
try:
7474
if attrs[key] != val[key]:

0 commit comments

Comments
 (0)