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

Type annotations / type hints / stub files for mypy #60

Open
MartinThoma opened this issue Oct 14, 2020 · 4 comments
Open

Type annotations / type hints / stub files for mypy #60

MartinThoma opened this issue Oct 14, 2020 · 4 comments

Comments

@MartinThoma
Copy link

Are there plans to add type annotations or stub files for mypy?

I've written an article about type annotations if you need one :-)

@atlithorn
Copy link
Contributor

Hey Martin! Thanks for the link, it's a fine read ;)

I think type annotations are sublime.
I will be totally honest with you that there aren't all that many plans for flask-swagger.
I wrote this a while back to help enforce documentation of a project I was running and it has served us well.
Unfortunately my responsibilities have moved over to the managerial side of software development and I don't have the time to dedicate to moving this project forward.

Having said that, dealing with PRs gives me much joy so please feel free to dive in if you are interested in moving us in that direction.

@MartinThoma
Copy link
Author

Thank you! Good to know that flask-swagger is in maintenance mode.

Do you know Flask-Restx? How does it compare to flask-swagger?

@atlithorn
Copy link
Contributor

I don't know it but just by looking at their website it appears to be a framework. More similar to Flask-RESTful than flask-swagger?

If it uses MethodViews like Flask-RESTful then it's very likely it will work fine with flask-swagger.

@MartinThoma
Copy link
Author

Yes, Flask-Restx is a fork of Flask-restful. I think they lost the access to the PyPI package (?)

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

No branches or pull requests

2 participants