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:
parent
123f2b4540
commit
2cbd1bb1f3
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue