Skip to content

Commit

Permalink
Cleanup unnecessary B009 ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Nov 4, 2024
1 parent e337c88 commit 88096d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/syrupy/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ def include_snapshot_details(self) -> bool:

@cached_property
def _collected_items_by_nodeid(self) -> Dict[str, "pytest.Item"]:
return {
getattr(item, "nodeid"): item for item in self.collected_items # noqa: B009
}
return {item.nodeid: item for item in self.collected_items}

def _has_xfail(self, item: "pytest.Item") -> bool:
# xfailed_key is 'private'. I'm open to a better way to do this:
Expand Down

0 comments on commit 88096d4

Please sign in to comment.