From afe0c42ac83b0209e4c2e4dfdb314a0500b4d830 Mon Sep 17 00:00:00 2001 From: Jonathan Hseu Date: Wed, 6 Sep 2017 19:52:26 -0700 Subject: [PATCH] Fix Dict space for list arguments (#713) --- gym/spaces/dict_space.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gym/spaces/dict_space.py b/gym/spaces/dict_space.py index d338bcab4a1..c552657c3a6 100644 --- a/gym/spaces/dict_space.py +++ b/gym/spaces/dict_space.py @@ -12,7 +12,7 @@ def __init__(self, spaces): if isinstance(spaces, dict): spaces = OrderedDict(sorted(list(spaces.items()))) if isinstance(spaces, list): - self.spaces = OrderedDict(spaces) + spaces = OrderedDict(spaces) self.spaces = spaces def sample(self):