mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-30 01:50:19 +00:00
Update Composite spaces with full coverage (#3047)
* Update composite space and tests * Pre-commit * pyright * Fix pyright * retrigger actions * Code review by Arjun * Code review by Arjun * Code review by Omar
This commit is contained in:
@@ -409,10 +409,10 @@ SPACE_KWARGS = [
|
||||
{"nvec": [3, 2]}, # MultiDiscrete
|
||||
{"n": 2}, # MultiBinary
|
||||
{"max_length": 5}, # Text
|
||||
# {"spaces": (Discrete(3), Discrete(2))}, # Tuple
|
||||
# {"spaces": {"a": Discrete(3), "b": Discrete(2)}}, # Dict
|
||||
# {"node_space": Discrete(4), "edge_space": Discrete(3)}, # Graph
|
||||
# {"space": Discrete(4)}, # Sequence
|
||||
{"spaces": (Discrete(3), Discrete(2))}, # Tuple
|
||||
{"spaces": {"a": Discrete(3), "b": Discrete(2)}}, # Dict
|
||||
{"node_space": Discrete(4), "edge_space": Discrete(3)}, # Graph
|
||||
{"space": Discrete(4)}, # Sequence
|
||||
]
|
||||
assert len(SPACE_CLS) == len(SPACE_KWARGS)
|
||||
|
||||
|
Reference in New Issue
Block a user