gh-108455: peg_generator: install two stubs packages before running mypy (#108637)

This commit is contained in:
Alex Waygood 2023-08-29 20:14:08 +01:00 committed by GitHub
parent 8178a88bd8
commit 77e8f233ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 6 deletions

View file

@ -116,7 +116,7 @@ def generate_parser_c_extension(
def print_memstats() -> bool:
MiB: Final = 2**20
try:
import psutil # type: ignore[import]
import psutil
except ImportError:
return False
print("Memory stats:")