We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088b98f commit 35cf13dCopy full SHA for 35cf13d
mypyc/lib-rt/CPy.h
@@ -1004,11 +1004,11 @@ static PyObject *CPy_GetTypeName(PyObject *type) {
1004
PyObject *full = NULL;
1005
1006
module = PyObject_GetAttrString(type, "__module__");
1007
- if (!module) {
+ if (!module || !PyUnicode_Check(module)) {
1008
goto out;
1009
}
1010
name = PyObject_GetAttrString(type, "__qualname__");
1011
- if (!name) {
+ if (!name || !PyUnicode_Check(name)) {
1012
1013
1014
0 commit comments