Skip to content

Create stubs for Flask #2740

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

Merged
merged 3 commits into from
Jan 30, 2019
Merged

Create stubs for Flask #2740

merged 3 commits into from
Jan 30, 2019

Conversation

pcorpet
Copy link
Contributor

@pcorpet pcorpet commented Jan 14, 2019

See permission in pallets/flask#2012.

Fixes #28.

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not a Flask user, but I discovered couple hundreds possible false positives when trying these stubs with our internal codebase. 95% of them however fall into few categories below.

@JelleZijlstra @srittau Could one of you please also take a look at this PR?

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is almost ready. You just need to add the metaclass, and two comments.

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM now.

@ilevkivskyi
Copy link
Member

@srittau @JelleZijlstra If there are no objections, I will merge this soon, so that we can move forward.

@ilevkivskyi ilevkivskyi merged commit 75581cf into python:master Jan 30, 2019
LarsMichelsen added a commit to LarsMichelsen/typeshed that referenced this pull request Apr 14, 2020
…n#3913)

The PR python#2740 added __setattr__ and __getattr__ to the
werkzeug.wrappers.BaseRequest definition to silence mypy when
monkeypatching this class.

The change disabled the errors for monkeypatching, but disabled disabled the
important check attr-defined.
srittau pushed a commit that referenced this pull request Apr 25, 2020
#3925)

The PR #2740 added __setattr__ and __getattr__ to the
werkzeug.wrappers.BaseRequest definition to silence mypy when
monkeypatching this class.

The change disabled the errors for monkeypatching, but disabled disabled the
important check attr-defined.
vishalkuo pushed a commit to vishalkuo/typeshed that referenced this pull request Jun 26, 2020
…n#3913) (python#3925)

The PR python#2740 added __setattr__ and __getattr__ to the
werkzeug.wrappers.BaseRequest definition to silence mypy when
monkeypatching this class.

The change disabled the errors for monkeypatching, but disabled disabled the
important check attr-defined.
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

Successfully merging this pull request may close these issues.

2 participants