Skip to content

Commit

Permalink
Del (object) from 50 inc faic/experiments/blip_finetune/transform/r…
Browse files Browse the repository at this point in the history
…andaugment.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
  • Loading branch information
r-barnes authored and facebook-github-bot committed Aug 28, 2023
1 parent c00fe25 commit fef49a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faiss/python/class_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fef49a6

Please sign in to comment.