Skip to content

Commit 38c2169

Browse files
committed
Solve pylint issues
1 parent 474c885 commit 38c2169

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

texar/torch/run/metric/classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def class_id(self):
136136
return self._class_id
137137

138138
def better(self, cur: Value, prev: Value) -> Optional[bool]:
139-
#pylint: disable=unused-argument
139+
# pylint: disable=unused-argument
140140
# Always return `None` to indicate values are uncomparable.
141141
return None
142142

texar/torch/run/metric/summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def value(self) -> float:
164164
return self.optimizer().param_groups[self.group]['lr'] # type: ignore
165165

166166
def better(self, cur: float, prev: float) -> Optional[bool]:
167-
#pylint: disable=unused-argument
167+
# pylint: disable=unused-argument
168168
# Always return `None` to indicate values are uncomparable.
169169
return None
170170

0 commit comments

Comments
 (0)