Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stdlib/@tests/stubtest_allowlists/common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ logging.LogRecord.__setattr__ # doesn't exist, but makes things easy if we pret
# These would ideally be special-cased by type checkers; see https://github.com/python/mypy/issues/2220
mmap.mmap.__iter__
mmap.mmap.__contains__
multiprocessing.shared_memory.ShareableList.__iter__

# These multiprocessing proxy methods have *args, **kwargs signatures at runtime,
# But have more precise (accurate) signatures in the stub
Expand Down
3 changes: 2 additions & 1 deletion stdlib/multiprocessing/shared_memory.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from collections.abc import Iterable
from collections.abc import Iterable, Iterator
from types import GenericAlias
from typing import Any, Generic, TypeVar, overload
from typing_extensions import Self
Expand Down Expand Up @@ -36,6 +36,7 @@ class ShareableList(Generic[_SLT]):
def __setitem__(self, position: int, value: _SLT) -> None: ...
def __reduce__(self) -> tuple[Self, tuple[_SLT, ...]]: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[_SLT]: ...
@property
def format(self) -> str: ...
def count(self, value: _SLT) -> int: ...
Expand Down
Loading