ppizarror / pygame-menu

A menu for pygame. Simple, and easy to use
https://pygame-menu.readthedocs.io/
Other
544 stars 141 forks source link

Add py.typed #388

Closed vnmabus closed 2 years ago

vnmabus commented 2 years ago

Is your feature request related to a problem? Please describe. In order for Mypy to use the typing information of this project, you need to include a blank file called py.typed along the code, to comply with PEP 561 (https://www.python.org/dev/peps/pep-0561/). Otherwise Mypy skips this library in the type analysis.

Describe the solution you'd like Add a blank py.typed file and package it along the code.

ppizarror commented 2 years ago

Hi. Can you create a new PR? Does setup.py file must be updated?

vnmabus commented 2 years ago

No, you don't need to add anything to setup.py, but the file must be in the MANIFEST.in in order for it to be packaged.

ppizarror commented 2 years ago

Uploaded to pip!

vnmabus commented 2 years ago

I can confirm that now it works!