MyreMylar / pygame_gui

A GUI system for pygame.
MIT License
704 stars 83 forks source link

Missing py.typed marker for mypy typechecks #247

Closed ChrisChou-freeman closed 2 years ago

ChrisChou-freeman commented 2 years ago

when trying to use a static type checker (in this case mypy) get error

[mypy error] [E] Skipping analyzing "pygame_gui": module is installed, but missing library stubs or py.typed marker

if wan't enable type checker(such as mypy) need add a marker file named py.typed to package supporting typing

see this PEP561

MyreMylar commented 2 years ago

I've added an empty py.typed file to the root of the repo and added it to the MANIFEST.in so hopefully this will enable what you were trying to do when I release the next version - 0.6.2

This also prompted me to try using mypy on the library and wheee there are lots of errors reported so another pile of work to sort out there at some point.