mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
add (overwrite with) mypy stubs, if available
This commit is contained in:
71
stdlib/3/stat.pyi
Normal file
71
stdlib/3/stat.pyi
Normal file
@@ -0,0 +1,71 @@
|
||||
# Stubs for stat
|
||||
|
||||
# Based on http://docs.python.org/3.2/library/stat.html
|
||||
|
||||
import typing
|
||||
|
||||
def S_ISDIR(mode: int) -> bool: ...
|
||||
def S_ISCHR(mode: int) -> bool: ...
|
||||
def S_ISBLK(mode: int) -> bool: ...
|
||||
def S_ISREG(mode: int) -> bool: ...
|
||||
def S_ISFIFO(mode: int) -> bool: ...
|
||||
def S_ISLNK(mode: int) -> bool: ...
|
||||
def S_ISSOCK(mode: int) -> bool: ...
|
||||
|
||||
def S_IMODE(mode: int) -> int: ...
|
||||
def S_IFMT(mode) -> int: ...
|
||||
|
||||
ST_MODE = 0
|
||||
ST_INO = 0
|
||||
ST_DEV = 0
|
||||
ST_NLINK = 0
|
||||
ST_UID = 0
|
||||
ST_GID = 0
|
||||
ST_SIZE = 0
|
||||
ST_ATIME = 0
|
||||
ST_MTIME = 0
|
||||
ST_CTIME = 0
|
||||
|
||||
S_IFSOCK = 0
|
||||
S_IFLNK = 0
|
||||
S_IFREG = 0
|
||||
S_IFBLK = 0
|
||||
S_IFDIR = 0
|
||||
S_IFCHR = 0
|
||||
S_IFIFO = 0
|
||||
S_ISUID = 0
|
||||
S_ISGID = 0
|
||||
S_ISVTX = 0
|
||||
|
||||
S_IRWXU = 0
|
||||
S_IRUSR = 0
|
||||
S_IWUSR = 0
|
||||
S_IXUSR = 0
|
||||
|
||||
S_IRWXG = 0
|
||||
S_IRGRP = 0
|
||||
S_IWGRP = 0
|
||||
S_IXGRP = 0
|
||||
|
||||
S_IRWXO = 0
|
||||
S_IROTH = 0
|
||||
S_IWOTH = 0
|
||||
S_IXOTH = 0
|
||||
|
||||
S_ENFMT = 0
|
||||
S_IREAD = 0
|
||||
S_IWRITE = 0
|
||||
S_IEXEC = 0
|
||||
|
||||
UF_NODUMP = 0
|
||||
UF_IMMUTABLE = 0
|
||||
UF_APPEND = 0
|
||||
UF_OPAQUE = 0
|
||||
UF_NOUNLINK = 0
|
||||
#int UF_COMPRESSED # OS X 10.6+ only
|
||||
#int UF_HIDDEN # OX X 10.5+ only
|
||||
SF_ARCHIVED = 0
|
||||
SF_IMMUTABLE = 0
|
||||
SF_APPEND = 0
|
||||
SF_NOUNLINK = 0
|
||||
SF_SNAPSHOT = 0
|
||||
Reference in New Issue
Block a user