-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 a py.typed file #1316
Comments
I've briefly looked into this. Being unfamiliar with PEP-561, I might be wrong so take this with a grain of salt. It looks like it's not possible to add |
That's correct, PEP 561 only supports packages, not single-module libraries like Black. |
Are there any particular benefits of having black not be a package? |
Please follow #1350 for the discussion about refactor of black.py into a black/ package. |
mypy
can't find type hints when importingblack
py.typed
file to makeblack
PEP-561-compatibleblack
to typeshed or see my StackOverflow question for how I worked around this from the user's side (createpy.typed
insite-packages/black
)The text was updated successfully, but these errors were encountered: