mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Move IO_REPARSE_TAG_* constants to _stat (#6760)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from typing_extensions import Literal
|
||||
|
||||
SF_APPEND: Literal[0x00040000]
|
||||
@@ -76,3 +77,8 @@ def S_ISREG(mode: int) -> bool: ...
|
||||
def S_ISSOCK(mode: int) -> bool: ...
|
||||
def S_ISWHT(mode: int) -> bool: ...
|
||||
def filemode(mode: int) -> str: ...
|
||||
|
||||
if sys.platform == "win32" and sys.version_info >= (3, 8):
|
||||
IO_REPARSE_TAG_SYMLINK: int
|
||||
IO_REPARSE_TAG_MOUNT_POINT: int
|
||||
IO_REPARSE_TAG_APPEXECLINK: int
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing_extensions import Literal
|
||||
|
||||
from _stat import *
|
||||
@@ -20,8 +19,3 @@ FILE_ATTRIBUTE_SPARSE_FILE: Literal[512]
|
||||
FILE_ATTRIBUTE_SYSTEM: Literal[4]
|
||||
FILE_ATTRIBUTE_TEMPORARY: Literal[256]
|
||||
FILE_ATTRIBUTE_VIRTUAL: Literal[65536]
|
||||
|
||||
if sys.platform == "win32" and sys.version_info >= (3, 8):
|
||||
IO_REPARSE_TAG_SYMLINK: int
|
||||
IO_REPARSE_TAG_MOUNT_POINT: int
|
||||
IO_REPARSE_TAG_APPEXECLINK: int
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
_stat.IO_REPARSE_TAG_[A-Z_]+
|
||||
|
||||
_msi.CreateRecord
|
||||
_msi.FCICreate
|
||||
_msi.OpenDatabase
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
_stat.IO_REPARSE_TAG_[A-Z_]+
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
_winapi.CreateFileMapping
|
||||
_winapi.MapViewOfFile
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
_stat.IO_REPARSE_TAG_[A-Z_]+
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
_winapi.CreateFileMapping
|
||||
_winapi.MapViewOfFile
|
||||
|
||||
Reference in New Issue
Block a user