Home
last modified time | relevance | path

Searched refs:ann_dict (Results 1 - 3 of 3) sorted by relevance

/third_party/python/Objects/
H A Dfuncobject.c287 PyObject *ann_dict = PyDict_New(); in func_get_annotation_dict() local
288 if (ann_dict == NULL) { in func_get_annotation_dict()
295 int err = PyDict_SetItem(ann_dict, in func_get_annotation_dict()
303 Py_SETREF(op->func_annotations, ann_dict); in func_get_annotation_dict()
/third_party/python/Python/
H A Dpylifecycle.c2102 PyObject *m, *d, *loader, *ann_dict; in add_main_module() local
2108 ann_dict = PyDict_New(); in add_main_module()
2109 if ((ann_dict == NULL) || in add_main_module()
2110 (PyDict_SetItemString(d, "__annotations__", ann_dict) < 0)) { in add_main_module()
2113 Py_DECREF(ann_dict); in add_main_module()
H A Dceval.c3340 PyObject *ann_dict; local
3348 ann_dict = _PyDict_GetItemWithError(LOCALS(),
3350 if (ann_dict == NULL) {
3355 ann_dict = PyDict_New();
3356 if (ann_dict == NULL) {
3360 ann_dict);
3361 Py_DECREF(ann_dict);
3369 ann_dict = PyObject_GetItem(LOCALS(), &_Py_ID(__annotations__));
3370 if (ann_dict == NULL) {
3375 ann_dict
[all...]

Completed in 12 milliseconds