2022-09-14 15:28:47 +08:00
|
|
|
from typing import Union
|
2021-01-02 17:15:39 +08:00
|
|
|
|
|
|
|
|
2022-09-14 15:28:47 +08:00
|
|
|
def _to_int(s: str) -> Union[int, str]:
|
2021-01-02 17:15:39 +08:00
|
|
|
try:
|
|
|
|
return int(s)
|
|
|
|
except ValueError:
|
|
|
|
return s
|
|
|
|
|
|
|
|
|
2022-09-14 15:28:47 +08:00
|
|
|
__version__ = "2.11.0.dev1"
|
2021-01-02 17:15:39 +08:00
|
|
|
version_info = tuple(_to_int(s) for s in __version__.split("."))
|