Proposal
Allow developers to specify the "sub-types" when dealing with a Tuple space.
E.g., observation_space: spaces.Tuple[spaces.MultiDiscrete, spaces.Box]
Motivation
It's more clear and many libraries, e.g., stable-baselines3, are implementing strict type checking. Observation and action spaces are not that flexible, as environments normally expect something specific, so it's a bit weird that you're only allowed to specify "Tuple" without explicitly mentioning what's inside this Tuple.
Pitch
I'd like spaces.Tuple to be specifiable in type hints like typing.Tuple is.
Alternatives
No response
Additional context
No response
Checklist
Proposal
Allow developers to specify the "sub-types" when dealing with a Tuple space.
E.g.,
observation_space: spaces.Tuple[spaces.MultiDiscrete, spaces.Box]Motivation
It's more clear and many libraries, e.g., stable-baselines3, are implementing strict type checking. Observation and action spaces are not that flexible, as environments normally expect something specific, so it's a bit weird that you're only allowed to specify "Tuple" without explicitly mentioning what's inside this Tuple.
Pitch
I'd like
spaces.Tupleto be specifiable in type hints liketyping.Tupleis.Alternatives
No response
Additional context
No response
Checklist