Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

psutil.process_iter.cache_clear not available #14281

Open
@KennethNielsen

Description

@KennethNielsen

Arecent addition to psutil added acache_clear callable topsutil.process_iter, which is not available with the latest version (7.0.0.20250601) of "types-psutil".

I wouldn't mind trying to provide a PR to fix this, but I'm wanted to hear whether it had any interest first.

Steps to reproduce

Write code like the following:

importpsutilpsutil.process_iter.cache_clear()forprocessinpsutil.process_iter():print(process)

This should run just fine but mypy complains about cache_clear.

/home/kenneth/.config/JetBrains/PyCharm2024.3/scratches/scratch_12.py:3: error: "Callable[[list[str] | tuple[str, ...] | set[str] | frozenset[str] | None, Any], Iterator[Process]]" has no attribute "cache_clear"  [attr-defined]Found 1 error in 1 file (checked 1 source file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp