Skip to content

Commit fef49a6

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Del (object) from 50 inc faic/experiments/blip_finetune/transform/randaugment.py
Summary: Python3 makes the use of `(object)` in class inheritance unnecessary. Let's modernize our code by eliminating this. Reviewed By: palmje Differential Revision: D48718370 fbshipit-source-id: 6794156f7dd835cca8e12b65067f95b6991a218c
1 parent c00fe25 commit fef49a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

faiss/python/class_wrappers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ def add_to_referenced_objects(self, ref):
10661066
else:
10671067
self.referenced_objects.append(ref)
10681068

1069-
class RememberSwigOwnership(object):
1069+
class RememberSwigOwnership:
10701070
"""
10711071
SWIG's seattr transfers ownership of SWIG wrapped objects to the class
10721072
(btw this seems to contradict https://www.swig.org/Doc1.3/Python.html#Python_nn22

0 commit comments

Comments
 (0)