Vincent Meurisse
898cb55af3
Update type for psutil.cpu_count ( #12941 )
...
The function can return None:
567438cd3e/psutil/__init__.py (L1665-L1667)
2024-11-01 07:50:03 -07:00
sobolevn
8b32739f13
Bump psutil to 6.1.* ( #12868 )
2024-10-21 17:22:44 +01:00
Cal Jacobson
3f04e4d65b
update psutil.Process.parent() return type ( #12767 )
...
per `psutil.Process.parent()`'s docstring, it may return `None`.
0a71d0e404/psutil/__init__.py (L574)
2024-10-09 22:18:35 -07:00
Alan Du
23d867efb2
Fix types for psutil.cpu_* functions ( #12602 )
2024-08-31 13:03:42 +03:00
Nikita Sobolev
05b975a81f
psutil: deprecate Process.connections ( #12174 )
2024-06-20 14:34:29 +02:00
Nikita Sobolev
be50f8e433
Bump psutil to 6.0.* ( #12167 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-20 10:13:10 +03:00
renovate[bot]
5fc866f9fd
Update dependency pyright to v1.1.363 ( #11919 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com >
2024-05-15 21:11:21 -04:00
Kanishk Pachauri
120f01dcb3
stubs: change psutil's Process.wait timeout argument to float ( #11883 )
...
Fixes #11866
2024-05-09 19:25:00 -07:00
Eric Traut
17f1c4628a
Add precise values for enum members where possible ( #11299 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Alex Waygood <alex.waygood@gmail.com >
2024-04-22 15:10:59 +01:00
Matthew Hoffman
53443ac4d0
[psutil] add settable info property ( #10275 )
2024-03-15 10:16:06 +01:00
Shantanu
88fa182253
Use PEP 570 syntax in third party stubs ( #11554 )
2024-03-10 14:11:43 +01:00
Alex Waygood
c49c84f319
A new shade of Black ( #11362 )
2024-02-04 16:38:55 -08:00
Sebastian Rittau
b6eaadcfe5
Update typing_extensions imports in third-party stubs ( #11245 )
2024-01-05 15:40:13 +01:00
Jelle Zijlstra
cb688d2577
psutil: updates ( #10894 )
2023-10-15 18:22:11 -07:00
Sebastian Rittau
afe18e95a9
Add an upstream_repository field to METADATA.toml ( #10487 )
...
Closes : #10478
2023-07-20 16:45:41 +02:00
Denis Laxalde
fce4fe7b88
psutil: import platform-specific 'pio' definitions ( #10305 )
2023-06-12 12:53:22 +02:00
Denis Laxalde
85a6dd14e1
psutil: declare return type of io_counters() ( #10303 )
2023-06-12 10:33:51 +02:00
Jungkook Park
f6279c7122
[psutil] Fix cpu_percent return type when percpu is True ( #10238 )
2023-06-01 15:08:31 +02:00
Shantanu
143b9612f1
psutil: fix stubtest ( #10065 )
...
Fixes #10059
2023-04-19 20:58:49 -06:00
Alex Waygood
6fd7e36e80
Add default values for third-party stubs beginning with 'P' ( #9957 )
2023-03-27 18:58:53 +01:00
Jelle Zijlstra
bff9d7a7df
psutil: sconn.pid can be None ( #9853 )
...
Found out about this the hard way.
The code path that allows None is here: 2da9950223/psutil/_pslinux.py (L923)
2023-03-07 22:07:54 +00:00
Avasam
52ec44fa58
Improve many __(a)exit__ annotations ( #9696 )
2023-02-25 21:50:30 +00:00
Avasam
ed6748fb32
Stubtest settings: change ignore_missing_stub default to false ( #9779 )
...
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
Alex Waygood
7180d0223b
Use typing_extensions.Self instead of _typeshed.Self ( #9702 )
2023-02-15 11:32:43 +01:00
Alex Waygood
8cd6d81f15
Bump pyright to 1.1.294; improve psutil stubs ( #9739 )
...
Partially type psfullmem
2023-02-15 10:54:36 +01:00
Alex Waygood
4fea314594
Replace Any with Incomplete in many places ( #9558 )
2023-01-18 08:48:16 +00:00
Avasam
75a74ffb6c
Run stubtest for psutil on all platforms ( #9169 )
2022-11-12 16:35:14 -08:00
happy-monk
de68029716
psutil: Fix win_service_iter() return type to allow iterating over its result (#8932 )
2022-10-19 18:00:15 -07:00
Jelle Zijlstra
f8ae34c34e
psutil: add snicstats.flags ( #8928 )
...
Fixes #8927
See 70eecaf44d
2022-10-18 18:04:07 -07:00
Nikita Sobolev
ce4668a132
Use Incomplete instead of Any in __getattr__ ( #8903 )
2022-10-15 18:54:21 +01:00
crusaderky
6414250888
psutil: Improve types for disk_io_counters() and net_io_counters() ( #8829 )
2022-10-03 09:25:25 -07:00
Shantanu
fed2e5e0ad
psutil: improve svmem types ( #8503 )
2022-08-08 14:25:22 +02:00
Tareq Al-Ahdal
d7a5a147a0
psutil: types for virtual_memory ( #8501 )
2022-08-07 14:19:19 -07:00
Alex Waygood
fdeb216547
Remove or move several TypeAlias declarations ( #8444 )
2022-07-30 15:28:52 +01:00
Alex Waygood
e3d4bdc91a
Third-party stubs: enforce CamelCase for type alias names ( #8256 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-07-19 08:23:24 +01:00
Alex Waygood
8ef6602e25
Third-party stubs: audit more Callable[<parameters>, Any] annotations ( #8233 )
2022-07-04 10:29:47 +02:00
Shantanu
af21ef5cb3
[stubsabot] Bump psutil to 5.9.* ( #8213 )
...
Co-authored-by: hauntsaninja <>
2022-07-02 00:11:33 +05:30
Alex Waygood
43a9ab08d7
Always use TypeAlias when assigning to Any ( #8021 )
2022-06-05 18:16:20 -07:00
Alex Waygood
653f2c6ba4
Third-party stubs: import from collections.abc where possible ( #7637 )
2022-04-16 14:52:57 +01:00
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Shantanu
b88a6f19cd
Upgrade black version ( #7089 )
2022-01-30 16:27:06 -08:00
Alex Waygood
96c9abb058
Always use _typeshed.Self, where applicable ( #6880 )
...
* Always use `_typeshed.Self`, where applicable
* Revert changes to `google-cloud-ndb` (ambiguous)
* Remove empty line added by script
* Revert changes to `stubs/python-dateutil/dateutil/relativedelta.pyi`
* Manually add a few more that the script missed
* Improve `filelock` annotation
Source code here: 79ec7b2826/src/filelock/_api.py (L207)
* Improve `opentracing/scope` annotation
Source code here: 3e1d357a34/opentracing/scope.py (L71)
* Improve `redis/client` stub
Source code here: 15f315a496/redis/client.py (L1217)
* Improve `redis/lock` annotation
Source code here: 15f315a496/redis/lock.py (L155)
* Improve `requests/models` annotation
Source code here: d718e75383/requests/models.py (L653)
2022-01-09 19:16:19 -08:00
Alex Waygood
8d5d2520ac
Use PEP 585 syntax wherever possible ( #6717 )
2021-12-28 11:31:43 +01:00
Anthony Sottile
f9318703f3
fix typing for psutil sconn ( #6669 )
2021-12-22 20:22:13 -08:00
Alex Waygood
c685c2d6c6
Reduce use of deprecated typing aliases ( #6358 )
2021-11-23 10:56:43 +01:00
Sebastian Rittau
c846c35d50
Process.status returns a status string ( #6245 )
...
Typed STATUS_* constants using Literal
2021-11-07 15:04:27 -08:00
Sebastian Rittau
9f86972350
Add star to all non-0.1 versions ( #6146 )
2021-10-11 13:41:19 -07:00
Saaket Prakash
750d366767
Add missing annotations for psutil ( #6124 )
2021-10-07 11:43:19 +02:00
Nikita Sobolev
88cb22e952
Improves psutil ( #6103 )
...
Add a few items and annotations to psutil
2021-10-07 09:37:50 +02:00
Nikita Sobolev
b84af5a4af
Add several missing type annotations to psutil._common ( #6104 )
2021-10-05 14:30:00 +03:00