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

Mark abstract methods as abstract #2158

Merged
merged 2 commits into from
Aug 5, 2021
Merged

Mark abstract methods as abstract #2158

merged 2 commits into from
Aug 5, 2021

Conversation

jakkes
Copy link
Contributor

@jakkes jakkes commented Jan 14, 2021

Not marking abstract methods as abstract causes some code analysers (e.g. PyLance) to not identify the method properly. In this PR, I marked all abstract method of the base environment classes as abstract.

Fixes #2136

@jkterry1
Copy link
Collaborator

Reviewer: @vwxyzjn

@vwxyzjn
Copy link
Contributor

vwxyzjn commented Jul 31, 2021

This seems to be a pretty straightforward fix. @jkterry1 LGTM.

@jkterry1
Copy link
Collaborator

@jakkes can you please make the linting tests pass before I merge this?

@jkterry1 jkterry1 merged commit 936dc6d into openai:master Aug 5, 2021
zlig pushed a commit to zlig/gym that referenced this pull request Sep 6, 2021
Co-authored-by: J K Terry <justinkterry@gmail.com>
@jakkes
Copy link
Contributor Author

jakkes commented Oct 21, 2021

Thanks for taking care of it and merging :)

The gym class should probably be made to inherit from abc.ABC instead of object as well.

@jkterry1
Copy link
Collaborator

jkterry1 commented Oct 23, 2021

@jakkes try doing a PR for that?

@jakkes
Copy link
Contributor Author

jakkes commented Oct 27, 2021

#2467

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.

Base Env class should be abstract
3 participants