Make GenericAlias_Type and Generic_Type static. (GH-8076)

This commit is contained in:
Benjamin Peterson 2018-07-03 22:39:09 -07:00 committed by GitHub
parent b4588c2fff
commit 97ae32c92e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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),