From 3d61401db1a31106cc7072a498e4cd0f6d2cd641 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Wed, 18 Dec 2024 13:31:55 -0800 Subject: [PATCH] add BaseListProxy.__imul__ --- stdlib/@tests/stubtest_allowlists/common.txt | 1 - stdlib/multiprocessing/managers.pyi | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 6a254f7f7624..d7e99622ffef 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -394,7 +394,6 @@ multiprocessing.dummy.RLock # These multiprocessing proxy methods have *args, **kwargs signatures at runtime, # But have more precise (accurate) signatures in the stub -multiprocessing.managers.BaseListProxy.__imul__ multiprocessing.managers.BaseListProxy.__len__ multiprocessing.managers.BaseListProxy.__reversed__ multiprocessing.managers.BaseListProxy.reverse diff --git a/stdlib/multiprocessing/managers.pyi b/stdlib/multiprocessing/managers.pyi index 1669c5f09f97..3a798e1e5849 100644 --- a/stdlib/multiprocessing/managers.pyi +++ b/stdlib/multiprocessing/managers.pyi @@ -129,6 +129,7 @@ class BaseListProxy(BaseProxy, MutableSequence[_T]): def __setitem__(self, s: slice, o: Iterable[_T], /) -> None: ... def __mul__(self, n: SupportsIndex, /) -> list[_T]: ... def __rmul__(self, n: SupportsIndex, /) -> list[_T]: ... + def __imul__(self, value: SupportsIndex, /) -> Self: ... def __reversed__(self) -> Iterator[_T]: ... def append(self, object: _T, /) -> None: ... def extend(self, iterable: Iterable[_T], /) -> None: ...