pybind11/pybind11/_version.py

13 lines
233 B
Python
Raw Normal View History

from typing import Union
def _to_int(s: str) -> Union[int, str]:
try:
return int(s)
except ValueError:
return s
__version__ = "2.12.0.dev1"
version_info = tuple(_to_int(s) for s in __version__.split("."))