Skip to content

Commit 78994c7

Browse files
authored
[Feature] vectorenv: relax env type annotation to gymnasium.Env (#1144)
1 parent 2496ac1 commit 78994c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mani_skill/vector/wrappers/gymnasium.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from mani_skill.utils.structs.types import Array
1111

1212
if TYPE_CHECKING:
13+
from gymnasium import Env
1314
from mani_skill.envs.sapien_env import BaseEnv
1415

1516

@@ -35,7 +36,7 @@ class ManiSkillVectorEnv(VectorEnv):
3536

3637
def __init__(
3738
self,
38-
env: Union[BaseEnv, str],
39+
env: Union[Env, str],
3940
num_envs: int = None,
4041
auto_reset: bool = True,
4142
ignore_terminations: bool = False,

0 commit comments

Comments
 (0)