math, mimetypes, mmap, multiprocessing, sqlite: Python 3.13 updates (#12062)

This commit is contained in:
Amin Alaee
2024-05-30 14:56:22 +02:00
committed by GitHub
parent b780ac0ab0
commit 321c0ce75e
6 changed files with 22 additions and 11 deletions

View File

@@ -11,7 +11,11 @@ __all__ = ["SharedMemory", "ShareableList"]
_SLT = TypeVar("_SLT", int, float, bool, str, bytes, None)
class SharedMemory:
def __init__(self, name: str | None = None, create: bool = False, size: int = 0) -> None: ...
if sys.version_info >= (3, 13):
def __init__(self, name: str | None = None, create: bool = False, size: int = 0, *, track: bool = True) -> None: ...
else:
def __init__(self, name: str | None = None, create: bool = False, size: int = 0) -> None: ...
@property
def buf(self) -> memoryview: ...
@property