mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
e85696e80e
* Boilerplate version number update after v2.11.0 release. * Small updates to release.rst
13 lines
233 B
Python
13 lines
233 B
Python
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("."))
|