@@ -604,7 +604,7 @@ if sys.platform != "win32" and sys.version_info >= (3, 11):
604604 def login_tty (__fd : int ) -> None : ...
605605
606606def lseek (__fd : int , __position : int , __how : int ) -> int : ...
607- def open (path : StrOrBytesPath , flags : int , mode : int = 511 , * , dir_fd : int | None = None ) -> int : ...
607+ def open (path : StrOrBytesPath , flags : int , mode : int = 0o777 , * , dir_fd : int | None = None ) -> int : ...
608608def pipe () -> tuple [int , int ]: ...
609609def read (__fd : int , __length : int ) -> bytes : ...
610610
@@ -707,15 +707,15 @@ def link(
707707 follow_symlinks : bool = True ,
708708) -> None : ...
709709def lstat (path : StrOrBytesPath , * , dir_fd : int | None = None ) -> stat_result : ...
710- def mkdir (path : StrOrBytesPath , mode : int = 511 , * , dir_fd : int | None = None ) -> None : ...
710+ def mkdir (path : StrOrBytesPath , mode : int = 0o777 , * , dir_fd : int | None = None ) -> None : ...
711711
712712if sys .platform != "win32" :
713- def mkfifo (path : StrOrBytesPath , mode : int = 438 , * , dir_fd : int | None = None ) -> None : ... # Unix only
713+ def mkfifo (path : StrOrBytesPath , mode : int = 0o666 , * , dir_fd : int | None = None ) -> None : ... # Unix only
714714
715- def makedirs (name : StrOrBytesPath , mode : int = 511 , exist_ok : bool = False ) -> None : ...
715+ def makedirs (name : StrOrBytesPath , mode : int = 0o777 , exist_ok : bool = False ) -> None : ...
716716
717717if sys .platform != "win32" :
718- def mknod (path : StrOrBytesPath , mode : int = 384 , device : int = 0 , * , dir_fd : int | None = None ) -> None : ...
718+ def mknod (path : StrOrBytesPath , mode : int = 0o600 , device : int = 0 , * , dir_fd : int | None = None ) -> None : ...
719719 def major (__device : int ) -> int : ...
720720 def minor (__device : int ) -> int : ...
721721 def makedev (__major : int , __minor : int ) -> int : ...
0 commit comments