Kautenja / nes-py

A Python3 NES emulator and OpenAI Gym interface
MIT License
235 stars 63 forks source link

Remove faulty override of reset method in JoypadSpace wrapper #93

Open acjh opened 1 year ago

acjh commented 1 year ago

Description

Fixes https://stackoverflow.com/questions/76509663/typeerror-joypadspace-reset-got-an-unexpected-keyword-argument-seed.

JoypadSpace doesn't correctly override the reset() method of Wrapper.

Since nes-py now requires gym>=0.17.2, it is unnecessary to implement (override) reset() method.

Type of change

Please select all relevant options:

Since nes-py now requires gym>=0.17.2, removing the method override is a non-breaking change.

How Has This Been Tested?

Not tested yet (I'm not a nes-py user), but the fix is straightforward.

Test Configuration

NIL.

Checklist