Searched refs:ann_dict (Results 1 – 2 of 2) sorted by relevance
1561 PyObject *m, *d, *loader, *ann_dict; in add_main_module() local1567 ann_dict = PyDict_New(); in add_main_module()1568 if ((ann_dict == NULL) || in add_main_module()1569 (PyDict_SetItemString(d, "__annotations__", ann_dict) < 0)) { in add_main_module()1572 Py_DECREF(ann_dict); in add_main_module()
2392 PyObject *ann_dict; in _PyEval_EvalFrameDefault() local2400 ann_dict = _PyDict_GetItemId(f->f_locals, in _PyEval_EvalFrameDefault()2402 if (ann_dict == NULL) { in _PyEval_EvalFrameDefault()2404 ann_dict = PyDict_New(); in _PyEval_EvalFrameDefault()2405 if (ann_dict == NULL) { in _PyEval_EvalFrameDefault()2409 &PyId___annotations__, ann_dict); in _PyEval_EvalFrameDefault()2410 Py_DECREF(ann_dict); in _PyEval_EvalFrameDefault()2422 ann_dict = PyObject_GetItem(f->f_locals, ann_str); in _PyEval_EvalFrameDefault()2423 if (ann_dict == NULL) { in _PyEval_EvalFrameDefault()2428 ann_dict = PyDict_New(); in _PyEval_EvalFrameDefault()[all …]