Skip to content

Commit

Permalink
Re-add ObsDict and ActionDict to env.py (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
pimpale authored Aug 27, 2023
1 parent ab6e543 commit 9a820fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pettingzoo/utils/env.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import warnings
from typing import Any, Generic, Iterable, Iterator, TypeVar
from typing import Any, Dict, Generic, Iterable, Iterator, TypeVar

import gymnasium.spaces
import numpy as np
Expand All @@ -10,6 +10,12 @@
ActionType = TypeVar("ActionType")
AgentID = TypeVar("AgentID")

# deprecated
ObsDict = Dict[AgentID, ObsType]

# deprecated
ActionDict = Dict[AgentID, ActionType]

"""
Base environment definitions
Expand Down

0 comments on commit 9a820fb

Please sign in to comment.