Skip to content

Commit

Permalink
Fix collections.Mapping for recent python versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
eleurent authored Jan 13, 2024
1 parent 63d3734 commit 2566aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rl_agents/configuration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import collections
from collections.abc import Mapping
from gymnasium.core import Env


Expand Down Expand Up @@ -37,7 +37,7 @@ def rec_update(d, u):
:return: d updated recursively with u
"""
for k, v in u.items():
if isinstance(v, collections.Mapping):
if isinstance(v, Mapping):
d[k] = Configurable.rec_update(d.get(k, {}), v)
else:
d[k] = v
Expand Down

0 comments on commit 2566aeb

Please sign in to comment.