Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

np.int is deprecated #266

Open
pseudo-rnd-thoughts opened this issue Aug 31, 2022 · 2 comments
Open

np.int is deprecated #266

pseudo-rnd-thoughts opened this issue Aug 31, 2022 · 2 comments

Comments

@pseudo-rnd-thoughts
Copy link

Im part of the dev team on PettingZoo.
We were through our CI trying to reduce the number of warnings and spotted this warning

test/pytest_runner_test.py: 99 warnings
test/unwrapped_test.py: 6 warnings
  /opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/rlcard/games/doudizhu/game.py:40: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    for _ in range(self.num_players)]

Would you be able to fix the warning line, thanks

@daochenzha
Copy link
Member

@pseudo-rnd-thoughts Thank you. Just fixed this. PyPi will be updated as well next week.

@GaetanLepage
Copy link

@pseudo-rnd-thoughts Thank you. Just fixed this. PyPi will be updated as well next week.

Hi. It seems that the latest release (1.0.7) does not contain this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants