Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Sep 27, 2023
1 parent 84c9c51 commit 61deae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polyfactory/utils/model_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CoverageContainer(CoverageContainerBase):
def __init__(self, instances: Iterable[Any]) -> None:
self._pos = 0
self._instances = list(instances)
if len(self._instances) == 0:
if not self._instances:
msg = "CoverageContainer must have at least one instance"
raise ValueError(msg)

Expand Down

0 comments on commit 61deae0

Please sign in to comment.