VersionMeta
#
- class ansys.tools.versioning.utils.VersionMeta#
Metaclass for version comparison.
Implements modification to magic methods.
Overview#
Import detail#
from ansys.tools.versioning.utils import VersionMeta
Method detail#
- VersionMeta.__le__(__x: str | int) bool #
Less equal.
If compared against a string which contains ‘dev’ it will always evaluate to True. If compared against an int, it will perform a classic ‘less equal’ operation.
- VersionMeta.__lt__(__x: str | int) bool #
Less than.
If compared against a string which contains ‘dev’ it will always evaluate to True. If compared against an int, it will perform a classic ‘less than’ operation.
- VersionMeta.__ge__(__x: str | int) bool #
Greater equal.
If compared against a string which contains ‘dev’ it will always evaluate to False. If compared against an int, it will perform a classic ‘greater equal’ operation.
- VersionMeta.__gt__(__x: str | int) bool #
Greater than.
If compared against a string which contains ‘dev’ it will always evaluate to False. If compared against an int, it will perform a classic ‘greater than’ operation.
- VersionMeta.__eq__(__x: object) bool #
Equal method.
If compared against a string which contains ‘dev’ it will always evaluate to False. If compared against an int, it will perform a classic ‘equal’ operation.