aboutsummaryrefslogtreecommitdiff
path: root/pybind11/_version.py
blob: 1c310e0c95b36648651bd921c3752050a6a7ad68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from typing import Union


def _to_int(s: str) -> Union[int, str]:
    try:
        return int(s)
    except ValueError:
        return s


__version__ = "2.11.0"
version_info = tuple(_to_int(s) for s in __version__.split("."))