You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
228 B
13 lines
228 B
2 years ago
|
from typing import Union
|
||
|
|
||
|
|
||
|
def _to_int(s: str) -> Union[int, str]:
|
||
|
try:
|
||
|
return int(s)
|
||
|
except ValueError:
|
||
|
return s
|
||
|
|
||
|
|
||
|
__version__ = "2.10.4"
|
||
|
version_info = tuple(_to_int(s) for s in __version__.split("."))
|