Skip to content

Commit

Permalink
Fix DeprecationWarning about missing module prefix for wrapper types
Browse files Browse the repository at this point in the history
  • Loading branch information
rdb committed Nov 26, 2024
1 parent 15bcc60 commit a8aabb6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/interrogatedb/py_wrappers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ static PyObject *Dtool_MappingWrapper_keys(PyObject *self, PyObject *) {
};

static PyType_Spec wrapper_spec = {
"_interrogate_mapping_wrapper_keys",
"sys._interrogate_mapping_wrapper_keys",
sizeof(Dtool_MappingWrapper),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
Expand Down Expand Up @@ -664,7 +664,7 @@ static PyObject *Dtool_MappingWrapper_values(PyObject *self, PyObject *) {
};

static PyType_Spec wrapper_spec = {
"_interrogate_mapping_wrapper_values",
"sys._interrogate_mapping_wrapper_values",
sizeof(Dtool_MappingWrapper),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
Expand Down Expand Up @@ -749,7 +749,7 @@ static PyObject *Dtool_MappingWrapper_items(PyObject *self, PyObject *) {
};

static PyType_Spec wrapper_spec = {
"_interrogate_mapping_wrapper_items",
"sys._interrogate_mapping_wrapper_items",
sizeof(Dtool_MappingWrapper),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
Expand Down Expand Up @@ -1068,7 +1068,7 @@ Dtool_SequenceWrapper *Dtool_NewSequenceWrapper(PyObject *self, const char *name
};

static PyType_Spec wrapper_spec = {
"_interrogate_sequence_wrapper",
"sys._interrogate_sequence_wrapper",
sizeof(Dtool_SequenceWrapper),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
Expand Down Expand Up @@ -1118,7 +1118,7 @@ Dtool_MutableSequenceWrapper *Dtool_NewMutableSequenceWrapper(PyObject *self, co
};

static PyType_Spec wrapper_spec = {
"_interrogate_mutable_sequence_wrappes",
"sys._interrogate_mutable_sequence_wrappes",
sizeof(Dtool_MutableSequenceWrapper),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
Expand Down Expand Up @@ -1165,7 +1165,7 @@ Dtool_MappingWrapper *Dtool_NewMappingWrapper(PyObject *self, const char *name)
};

static PyType_Spec wrapper_spec = {
"_interrogate_mapping_wrapper",
"sys._interrogate_mapping_wrapper",
sizeof(Dtool_MappingWrapper),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
Expand Down Expand Up @@ -1218,7 +1218,7 @@ Dtool_MappingWrapper *Dtool_NewMutableMappingWrapper(PyObject *self, const char
};

static PyType_Spec wrapper_spec = {
"_interrogate_mutable_mapping_wrapper",
"sys._interrogate_mutable_mapping_wrapper",
sizeof(Dtool_MappingWrapper),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
Expand Down Expand Up @@ -1254,7 +1254,7 @@ Dtool_NewGenerator(PyObject *self, iternextfunc gen_next) {
};

static PyType_Spec wrapper_spec = {
"_interrogate_generator_wrapper",
"sys._interrogate_generator_wrapper",
sizeof(Dtool_GeneratorWrapper),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
Expand Down Expand Up @@ -1288,7 +1288,7 @@ Dtool_NewStaticProperty(PyTypeObject *type, const PyGetSetDef *getset) {
};

static PyType_Spec wrapper_spec = {
"_interrogate_static_property",
"sys._interrogate_static_property",
sizeof(PyGetSetDescrObject),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
Expand Down

0 comments on commit a8aabb6

Please sign in to comment.