[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-07-30 19:07:44 +00:00
parent e6f3995219
commit 318e087397

View File

@ -178,11 +178,7 @@ class WaTor:
>>> len(wt.get_entities()) == PREDATOR_INITIAL_COUNT + PREY_INITIAL_COUNT >>> len(wt.get_entities()) == PREDATOR_INITIAL_COUNT + PREY_INITIAL_COUNT
True True
""" """
return [entity return [entity for column in self.planet for entity in column if entity]
for column in self.planet
for entity in column
if entity
]
def balance_predators_and_prey(self) -> None: def balance_predators_and_prey(self) -> None:
""" """