Skip to content

Commit 6cc47fe

Browse files
committed
adding type
1 parent 0e38bd6 commit 6cc47fe

File tree

1 file changed

+2
-1
lines changed
  • browsergym/experiments/src/browsergym/experiments

1 file changed

+2
-1
lines changed

browsergym/experiments/src/browsergym/experiments/loop.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from pathlib import Path
1818
from typing import Optional
1919

20+
from browsergym.core.env import BrowserEnv
2021
import gymnasium as gym
2122
import numpy as np
2223
from dataclasses_json import DataClassJsonMixin
@@ -49,7 +50,7 @@ class EnvArgs(DataClassJsonMixin):
4950

5051
def make_env(
5152
self, action_mapping, exp_dir, exp_task_kwargs: dict = {}, use_raw_page_output=False
52-
):
53+
) -> BrowserEnv:
5354
"""
5455
Instantiates the BrowserGym environment corresponding to the arguments (with some tweaks).
5556

0 commit comments

Comments
 (0)