In the source code of Stable Baselines3, in common/preprocessing.py
, on line 158, there is: return (int(len(observation_space.nvec)),)
.
As far as I know, in Python, len
can only return an int, and regardless if this is not true, would return an int here (might be wrong on both counts). If this is the case, the cast to int would not make sense to me.
Am I missing something here?