From 4c38695dfd9adae764cc5ac12381d24781efb320 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Wed, 23 Oct 2024 06:58:46 -0700 Subject: [PATCH] fix inheritance for _interpreters.NotShareableError (#12880) 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 75f661a7e..a57ef13c6 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: ...