Skip to content

Commit efbcaf4

Browse files
ProGamerGovfacebook-github-bot
authored andcommitted
Remove redundant 'object' inheritance reference from classes (#575)
Summary: As I understand, Captum uses Python 3, which means that classes don't need to inherit from object as it done implicitly already. Pull Request resolved: #575 Reviewed By: vivekmig, bilalsal Differential Revision: D25716435 Pulled By: NarineK fbshipit-source-id: 4983e375dfc81a6c03388b009778f90b9ca34a6d
1 parent 8ba1480 commit efbcaf4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

captum/attr/_models/pytext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_attribution_map(self, attributions):
7676
return attribution_map
7777

7878

79-
class BaselineGenerator(object):
79+
class BaselineGenerator:
8080
r"""
8181
This is an example input baseline generator for DocNN model which uses
8282
word and dict features.

captum/insights/attr_vis/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def __init__(
136136
self.additional_args = additional_args
137137

138138

139-
class AttributionVisualizer(object):
139+
class AttributionVisualizer:
140140
def __init__(
141141
self,
142142
models: Union[List[Module], Module],

captum/insights/attr_vis/attribution_calculation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
OutputScore = namedtuple("OutputScore", "score index label")
2828

2929

30-
class AttributionCalculation(object):
30+
class AttributionCalculation:
3131
def __init__(
3232
self,
3333
models: Sequence[Module],

0 commit comments

Comments
 (0)