From e19b20032b823bc1812eb2301e9faba9b19acb96 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 4 Oct 2021 17:11:45 -0700 Subject: [PATCH] Properly export types from psutil._compat (#6112) --- stubs/psutil/psutil/_compat.pyi | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/stubs/psutil/psutil/_compat.pyi b/stubs/psutil/psutil/_compat.pyi index b4efc9d98..4031e23fd 100644 --- a/stubs/psutil/psutil/_compat.pyi +++ b/stubs/psutil/psutil/_compat.pyi @@ -1,6 +1,8 @@ -FileNotFoundError = FileNotFoundError -PermissionError = PermissionError -ProcessLookupError = ProcessLookupError -InterruptedError = InterruptedError -ChildProcessError = ChildProcessError -FileExistsError = FileExistsError +from builtins import ( + ChildProcessError as ChildProcessError, + FileExistsError as FileExistsError, + FileNotFoundError as FileNotFoundError, + InterruptedError as InterruptedError, + PermissionError as PermissionError, + ProcessLookupError as ProcessLookupError, +)