mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 00:22:00 +00:00
7c33cdc2d3
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
13 lines
232 B
Python
13 lines
232 B
Python
from __future__ import annotations
|
|
|
|
|
|
def _to_int(s: str) -> int | str:
|
|
try:
|
|
return int(s)
|
|
except ValueError:
|
|
return s
|
|
|
|
|
|
__version__ = "2.13.5"
|
|
version_info = tuple(_to_int(s) for s in __version__.split("."))
|