From 26ffe7490bf6bcce6b588f59c155bcd16d7f0f07 Mon Sep 17 00:00:00 2001 From: Yongtao Huang Date: Mon, 15 Dec 2025 16:05:54 +0800 Subject: [PATCH] Fix ABC registration for SetProxy in multiprocessing.managers Register _BaseSetProxy as MutableSet instead of MutableMapping. SetProxy implements set semantics and does not implement the mapping protocol, so the previous ABC registration caused incorrect type classification. Signed-off-by: Yongtao Huang --- Lib/multiprocessing/managers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index 91bcf243e78e5b..73452c2140b018 100644 --- a/Lib/multiprocessing/managers.py +++ b/Lib/multiprocessing/managers.py @@ -1224,7 +1224,7 @@ def __isub__(self, value): __class_getitem__ = classmethod(types.GenericAlias) -collections.abc.MutableMapping.register(_BaseSetProxy) +collections.abc.MutableSet.register(_BaseSetProxy) ArrayProxy = MakeProxyType('ArrayProxy', (