SkyTemple / py-desmume

Python Library and GUI for DeSmuME, the Nintendo DS emulator
GNU General Public License v3.0
25 stars 5 forks source link

Add return type hint #30

Closed mike8699 closed 1 year ago

mike8699 commented 1 year ago

I missed this in #27. Currently, IDE intellisense and type checkers like mypy don't know the return type of this function because it calls a desmume C++ binding function. The readthedocs documentation is also missing the return type, for the same reason. To fix this, this PR explicitly specifies int as the return type.

theCapypara commented 1 year ago

Thanks!