Use octal for mode defaults (#9670)

This commit is contained in:
Akuli
2023-02-03 21:12:53 +02:00
committed by GitHub
parent 48cffeeea6
commit 37a180ef7b
11 changed files with 17 additions and 17 deletions

View File

@@ -99,7 +99,7 @@ class Path(PurePath):
def iterdir(self: Self) -> Generator[Self, None, None]: ...
def lchmod(self, mode: int) -> None: ...
def lstat(self) -> stat_result: ...
def mkdir(self, mode: int = 511, parents: bool = False, exist_ok: bool = False) -> None: ...
def mkdir(self, mode: int = 0o777, parents: bool = False, exist_ok: bool = False) -> None: ...
# Adapted from builtins.open
# Text mode: always returns a TextIOWrapper
# The Traversable .open in stdlib/importlib/abc.pyi should be kept in sync with this.
@@ -178,7 +178,7 @@ class Path(PurePath):
if sys.version_info >= (3, 10):
def hardlink_to(self, target: str | Path) -> None: ...
def touch(self, mode: int = 438, exist_ok: bool = True) -> None: ...
def touch(self, mode: int = 0o666, exist_ok: bool = True) -> None: ...
if sys.version_info >= (3, 8):
def unlink(self, missing_ok: bool = False) -> None: ...
else: