Numeric and Float are split out in main so a type cant be both
at the same time. Also there's no reason to do isinstance(Float)
and isintance(Numeric) even if they are in the same hierarchy.
Change-Id: I2263aaac264673a830b63689d39b6433b32c1d23
(cherry picked from commit
b49fcb67afb302d2309efea71cde2a6584c1373c)
is_true(User.__table__.c.reverse_u_optional_data.nullable)
is_true(isinstance(User.__table__.c.float_data.type, Float))
- is_true(isinstance(User.__table__.c.float_data.type, Numeric))
+
is_not(User.__table__.c.decimal_data.type, our_type)
if compat.py310:
is_true(User.__table__.c.reverse_u_optional_data.nullable)
is_true(isinstance(User.__table__.c.float_data.type, Float))
- is_true(isinstance(User.__table__.c.float_data.type, Numeric))
+
is_not(User.__table__.c.decimal_data.type, our_type)
if compat.py310: