μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
_version.py
Go to the documentation of this file.
1from typing import Union
2
3
4def _to_int(s: str) -> Union[int, str]:
5 try:
6 return int(s)
7 except ValueError:
8 return s
9
10
11__version__ = "2.10.4"
12version_info = tuple(_to_int(s) for s in __version__.split("."))
def _to_int(s)
Definition: _version.py:4