Fix __new__ issues in 3.14 (#14626)

This commit is contained in:
Jelle Zijlstra
2025-08-23 10:01:10 -07:00
committed by GitHub
parent 85834194c0
commit 92eab7b773
3 changed files with 16 additions and 9 deletions
+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__(