mirror of https://github.com/python/cpython
Make GenericAlias_Type and Generic_Type static. (GH-8076)
This commit is contained in:
parent
b4588c2fff
commit
97ae32c92e
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue