mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use octal for mode defaults (#9670)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user