-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add stubs for flask-cors #6939
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 stubs for flask-cors #6939
Conversation
This package has dependencies to werkzeug and flask which are not part of typeshed. I currently used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Co-authored-by: Jelle Zijlstra <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
@JelleZijlstra can you please take a look why the CI fails? |
Looks like CI is green now. I responded to the two conversations that are still open. |
Co-authored-by: Jelle Zijlstra <[email protected]>
@JelleZijlstra CI complains with |
_App = Any # flask is not part of typeshed | ||
_Response = Any # flask is not part of typeshed | ||
_MultiDict = Any # werkzeug is not part of typeshed | ||
_Options = TypedDict( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use class syntax for TypedDict: class _Options(TypedDict, total=False):
.
That looks like a stubtest bug (cc @hauntsaninja). You can add it to the allowlist for now (I think you used the allowlist in another PR already?) and report it as a bug over at https://github.com/python/mypy. |
I was wondering when this would come up :-) I can try to fix soon |
@JelleZijlstra done |
No description provided.