From 1c43b3af315a263fced9112c14401e63519e107e Mon Sep 17 00:00:00 2001 From: pallaswept <132128962+pallaswept@users.noreply.github.com> Date: Thu, 5 Oct 2023 05:07:58 +1100 Subject: [PATCH] Update tmux.py to fix invalid < comparison between string and int Fix ``` File "/usr/lib/python3.11/site-packages/powerline/segments/tmux.py", line 22, in attached_clients return None if attached_count < minimum else str(attached_count) ^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '<' not supported between instances of 'int' and 'str' ``` --- powerline/segments/tmux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/segments/tmux.py b/powerline/segments/tmux.py index 1f343893..becfdad1 100644 --- a/powerline/segments/tmux.py +++ b/powerline/segments/tmux.py @@ -19,4 +19,4 @@ def attached_clients(pl, minimum=1): attached_clients_output = get_tmux_output(pl, 'list-clients', '-t', session_name) attached_count = len(attached_clients_output.rstrip().split('\n')) - return None if attached_count < minimum else str(attached_count) + return None if attached_count < int(minimum) else str(attached_count)