_posixsubprocess.cloexec_pipe
_?curses.ACS_.* # ACS codes are initialized only after initscr call.
curses.COLORS  # Initialized after start_color
curses.COLOR_PAIRS  # Initialized after start_color
curses.COLS  # Initialized only after initscr call.
curses.LINES  # Initialized only after initscr call.
distutils.command.bdist_msi  # msi is only available on windows
grp.struct_group._asdict  # PyStructSequence
grp.struct_group._make  # PyStructSequence
grp.struct_group._replace  # PyStructSequence
os.EX_NOTFOUND
os.SF_MNOWAIT
os.SF_NODISKIO
os.SF_SYNC
os.sched_param  # system dependent. Unclear if macos has it.
posix.EX_NOTFOUND
readline.append_history_file  # not defined in macos
select.KQ_FILTER_NETDEV  # system dependent
select.kqueue.__init__  # default C signature is wrong
select.POLLMSG   # system dependent

# ==========
# Allowlist entries that cannot or should not be fixed
# ==========

# Modules that do not exist on macos systems
_msi
_winapi
asyncio.windows_events
asyncio.windows_utils
msilib(.[a-z]+)?
msvcrt
winreg
winsound
ossaudiodev
spwd

# NamedTuple like, but not actually NamedTuples (PyStructSequence)
posix.[a-z]+_(param|result)._(asdict|make|replace)

# Platform differences that cannot be captured by the type system
fcntl.[A-Z0-9_]+
os.SCHED_[A-Z_]+
posix.SCHED_[A-Z_]+

# Loadable SQLite extensions are disabled on GitHub runners
(sqlite3(.dbapi2)?.Connection.enable_load_extension)?
(sqlite3(.dbapi2)?.Connection.load_extension)?

# Exists at runtime, but missing from stubs
distutils.msvccompiler.MSVCCompiler.get_msvc_paths
distutils.msvccompiler.MSVCCompiler.set_path_env_var
distutils.msvccompiler.MacroExpander
grp.struct_group.n_fields
grp.struct_group.n_sequence_fields
grp.struct_group.n_unnamed_fields
mimetypes.MimeTypes.read_windows_registry
os.ST_NOSUID
os.ST_RDONLY
os.uname_result.n_fields
os.uname_result.n_sequence_fields
os.uname_result.n_unnamed_fields
posix.DirEntry
posix.abort
posix.access
posix.chdir
posix.chflags
posix.chmod
posix.chown
posix.chroot
posix.close
posix.closerange
posix.confstr
posix.cpu_count
posix.ctermid
posix.device_encoding
posix.dup
posix.dup2
posix.execv
posix.execve
posix.fchdir
posix.fchmod
posix.fchown
posix.fork
posix.forkpty
posix.fpathconf
posix.fspath
posix.fstat
posix.fstatvfs
posix.fsync
posix.ftruncate
posix.get_blocking
posix.get_inheritable
posix.get_terminal_size
posix.getcwd
posix.getcwdb
posix.getegid
posix.geteuid
posix.getgid
posix.getgrouplist
posix.getgroups
posix.getloadavg
posix.getlogin
posix.getpgid
posix.getpgrp
posix.getpid
posix.getppid
posix.getpriority
posix.getsid
posix.getuid
posix.initgroups
posix.isatty
posix.kill
posix.killpg
posix.lchflags
posix.lchmod
posix.lchown
posix.link
posix.lockf
posix.lseek
posix.lstat
posix.major
posix.makedev
posix.minor
posix.mkdir
posix.mkfifo
posix.mknod
posix.nice
posix.open
posix.openpty
posix.pathconf
posix.pipe
posix.pread
posix.putenv
posix.pwrite
posix.read
posix.readlink
posix.readv
posix.remove
posix.rename
posix.replace
posix.rmdir
posix.scandir
posix.sched_get_priority_max
posix.sched_get_priority_min
posix.sched_yield
posix.sendfile
posix.set_blocking
posix.set_inheritable
posix.setegid
posix.seteuid
posix.setgid
posix.setgroups
posix.setpgid
posix.setpgrp
posix.setpriority
posix.setregid
posix.setreuid
posix.setsid
posix.setuid
posix.stat
posix.stat_result.n_fields
posix.stat_result.n_sequence_fields
posix.stat_result.n_unnamed_fields
posix.statvfs
posix.strerror
posix.symlink
posix.sync
posix.sysconf
posix.system
posix.tcgetpgrp
posix.tcsetpgrp
posix.times
posix.times_result.n_fields
posix.times_result.n_sequence_fields
posix.times_result.n_unnamed_fields
posix.truncate
posix.ttyname
posix.umask
posix.uname
posix.uname_result.n_fields
posix.uname_result.n_sequence_fields
posix.uname_result.n_unnamed_fields
posix.unlink
posix.unsetenv
posix.urandom
posix.utime
posix.wait
posix.wait3
posix.wait4
posix.waitpid
posix.write
posix.writev
resource.struct_rusage.n_fields
resource.struct_rusage.n_sequence_fields
resource.struct_rusage.n_unnamed_fields
selectors.DefaultSelector.fileno
socket.AddressInfo.AI_DEFAULT
socket.AddressInfo.AI_MASK
socket.AddressInfo.AI_V4MAPPED_CFG
socket.MsgFlag.MSG_EOF
