Skip to content

Commit

Permalink
noop; remove unused, appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rogthefrog committed Oct 31, 2024
1 parent 69da9f2 commit 8ccf3bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modelgauge/tests/safe_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def make_test_items(self, dependency_helper: DependencyHelper) -> List[TestItem]
)
return test_items

def measure_quality(self, item: TestItemAnnotations) -> Dict[str, float]:
def measure_quality(self, item: TestItemAnnotations) -> Dict[str, float] | None:
return self.annotators.evaluate(item)

def aggregate_measurements(self, items: List[MeasuredTestItem]) -> SafeTestResult:
Expand Down Expand Up @@ -211,7 +211,5 @@ class PrivateSafeTestVersion1(BaseSafeTestVersion1):

register_tests(PrivateSafeTestVersion1, uid_key)
except:
import traceback

print(f"unexpected failure registering annotators for {uid_key} and {private_annotators}")
raise

0 comments on commit 8ccf3bb

Please sign in to comment.