Make GenericAlias_Type and Generic_Type static. (GH-8076)

(cherry picked from commit 97ae32c92e)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
This commit is contained in:
Miss Islington (bot) 2018-07-03 23:08:57 -07:00 committed by GitHub
parent 123f2b4540
commit 2cbd1bb1f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5200,7 +5200,7 @@ static PyMethodDef generic_alias_methods[] = {
{NULL} /* sentinel */
};
PyTypeObject GenericAlias_Type = {
static PyTypeObject GenericAlias_Type = {
PyVarObject_HEAD_INIT(NULL, 0)
"GenericAlias",
sizeof(PyGenericAliasObject),
@ -5237,7 +5237,7 @@ static PyMethodDef generic_methods[] = {
{NULL} /* sentinel */
};
PyTypeObject Generic_Type = {
static PyTypeObject Generic_Type = {
PyVarObject_HEAD_INIT(NULL, 0)
"Generic",
sizeof(PyGenericObject),