We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc888a8 commit adaa007Copy full SHA for adaa007
kitty/child.py
@@ -423,11 +423,10 @@ def background_processes(self) -> list[ProcessDesc]:
423
sid = session_id(gmap.get(foreground_process_group_id, ()))
424
if sid < 0:
425
return []
426
- ans = []
+ ans: list[ProcessDesc] = []
427
for grp_id, pids in gmap.items():
428
if grp_id != foreground_process_group_id and session_id(pids) == sid:
429
- for pid in pids:
430
- ans.append(self.process_desc(pid))
+ ans.extend(map(self.process_desc, pids))
431
return ans
432
except Exception:
433
0 commit comments