[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-04-18 13:33:36 +00:00
parent dcd850feab
commit fb92935601
5 changed files with 6 additions and 12 deletions

View File

@@ -700,7 +700,7 @@ class KeyboardInterfaceWrapper(gym.Wrapper):
Reset the environment and clear any pending events
"""
with self.event_lock:
self.events = {k: False for k in self.events}
self.events = dict.fromkeys(self.events, False)
return self.env.reset(**kwargs)
def close(self):