Farama-Foundation/Gymnasium

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

Ouverte

#9 ouverte le 11 sept. 2022

 (1 commentaire) (1 réaction) (0 personne assignée)Python (567 forks)batch import
enhancementgood first issue

Métriques du dépôt

Stars
 (4 712 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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

Guide contributeur