-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Stub for flask #28
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
Comments
Is there any progress for this issue? Any help is needed? |
Additional offer to help. |
Should I start working on a PR maybe, and mitsuhiko or @pallets folk can take a look at it? |
We would be happy to accept a PR as long as the current flaks maintainers --Guido (mobile) |
Flask folks gave permission here - pallets/flask#2012 |
Great! Get cracking!
|
I've started working on it, and will happily accept PRs or any input: https://github.com/zoidbergwill/typeshed Is there any documentation on tips on creating new stubs? I've used |
Hm, I think the best way to learn how to create stubs ATM is probably to read a bunch of existing stubs. Please do understand that stubgen doesn't infer argument types except if there's a default, so you should add those manually. Also, there's no way to test that the stubs you create match the real flask library -- the way to assess that is typically to add annotations to a mid-size app using flask and to verify that the app both runs correctly and type-checks cleanly. |
Awesome, thanks. Browsing all the existing stubs in this repo have been how I've been figuring it out so far. Thanks, will try that out. I have some Flask apps with some annotation coverage which I'll improve and then test it on. |
@zoidbergwill I've got a PR open that adds stubs to werkzeug - #530 |
This is needed for python#28
Thanks @rowillia Should I wait and then reuse some of your new types you're adding? |
Any progress on this? I'd like to use these. |
I started work on it here ages ago, but the tooling for starting a fresh stub might have improved since then. |
Would be nice to have Flask stubs ! Any progress on this ? |
See permission in pallets/flask#2012. Fixes #28.
Have you noticed that this issue is closed? The stubs were added couple weeks ago and actually went into the latest mypy release. But more importantly, what was the purpose of this comment? |
I could make one. Will work with @mitsuhiko to vet it.
The text was updated successfully, but these errors were encountered: