From 41551bcd367b436582da3dadc0c6f0fe907a1905 Mon Sep 17 00:00:00 2001 From: Matej Ferencevic Date: Sat, 28 Mar 2020 12:07:52 +0100 Subject: [PATCH] Fix Python struct formatting Reviewers: llugovic Reviewed By: llugovic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2738 --- src/query/procedure/py_module.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/query/procedure/py_module.cpp b/src/query/procedure/py_module.cpp index e0cd5f5f3..9aa000684 100644 --- a/src/query/procedure/py_module.cpp +++ b/src/query/procedure/py_module.cpp @@ -1131,7 +1131,8 @@ static PyMethodDef PyVertexMethods[] = { PyObject *PyVertexRichCompare(PyObject *self, PyObject *other, int op); static PyTypeObject PyVertexType = { - PyVarObject_HEAD_INIT(nullptr, 0).tp_name = "_mgp.Vertex", + PyVarObject_HEAD_INIT(nullptr, 0) + .tp_name = "_mgp.Vertex", .tp_doc = "Wraps struct mgp_vertex.", .tp_basicsize = sizeof(PyVertex), .tp_flags = Py_TPFLAGS_DEFAULT, @@ -1291,7 +1292,8 @@ static PyMethodDef PyPathMethods[] = { }; static PyTypeObject PyPathType = { - PyVarObject_HEAD_INIT(nullptr, 0).tp_name = "_mgp.Path", + PyVarObject_HEAD_INIT(nullptr, 0) + .tp_name = "_mgp.Path", .tp_doc = "Wraps struct mgp_path.", .tp_basicsize = sizeof(PyPath), .tp_flags = Py_TPFLAGS_DEFAULT,