[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):

View File

@@ -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