Skip to content

Commit 0d83c50

Browse files
committed
Skip mypy for ray worker module
1 parent 152dda2 commit 0d83c50

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tianshou/env/worker/ray.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Skip mypy for this module
2+
# type: ignore
13
import contextlib
24
from collections.abc import Callable
35
from typing import Any
@@ -12,9 +14,6 @@
1214
import ray
1315

1416

15-
# mypy: disable-error-code="unused-ignore"
16-
17-
1817
class _SetAttrWrapper(gym.Wrapper):
1918
def set_env_attr(self, key: str, value: Any) -> None:
2019
setattr(self.env.unwrapped, key, value)

0 commit comments

Comments
 (0)