From 2f3cff990b9521ea8e34995ca9aace8ed2683045 Mon Sep 17 00:00:00 2001 From: Marta Sumyk <116710765+martasumyk@users.noreply.github.com> Date: Thu, 23 Oct 2025 12:02:25 +0300 Subject: [PATCH] Document list_visible_app_bundles function Add docstring to list_visible_app_bundles function --- macapptree/apps.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macapptree/apps.py b/macapptree/apps.py index c95d88c..033731b 100644 --- a/macapptree/apps.py +++ b/macapptree/apps.py @@ -42,6 +42,9 @@ def _pid_to_bundle_map(): return mapping def list_visible_app_bundles(extras_exclude: set[str] | None = None) -> list[str]: + """ + List apps that have currently opened and visible windows. + """ excludes = set(extras_exclude or set()) | _SYSTEM_EXCLUDES pid2bundle = _pid_to_bundle_map()