Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
reginald-mclean committed Aug 30, 2024
1 parent 852ea81 commit 2b57f0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions metaworld/wrappers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any
from typing import Any, List

import gymnasium as gym
import numpy as np
Expand Down Expand Up @@ -36,7 +36,7 @@ class RandomTaskSelectWrapper(gym.Wrapper):
"""A Gymnasium Wrapper to automatically set / reset the environment to a random
task."""

tasks: list[Task]
tasks: List[Task]
sample_tasks_on_reset: bool = True

def _set_random_task(self):
Expand Down Expand Up @@ -80,7 +80,7 @@ class PseudoRandomTaskSelectWrapper(gym.Wrapper):
Doesn't sample new tasks on reset by default.
"""

tasks: list[object]
tasks: List[Task]
current_task_idx: int
sample_tasks_on_reset: bool = False

Expand All @@ -96,7 +96,7 @@ def toggle_sample_tasks_on_reset(self, on: bool):
def __init__(
self,
env: Env,
tasks: list[object],
tasks: list[Task],
sample_tasks_on_reset: bool = False,
seed: int | None = None,
):
Expand Down

0 comments on commit 2b57f0e

Please sign in to comment.