Skip to content

Commit b7791ea

Browse files
authored
Remove Python2 style object inheritance (#3597)
Summary: Python3 makes the use of `(object)` in class inheritance unnecessary. Let's modernize our code by eliminating this. Reviewed By: aaronenyeshi Differential Revision: D48957872
1 parent d07aebf commit b7791ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/hubert/utils/kmeans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def learn_kmeans(
135135
_LG.info("Finished training the KMeans clustering model successfully")
136136

137137

138-
class ApplyKmeans(object):
138+
class ApplyKmeans:
139139
def __init__(self, km_path, device):
140140
import joblib
141141

0 commit comments

Comments
 (0)