Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add py.typed marker #1442

Closed
trevorbaca opened this issue Apr 8, 2022 · 0 comments · Fixed by #1443
Closed

Add py.typed marker #1442

trevorbaca opened this issue Apr 8, 2022 · 0 comments · Fixed by #1443
Assignees
Labels
Milestone

Comments

@trevorbaca
Copy link
Member

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.

@trevorbaca trevorbaca added this to the 3.8 milestone Apr 8, 2022
@trevorbaca trevorbaca self-assigned this Apr 8, 2022
@trevorbaca trevorbaca added config and removed install labels Apr 8, 2022
trevorbaca added a commit that referenced this issue Apr 8, 2022
trevorbaca added a commit that referenced this issue Apr 8, 2022
trevorbaca added a commit that referenced this issue Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant