Skip to content

Commit 1a72eec

Browse files
committed
Add PyFrozenDict_Type to static_types
1 parent 18ce520 commit 1a72eec

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Include/internal/pycore_typeobject.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ extern "C" {
2525
#define _Py_TYPE_VERSION_BYTEARRAY 9
2626
#define _Py_TYPE_VERSION_BYTES 10
2727
#define _Py_TYPE_VERSION_COMPLEX 11
28+
#define _Py_TYPE_VERSION_FROZENDICT 12
2829

2930
#define _Py_TYPE_VERSION_NEXT 16
3031

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7987,5 +7987,5 @@ PyTypeObject PyFrozenDict_Type = {
79877987
frozendict_new, /* tp_new */
79887988
PyObject_GC_Del, /* tp_free */
79897989
.tp_vectorcall = dict_vectorcall,
7990-
.tp_version_tag = _Py_TYPE_VERSION_DICT,
7990+
.tp_version_tag = _Py_TYPE_VERSION_FROZENDICT,
79917991
};

Objects/object.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2476,8 +2476,9 @@ static PyTypeObject* static_types[] = {
24762476
&PyEnum_Type,
24772477
&PyFilter_Type,
24782478
&PyFloat_Type,
2479-
&PyFrame_Type,
24802479
&PyFrameLocalsProxy_Type,
2480+
&PyFrame_Type,
2481+
&PyFrozenDict_Type,
24812482
&PyFrozenSet_Type,
24822483
&PyFunction_Type,
24832484
&PyGen_Type,

0 commit comments

Comments
 (0)