gym
gym copied to clipboard
bug fix :numpy has no attribute 'bool8'
Description
I change gym/utils/passive_env_checker.py: if not isinstance(terminated, (bool, np.bool8)): to if not isinstance(terminated, (bool, np.bool)): because module 'numpy' has no attribute 'bool8'.
Fixes # 3294
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
Screenshots
Checklist:
- [x] I have run the
pre-commitchecks withpre-commit run --all-files(seeCONTRIBUTING.mdinstructions to set it up) - [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my feature works
- [x] New and existing unit tests pass locally with my changes