Skip to content

Commit 7b9263a

Browse files
authored
Use Final in _stat module (#12546)
1 parent 6644250 commit 7b9263a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stdlib/_stat.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ S_IFDIR: Final = 0o040000
2828

2929
# These are 0 on systems that don't support the specific kind of file.
3030
# Example: Linux doesn't support door files, so S_IFDOOR is 0 on linux.
31-
S_IFDOOR: int
32-
S_IFPORT: int
33-
S_IFWHT: int
31+
S_IFDOOR: Final[int]
32+
S_IFPORT: Final[int]
33+
S_IFWHT: Final[int]
3434

3535
S_ISUID: Final = 0o4000
3636
S_ISGID: Final = 0o2000
@@ -79,9 +79,9 @@ def S_ISWHT(mode: int, /) -> bool: ...
7979
def filemode(mode: int, /) -> str: ...
8080

8181
if sys.platform == "win32":
82-
IO_REPARSE_TAG_SYMLINK: int
83-
IO_REPARSE_TAG_MOUNT_POINT: int
84-
IO_REPARSE_TAG_APPEXECLINK: int
82+
IO_REPARSE_TAG_SYMLINK: Final = 0xA000000C
83+
IO_REPARSE_TAG_MOUNT_POINT: Final = 0xA0000003
84+
IO_REPARSE_TAG_APPEXECLINK: Final = 0x8000001B
8585

8686
if sys.platform == "win32":
8787
FILE_ATTRIBUTE_ARCHIVE: Final = 32

0 commit comments

Comments
 (0)