mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-23 00:49:36 +00:00
13 lines
237 B
Python
13 lines
237 B
Python
from __future__ import annotations
|
|
|
|
|
|
def _to_int(s: str) -> int | str:
|
|
try:
|
|
return int(s)
|
|
except ValueError:
|
|
return s
|
|
|
|
|
|
__version__ = "2.14.0.dev1"
|
|
version_info = tuple(_to_int(s) for s in __version__.split("."))
|