summaryrefslogtreecommitdiff
path: root/Objects/typevarobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/typevarobject.c')
-rw-r--r--Objects/typevarobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typevarobject.c b/Objects/typevarobject.c
index b0578756f7..4464e7a9da 100644
--- a/Objects/typevarobject.c
+++ b/Objects/typevarobject.c
@@ -271,7 +271,7 @@ typevar_constraints(typevarobject *self, void *Py_UNUSED(ignored))
return Py_NewRef(self->constraints);
}
if (self->evaluate_constraints == NULL) {
- Py_RETURN_NONE;
+ return PyTuple_New(0);
}
PyObject *constraints = PyObject_CallNoArgs(self->evaluate_constraints);
self->constraints = Py_XNewRef(constraints);