Skip to content

Commit 4406a7c

Browse files
committed
Ignore mypy errors
1 parent 19daa8f commit 4406a7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/wrappers/test_action_masker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
class IdentityEnvDiscrete(IdentityEnv):
9-
def __init__(self, dim: int = 1, ep_length: int = 100):
9+
def __init__(self, dim=1, ep_length=100):
1010
"""
1111
Identity environment for testing purposes
1212
@@ -17,12 +17,12 @@ def __init__(self, dim: int = 1, ep_length: int = 100):
1717
self.useless_property = 1
1818
super().__init__(ep_length=ep_length, space=space)
1919

20-
def _action_masks(self) -> list[int]:
20+
def _action_masks(self): # -> list[bool]
2121
assert isinstance(self.action_space, spaces.Discrete)
2222
return [i == self.state for i in range(self.action_space.n)]
2323

2424

25-
def action_mask_fn(env: IdentityEnvDiscrete) -> list[int]:
25+
def action_mask_fn(env: IdentityEnvDiscrete): # -> list[int]
2626
assert isinstance(env.action_space, spaces.Discrete)
2727
return [i == env.state for i in range(env.action_space.n)]
2828

0 commit comments

Comments
 (0)