From 3cfbad09abcf397ffa121c79255756acfe7bc5a2 Mon Sep 17 00:00:00 2001 From: Reggie McLean Date: Fri, 30 Aug 2024 12:34:13 -0400 Subject: [PATCH] pre-commit & type hinting --- metaworld/wrappers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metaworld/wrappers.py b/metaworld/wrappers.py index e7425ccbb..448ba5667 100644 --- a/metaworld/wrappers.py +++ b/metaworld/wrappers.py @@ -1,4 +1,4 @@ -from typing import Any, List +from typing import Any, List, Optional import gymnasium as gym import numpy as np @@ -48,7 +48,7 @@ def __init__( env: Env, tasks: List[Task], sample_tasks_on_reset: bool = True, - seed: int | None = None, + seed: Optional[int] = None, ): super().__init__(env) self.tasks = tasks