-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 precise values for enum members where possible #11299
Merged
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
9bb03d0
Changed enums to conform with proposed change to typing spec discusse…
erictraut 2c63836
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ce2f1ba
Fixed some of the problems stubtest found.
erictraut 1447bf9
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut e7df031
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 44ea4d1
Fixed more issues found by stubtest
erictraut 42f5f81
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut 76030ba
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0de299b
More fixes from tests
erictraut 9a8eafe
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 71be421
More fixes from test results
erictraut ed15ebd
More fixes
erictraut 4c84746
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 16f4971
Tests really didn't like that change
erictraut f3de805
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut 6253c04
Merge branch 'main' into enum-type-change
JelleZijlstra 9be0c58
Merge branch 'main' of https://github.com/python/typeshed into enum-t…
erictraut 18480de
Added missing enum values to recently-added stubs.
erictraut 1e54df7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4819fe2
Addressed another stubtest failure.
erictraut 2aeb508
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut 56560c2
Silenced a pyright error.
erictraut 0748e23
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 79d034d
Trying to make stubtest happy.
erictraut be000b0
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut a66fb38
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4aef83b
fix pre-commit errors
AlexWaygood e0f8e84
make sure it's Final constants being assigned in the psutil enum
AlexWaygood db11c8e
Merge branch 'main' into enum-type-change
AlexWaygood e4ab75c
Update .flake8
AlexWaygood bd170fa
Address issue with unknown integer values for platform-specific butto…
erictraut 71684a8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 762439d
Added literal values for linux-specific button enums.
erictraut 413b303
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut 18c0111
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fb0a2c4
unknown is 0 according to stubtest
JelleZijlstra 129de9e
deal with Key enum
JelleZijlstra 843d4ad
Everything is an alias for alt
JelleZijlstra 279a068
Make the requested changes
AlexWaygood 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
Fixed more issues found by stubtest
- Loading branch information
commit 44ea4d1a50d903cf7b8128a3e56a57c0f22fa3d2
There are no files selected for viewing
This file contains 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 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 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.
It appears these values are actually KeyCode object, not ints. I'll try to push a fix.
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.
Oh wait, that wasn't released. In the last release all the values are really 0.
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.
For reference: moses-palmer/pynput@4ee72f9. The last release was in January 2022.