From 553b473d0d2cde63f07dd8d8575fd18ac5c4e63b Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Tue, 22 Oct 2024 13:49:41 -0700 Subject: [PATCH] fix inheritance for _interpreters.NotShareableError related to https://github.com/python/typeshed/issues/3968 --- stdlib/_interpreters.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/_interpreters.pyi b/stdlib/_interpreters.pyi index 75f661a7e8e1..a57ef13c6d0f 100644 --- a/stdlib/_interpreters.pyi +++ b/stdlib/_interpreters.pyi @@ -7,7 +7,7 @@ _Configs: TypeAlias = Literal["default", "isolated", "legacy", "empty", ""] class InterpreterError(Exception): ... class InterpreterNotFoundError(InterpreterError): ... -class NotShareableError(Exception): ... +class NotShareableError(ValueError): ... class CrossInterpreterBufferView: def __buffer__(self, flags: int, /) -> memoryview: ...