Change 'self' to 'cls' in mmap.__new__ method (#15576)

This commit is contained in:
Jonathan Dung
2026-03-30 13:41:17 +08:00
committed by GitHub
parent 14968e64c6
commit 15f1aea25a
+1 -1
View File
@@ -34,7 +34,7 @@ PAGESIZE: Final[int]
@disjoint_base
class mmap:
if sys.platform == "win32":
def __new__(self, fileno: int, length: int, tagname: str | None = None, access: int = 0, offset: int = 0) -> Self: ...
def __new__(cls, fileno: int, length: int, tagname: str | None = None, access: int = 0, offset: int = 0) -> Self: ...
else:
if sys.version_info >= (3, 13):
def __new__(