Currently, typing/Float extends typing/Integer. This makes it non trivial to check if a type is an integer.
eg: isInstance(type, Integer) and not isInstance(type, Float) or type.__class__ == Integer.__class__
This pull request is a quick fix which changes the super type of Float from Integer to Type and all affected code by this change.
Currently,
typing/Float
extendstyping/Integer
. This makes it non trivial to check if a type is an integer. eg:isInstance(type, Integer) and not isInstance(type, Float)
ortype.__class__ == Integer.__class__
This pull request is a quick fix which changes the super type of
Float
fromInteger
toType
and all affected code by this change.