From 97ae32c92ecc7b3c29f8829a2b79f0f8f8bbf2cc Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 3 Jul 2018 22:39:09 -0700 Subject: [PATCH] Make GenericAlias_Type and Generic_Type static. (GH-8076) --- Modules/_testcapimodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 41d059b2e48..014c2f325af 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -5194,7 +5194,7 @@ static PyMethodDef generic_alias_methods[] = { {NULL} /* sentinel */ }; -PyTypeObject GenericAlias_Type = { +static PyTypeObject GenericAlias_Type = { PyVarObject_HEAD_INIT(NULL, 0) "GenericAlias", sizeof(PyGenericAliasObject), @@ -5231,7 +5231,7 @@ static PyMethodDef generic_methods[] = { {NULL} /* sentinel */ }; -PyTypeObject Generic_Type = { +static PyTypeObject Generic_Type = { PyVarObject_HEAD_INIT(NULL, 0) "Generic", sizeof(PyGenericObject),