From fe9dfdf242f32cd02b2041415306f11ae81d948d Mon Sep 17 00:00:00 2001 From: Charles Peyrat Date: Fri, 11 Dec 2020 19:13:15 +0100 Subject: [PATCH] Syntax change in randomwalk.Generator.__init__ --- squirrelbattle/mapgeneration/randomwalk.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/squirrelbattle/mapgeneration/randomwalk.py b/squirrelbattle/mapgeneration/randomwalk.py index b3287ea..32ec0d6 100644 --- a/squirrelbattle/mapgeneration/randomwalk.py +++ b/squirrelbattle/mapgeneration/randomwalk.py @@ -58,9 +58,7 @@ class Walker: class Generator: - def __init__(self, params: dict = None): - if params is None: - params = DEFAULT_PARAMS + def __init__(self, params: dict = DEFAULT_PARAMS): self.params = params def run(self) -> Map: