Protect references to tp_descr_get and tp_dict with the appropriate test: PyType_HasFeature(t, Py_TPFLAGS_HAVE_CLASS).
Protect references to tp_descr_get and tp_dict with the appropriate test:
PyType_HasFeature(t, Py_TPFLAGS_HAVE_CLASS).

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator