Farama-Foundation/Gymnasium

[Proposal] Add strict type hinting for core.py and spaces

Open

#9 opened on Sep 11, 2022

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Python (567 forks)batch import
enhancementgood first issue

Repository metrics

Stars
 (4,712 stars)
PR merge metrics
 (Avg merge 1d 9h) (10 merged PRs in 30d)

Description

Gymnasium inherits some of the type hinting that we completed for gym However, having strict type hinting at the critical parts of the project could be an important improve

Known issues:

  • Pyright raises an issue for overwriting a variable with a property. This is an issue for variables like metadata and spec which Wrapper overwrites with a property. We could ignore this issue or change metadata and spec to be specs in Env with a hidden _metadata and _spec

Contributor guide