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 415f2f1 commit 365b6bbCopy full SHA for 365b6bb
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