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 file #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add py.typed file #4

wants to merge 1 commit into from

Conversation

patrick91
Copy link

@patrick91 patrick91 commented Nov 20, 2023

When using pylance/pyright you get a missing stub file error, see:

And this makes all usages of types trigger an error:

In order to fix this we need to tell the typechecker that this library is typed, by adding the py.typed file :)

See: https://blog.whtsky.me/tech/2021/dont-forget-py.typed-for-your-typed-python-package/

@samwillis let me know if I should bump the version too!

@JuroOravec
Copy link

@patrick91 I spoke with Sam, and we agreed that I'd fork this project and maintain it.

Please head over to https://github.com/JuroOravec/python-inline-source-2. Or just install sourcetypes2 instead of sourcetypes. The fork already as the py.typed added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants