Farama-Foundation/Gymnasium

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

Aperta

#9 aperta il 11 set 2022

 (1 commento) (1 reazione) (0 assegnatari)Python (567 fork)batch import
enhancementgood first issue

Metriche repository

Star
 (4712 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor