# libtmux.options.convert_values

- **Module:** libtmux.options
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/options.py#L217
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-options-convert_values/

```
libtmux.options.convert_values(
    value: _V | None,
) -> ConvertedValues | _V | None
```

Recursively convert values to python types via :func:`convert_value`.

```python
>>> convert_values(None)
```

```python
>>> convert_values("on")
True
>>> convert_values("off")
False
```

```python
>>> convert_values(["on"])
[True]
>>> convert_values(["off"])
[False]
```

```python
>>> convert_values({"window_index": "1"})
{'window_index': 1}
```

```python
>>> convert_values({"visual-bell": "on"})
{'visual-bell': True}
```

## Type parameters

- `_V`

## Parameters

- `value` (`_V | None`)
