Skip to content

Commit 9b7a31d

Browse files
authored
Mark SharedMemory.buf optional (#14723)
1 parent 1db21c5 commit 9b7a31d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/multiprocessing/shared_memory.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class SharedMemory:
1515
def __init__(self, name: str | None = None, create: bool = False, size: int = 0) -> None: ...
1616

1717
@property
18-
def buf(self) -> memoryview: ...
18+
def buf(self) -> memoryview | None: ...
1919
@property
2020
def name(self) -> str: ...
2121
@property

0 commit comments

Comments
 (0)