mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Implement "minimum version" checks into server and clients
This commit is contained in:
7
Utils.py
7
Utils.py
@@ -3,7 +3,12 @@ import typing
|
||||
|
||||
|
||||
def tuplize_version(version: str) -> typing.Tuple[int, ...]:
|
||||
return tuple(int(piece, 10) for piece in version.split("."))
|
||||
return Version(*(int(piece, 10) for piece in version.split(".")))
|
||||
|
||||
class Version(typing.NamedTuple):
|
||||
major: int
|
||||
minor: int
|
||||
micro: int
|
||||
|
||||
|
||||
__version__ = "3.4.2"
|
||||
|
||||
Reference in New Issue
Block a user