Skip to content

Commit 3fc8e03

Browse files
Prerak SinghPrerak Singh
authored andcommitted
bug fix
1 parent d858535 commit 3fc8e03

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ jobs:
190190
python -m pip install -r docs/requirements.txt
191191
192192
- name: Build package
193+
env:
194+
CL: "/std:c++17"
193195
run: |
194-
set CL=/std:c++17
195196
python scripts/build/install.py
196197
197198
- name: Run tests

pydatastructs/graphs/_backend/cpp/AdjacencyMatrix.hpp

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,39 @@ PyTypeObject AdjacencyMatrixGraphType = {
242242
.tp_basicsize = sizeof(AdjacencyMatrixGraph),
243243
.tp_itemsize = 0,
244244
.tp_dealloc = (destructor)AdjacencyMatrixGraph_dealloc,
245+
.tp_print = 0,
246+
.tp_getattr = 0,
247+
.tp_setattr = 0,
248+
.tp_as_async = 0,
249+
.tp_repr = 0,
250+
.tp_as_number = 0,
251+
.tp_as_sequence = 0,
252+
.tp_as_mapping = 0,
253+
.tp_hash = 0,
254+
.tp_call = 0,
255+
.tp_str = 0,
256+
.tp_getattro = 0,
257+
.tp_setattro = 0,
258+
.tp_as_buffer = 0,
245259
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
246260
.tp_doc = "Adjacency matrix graph",
261+
.tp_traverse = 0,
262+
.tp_clear = 0,
263+
.tp_richcompare = 0,
264+
.tp_weaklistoffset = 0,
265+
.tp_iter = 0,
266+
.tp_iternext = 0,
247267
.tp_methods = AdjacencyMatrixGraph_methods,
248-
.tp_new = AdjacencyMatrixGraph_new,
268+
.tp_members = 0,
269+
.tp_getset = 0,
270+
.tp_base = 0,
271+
.tp_dict = 0,
272+
.tp_descr_get = 0,
273+
.tp_descr_set = 0,
249274
.tp_dictoffset = offsetof(AdjacencyMatrixGraph, dict),
275+
.tp_init = 0,
276+
.tp_alloc = 0,
277+
.tp_new = AdjacencyMatrixGraph_new,
250278
};
251279

252280
#endif

0 commit comments

Comments
 (0)