Skip to content

Commit

Permalink
rename is to are
Browse files Browse the repository at this point in the history
  • Loading branch information
kddubey committed Feb 10, 2025
1 parent 471d807 commit f092efd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/seer/automation/codegen/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class CodeRelevantWarningsRequest(BaseComponentRequest):


class CodeAreIssuesFixableOutput(BaseComponentOutput):
is_fixable: list[bool | None] # None means the issue was not analyzed
are_fixable: list[bool | None] # None means the issue was not analyzed


class CodeRelevantWarningsOutput(BaseComponentOutput):
Expand Down
2 changes: 1 addition & 1 deletion src/seer/automation/codegen/relevant_warnings_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def invoke(
for issue_group_id in tqdm(issue_group_ids, desc="Predicting issue fixability")
}
return CodeAreIssuesFixableOutput(
is_fixable=[
are_fixable=[
issue_group_id_to_is_fixable.get(issue.group_id)
for issue in request.candidate_issues
]
Expand Down
4 changes: 2 additions & 2 deletions src/seer/automation/codegen/relevant_warnings_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ def _invoke(self, **kwargs):
# 2. Filter out unfixable issues b/c our definition of "relevant" is that fixing the warning
# will fix the issue.
filterer = AreIssuesFixableComponent(self.context)
is_fixable_output: CodeAreIssuesFixableOutput = filterer.invoke(
are_fixable_output: CodeAreIssuesFixableOutput = filterer.invoke(
CodeAreIssuesFixableRequest(candidate_issues=[issue for _, issue in associations])
)
associations_with_fixable_issues = [
association
for association, is_fixable in zip(
associations, is_fixable_output.is_fixable, strict=True
associations, are_fixable_output.are_fixable, strict=True
)
if is_fixable
]
Expand Down

0 comments on commit f092efd

Please sign in to comment.