Skip to content

Commit 4488701

Browse files
authored
stat: fix up (#11977)
1 parent 5d58062 commit 4488701

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

stdlib/_stat.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ if sys.platform == "win32":
103103
FILE_ATTRIBUTE_VIRTUAL: Literal[65536]
104104

105105
if sys.version_info >= (3, 13):
106-
SF_SETTABLE: Literal[0xFFFF0000]
107-
SF_RESTRICTED: Literal[0x00080000]
106+
SF_SETTABLE: Literal[0x3FFF0000]
107+
# https://github.com/python/cpython/issues/114081#issuecomment-2119017790
108+
# SF_RESTRICTED: Literal[0x00080000]
108109
SF_FIRMLINK: Literal[0x00800000]
109110
SF_DATALESS: Literal[0x40000000]
110111

stdlib/stat.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
import sys
12
from _stat import *
3+
from typing import Literal
4+
5+
if sys.version_info >= (3, 13):
6+
# https://github.com/python/cpython/issues/114081#issuecomment-2119017790
7+
SF_RESTRICTED: Literal[0x00080000]

0 commit comments

Comments
 (0)