[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -179,9 +179,7 @@ def run_server(
|
||||
]
|
||||
videos_info = [
|
||||
{
|
||||
"url": url_for(
|
||||
"static", filename=str(video_path).replace("\\", "/")
|
||||
),
|
||||
"url": url_for("static", filename=str(video_path).replace("\\", "/")),
|
||||
"filename": video_path.parent.name,
|
||||
}
|
||||
for video_path in video_paths
|
||||
|
||||
Reference in New Issue
Block a user