-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[psutil]: Bump psutil to 7.1.1 #14873
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
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@lev-blit Hi! Could you please resolve the conflicts when you get a chance? |
This comment has been minimized.
This comment has been minimized.
|
7.1.2 introduces many changes that aren't in 7.1.1, including removing what should we do here? lock to |
|
I think it will be easier to update gradually and then we'll have more suitable versions of stubs for the corresponding versions of the library |
|
Then I'll make this pr update to 7.1.1, and future versions can be in other prs |
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
donBarbos
left a comment
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.
Thank you! I found few missing changes in _psbsd.pyi, based on giampaolo/psutil@release-7.0.0...release-7.1.1:
HAS_PER_CPU_TIMES,HAS_PROC_OPEN_FILES,HAS_PROC_NUM_FDSremoveddef adjust_proc_create_time(ctime): ...function added but only for NetBSDdef create_time(self, monotonic=False): ...method updated
| def cpu_count_cores() -> int | None: ... | ||
| def cpu_stats() -> _common.scpustats: ... | ||
| def cpu_freq() -> list[_common.scpufreq]: ... | ||
|
|
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.
let's add from psutil._common import debug as debug to imports in _psosx.pyi
| def disk_io_counters() -> dict[str, tuple[int, int, int, int, int, int]]: ... | ||
| def disk_partitions() -> list[tuple[str, str, str, str]]: ... | ||
| def disk_usage_used(mount_point: StrOrBytesPath, default: _T, /) -> int | _T: ... | ||
| def has_cpu_freq(*args, **kwargs) -> bool: ... |
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 wasn't necessary, I just already typed it, so I decided to suggest it:
| def has_cpu_freq(*args, **kwargs) -> bool: ... | |
| def has_cpu_freq() -> bool: ... |
| AF_LINK: Final[int] | ||
| def net_if_duplex_speed(nic_name: str, /) -> list[int]: ... | ||
|
|
||
| def users(*args, **kwargs): ... |
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.
| def users(*args, **kwargs): ... | |
| def users() -> list[tuple[Incomplete, ...]]: ... |
Closes #14734