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 70abf72 commit 2290b7eCopy full SHA for 2290b7e
Objects/funcobject.c
@@ -864,7 +864,7 @@ static PyObject *
864
func_get_annotations(PyObject *self, void *Py_UNUSED(ignored))
865
{
866
PyFunctionObject *op = _PyFunction_CAST(self);
867
- PyObject *d;
+ PyObject *d = NULL;
868
Py_BEGIN_CRITICAL_SECTION(self);
869
if (op->func_annotations == NULL &&
870
(op->func_annotate == NULL || !PyCallable_Check(op->func_annotate))) {
0 commit comments