libtmux Reference MCP Search
On this page

libtmux.Client._refresh

View as Markdown

Module
libtmux
Declared in
Client
Package
libtmux
Source
src/libtmux/neo.py
_refresh ( self , obj_key : str , obj_id : str , list_cmd : ListCmd = "list-panes" , list_extra_args : ListExtraArgs = None ) None
method [source]
method [source]
_refresh

Inherited from libtmux.neo.Obj

Refresh dataclass fields from a single list-* row.

Used by the public refresh() methods on Pane , Window , Session , and Client . Each subclass guards its identity field (pane_id, window_id, session_id, client_name) against None before delegating here; this base method enforces the same precondition explicitly so the guarantee survives python -O, where an assert would be stripped.

Raises
  • ValueErrorWhen obj_id is None. Surfaces a clear error under python -O, matching the contract of the public refresh() methods.

0 declared, 0 inherited

Esc

Type to search.