mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00

* removed pybind as submodule * added hardcopy of pybind11 2.10.0 * rename pybind11 folder to avoid conflicts when changing branch Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
13 lines
228 B
Python
13 lines
228 B
Python
from typing import Union
|
|
|
|
|
|
def _to_int(s: str) -> Union[int, str]:
|
|
try:
|
|
return int(s)
|
|
except ValueError:
|
|
return s
|
|
|
|
|
|
__version__ = "2.10.0"
|
|
version_info = tuple(_to_int(s) for s in __version__.split("."))
|