Skip to content

Stub for flask #28

Closed
Closed

Description

@gvanrossum

I could make one. Will work with @mitsuhiko to vet it.

Activity

  1. mliubchych commented on Jun 18, 2016

    @mliubchych

    Is there any progress for this issue? Any help is needed?

  2. zoidyzoidzoid commented on Aug 20, 2016

    @zoidyzoidzoid

    Additional offer to help.

  3. zoidyzoidzoid commented on Aug 20, 2016

    @zoidyzoidzoid

    Should I start working on a PR maybe, and mitsuhiko or @pallets folk can take a look at it?

  4. gvanrossum commented on Aug 20, 2016

    @gvanrossum
    MemberAuthor

    We would be happy to accept a PR as long as the current flaks maintainers
    are okay with it. Usually asking in their tracker and posting a link to a
    positive response works well.

    --Guido (mobile)

  5. rowillia commented on Sep 7, 2016

    @rowillia
    Contributor

    Flask folks gave permission here - pallets/flask#2012

  6. gvanrossum commented on Sep 7, 2016

    @gvanrossum
    MemberAuthor
  7. zoidyzoidzoid commented on Sep 9, 2016

    @zoidyzoidzoid

    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 stubgen, and am working on each file one by one now.

  8. gvanrossum commented on Sep 9, 2016

    @gvanrossum
    MemberAuthor

    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.

  9. zoidyzoidzoid commented on Sep 9, 2016

    @zoidyzoidzoid

    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.

  10. rowillia commented on Sep 9, 2016

    @rowillia
    Contributor

    @zoidbergwill I've got a PR open that adds stubs to werkzeug - #530

  11. added a commit that references this issue on Sep 12, 2016
  12. zoidyzoidzoid commented on Sep 15, 2016

    @zoidyzoidzoid

    Thanks @rowillia Should I wait and then reuse some of your new types you're adding?

  13. added a commit that references this issue on Sep 18, 2016
  14. octylFractal commented on Jun 26, 2017

    @octylFractal

    Any progress on this? I'd like to use these.

  15. zoidyzoidzoid commented on Jun 26, 2017

    @zoidyzoidzoid

    I started work on it here ages ago, but the tooling for starting a fresh stub might have improved since then.

  16. TimotheeJeannin commented on May 7, 2018

    @TimotheeJeannin

    Would be nice to have Flask stubs ! Any progress on this ?

  17. added a commit that references this issue on Jan 30, 2019
    75581cf
  18. ilevkivskyi commented on Feb 11, 2019

    @ilevkivskyi
    Member

    @vivaldus

    It's disconcerting to me -- a new/prospective user of mypy -- that a python product as well-known as flask doesn't have typings after all this time.

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: requestOUTDATED! Request to add stubs for a new package to typeshed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions