From 3a4a744611b8cb6af55dddaa6269c9a2f452a378 Mon Sep 17 00:00:00 2001 From: Brian Kelley Date: Mon, 27 May 2024 22:39:54 -0400 Subject: [PATCH] Allow the substruct library to be deleted when refcount goes to 0 (#7462) * Allow the substruct library to be deleted when refcount goes to 0 * Remove whitespace changes * Update Code/GraphMol/SubstructLibrary/Wrap/SubstructLibraryWrap.cpp Co-authored-by: Greg Landrum --------- Co-authored-by: Greg Landrum --- Code/GraphMol/SubstructLibrary/Wrap/SubstructLibraryWrap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Code/GraphMol/SubstructLibrary/Wrap/SubstructLibraryWrap.cpp b/Code/GraphMol/SubstructLibrary/Wrap/SubstructLibraryWrap.cpp index c4ee58a2c84..31ca35c17b7 100644 --- a/Code/GraphMol/SubstructLibrary/Wrap/SubstructLibraryWrap.cpp +++ b/Code/GraphMol/SubstructLibrary/Wrap/SubstructLibraryWrap.cpp @@ -743,8 +743,7 @@ struct substructlibrary_wrapper { python::init<>(python::args("self"))) .def(python::init(python::args("self", "numBits"))); - python::class_( + python::class_>( "SubstructLibrary", SubstructLibraryDoc, python::init<>(python::args("self"))) .def(python::init>(