Skip to content

Commit

Permalink
# type: ignore[misc]
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Sep 11, 2024
1 parent ba66ee7 commit 38661c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions river/bandit/test_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _iter_policies():
yield policy(**params)


@pytest.mark.parametrize(
@pytest.mark.parametrize( # type: ignore[misc]
"policy,env",
[
pytest.param(
Expand All @@ -76,7 +76,7 @@ def _iter_policies():
for env in _iter_envs()
],
)
@pytest.mark.skip(reason="flaky")
@pytest.mark.skip(reason="flaky") # type: ignore[misc]
def test_better_than_random_policy(policy: bandit.base.Policy, env: gym.Env):
"""Test that the policy is better than random."""

Expand Down
4 changes: 2 additions & 2 deletions river/compat/test_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


@pytest.mark.parametrize(
"estimator",
"estimator", # type: ignore[misc]
[
pytest.param(estimator, id=str(estimator))
for estimator in [
Expand All @@ -21,7 +21,7 @@
]
],
)
@pytest.mark.filterwarnings("ignore::sklearn.utils.estimator_checks.SkipTestWarning")
@pytest.mark.filterwarnings("ignore::sklearn.utils.estimator_checks.SkipTestWarning") # type: ignore[misc]
def test_river_to_sklearn_check_estimator(estimator: base.Estimator):
skl_estimator = compat.convert_river_to_sklearn(estimator)
estimator_checks.check_estimator(skl_estimator)
Expand Down

0 comments on commit 38661c5

Please sign in to comment.