Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

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

function libtmux stable

convert_value

Convert raw option strings to python types.

Source and package
Qualified name
libtmux.options.convert_value
Module
libtmux.options
Package
libtmux
Source
src/libtmux/options.py
convert_value ( value: _V | None, ) → ConvertedValue | _V | None

Examples#

>>> convert_value("on")
True
>>> convert_value("off")
False
>>> convert_value("1")
1
>>> convert_value("50")
50
>>> convert_value("%50")
'%50'
Type parameters
Parameters
Esc

Type to search.

Reference preview Open reference