# libtmux._vendor.version.Version.__init__

- **Module:** libtmux._vendor.version.Version
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/_vendor/version.py#L199
- **Page:** https://libtmux.org/reference/py/libtmux-_vendor-version-version-__init__/

```
libtmux._vendor.version.Version.__init__(self, version: str) -> None
```

Initialize a Version object.

## Parameters

- `self`
- `version` (str) — The string representation of a version which will be parsed and normalized
before use.

## Raises

- `InvalidVersion` — If the ``version`` does not conform to PEP 440 in any way then this
exception will be raised.
