Skip to content
Merged
Show file tree
Hide file tree
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 Jan 22, 2024
2c63836
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 22, 2024
ce2f1ba
Fixed some of the problems stubtest found.
erictraut Jan 22, 2024
1447bf9
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut Jan 22, 2024
e7df031
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 22, 2024
44ea4d1
Fixed more issues found by stubtest
erictraut Jan 22, 2024
42f5f81
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut Jan 22, 2024
76030ba
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 22, 2024
0de299b
More fixes from tests
erictraut Jan 22, 2024
9a8eafe
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 22, 2024
71be421
More fixes from test results
erictraut Jan 22, 2024
ed15ebd
More fixes
erictraut Jan 22, 2024
4c84746
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 22, 2024
16f4971
Tests really didn't like that change
erictraut Jan 22, 2024
f3de805
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut Jan 22, 2024
6253c04
Merge branch 'main' into enum-type-change
JelleZijlstra Mar 9, 2024
9be0c58
Merge branch 'main' of https://github.com/python/typeshed into enum-t…
erictraut Apr 10, 2024
18480de
Added missing enum values to recently-added stubs.
erictraut Apr 10, 2024
1e54df7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 10, 2024
4819fe2
Addressed another stubtest failure.
erictraut Apr 10, 2024
2aeb508
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut Apr 10, 2024
56560c2
Silenced a pyright error.
erictraut Apr 10, 2024
0748e23
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 10, 2024
79d034d
Trying to make stubtest happy.
erictraut Apr 10, 2024
be000b0
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut Apr 10, 2024
a66fb38
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 10, 2024
4aef83b
fix pre-commit errors
AlexWaygood Apr 11, 2024
e0f8e84
make sure it's Final constants being assigned in the psutil enum
AlexWaygood Apr 11, 2024
db11c8e
Merge branch 'main' into enum-type-change
AlexWaygood Apr 11, 2024
e4ab75c
Update .flake8
AlexWaygood Apr 11, 2024
bd170fa
Address issue with unknown integer values for platform-specific butto…
erictraut Apr 13, 2024
71684a8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 13, 2024
762439d
Added literal values for linux-specific button enums.
erictraut Apr 14, 2024
413b303
Merge branch 'enum-type-change' of https://github.com/erictraut/types…
erictraut Apr 14, 2024
18c0111
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 14, 2024
fb0a2c4
unknown is 0 according to stubtest
JelleZijlstra Apr 15, 2024
129de9e
deal with Key enum
JelleZijlstra Apr 15, 2024
843d4ad
Everything is an alias for alt
JelleZijlstra Apr 15, 2024
279a068
Make the requested changes
AlexWaygood Apr 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ per-file-ignores =
*.py: NQA
# TODO: Remove bare "Incomplete"s from stubs (Y065)
*.pyi: Y065
# Ignore Y052 in this file: there are loads of false positives
# due to the fact that flake8-pyi doesn't understand subclasses of `CoerciveEnum`
# as being enum classes
stubs/fpdf2/fpdf/enums.pyi: Y052, Y065
Comment thread
srittau marked this conversation as resolved.
Outdated
# Generated protobuf files:
# Y021: Include docstrings
# Y023: Alias typing as typing_extensions
Expand Down
12 changes: 6 additions & 6 deletions stubs/psutil/psutil/_pswindows.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ AddressFamily: Any
TCP_STATUSES: Any

class Priority(enum.IntEnum):
ABOVE_NORMAL_PRIORITY_CLASS = 32768
BELOW_NORMAL_PRIORITY_CLASS = 16384
HIGH_PRIORITY_CLASS = 128
IDLE_PRIORITY_CLASS = 64
NORMAL_PRIORITY_CLASS = 32
REALTIME_PRIORITY_CLASS = 256
ABOVE_NORMAL_PRIORITY_CLASS = ABOVE_NORMAL_PRIORITY_CLASS
BELOW_NORMAL_PRIORITY_CLASS = BELOW_NORMAL_PRIORITY_CLASS
HIGH_PRIORITY_CLASS = HIGH_PRIORITY_CLASS
IDLE_PRIORITY_CLASS = IDLE_PRIORITY_CLASS
NORMAL_PRIORITY_CLASS = NORMAL_PRIORITY_CLASS
REALTIME_PRIORITY_CLASS = REALTIME_PRIORITY_CLASS

IOPRIO_VERYLOW: int
IOPRIO_LOW: int
Expand Down