From 43ce95b1419fb0bdafeb48bd089e1c870482ebe4 Mon Sep 17 00:00:00 2001 From: helpingstar Date: Tue, 16 Apr 2024 18:33:33 +0900 Subject: [PATCH] Fix `_raise_if_errors` type hint (#1022) --- gymnasium/vector/async_vector_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gymnasium/vector/async_vector_env.py b/gymnasium/vector/async_vector_env.py index 9bd28fb02..4fda67bbf 100644 --- a/gymnasium/vector/async_vector_env.py +++ b/gymnasium/vector/async_vector_env.py @@ -613,7 +613,7 @@ def _assert_is_running(self): f"Trying to operate on `{type(self).__name__}`, after a call to `close()`." ) - def _raise_if_errors(self, successes: list[bool]): + def _raise_if_errors(self, successes: list[bool] | tuple[bool]): if all(successes): return