Skip to content

Commit 48a5c47

Browse files
committed
fix pyright
Signed-off-by: zjgemi <[email protected]>
1 parent af8ee2f commit 48a5c47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpgen2/exploration/report/report_trust_levels_max.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ def converged(
4141
converged bool
4242
If the exploration is converged.
4343
"""
44-
return self.accurate_ratio() >= self.conv_accuracy
44+
accurate_ratio = self.accurate_ratio()
45+
assert isinstance(accurate_ratio, float)
46+
return accurate_ratio >= self.conv_accuracy
4547

4648
def get_candidate_ids(
4749
self,

0 commit comments

Comments
 (0)