Commit fa8eb0de authored by Kevin Modzelewski's avatar Kevin Modzelewski

Add float as a PyNumber

parent 56ae2d97
...@@ -1165,7 +1165,7 @@ extern "C" int PyNumber_Check(PyObject* obj) noexcept { ...@@ -1165,7 +1165,7 @@ extern "C" int PyNumber_Check(PyObject* obj) noexcept {
assert(obj && obj->cls); assert(obj && obj->cls);
// Our check, since we don't currently fill in tp_as_number: // Our check, since we don't currently fill in tp_as_number:
if (isSubclass(obj->cls, int_cls) || isSubclass(obj->cls, long_cls)) if (isSubclass(obj->cls, int_cls) || isSubclass(obj->cls, long_cls) || isSubclass(obj->cls, float_cls))
return true; return true;
// The CPython check: // The CPython check:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment