Skip to content

Commit

Permalink
fix pyright
Browse files Browse the repository at this point in the history
Signed-off-by: zjgemi <[email protected]>
  • Loading branch information
zjgemi committed Jan 7, 2025
1 parent af8ee2f commit 48a5c47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dpgen2/exploration/report/report_trust_levels_max.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def converged(
converged bool
If the exploration is converged.
"""
return self.accurate_ratio() >= self.conv_accuracy
accurate_ratio = self.accurate_ratio()
assert isinstance(accurate_ratio, float)
return accurate_ratio >= self.conv_accuracy

Check warning on line 46 in dpgen2/exploration/report/report_trust_levels_max.py

View check run for this annotation

Codecov / codecov/patch

dpgen2/exploration/report/report_trust_levels_max.py#L44-L46

Added lines #L44 - L46 were not covered by tests

def get_candidate_ids(
self,
Expand Down

0 comments on commit 48a5c47

Please sign in to comment.