-
Notifications
You must be signed in to change notification settings - Fork 262
add typing.ContextManager on all supported Python versions #422
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
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
bf8cb7e
add typing.ContextManager on all supported Python versions
JelleZijlstra 56ea785
fix lint
JelleZijlstra b606b06
address Guido's comments
JelleZijlstra 12fc0f7
add a separate .flake8 config to disable E129
JelleZijlstra db8a2ed
also disable B303
JelleZijlstra 0cd2f3e
use my flake8 config
JelleZijlstra 2cf2255
move to a single flake8 config
JelleZijlstra 0adea53
Revert "move to a single flake8 config"
JelleZijlstra 3613a1c
Revert "use my flake8 config"
JelleZijlstra 6b34f3c
Revert "also disable B303"
JelleZijlstra 2223676
Revert "add a separate .flake8 config to disable E129"
JelleZijlstra cae5065
much simpler solution (thanks Guido)
JelleZijlstra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
add typing.ContextManager on all supported Python versions
So that there is a way to type hint for a context manager even on language versions before 3.6. This is just copied from contextlib.AbstractContextManager in 3.6. Fixes #274
- Loading branch information
commit bf8cb7ea6f26ee4d7286ababd9c4016f108f4046
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This docstring confused me. Maybe the code is better off without it?