Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

Python documentation

libtmux.neo.Obj._refresh

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
libtmux.neo
Declared in
Obj
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

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
  • ValueError – When 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.