Skip to content

Commit 124f167

Browse files
authored
Fix CI badge link in README.md (#312)
* Fix CI badge link in README.md Updated CI badge link in README.md to point to the correct workflow. * Ignore mypy errors * Ignore mypy new issues
1 parent 38b9103 commit 124f167

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="docs/\_static/img/logo.png" align="right" width="40%"/>
22

3-
[![CI](https://github.com/Stable-Baselines-Team/stable-baselines3-contrib/workflows/CI/badge.svg)](https://github.com/Stable-Baselines-Team/stable-baselines3-contrib/actions) [![codestyle](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
3+
[![CI](https://github.com/Stable-Baselines-Team/stable-baselines3-contrib/actions/workflows/ci.yml/badge.svg)](https://github.com/Stable-Baselines-Team/stable-baselines3-contrib/actions/workflows/ci.yml) [![codestyle](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
44

55
# Stable-Baselines3 - Contrib (SB3-Contrib)
66

sb3_contrib/common/envs/invalid_actions_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(
2020
dim = 1
2121
assert n_invalid_actions < dim, f"Too many invalid actions: {n_invalid_actions} < {dim}"
2222

23-
space = spaces.Discrete(dim)
23+
space = spaces.Discrete(dim) # type: ignore[var-annotated]
2424
self.n_invalid_actions = n_invalid_actions
2525
self.possible_actions = np.arange(space.n, dtype=int)
2626
self.invalid_actions: list[int] = []

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): # -> 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)