-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mypy errors and rename NamedTuple fields in gym.py
Add None to some type annotations in gym.py in order to fix some mypy errors. Rename some fields in the Gym NamedTuple class in order to clarify their meanings and to fix a mypy error. The "count" field specifically causes a mypy error because mypy interprets the field's name as the "count" method that NamedTuple inherits from the base tuple class. According to the mypy devs, this is expected behavior and is not a bug: - python/mypy#4507 - python/mypy#17047
- Loading branch information
1 parent
f9f3def
commit 1e18ead
Showing
2 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters