Abjad / abjad

Abjad is a Python API for building LilyPond files. Use Abjad to make PDFs of music notation.
https://abjad.github.io
GNU General Public License v3.0
239 stars 39 forks source link

Add py.typed marker #1442

Closed trevorbaca closed 2 years ago

trevorbaca commented 2 years ago

Abjad includes extensive typehints that can be read by typecheckers like mypy.

Users of Abjad 3.7 (and earlier) have to tell mypy where Abjad is installed by setting the MYPYPATH environment variable. But this is silly because mypy already knows the location installed packages, including Abjad.

Including an (empty) py.typed file in Abjad's source directory fixes this. And Abjad 3.8 users will no longer need to set MYPYPATH to use mypy with Abjad.