This is a class that allows handling compat numbers as a type: >>> cn = CompatNumber(4, 3) >>> print(cn.major) 4 >>> cn < CompatNumber(4, 5) True >>> cn == CompatNumber(4.3) True