Skip to content

Commit 56d7b83

Browse files
committed
gh-112636: remove check for float subclasses without nb_float
1 parent 939fc6d commit 56d7b83

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Objects/abstract.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,10 +1737,6 @@ PyNumber_Float(PyObject *o)
17371737
return PyFloat_FromDouble(val);
17381738
}
17391739

1740-
/* A float subclass with nb_float == NULL */
1741-
if (PyFloat_Check(o)) {
1742-
return PyFloat_FromDouble(PyFloat_AS_DOUBLE(o));
1743-
}
17441740
return PyFloat_FromString(o);
17451741
}
17461742

0 commit comments

Comments
 (0)