From 318e0873972c6c0e4b7f77313f26712ba965faa9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 30 Jul 2023 19:07:44 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cellular_automata/wa_tor.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cellular_automata/wa_tor.py b/cellular_automata/wa_tor.py index 2a9161201..528ce35eb 100644 --- a/cellular_automata/wa_tor.py +++ b/cellular_automata/wa_tor.py @@ -178,11 +178,7 @@ class WaTor: >>> len(wt.get_entities()) == PREDATOR_INITIAL_COUNT + PREY_INITIAL_COUNT True """ - return [entity - for column in self.planet - for entity in column - if entity - ] + return [entity for column in self.planet for entity in column if entity] def balance_predators_and_prey(self) -> None: """