-
Notifications
You must be signed in to change notification settings - Fork 35
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
Type stubs? #247
Comments
I would prefer separate stubs, at least for now, as the package still supports Python 2.x. |
What if it were proposed in a separate |
That seems more reasonable - by all means propose a |
https://github.com/microsoft/pyright/ and here a github action you can use https://github.com/jakebailey/pyright-action |
I dont think there is a way to test if the API is typed. All typing tools test the whole code of the project for missing types or type errors, to my knowledge there is no way to tell it "test only public API" |
@lovetox yeah pyright doesn't validate that type stubs are consistent with the base untyped Python code. There's a mypy tool that targets this use case: Automatic stub testing (stubtest) - mypy 1.14.1 documentation And more discussion here: python/mypy#5028 I've never attempted this though, so am not yet familiar with the rough edges. |
https://github.com/instagram/MonkeyType looks like a tool that might also be useful!
|
I contribute the stubs to typeshed, as after discussion the maintainer dont want to ship the stubs. |
Would you be open to type stubs being merged into this repo?
The text was updated successfully, but these errors were encountered: