Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pgactivity/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,4 +1211,6 @@ def copy_focused_query_to_clipboard(self) -> str:
tuple[Iterable[WaitingProcess], SystemInfo],
tuple[Iterable[BlockingProcess], SystemInfo],
tuple[Iterable[LocalRunningProcess], SystemInfo],
SelectableProcesses,
tuple[SelectableProcesses, SystemInfo],
]
7 changes: 3 additions & 4 deletions pgactivity/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ def main(
key, in_help = None, False
sys_procs: dict[int, types.SystemProcess] = {}
pg_procs = types.SelectableProcesses([])
activity_stats: types.ActivityStats = (
(pg_procs, types.SystemInfo.default()) if is_local else pg_procs
)
activity_stats: types.ActivityStats
activity_stats = (pg_procs, types.SystemInfo.default()) if is_local else pg_procs

msg_pile = utils.MessagePile(2)

Expand Down Expand Up @@ -257,7 +256,7 @@ def main(
else:
assert False # help type checking

activity_stats = (pg_procs, system_info) if is_local else pg_procs # type: ignore[assignment]
activity_stats = (pg_procs, system_info) if is_local else pg_procs

if options.output is not None:
custom_asdict = partial(attr.asdict, recurse=True)
Expand Down
Loading