Skip to content

Conversation

svkeerthy
Copy link
Collaborator

No description provided.

Comment on lines +155 to +157
for i in range(len(policy_results)):
policy_result = policy_results[i]
baseline = self._baselines[i]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

range(len()) is almost always a sign to use enumerate() or zip() instead.

Suggested change
for i in range(len(policy_results)):
policy_result = policy_results[i]
baseline = self._baselines[i]
for policy_result, baseline in zip(policy_results, self._baselines, strict=True):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants