Fix __new__ issues in 3.14 (#14626)

This commit is contained in:
Jelle Zijlstra authored and GitHub committed 2025-08-23 10:01:10 -07:00
1 parent 85834194c0
commit 92eab7b773
3 files changed
+16 -9

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ PAGESIZE: Final[int]
class mmap:
if sys.platform == "win32":
def __init__(self, fileno: int, length: int, tagname: str | None = None, access: int = 0, offset: int = 0) -> None: ...
def __new__(self, fileno: int, length: int, tagname: str | None = None, access: int = 0, offset: int = 0) -> Self: ...
else:
if sys.version_info >= (3, 13):
def __new__(