diff --git a/faiss/python/class_wrappers.py b/faiss/python/class_wrappers.py index c66d1a507c..3beb66141c 100644 --- a/faiss/python/class_wrappers.py +++ b/faiss/python/class_wrappers.py @@ -1066,7 +1066,7 @@ def add_to_referenced_objects(self, ref): else: self.referenced_objects.append(ref) -class RememberSwigOwnership(object): +class RememberSwigOwnership: """ SWIG's seattr transfers ownership of SWIG wrapped objects to the class (btw this seems to contradict https://www.swig.org/Doc1.3/Python.html#Python_nn22