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

Style changes and typing, typing everywhere #145

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kremkrem
Copy link

  • reorganized imports - automatically changed order of imports in some files and removed unused,
  • added explicit typing to all fields and methods in RedGymEnv (and all files that use this class)
  • as almost all methods and fields in RedGymEnv are private, they were renamed to start with _underscore

Warning: not tested against older versions of python 3

* reorganized imports - automatically changed order of imports in some files and removed unused,
* added explicit typing to all fields and methods in RedGymEnv (and all files that use this class)
* as almost all methods and fields in RedGymEnv are private, they were renamed to start with _underscore

Warning: not tested against older versions of python 3
Also added some missed type hints
@cmarqu
Copy link

cmarqu commented Nov 28, 2023

Having typing would allow using mypyc which reportedly can bring quite some speed improvements.

@PWhiddy
Copy link
Owner

PWhiddy commented Nov 30, 2023

Hi! Looks nice! How thoroughly have you tested all of these changes? Also was the change of default environments from 16 to 4 intentional?

@kremkrem
Copy link
Author

Testing was not too thorough - I successfully started learning on the "_fast" script as well as the old one. The interactive mode script also works.

As for 16 -> 4 change - no, I changed it so that it runs on my old PC well, and left it in by accident. Fixing that ASAP.

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

Successfully merging this pull request may close these issues.

3 participants