move stat.FILE_ATTRIBUTE_* to _stat.pyi and fix availability (#6761)

This commit is contained in:
Akuli
2021-12-30 21:07:28 +02:00
committed by GitHub
parent 026b219a1d
commit 0f7dbd811e
5 changed files with 25 additions and 21 deletions

View File

@@ -37,6 +37,9 @@ fcntl.[A-Z0-9_]+
os.SCHED_[A-Z_]+
posix.SCHED_[A-Z_]+
# Some of these exist on non-windows, but they are useless and this is not intended
stat.FILE_ATTRIBUTE_[A-Z_]+
# Loadable SQLite extensions are disabled on GitHub runners
(sqlite3(.dbapi2)?.Connection.enable_load_extension)?
(sqlite3(.dbapi2)?.Connection.load_extension)?

View File

@@ -40,6 +40,9 @@ fcntl.[A-Z0-9_]+
os.SCHED_[A-Z_]+
posix.SCHED_[A-Z_]+
# Some of these exist on non-windows, but they are useless and this is not intended
stat.FILE_ATTRIBUTE_[A-Z_]+
# Loadable SQLite extensions are disabled on GitHub runners
(sqlite3(.dbapi2)?.Connection.enable_load_extension)?
(sqlite3(.dbapi2)?.Connection.load_extension)?

View File

@@ -1,6 +1,5 @@
_msi.MSI[A-Z_]+
_msi.PID_[A-Z_]+
_stat.FILE_ATTRIBUTE_[A-Z_]+
ctypes.GetLastError # Is actually a pointer
distutils.archive_util.getgrnam
distutils.archive_util.getpwnam