Open
Description
Describe the bug
The return type of close
is not annotated, which causes
Call to untyped function "close" in typed context [no-untyped-call]
if the caller function is typed.
Code example
Edit the file test.py and add the following code:
import gymnasium as gym
def func() -> None:
env = gym.make('CartPole-v1')
env.close()
After that, execute the command:
mypy test.py
System info
gym version: 1.1.0
OS: MacOS
Additional context
No response
Checklist
- I have checked that there is no similar issue in the repo