From 3fda858b442679f005693fbfd3a078a386dc401f Mon Sep 17 00:00:00 2001 From: s-cork <36813890+s-cork@users.noreply.github.com> Date: Mon, 7 Sep 2020 23:29:18 +0800 Subject: [PATCH] fix change to typeName --- numpy/__init__.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numpy/__init__.js b/numpy/__init__.js index 46a16ee..5dbb096 100644 --- a/numpy/__init__.js +++ b/numpy/__init__.js @@ -946,7 +946,7 @@ var $builtinmodule = function (name) { }; function Internal_DType_To_Num(dtype) { - var name = Sk.abstr.typeName(dtype); + var name = dtype.prototype && dtype.prototype.tp$name; var num = Internal_TypeTable[name]; if (num == null) {