Skip to content

Commit

Permalink
bump version to 0.4.10 (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinkle23897 committed Oct 17, 2022
1 parent 0181fe7 commit 41ae346
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/pettingzoo/tic_tac_toe.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Optional, Tuple

import gym
import gymnasium
import numpy as np
import torch
from pettingzoo.classic import tictactoe_v3
Expand Down Expand Up @@ -104,7 +105,7 @@ def get_agents(
) -> Tuple[BasePolicy, torch.optim.Optimizer, list]:
env = get_env()
observation_space = env.observation_space['observation'] if isinstance(
env.observation_space, gym.spaces.Dict
env.observation_space, (gym.spaces.Dict, gymnasium.spaces.Dict)
) else env.observation_space
args.state_shape = observation_space.shape or observation_space.n
args.action_shape = env.action_space.shape or env.action_space.n
Expand Down
2 changes: 1 addition & 1 deletion tianshou/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tianshou import data, env, exploration, policy, trainer, utils

__version__ = "0.4.9"
__version__ = "0.4.10"

__all__ = [
"env",
Expand Down

0 comments on commit 41ae346

Please sign in to comment.