Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92d3f07

Browse files
authored
Add types-psutil as a build requirement (python#13470)
1 parent adb36bf commit 92d3f07

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

build-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
-r mypy-requirements.txt
2+
types-psutil
23
types-setuptools
34
types-typed-ast>=1.5.0,<1.6.0

mypy/dmypy_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ def cmd_hang(self) -> dict[str, object]:
942942
def get_meminfo() -> dict[str, Any]:
943943
res: dict[str, Any] = {}
944944
try:
945-
import psutil # type: ignore # It's not in typeshed yet
945+
import psutil
946946
except ImportError:
947947
res["memory_psutil_missing"] = (
948948
"psutil not found, run pip install mypy[dmypy] "

0 commit comments

Comments
 (0)