Syntax change in randomwalk.Generator.__init__

This commit is contained in:
Charles Peyrat 2020-12-11 19:13:15 +01:00
parent deb52d7350
commit fe9dfdf242
1 changed files with 1 additions and 3 deletions

View File

@ -58,9 +58,7 @@ class Walker:
class Generator: class Generator:
def __init__(self, params: dict = None): def __init__(self, params: dict = DEFAULT_PARAMS):
if params is None:
params = DEFAULT_PARAMS
self.params = params self.params = params
def run(self) -> Map: def run(self) -> Map: