mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 22:56:55 +08:00
Run stubtest for Python 3.12 (#10253)
This commit is contained in:
2
.github/workflows/stubtest_stdlib.yml
vendored
2
.github/workflows/stubtest_stdlib.yml
vendored
@@ -32,7 +32,7 @@ jobs:
|
||||
matrix:
|
||||
# tkinter doesn't import on macOS 12
|
||||
os: ["ubuntu-latest", "windows-latest", "macos-11"]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
|
||||
@@ -53,7 +53,7 @@ from typing import ( # noqa: Y022
|
||||
overload,
|
||||
type_check_only,
|
||||
)
|
||||
from typing_extensions import (
|
||||
from typing_extensions import ( # type: ignore
|
||||
Concatenate,
|
||||
Literal,
|
||||
LiteralString,
|
||||
@@ -465,7 +465,7 @@ class str(Sequence[str]):
|
||||
@overload
|
||||
def format(self: LiteralString, *args: LiteralString, **kwargs: LiteralString) -> LiteralString: ...
|
||||
@overload
|
||||
def format(self, *args: object, **kwargs: object) -> str: ...
|
||||
def format(self, *args: object, **kwargs: object) -> str: ... # type: ignore
|
||||
def format_map(self, map: _FormatMapMapping) -> str: ...
|
||||
def index(self, __sub: str, __start: SupportsIndex | None = ..., __end: SupportsIndex | None = ...) -> int: ...
|
||||
def isalnum(self) -> bool: ...
|
||||
@@ -595,7 +595,7 @@ class str(Sequence[str]):
|
||||
@overload
|
||||
def __mod__(self: LiteralString, __value: LiteralString | tuple[LiteralString, ...]) -> LiteralString: ...
|
||||
@overload
|
||||
def __mod__(self, __value: Any) -> str: ...
|
||||
def __mod__(self, __value: Any) -> str: ... # type: ignore
|
||||
@overload
|
||||
def __mul__(self: LiteralString, __value: SupportsIndex) -> LiteralString: ...
|
||||
@overload
|
||||
|
||||
@@ -11,5 +11,3 @@ _?curses.color_pair
|
||||
# ==========
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
distutils.command.bdist_msi # Only available on Windows and Python 3.10 and below
|
||||
|
||||
49
tests/stubtest_allowlists/darwin-py312.txt
Normal file
49
tests/stubtest_allowlists/darwin-py312.txt
Normal file
@@ -0,0 +1,49 @@
|
||||
_?curses.color_pair
|
||||
_curses.unget_wch
|
||||
_curses.window.get_wch
|
||||
_posixsubprocess.fork_exec
|
||||
_socket.ETHERTYPE_ARP
|
||||
_socket.ETHERTYPE_IP
|
||||
_socket.ETHERTYPE_IPV6
|
||||
_socket.ETHERTYPE_VLAN
|
||||
_socket.IP_ADD_SOURCE_MEMBERSHIP
|
||||
_socket.IP_BLOCK_SOURCE
|
||||
_socket.IP_DROP_SOURCE_MEMBERSHIP
|
||||
_socket.IP_PKTINFO
|
||||
_socket.IP_UNBLOCK_SOURCE
|
||||
curses.unget_wch
|
||||
curses.window.get_wch
|
||||
os.PRIO_DARWIN_BG
|
||||
os.PRIO_DARWIN_NONUI
|
||||
os.PRIO_DARWIN_PROCESS
|
||||
os.PRIO_DARWIN_THREAD
|
||||
posix.DirEntry.is_junction
|
||||
posix.PRIO_DARWIN_BG
|
||||
posix.PRIO_DARWIN_NONUI
|
||||
posix.PRIO_DARWIN_PROCESS
|
||||
posix.PRIO_DARWIN_THREAD
|
||||
socket.ETHERTYPE_ARP
|
||||
socket.ETHERTYPE_IP
|
||||
socket.ETHERTYPE_IPV6
|
||||
socket.ETHERTYPE_VLAN
|
||||
socket.IP_ADD_SOURCE_MEMBERSHIP
|
||||
socket.IP_BLOCK_SOURCE
|
||||
socket.IP_DROP_SOURCE_MEMBERSHIP
|
||||
socket.IP_PKTINFO
|
||||
socket.IP_UNBLOCK_SOURCE
|
||||
socket.TCP_CONNECTION_INFO
|
||||
syslog.LOG_MASK
|
||||
syslog.LOG_UPTO
|
||||
syslog.setlogmask
|
||||
tty.__all__
|
||||
tty.cfmakecbreak
|
||||
tty.cfmakeraw
|
||||
xxlimited.Xxo.x_exports
|
||||
|
||||
(dbm.gnu)?
|
||||
(locale.bind_textdomain_codeset)?
|
||||
(locale.bindtextdomain)?
|
||||
(locale.dcgettext)
|
||||
(locale.dgettext)?
|
||||
(locale.gettext)?
|
||||
(locale.textdomain)?
|
||||
@@ -5,5 +5,4 @@ pwd.getpwnam
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
distutils.command.bdist_msi # Only available on Windows and Python 3.10 and below
|
||||
ftplib.FTP.trust_server_pasv_ipv4_address # Dangerous to use, intentionally undocumented, intentionally missing from typeshed. #6154
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
# ==========
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
distutils.command.bdist_msi # Only available on Windows and Python 3.10 and below
|
||||
@@ -1,5 +0,0 @@
|
||||
# ==========
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
distutils.command.bdist_msi # Only available on Windows and Python 3.10 and below
|
||||
@@ -27,9 +27,6 @@ select.POLLMSG # system dependent
|
||||
(termios.[A-Z0-9_]+)?
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
distutils.msvccompiler.MSVCCompiler.get_msvc_paths
|
||||
distutils.msvccompiler.MSVCCompiler.set_path_env_var
|
||||
distutils.msvccompiler.MacroExpander
|
||||
mimetypes.MimeTypes.read_windows_registry
|
||||
selectors.DefaultSelector.fileno
|
||||
socket.PF_SYSTEM
|
||||
|
||||
@@ -18,5 +18,3 @@ signal.sigwaitinfo
|
||||
# ==========
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
distutils.command.bdist_msi # Only available on Windows and Python 3.10 and below
|
||||
|
||||
46
tests/stubtest_allowlists/linux-py312.txt
Normal file
46
tests/stubtest_allowlists/linux-py312.txt
Normal file
@@ -0,0 +1,46 @@
|
||||
_?curses.color_pair
|
||||
_posixsubprocess.fork_exec
|
||||
(os|posix).CLONE_FILES
|
||||
(os|posix).CLONE_FS
|
||||
(os|posix).CLONE_NEWCGROUP
|
||||
(os|posix).CLONE_NEWIPC
|
||||
(os|posix).CLONE_NEWNET
|
||||
(os|posix).CLONE_NEWNS
|
||||
(os|posix).CLONE_NEWPID
|
||||
(os|posix).CLONE_NEWUSER
|
||||
(os|posix).CLONE_NEWUTS
|
||||
(os|posix).CLONE_SIGHAND
|
||||
(os|posix).CLONE_SYSVSEM
|
||||
(os|posix).CLONE_THREAD
|
||||
(os|posix).CLONE_VM
|
||||
(os|posix).DirEntry.is_junction
|
||||
(os|posix).EFD_CLOEXEC
|
||||
(os|posix).EFD_NONBLOCK
|
||||
(os|posix).EFD_SEMAPHORE
|
||||
(os|posix).eventfd
|
||||
(os|posix).eventfd_read
|
||||
(os|posix).eventfd_write
|
||||
(os|posix).sendfile
|
||||
(os|posix).setns
|
||||
(os|posix).setresgid
|
||||
(os|posix).setresuid
|
||||
(os|posix).splice
|
||||
(os|posix).SPLICE_F_MORE
|
||||
(os|posix).SPLICE_F_MOVE
|
||||
(os|posix).SPLICE_F_NONBLOCK
|
||||
(os|posix).unshare
|
||||
fcntl.FICLONE
|
||||
fcntl.FICLONERANGE
|
||||
mmap.MAP_STACK
|
||||
resource.prlimit
|
||||
signal.sigtimedwait
|
||||
signal.sigwaitinfo
|
||||
ssl.OP_ENABLE_KTLS
|
||||
ssl.Options.OP_ENABLE_KTLS
|
||||
syslog.LOG_MASK
|
||||
syslog.LOG_UPTO
|
||||
syslog.setlogmask
|
||||
tty.__all__
|
||||
tty.cfmakecbreak
|
||||
tty.cfmakeraw
|
||||
xxlimited.Xxo.x_exports
|
||||
@@ -5,5 +5,4 @@ pwd.getpwnam
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
distutils.command.bdist_msi # Only available on Windows and Python 3.10 and below
|
||||
ftplib.FTP.trust_server_pasv_ipv4_address # Dangerous to use, intentionally undocumented, intentionally missing from typeshed. #6154
|
||||
|
||||
@@ -3,5 +3,3 @@ select.epoll.register
|
||||
# ==========
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
distutils.command.bdist_msi # Only available on Windows and Python 3.10 and below
|
||||
|
||||
@@ -4,5 +4,3 @@ select.epoll.register
|
||||
# ==========
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
distutils.command.bdist_msi # Only available on Windows and Python 3.10 and below
|
||||
|
||||
@@ -15,9 +15,6 @@ socket.[A-Z0-9_]+
|
||||
errno.[A-Z0-9]+
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
distutils.msvccompiler.MSVCCompiler.get_msvc_paths
|
||||
distutils.msvccompiler.MSVCCompiler.set_path_env_var
|
||||
distutils.msvccompiler.MacroExpander
|
||||
mimetypes.MimeTypes.read_windows_registry
|
||||
selectors.DefaultSelector.fileno
|
||||
spwd.struct_spwd.sp_nam
|
||||
|
||||
@@ -13,14 +13,18 @@ asyncio.Future.__init__ # Usually initialized from c object
|
||||
asyncio.futures.Future.__init__ # Usually initialized from c object
|
||||
builtins.float.__setformat__ # Internal method for CPython test suite
|
||||
builtins.property.__set_name__ # Doesn't actually exist
|
||||
bz2.BZ2Decompressor.__init__ # function does not accept parameters but C signature is set
|
||||
configparser.ParsingError.filename
|
||||
contextlib.AbstractAsyncContextManager.__class_getitem__
|
||||
contextlib.AbstractContextManager.__class_getitem__
|
||||
enum.Enum._generate_next_value_
|
||||
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
|
||||
functools.cached_property.__set__ # Stub is a white lie; see comments in the stub
|
||||
functools._lru_cache_wrapper.cache_parameters # Cannot be detected statically
|
||||
gettext.install
|
||||
gettext.translation
|
||||
hmac.new # Stub is a white lie; see comments in the stub
|
||||
importlib.abc.Finder.find_module
|
||||
importlib.metadata._meta.SimplePath.__truediv__ # See comments in the stub
|
||||
ipaddress.IPv4Interface.hostmask
|
||||
ipaddress.IPv6Interface.hostmask
|
||||
@@ -50,6 +54,13 @@ typing._TypedDict.update
|
||||
typing._TypedDict.values
|
||||
weakref.ProxyType.__reversed__ # Doesn't really exist
|
||||
weakref.WeakValueDictionary.update
|
||||
typing_extensions\.get_original_bases
|
||||
|
||||
# Exist at runtime for internal reasons, no need to put them in the stub
|
||||
typing_extensions\.TypeAliasType\.__call__
|
||||
typing_extensions\.TypeAliasType\.__init_subclass__
|
||||
# We call them read-only properties, runtime implementation is slightly different
|
||||
typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
|
||||
|
||||
# Runtime has *args, **kwargs, but will error if any are supplied
|
||||
unittest.TestCase.__init_subclass__
|
||||
@@ -183,3 +194,17 @@ typing.NewType.__call__
|
||||
typing_extensions\.Final
|
||||
typing\.NamedTuple
|
||||
typing\.Annotated
|
||||
|
||||
# We lie about the existence of these methods
|
||||
.*.__buffer__
|
||||
.*.__release_buffer__
|
||||
|
||||
# Removed in 3.12
|
||||
distutils\..*
|
||||
asyncore.dispatcher.addr
|
||||
asyncore.dispatcher.handle_accepted
|
||||
asynchat.async_chat.encoding
|
||||
asynchat.async_chat.use_encoding
|
||||
asynchat.find_prefix_at_end
|
||||
pkgutil.ImpImporter\..*
|
||||
pkgutil.ImpLoader\..*
|
||||
|
||||
@@ -13,7 +13,10 @@ _collections_abc.ValuesView.__reversed__
|
||||
_csv.Reader
|
||||
_csv.Writer
|
||||
argparse._MutuallyExclusiveGroup.add_mutually_exclusive_group
|
||||
bz2.BZ2Decompressor.__init__ # function does not accept parameters but C signature is set
|
||||
configparser.LegacyInterpolation.__init__
|
||||
configparser.ParsingError.filename
|
||||
enum.Enum._generate_next_value_
|
||||
enum.Enum.__init__
|
||||
# TODO: The stub for enum.auto is nothing like the implementation
|
||||
enum.auto.__init__
|
||||
@@ -22,6 +25,7 @@ fractions.Fraction.__new__ # overload is too complicated for stubtest to resolv
|
||||
ftplib.FTP.trust_server_pasv_ipv4_address
|
||||
functools.cached_property.__set__ # Stub is a white lie; see comments in the stub
|
||||
functools._lru_cache_wrapper.cache_parameters # Cannot be detected statically
|
||||
importlib.abc.Finder.find_module
|
||||
ipaddress.IPv4Interface.hostmask
|
||||
ipaddress.IPv6Interface.hostmask
|
||||
ipaddress._BaseNetwork.broadcast_address
|
||||
@@ -43,11 +47,18 @@ tkinter._VersionInfoType.__doc__
|
||||
typing.NewType.__call__
|
||||
typing.NewType.__mro_entries__
|
||||
weakref.WeakValueDictionary.update
|
||||
typing_extensions\.get_original_bases
|
||||
|
||||
# Runtime has *args, **kwargs, but will error if any are supplied
|
||||
unittest.TestCase.__init_subclass__
|
||||
unittest.case.TestCase.__init_subclass__
|
||||
|
||||
# Exist at runtime for internal reasons, no need to put them in the stub
|
||||
typing_extensions\.TypeAliasType\.__call__
|
||||
typing_extensions\.TypeAliasType\.__init_subclass__
|
||||
# We call them read-only properties, runtime implementation is slightly different
|
||||
typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
|
||||
|
||||
# ==========
|
||||
# Related to positional-only arguments
|
||||
# ==========
|
||||
@@ -149,3 +160,17 @@ dataclasses.KW_ONLY
|
||||
typing.ParamSpec(Args|Kwargs).__origin__
|
||||
typing\.TypeVar\.__.*__
|
||||
typing\.ParamSpec\.__.*__
|
||||
|
||||
# We lie about the existence of these methods
|
||||
.*.__buffer__
|
||||
.*.__release_buffer__
|
||||
|
||||
# Removed in 3.12
|
||||
distutils\..*
|
||||
asyncore.dispatcher.addr
|
||||
asyncore.dispatcher.handle_accepted
|
||||
asynchat.async_chat.encoding
|
||||
asynchat.async_chat.use_encoding
|
||||
asynchat.find_prefix_at_end
|
||||
pkgutil.ImpImporter\..*
|
||||
pkgutil.ImpLoader\..*
|
||||
|
||||
412
tests/stubtest_allowlists/py312.txt
Normal file
412
tests/stubtest_allowlists/py312.txt
Normal file
@@ -0,0 +1,412 @@
|
||||
# Uncategorised, from Python 3.12
|
||||
_ctypes.SIZEOF_TIME_T
|
||||
_thread.daemon_threads_allowed
|
||||
argparse.BooleanOptionalAction.__init__
|
||||
array.array.__class_getitem__
|
||||
asyncio.BaseEventLoop.create_connection
|
||||
asyncio.BaseEventLoop.shutdown_default_executor
|
||||
asyncio.Handle.get_context
|
||||
asyncio.StreamWriter.start_tls
|
||||
asyncio.Task.get_context
|
||||
asyncio.base_events.BaseEventLoop.create_connection
|
||||
asyncio.base_events.BaseEventLoop.shutdown_default_executor
|
||||
asyncio.constants.THREAD_JOIN_TIMEOUT
|
||||
asyncio.create_eager_task_factory
|
||||
asyncio.eager_task_factory
|
||||
asyncio.events.Handle.get_context
|
||||
asyncio.streams.StreamWriter.start_tls
|
||||
asyncio.tasks.Task.get_context
|
||||
asyncio.tasks.__all__
|
||||
asyncio.tasks.create_eager_task_factory
|
||||
asyncio.tasks.eager_task_factory
|
||||
calendar.APRIL
|
||||
calendar.AUGUST
|
||||
calendar.DECEMBER
|
||||
calendar.Day
|
||||
calendar.FEBRUARY
|
||||
calendar.JANUARY
|
||||
calendar.JULY
|
||||
calendar.JUNE
|
||||
calendar.MARCH
|
||||
calendar.MAY
|
||||
calendar.Month
|
||||
calendar.NOVEMBER
|
||||
calendar.OCTOBER
|
||||
calendar.SEPTEMBER
|
||||
calendar.__all__
|
||||
collections.UserDict.get
|
||||
configparser.ParsingError.__init__
|
||||
configparser.RawConfigParser.readfp
|
||||
configparser.__all__
|
||||
ctypes.c_time_t
|
||||
datetime.__all__
|
||||
dis.__all__
|
||||
dis.hasarg
|
||||
dis.hasexc
|
||||
dis.hasnargs
|
||||
email.utils.localtime
|
||||
enum.Enum.__signature__
|
||||
enum.EnumMeta.__call__
|
||||
enum.EnumType.__call__
|
||||
enum.property.member
|
||||
ftplib.FTP_TLS.__init__
|
||||
functools.WRAPPER_ASSIGNMENTS
|
||||
functools.update_wrapper
|
||||
functools.wraps
|
||||
genericpath.__all__
|
||||
genericpath.islink
|
||||
gzip.GzipFile.filename
|
||||
http.HTTPStatus.is_client_error
|
||||
http.HTTPStatus.is_informational
|
||||
http.HTTPStatus.is_redirection
|
||||
http.HTTPStatus.is_server_error
|
||||
http.HTTPStatus.is_success
|
||||
http.client.HTTPConnection.get_proxy_response_headers
|
||||
http.client.HTTPSConnection.__init__
|
||||
imaplib.IMAP4_SSL.__init__
|
||||
imp
|
||||
importlib.abc.Finder
|
||||
importlib.abc.Loader.module_repr
|
||||
importlib.abc.MetaPathFinder.find_module
|
||||
importlib.abc.PathEntryFinder.find_loader
|
||||
importlib.abc.PathEntryFinder.find_module
|
||||
importlib.abc.__all__
|
||||
importlib.find_loader
|
||||
importlib.machinery.BuiltinImporter.find_module
|
||||
importlib.machinery.BuiltinImporter.module_repr
|
||||
importlib.machinery.FrozenImporter.find_module
|
||||
importlib.machinery.FrozenImporter.module_repr
|
||||
importlib.machinery.PathFinder.find_module
|
||||
importlib.machinery.WindowsRegistryFinder.find_module
|
||||
importlib.metadata.PackageMetadata.get
|
||||
importlib.metadata.SelectableGroups
|
||||
importlib.metadata._meta.PackageMetadata.get
|
||||
importlib.metadata._meta.SimplePath.__truediv__
|
||||
importlib.metadata._meta.SimplePath.parent
|
||||
importlib.resources.files
|
||||
importlib.util.allowing_all_extensions
|
||||
importlib.util.module_for_loader
|
||||
importlib.util.set_loader
|
||||
importlib.util.set_package
|
||||
inspect.AGEN_CLOSED
|
||||
inspect.AGEN_CREATED
|
||||
inspect.AGEN_RUNNING
|
||||
inspect.AGEN_SUSPENDED
|
||||
inspect.__all__
|
||||
inspect.getasyncgenlocals
|
||||
inspect.getasyncgenstate
|
||||
inspect.markcoroutinefunction
|
||||
locale.format
|
||||
logging.Logger.getChildren
|
||||
logging.__all__
|
||||
logging.getHandlerByName
|
||||
logging.getHandlerNames
|
||||
multiprocessing.connection.deliver_challenge
|
||||
multiprocessing.queues.Queue.__class_getitem__
|
||||
ntpath.__all__
|
||||
ntpath.isjunction
|
||||
ntpath.splitroot
|
||||
opcode.__all__
|
||||
opcode.hasarg
|
||||
opcode.hasexc
|
||||
opcode.hasnargs
|
||||
os.DirEntry.is_junction
|
||||
os.path.__all__
|
||||
os.path.isjunction
|
||||
os.path.splitroot
|
||||
pathlib.Path.__init__
|
||||
pathlib.Path.exists
|
||||
pathlib.Path.glob
|
||||
pathlib.Path.is_junction
|
||||
pathlib.Path.rglob
|
||||
pathlib.PurePath.__init__
|
||||
pathlib.PurePath.is_relative_to
|
||||
pathlib.PurePath.match
|
||||
pathlib.PurePath.relative_to
|
||||
pathlib.PurePath.with_segments
|
||||
pdb.Pdb.set_convenience_variable
|
||||
pkgutil.ImpImporter
|
||||
pkgutil.ImpLoader
|
||||
pkgutil.__all__
|
||||
poplib.POP3_SSL.__init__
|
||||
posixpath.__all__
|
||||
posixpath.isjunction
|
||||
posixpath.splitroot
|
||||
pydoc.HTMLRepr.__init__
|
||||
pydoc.TextRepr.__init__
|
||||
smtplib.SMTP.starttls
|
||||
smtplib.SMTP_SSL.__init__
|
||||
sqlite3.Connection.autocommit
|
||||
sqlite3.Connection.getconfig
|
||||
sqlite3.Connection.setconfig
|
||||
sqlite3.LEGACY_TRANSACTION_CONTROL
|
||||
sqlite3.SQLITE_DBCONFIG_DEFENSIVE
|
||||
sqlite3.SQLITE_DBCONFIG_DQS_DDL
|
||||
sqlite3.SQLITE_DBCONFIG_DQS_DML
|
||||
sqlite3.SQLITE_DBCONFIG_ENABLE_FKEY
|
||||
sqlite3.SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
|
||||
sqlite3.SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION
|
||||
sqlite3.SQLITE_DBCONFIG_ENABLE_QPSG
|
||||
sqlite3.SQLITE_DBCONFIG_ENABLE_TRIGGER
|
||||
sqlite3.SQLITE_DBCONFIG_ENABLE_VIEW
|
||||
sqlite3.SQLITE_DBCONFIG_LEGACY_ALTER_TABLE
|
||||
sqlite3.SQLITE_DBCONFIG_LEGACY_FILE_FORMAT
|
||||
sqlite3.SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE
|
||||
sqlite3.SQLITE_DBCONFIG_RESET_DATABASE
|
||||
sqlite3.SQLITE_DBCONFIG_TRIGGER_EQP
|
||||
sqlite3.SQLITE_DBCONFIG_TRUSTED_SCHEMA
|
||||
sqlite3.SQLITE_DBCONFIG_WRITABLE_SCHEMA
|
||||
sqlite3.dbapi2.Connection.autocommit
|
||||
sqlite3.dbapi2.Connection.getconfig
|
||||
sqlite3.dbapi2.Connection.setconfig
|
||||
sqlite3.dbapi2.LEGACY_TRANSACTION_CONTROL
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_DEFENSIVE
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_DQS_DDL
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_DQS_DML
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_ENABLE_FKEY
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_ENABLE_QPSG
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_ENABLE_TRIGGER
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_ENABLE_VIEW
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_LEGACY_ALTER_TABLE
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_LEGACY_FILE_FORMAT
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_RESET_DATABASE
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_TRIGGER_EQP
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_TRUSTED_SCHEMA
|
||||
sqlite3.dbapi2.SQLITE_DBCONFIG_WRITABLE_SCHEMA
|
||||
sqlite3.dbapi2.enable_shared_cache
|
||||
sqlite3.enable_shared_cache
|
||||
sre_parse.Tokenizer.checkgroupname
|
||||
sre_parse.expand_template
|
||||
sre_parse.parse_template
|
||||
ssl.OP_LEGACY_SERVER_CONNECT
|
||||
ssl.Options.OP_LEGACY_SERVER_CONNECT
|
||||
ssl.RAND_pseudo_bytes
|
||||
ssl.wrap_socket
|
||||
sys.activate_stack_trampoline
|
||||
sys.deactivate_stack_trampoline
|
||||
sys.getunicodeinternedsize
|
||||
sys.is_stack_trampoline_active
|
||||
tarfile.AbsoluteLinkError
|
||||
tarfile.AbsolutePathError
|
||||
tarfile.FilterError
|
||||
tarfile.LinkOutsideDestinationError
|
||||
tarfile.OutsideDestinationError
|
||||
tarfile.SpecialFileError
|
||||
tarfile.TarFile.extract
|
||||
tarfile.TarFile.extractall
|
||||
tarfile.TarFile.extraction_filter
|
||||
tarfile.TarInfo.replace
|
||||
tarfile.__all__
|
||||
tarfile.data_filter
|
||||
tarfile.fully_trusted_filter
|
||||
tarfile.tar_filter
|
||||
tempfile.NamedTemporaryFile
|
||||
token.EXCLAMATION
|
||||
token.FSTRING_END
|
||||
token.FSTRING_MIDDLE
|
||||
token.FSTRING_START
|
||||
token.__all__
|
||||
tokenize.EXCLAMATION
|
||||
tokenize.FSTRING_END
|
||||
tokenize.FSTRING_MIDDLE
|
||||
tokenize.FSTRING_START
|
||||
tokenize.__all__
|
||||
turtle.RawTurtle.teleport
|
||||
turtle.TNavigator.teleport
|
||||
turtle.TPen.teleport
|
||||
turtle.__all__
|
||||
turtle.teleport
|
||||
types.AsyncGeneratorType.ag_suspended
|
||||
typing.ParamSpec.__mro_entries__
|
||||
typing.ParamSpecArgs.__mro_entries__
|
||||
typing.ParamSpecKwargs.__mro_entries__
|
||||
typing.SupportsAbs.__type_params__
|
||||
typing.SupportsRound.__type_params__
|
||||
typing.TypeVar.__mro_entries__
|
||||
typing.TypeVarTuple.__mro_entries__
|
||||
typing._ProtocolMeta.__init__
|
||||
typing.__all__
|
||||
typing.override
|
||||
typing_extensions.Protocol
|
||||
typing_extensions.SupportsAbs.__type_params__
|
||||
typing_extensions.SupportsRound.__type_params__
|
||||
unittest.TestLoader.loadTestsFromModule
|
||||
unittest.TestProgram.__init__
|
||||
unittest.TestResult.addDuration
|
||||
unittest.TextTestResult.__init__
|
||||
unittest.TextTestRunner.__init__
|
||||
unittest.load_tests
|
||||
unittest.loader.TestLoader.loadTestsFromModule
|
||||
unittest.main.TestProgram.__init__
|
||||
unittest.mock.NonCallableMock.__new__
|
||||
unittest.result.TestResult.addDuration
|
||||
unittest.runner.TextTestResult.__init__
|
||||
unittest.runner.TextTestRunner.__init__
|
||||
urllib.request.AbstractHTTPHandler.__init__
|
||||
urllib.request.HTTPSHandler.__init__
|
||||
uuid.main
|
||||
webbrowser.Galeon
|
||||
webbrowser.Grail
|
||||
zipfile.Path.glob
|
||||
zipfile.Path.is_symlink
|
||||
zipfile.Path.match
|
||||
zipfile.Path.relative_to
|
||||
zipfile.Path.rglob
|
||||
zoneinfo.ZoneInfo.from_file
|
||||
|
||||
array.array.__release_buffer__
|
||||
builtins.bytearray.__release_buffer__
|
||||
builtins.memoryview.__release_buffer__
|
||||
mmap.mmap.__release_buffer__
|
||||
pickle.PickleBuffer.__release_buffer__
|
||||
|
||||
# Errors that also existed on Python 3.11
|
||||
_collections_abc.AsyncGenerator.ag_await
|
||||
_collections_abc.AsyncGenerator.ag_code
|
||||
_collections_abc.AsyncGenerator.ag_frame
|
||||
_collections_abc.AsyncGenerator.ag_running
|
||||
_collections_abc.AsyncIterable.__class_getitem__
|
||||
_collections_abc.Awaitable.__class_getitem__
|
||||
_collections_abc.Container.__class_getitem__
|
||||
_collections_abc.ItemsView.__reversed__
|
||||
_collections_abc.Iterable.__class_getitem__
|
||||
_collections_abc.KeysView.__reversed__
|
||||
_collections_abc.MappingView.__class_getitem__
|
||||
_collections_abc.ValuesView.__reversed__
|
||||
_csv.Reader
|
||||
_csv.Writer
|
||||
argparse._MutuallyExclusiveGroup.add_mutually_exclusive_group
|
||||
configparser.LegacyInterpolation.__init__
|
||||
enum.Enum.__init__
|
||||
# TODO: The stub for enum.auto is nothing like the implementation
|
||||
enum.auto.__init__
|
||||
enum.auto.value
|
||||
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
|
||||
ftplib.FTP.trust_server_pasv_ipv4_address
|
||||
functools.cached_property.__set__ # Stub is a white lie; see comments in the stub
|
||||
functools._lru_cache_wrapper.cache_parameters # Cannot be detected statically
|
||||
ipaddress.IPv4Interface.hostmask
|
||||
ipaddress.IPv6Interface.hostmask
|
||||
ipaddress._BaseNetwork.broadcast_address
|
||||
ipaddress._BaseNetwork.hostmask
|
||||
multiprocessing.managers.SharedMemoryServer.create
|
||||
multiprocessing.managers.SharedMemoryServer.list_segments
|
||||
multiprocessing.managers.SharedMemoryServer.public
|
||||
multiprocessing.managers.SharedMemoryServer.release_segment
|
||||
multiprocessing.managers.SharedMemoryServer.shutdown
|
||||
multiprocessing.managers.SharedMemoryServer.track_segment
|
||||
multiprocessing.spawn._main
|
||||
# platform.uname_result's processor field is now dynamically made to exist
|
||||
platform.uname_result.__match_args__
|
||||
platform.uname_result.__new__
|
||||
platform.uname_result.processor
|
||||
queue.SimpleQueue.__init__
|
||||
sys.UnraisableHookArgs # Not exported from sys
|
||||
tkinter._VersionInfoType.__doc__
|
||||
typing.NewType.__call__
|
||||
typing.NewType.__mro_entries__
|
||||
weakref.WeakValueDictionary.update
|
||||
|
||||
# Runtime has *args, **kwargs, but will error if any are supplied
|
||||
unittest.TestCase.__init_subclass__
|
||||
unittest.case.TestCase.__init_subclass__
|
||||
|
||||
# ==========
|
||||
# Related to positional-only arguments
|
||||
# ==========
|
||||
|
||||
# These are not positional-only at runtime, but we treat them
|
||||
# as positional-only to match dict.
|
||||
_collections_abc.MutableMapping.pop
|
||||
_collections_abc.MutableMapping.setdefault
|
||||
|
||||
# typing.IO uses positional-or-keyword arguments, but in the stubs we prefer
|
||||
# to mark these as positional-only for compatibility with existing sub-classes.
|
||||
typing.BinaryIO.write
|
||||
typing.IO.read
|
||||
typing.IO.readline
|
||||
typing.IO.readlines
|
||||
typing.IO.seek
|
||||
typing.IO.truncate
|
||||
typing.IO.write
|
||||
typing.IO.writelines
|
||||
|
||||
# positional-only complaints caused by differences between typing aliases and the "real" classes in the stdlib
|
||||
_collections_abc.Coroutine.send
|
||||
_collections_abc.Coroutine.throw
|
||||
_collections_abc.Generator.send
|
||||
_collections_abc.Generator.throw
|
||||
|
||||
# typing.SupportsRound.__round__ # pos-or-kw at runtime, but we pretend it's pos-only in the stub so that e.g. float.__round__ satisfies the interface
|
||||
types.DynamicClassAttribute..* # In the stub we pretend it's an alias for property, but it has positional-only differences
|
||||
|
||||
# These three have a pos-or-keyword first parameter at runtime, but deliberately have a pos-only first parameter in the stub. #6812
|
||||
posixpath.join
|
||||
ntpath.join
|
||||
os.path.join
|
||||
|
||||
# ==========
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
# ==========
|
||||
|
||||
_collections_abc.AsyncGenerator.athrow # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also.
|
||||
_weakref.ProxyType.__reversed__ # Doesn't really exist
|
||||
builtins.property.__set_name__ # Doesn't actually exist
|
||||
hmac.new # Stub is a white lie; see comments in the stub
|
||||
http.HTTPMethod.description # mutable instance attribute at runtime but we pretend it's a property
|
||||
pickle.Pickler.reducer_override # implemented in C pickler
|
||||
types.GenericAlias.__call__ # Would be complicated to fix properly, Any could silence problems. #6392
|
||||
types.GenericAlias.__getattr__
|
||||
types.GenericAlias.__mro_entries__
|
||||
weakref.ProxyType.__reversed__ # Doesn't really exist
|
||||
inspect._ParameterKind.description # Still exists, but stubtest can't see it
|
||||
asyncio.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them
|
||||
asyncio.base_events.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them
|
||||
|
||||
# C signature is broader than what is actually accepted
|
||||
ast.Bytes.__new__
|
||||
ast.Ellipsis.__new__
|
||||
ast.ExtSlice.__new__
|
||||
ast.Index.__new__
|
||||
ast.NameConstant.__new__
|
||||
ast.Num.__new__
|
||||
ast.Str.__new__
|
||||
asyncio.futures.Future.__init__
|
||||
asyncio.Future.__init__
|
||||
contextvars.Context.__init__
|
||||
queue.SimpleQueue.__init__
|
||||
xml.etree.ElementTree.XMLParser.__init__
|
||||
xml.etree.cElementTree.XMLParser.__init__
|
||||
|
||||
os.PathLike.__class_getitem__ # PathLike is a protocol; we don't expect all PathLike classes to implement class_getitem
|
||||
types.CodeType.replace # stubtest thinks default values are None but None doesn't work at runtime
|
||||
_ast.ImportFrom.level # None on the class, but never None on instances
|
||||
ast.ImportFrom.level # None on the class, but never None on instances
|
||||
|
||||
# Treated an alias of a typing class in the stubs,
|
||||
# they are generic to type checkers anyway.
|
||||
contextlib.AbstractAsyncContextManager.__class_getitem__
|
||||
contextlib.AbstractContextManager.__class_getitem__
|
||||
|
||||
# Super-special typing primitives
|
||||
typing\._SpecialForm.*
|
||||
typing._TypedDict.__delitem__
|
||||
typing._TypedDict.__ior__
|
||||
typing._TypedDict.__or__
|
||||
typing._TypedDict.copy
|
||||
typing._TypedDict.items
|
||||
typing._TypedDict.keys
|
||||
typing._TypedDict.pop
|
||||
typing._TypedDict.setdefault
|
||||
typing._TypedDict.update
|
||||
typing._TypedDict.values
|
||||
typing_extensions\.Final
|
||||
typing\.NamedTuple
|
||||
typing\.LiteralString
|
||||
typing\.Annotated
|
||||
|
||||
# White lies around defaults
|
||||
dataclasses.KW_ONLY
|
||||
@@ -14,6 +14,7 @@ asyncio.WriteTransport.get_write_buffer_limits # Documented. Exists in subclass
|
||||
builtins.float.__set_format__ # Internal method for CPython test suite
|
||||
builtins.str.maketrans
|
||||
builtins.input # Incorrect default value in text signature, fixed in 3.10
|
||||
bz2.BZ2Decompressor.__init__ # function does not accept parameters but C signature is set
|
||||
cmath.log
|
||||
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also.
|
||||
collections.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7491
|
||||
@@ -26,13 +27,15 @@ collections.AsyncGenerator.ag_running
|
||||
collections.ByteString # see comments in py3_common.txt
|
||||
collections.Callable
|
||||
collections.Mapping.__reversed__ # Set to None at runtime for a better error message
|
||||
configparser.ParsingError.filename
|
||||
contextvars.ContextVar.get
|
||||
distutils.command.bdist_wininst # see #6523
|
||||
dummy_threading.Condition.acquire
|
||||
dummy_threading.Condition.release
|
||||
dummy_threading.Event.isSet
|
||||
dummy_threading.local.__new__
|
||||
enum.Enum._generate_next_value_
|
||||
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
|
||||
importlib.abc.Finder.find_module
|
||||
inspect.Signature.from_builtin # Removed in 3.11, can add if someone needs this
|
||||
inspect.Signature.from_function # Removed in 3.11, can add if someone needs this
|
||||
ipaddress._BaseNetwork.__init__
|
||||
@@ -49,6 +52,13 @@ uuid.UUID.int
|
||||
uuid.UUID.is_safe
|
||||
xml.etree.ElementTree.TreeBuilder.start # Discrepancy between Python and C modules, fixed in bpo-39495
|
||||
xml.etree.cElementTree.TreeBuilder.start # bpo-39495
|
||||
typing_extensions\.get_original_bases
|
||||
|
||||
# Exist at runtime for internal reasons, no need to put them in the stub
|
||||
typing_extensions\.TypeAliasType\.__call__
|
||||
typing_extensions\.TypeAliasType\.__init_subclass__
|
||||
# We call them read-only properties, runtime implementation is slightly different
|
||||
typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
|
||||
|
||||
collections.Coroutine.cr_await
|
||||
collections.Coroutine.cr_code
|
||||
@@ -160,3 +170,17 @@ typing_extensions\.reveal_type
|
||||
|
||||
# Doesn't exist at runtime
|
||||
typing\.Protocol
|
||||
|
||||
# We lie about the existence of these methods
|
||||
.*.__buffer__
|
||||
.*.__release_buffer__
|
||||
|
||||
# Removed in 3.12
|
||||
distutils\..*
|
||||
asyncore.dispatcher.addr
|
||||
asyncore.dispatcher.handle_accepted
|
||||
asynchat.async_chat.encoding
|
||||
asynchat.async_chat.use_encoding
|
||||
asynchat.find_prefix_at_end
|
||||
pkgutil.ImpImporter\..*
|
||||
pkgutil.ImpLoader\..*
|
||||
|
||||
@@ -21,6 +21,7 @@ asyncio.transports.WriteTransport.get_write_buffer_limits # Documented. Exists
|
||||
asyncio.WriteTransport.get_write_buffer_limits # Documented. Exists in subclasses, but not in WriteTransport itself
|
||||
builtins.float.__set_format__ # Internal method for CPython test suite
|
||||
builtins.input # Incorrect default value in text signature, fixed in 3.10
|
||||
bz2.BZ2Decompressor.__init__ # function does not accept parameters but C signature is set
|
||||
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also.
|
||||
collections.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7491
|
||||
collections.AsyncGenerator.aclose # async at runtime, deliberately not in the stub, see #7491
|
||||
@@ -35,18 +36,20 @@ collections.ItemsView.__reversed__
|
||||
collections.KeysView.__reversed__
|
||||
collections.ValuesView.__reversed__
|
||||
collections.Mapping.__reversed__ # Set to None at runtime for a better error message
|
||||
distutils.command.bdist_wininst # see #6523
|
||||
configparser.ParsingError.filename
|
||||
dummy_threading.Condition.acquire
|
||||
dummy_threading.Condition.release
|
||||
dummy_threading.Event.isSet
|
||||
dummy_threading.Thread.native_id
|
||||
dummy_threading.local.__new__
|
||||
enum.Enum._generate_next_value_
|
||||
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
|
||||
ftplib.FTP.trust_server_pasv_ipv4_address # Dangerous to use, intentionally undocumented, intentionally missing from typeshed. #6154
|
||||
functools.cached_property.__set__ # Stub is a white lie; see comments in the stub
|
||||
gettext.install # codeset default value is ['unspecified'] so can't be specified
|
||||
gettext.translation # codeset default value is ['unspecified'] so can't be specified
|
||||
hmac.new # Stub is a white lie; see comments in the stub
|
||||
importlib.abc.Finder.find_module
|
||||
inspect.Signature.from_builtin # Removed in 3.11, can add if someone needs this
|
||||
inspect.Signature.from_function # Removed in 3.11, can add if someone needs this
|
||||
ipaddress.IPv4Interface.hostmask
|
||||
@@ -68,6 +71,13 @@ xml.etree.ElementTree.TreeBuilder.start # Discrepancy between Python and C modu
|
||||
xml.etree.ElementTree.XMLParser.__init__ # Defined in C so has general signature
|
||||
xml.etree.cElementTree.TreeBuilder.start # bpo-39495
|
||||
xml.etree.cElementTree.XMLParser.__init__ # Defined in C so has general signature
|
||||
typing_extensions\.get_original_bases
|
||||
|
||||
# Exist at runtime for internal reasons, no need to put them in the stub
|
||||
typing_extensions\.TypeAliasType\.__call__
|
||||
typing_extensions\.TypeAliasType\.__init_subclass__
|
||||
# We call them read-only properties, runtime implementation is slightly different
|
||||
typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
|
||||
|
||||
collections.Coroutine.cr_await
|
||||
collections.Coroutine.cr_code
|
||||
@@ -178,3 +188,17 @@ typing_extensions\.reveal_type
|
||||
|
||||
# Super-special typing primitives
|
||||
typing_extensions\.Final
|
||||
|
||||
# We lie about the existence of these methods
|
||||
.*.__buffer__
|
||||
.*.__release_buffer__
|
||||
|
||||
# Removed in 3.12
|
||||
distutils\..*
|
||||
asyncore.dispatcher.addr
|
||||
asyncore.dispatcher.handle_accepted
|
||||
asynchat.async_chat.encoding
|
||||
asynchat.async_chat.use_encoding
|
||||
asynchat.find_prefix_at_end
|
||||
pkgutil.ImpImporter\..*
|
||||
pkgutil.ImpLoader\..*
|
||||
|
||||
@@ -19,6 +19,7 @@ asyncio.Future.__init__ # Usually initialized from c object
|
||||
asyncio.futures.Future.__init__ # Usually initialized from c object
|
||||
builtins.float.__setformat__ # Internal method for CPython test suite
|
||||
builtins.input # Incorrect default value in text signature, fixed in 3.10
|
||||
bz2.BZ2Decompressor.__init__ # function does not accept parameters but C signature is set
|
||||
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also.
|
||||
collections.AsyncGenerator.__anext__ # async at runtime, deliberately not in the stub, see #7491
|
||||
collections.AsyncGenerator.aclose # async at runtime, deliberately not in the stub, see #7491
|
||||
@@ -33,15 +34,17 @@ collections.Mapping.__reversed__ # Set to None at runtime for a better error me
|
||||
collections.ItemsView.__reversed__
|
||||
collections.KeysView.__reversed__
|
||||
collections.ValuesView.__reversed__
|
||||
configparser.ParsingError.filename
|
||||
contextlib.AbstractAsyncContextManager.__class_getitem__
|
||||
contextlib.AbstractContextManager.__class_getitem__
|
||||
distutils.command.bdist_wininst # see #6523
|
||||
enum.Enum._generate_next_value_
|
||||
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
|
||||
functools.cached_property.__set__ # Stub is a white lie; see comments in the stub
|
||||
functools._lru_cache_wrapper.cache_parameters # Cannot be detected statically
|
||||
gettext.install
|
||||
gettext.translation
|
||||
hmac.new # Stub is a white lie; see comments in the stub
|
||||
importlib.abc.Finder.find_module
|
||||
inspect.Signature.from_builtin # Removed in 3.11, can add if someone needs this
|
||||
inspect.Signature.from_function # Removed in 3.11, can add if someone needs this
|
||||
ipaddress.IPv4Interface.hostmask
|
||||
@@ -72,6 +75,13 @@ typing._TypedDict.update
|
||||
typing._TypedDict.values
|
||||
weakref.ProxyType.__reversed__ # Doesn't really exist
|
||||
weakref.WeakValueDictionary.update
|
||||
typing_extensions\.get_original_bases
|
||||
|
||||
# Exist at runtime for internal reasons, no need to put them in the stub
|
||||
typing_extensions\.TypeAliasType\.__call__
|
||||
typing_extensions\.TypeAliasType\.__init_subclass__
|
||||
# We call them read-only properties, runtime implementation is slightly different
|
||||
typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
|
||||
|
||||
collections.Coroutine.cr_await
|
||||
collections.Coroutine.cr_code
|
||||
@@ -176,3 +186,17 @@ typing_extensions\.reveal_type
|
||||
typing_extensions\.Final
|
||||
typing\.NamedTuple
|
||||
typing\.Annotated
|
||||
|
||||
# We lie about the existence of these methods
|
||||
.*.__buffer__
|
||||
.*.__release_buffer__
|
||||
|
||||
# Removed in 3.12
|
||||
distutils\..*
|
||||
asyncore.dispatcher.addr
|
||||
asyncore.dispatcher.handle_accepted
|
||||
asynchat.async_chat.encoding
|
||||
asynchat.async_chat.use_encoding
|
||||
asynchat.find_prefix_at_end
|
||||
pkgutil.ImpImporter\..*
|
||||
pkgutil.ImpLoader\..*
|
||||
|
||||
@@ -33,9 +33,6 @@ _weakref.ReferenceType.__call__ # C function default annotation is wrong
|
||||
_weakref.ReferenceType.__init__ # Runtime defines __new__ but stubtest thinks __init__ is also defined.
|
||||
argparse.ArgumentParser.__init__ # stubtest doesn't recognise the runtime default (a class) as being compatible with a callback protocol (the stub annotation)
|
||||
argparse.Namespace.__getattr__ # The whole point of this class is its attributes are dynamic
|
||||
asynchat.async_chat.encoding # Removal planned for 3.12, can add if someone needs this
|
||||
asynchat.async_chat.use_encoding # Removal planned for 3.12, can add if someone needs this
|
||||
asynchat.find_prefix_at_end # Removal planned for 3.12, can add if someone needs this
|
||||
# Condition functions are exported in __init__
|
||||
asyncio.Condition.acquire
|
||||
asyncio.Condition.locked
|
||||
@@ -53,7 +50,6 @@ builtins.function
|
||||
builtins.memoryview.__contains__ # C type that implements __getitem__
|
||||
builtins.object.__init__ # default C signature is incorrect
|
||||
builtins.type.__dict__ # read-only but not actually a property; stubtest thinks it's a mutable attribute.
|
||||
bz2.BZ2Decompressor.__init__ # function does not accept parameters but C signature is set
|
||||
# The following CodecInfo properties are added in __new__
|
||||
codecs.CodecInfo.decode
|
||||
codecs.CodecInfo.encode
|
||||
@@ -87,12 +83,6 @@ ctypes.memmove # CFunctionType
|
||||
ctypes.memset # CFunctionType
|
||||
ctypes.string_at # docstring argument name is wrong
|
||||
ctypes.wstring_at # docstring argument name is wrong
|
||||
distutils.core.Distribution.get_command_obj # 1 used for True
|
||||
distutils.command.bdist_packager # It exists in docs as package name but not in code except as a mention in a comment.
|
||||
distutils.dist.Distribution.get_command_obj # 1 used for True
|
||||
distutils.version.Version._cmp # class should have declared this
|
||||
distutils.version.Version.parse # class should have declared this
|
||||
enum.Enum._generate_next_value_
|
||||
hashlib.sha3_\d+ # Can be a class or a built-in function, can't be subclassed at runtime
|
||||
hashlib.shake_\d+ # Can be a class or a built-in function, can't be subclassed at runtime
|
||||
http.HTTPStatus.description # set in __new__
|
||||
@@ -239,13 +229,11 @@ bz2.BZ2File.peek
|
||||
codecs.StreamReader.charbuffertype
|
||||
codecs.StreamReader.seek
|
||||
codecs.StreamWriter.seek
|
||||
configparser.ParsingError.filename
|
||||
configparser.RawConfigParser.converters
|
||||
ctypes.ARRAY
|
||||
ctypes.SetPointerType
|
||||
ctypes.c_voidp
|
||||
ctypes.util.test
|
||||
importlib.abc.Finder.find_module
|
||||
lib2to3.pgen2.grammar.Grammar.loads
|
||||
mimetypes.MimeTypes.add_type
|
||||
modulefinder.test
|
||||
@@ -400,7 +388,6 @@ ssl.PROTOCOL_SSLv3
|
||||
ssl.RAND_egd
|
||||
|
||||
collections.abc.* # Types are re-exported from _collections_abc, so errors should be fixed there
|
||||
distutils.command.check.SilentReporter # only defined if docutils in installed
|
||||
hmac.HMAC.blocksize # use block_size instead
|
||||
pickle.Pickler.memo # undocumented implementation detail, has different type in C/Python implementations
|
||||
pickle.Unpickler.memo # undocumented implementation detail, has different type in C/Python implementations
|
||||
@@ -459,19 +446,11 @@ typing\.AbstractSet
|
||||
.*\.__protocol_attrs__
|
||||
.*\.__callable_proto_members_only__
|
||||
|
||||
# Exist at runtime for internal reasons, no need to put them in the stub
|
||||
typing_extensions\.TypeAliasType\.__call__
|
||||
typing_extensions\.TypeAliasType\.__init_subclass__
|
||||
|
||||
typing_extensions.NewType.__mro_entries__ # just exists for an error message
|
||||
|
||||
# We call them read-only properties, runtime implementation is slightly different
|
||||
typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
|
||||
|
||||
# https://github.com/python/mypy/issues/15302
|
||||
typing_extensions.NewType.__call__
|
||||
typing_extensions\.deprecated
|
||||
typing_extensions\.get_original_bases
|
||||
typing_extensions\.override
|
||||
|
||||
# These are abstract properties at runtime,
|
||||
@@ -533,24 +512,6 @@ turtle.ScrolledCanvas.select_item
|
||||
xml.dom.minidom.StringTypes
|
||||
|
||||
# __all__-related weirdness (see #6523)
|
||||
distutils.command.build
|
||||
distutils.command.build_py
|
||||
distutils.command.build_ext
|
||||
distutils.command.build_clib
|
||||
distutils.command.build_scripts
|
||||
distutils.command.clean
|
||||
distutils.command.install
|
||||
distutils.command.install_lib
|
||||
distutils.command.install_headers
|
||||
distutils.command.install_scripts
|
||||
distutils.command.install_data
|
||||
distutils.command.sdist
|
||||
distutils.command.register
|
||||
distutils.command.bdist
|
||||
distutils.command.bdist_dumb
|
||||
distutils.command.bdist_rpm
|
||||
distutils.command.check
|
||||
distutils.command.upload
|
||||
email.base64mime
|
||||
email.charset
|
||||
email.encoders
|
||||
@@ -568,29 +529,6 @@ xml.dom
|
||||
xml.etree
|
||||
xml.sax
|
||||
|
||||
# Dynamically created
|
||||
distutils.(dist|core).Distribution.get_name
|
||||
distutils.(dist|core).Distribution.get_version
|
||||
distutils.(dist|core).Distribution.get_fullname
|
||||
distutils.(dist|core).Distribution.get_author
|
||||
distutils.(dist|core).Distribution.get_author_email
|
||||
distutils.(dist|core).Distribution.get_maintainer
|
||||
distutils.(dist|core).Distribution.get_maintainer_email
|
||||
distutils.(dist|core).Distribution.get_contact
|
||||
distutils.(dist|core).Distribution.get_contact_email
|
||||
distutils.(dist|core).Distribution.get_url
|
||||
distutils.(dist|core).Distribution.get_license
|
||||
distutils.(dist|core).Distribution.get_licence
|
||||
distutils.(dist|core).Distribution.get_description
|
||||
distutils.(dist|core).Distribution.get_long_description
|
||||
distutils.(dist|core).Distribution.get_keywords
|
||||
distutils.(dist|core).Distribution.get_platforms
|
||||
distutils.(dist|core).Distribution.get_classifiers
|
||||
distutils.(dist|core).Distribution.get_download_url
|
||||
distutils.(dist|core).Distribution.get_requires
|
||||
distutils.(dist|core).Distribution.get_provides
|
||||
distutils.(dist|core).Distribution.get_obsoletes
|
||||
|
||||
# Platform differences that cannot be captured by the type system
|
||||
os.O_[A-Z_]+
|
||||
socket.AF_DECnet
|
||||
@@ -671,115 +609,3 @@ typing.IO.__iter__ # See https://github.com/python/typeshed/commit/97bc450acd60
|
||||
# As a side effect, this changes the definition of collections.abc.ByteString, which is okay,
|
||||
# because it's not an ABC that makes any sense and was deprecated in 3.12
|
||||
_collections_abc.ByteString
|
||||
|
||||
# ==========
|
||||
# Missing from deprecated modules
|
||||
# Any of these can be added if someone needs them
|
||||
# ==========
|
||||
|
||||
# Removal planned for 3.12
|
||||
asyncore.dispatcher.addr
|
||||
asyncore.dispatcher.handle_accepted
|
||||
# Missing from distutils module (deprecated, to be removed in 3.12)
|
||||
distutils.archive_util.ARCHIVE_FORMATS
|
||||
distutils.archive_util.check_archive_formats
|
||||
distutils.bcppcompiler.BCPPCompiler.compiler_type
|
||||
distutils.bcppcompiler.BCPPCompiler.exe_extension
|
||||
distutils.bcppcompiler.BCPPCompiler.executables
|
||||
distutils.bcppcompiler.BCPPCompiler.obj_extension
|
||||
distutils.bcppcompiler.BCPPCompiler.shared_lib_extension
|
||||
distutils.bcppcompiler.BCPPCompiler.shared_lib_format
|
||||
distutils.bcppcompiler.BCPPCompiler.src_extensions
|
||||
distutils.bcppcompiler.BCPPCompiler.static_lib_extension
|
||||
distutils.bcppcompiler.BCPPCompiler.static_lib_format
|
||||
distutils.ccompiler.CCompiler.EXECUTABLE
|
||||
distutils.ccompiler.CCompiler.SHARED_LIBRARY
|
||||
distutils.ccompiler.CCompiler.SHARED_OBJECT
|
||||
distutils.ccompiler.CCompiler.compiler_type
|
||||
distutils.ccompiler.CCompiler.exe_extension
|
||||
distutils.ccompiler.CCompiler.language_map
|
||||
distutils.ccompiler.CCompiler.language_order
|
||||
distutils.ccompiler.CCompiler.obj_extension
|
||||
distutils.ccompiler.CCompiler.set_executable
|
||||
distutils.ccompiler.CCompiler.shared_lib_extension
|
||||
distutils.ccompiler.CCompiler.shared_lib_format
|
||||
distutils.ccompiler.CCompiler.src_extensions
|
||||
distutils.ccompiler.CCompiler.static_lib_extension
|
||||
distutils.ccompiler.CCompiler.static_lib_format
|
||||
distutils.ccompiler.compiler_class
|
||||
distutils.command.bdist
|
||||
distutils.command.install.*
|
||||
distutils.cygwinccompiler.CygwinCCompiler.compiler_type
|
||||
distutils.cygwinccompiler.CygwinCCompiler.exe_extension
|
||||
distutils.cygwinccompiler.CygwinCCompiler.obj_extension
|
||||
distutils.cygwinccompiler.CygwinCCompiler.shared_lib_extension
|
||||
distutils.cygwinccompiler.CygwinCCompiler.shared_lib_format
|
||||
distutils.cygwinccompiler.CygwinCCompiler.static_lib_extension
|
||||
distutils.cygwinccompiler.CygwinCCompiler.static_lib_format
|
||||
distutils.cygwinccompiler.Mingw32CCompiler.compiler_type
|
||||
distutils.dir_util.ensure_relative
|
||||
distutils.dist.DistributionMetadata.set_classifiers
|
||||
distutils.dist.DistributionMetadata.set_keywords
|
||||
distutils.dist.DistributionMetadata.set_platforms
|
||||
distutils.dist.fix_help_options
|
||||
distutils.extension.read_setup_file
|
||||
distutils.fancy_getopt.FancyGetopt.add_option
|
||||
distutils.fancy_getopt.FancyGetopt.get_attr_name
|
||||
distutils.fancy_getopt.FancyGetopt.has_option
|
||||
distutils.fancy_getopt.FancyGetopt.print_help
|
||||
distutils.fancy_getopt.FancyGetopt.set_aliases
|
||||
distutils.fancy_getopt.FancyGetopt.set_negative_aliases
|
||||
distutils.fancy_getopt.FancyGetopt.set_option_table
|
||||
distutils.msvccompiler.MSVCCompiler.compiler_type
|
||||
distutils.msvccompiler.MSVCCompiler.exe_extension
|
||||
distutils.msvccompiler.MSVCCompiler.executables
|
||||
distutils.msvccompiler.MSVCCompiler.find_exe
|
||||
distutils.msvccompiler.MSVCCompiler.initialize
|
||||
distutils.msvccompiler.MSVCCompiler.obj_extension
|
||||
distutils.msvccompiler.MSVCCompiler.res_extension
|
||||
distutils.msvccompiler.MSVCCompiler.shared_lib_extension
|
||||
distutils.msvccompiler.MSVCCompiler.shared_lib_format
|
||||
distutils.msvccompiler.MSVCCompiler.src_extensions
|
||||
distutils.msvccompiler.MSVCCompiler.static_lib_extension
|
||||
distutils.msvccompiler.MSVCCompiler.static_lib_format
|
||||
distutils.msvccompiler.convert_mbcs
|
||||
distutils.msvccompiler.get_build_architecture
|
||||
distutils.msvccompiler.get_build_version
|
||||
distutils.msvccompiler.normalize_and_reduce_paths
|
||||
distutils.msvccompiler.read_keys
|
||||
distutils.msvccompiler.read_values
|
||||
distutils.sysconfig.build_flags
|
||||
distutils.sysconfig.parse_config_h
|
||||
distutils.sysconfig.parse_makefile
|
||||
distutils.text_file.TextFile.default_options
|
||||
distutils.text_file.TextFile.error
|
||||
distutils.text_file.TextFile.gen_error
|
||||
distutils.unixccompiler.UnixCCompiler.compiler_type
|
||||
distutils.unixccompiler.UnixCCompiler.dylib_lib_extension
|
||||
distutils.unixccompiler.UnixCCompiler.dylib_lib_format
|
||||
distutils.unixccompiler.UnixCCompiler.executables
|
||||
distutils.unixccompiler.UnixCCompiler.obj_extension
|
||||
distutils.unixccompiler.UnixCCompiler.shared_lib_extension
|
||||
distutils.unixccompiler.UnixCCompiler.shared_lib_format
|
||||
distutils.unixccompiler.UnixCCompiler.src_extensions
|
||||
distutils.unixccompiler.UnixCCompiler.static_lib_extension
|
||||
distutils.unixccompiler.UnixCCompiler.static_lib_format
|
||||
distutils.unixccompiler.UnixCCompiler.xcode_stub_lib_extension
|
||||
distutils.unixccompiler.UnixCCompiler.xcode_stub_lib_format
|
||||
distutils.util.grok_environment_error
|
||||
|
||||
# Missing from pkgutil.ImpImporter/ImpLoader (both deprecated since 3.3, can add if someone needs it)
|
||||
pkgutil.ImpImporter.find_module
|
||||
pkgutil.ImpImporter.iter_modules
|
||||
pkgutil.ImpLoader.code
|
||||
pkgutil.ImpLoader.get_code
|
||||
pkgutil.ImpLoader.get_data
|
||||
pkgutil.ImpLoader.get_filename
|
||||
pkgutil.ImpLoader.get_source
|
||||
pkgutil.ImpLoader.is_package
|
||||
pkgutil.ImpLoader.load_module
|
||||
pkgutil.ImpLoader.source
|
||||
|
||||
# We lie about the existence of these methods
|
||||
.*.__buffer__
|
||||
.*.__release_buffer__
|
||||
|
||||
@@ -9,3 +9,7 @@ asyncio.windows_events.IocpProactor.recvfrom
|
||||
asyncio.windows_events.IocpProactor.sendto
|
||||
msvcrt.GetErrorMode
|
||||
subprocess.STARTUPINFO.copy
|
||||
|
||||
# pathlib methods that exist on Windows, but always raise NotImplementedError,
|
||||
# so are omitted from the stub
|
||||
pathlib.WindowsPath.is_mount
|
||||
|
||||
@@ -12,3 +12,7 @@ asyncio.windows_events.IocpProactor.sendto
|
||||
msvcrt.GetErrorMode
|
||||
os.EX_OK
|
||||
subprocess.STARTUPINFO.copy
|
||||
|
||||
# pathlib methods that exist on Windows, but always raise NotImplementedError,
|
||||
# so are omitted from the stub
|
||||
pathlib.WindowsPath.is_mount
|
||||
|
||||
61
tests/stubtest_allowlists/win32-py312.txt
Normal file
61
tests/stubtest_allowlists/win32-py312.txt
Normal file
@@ -0,0 +1,61 @@
|
||||
|
||||
_socket.AF_HYPERV
|
||||
_socket.HV_GUID_BROADCAST
|
||||
_socket.HV_GUID_CHILDREN
|
||||
_socket.HV_GUID_LOOPBACK
|
||||
_socket.HV_GUID_PARENT
|
||||
_socket.HV_GUID_WILDCARD
|
||||
_socket.HV_GUID_ZERO
|
||||
_socket.HV_PROTOCOL_RAW
|
||||
_socket.HVSOCKET_ADDRESS_FLAG_PASSTHRU
|
||||
_socket.HVSOCKET_CONNECT_TIMEOUT
|
||||
_socket.HVSOCKET_CONNECT_TIMEOUT_MAX
|
||||
_socket.HVSOCKET_CONNECTED_SUSPEND
|
||||
_socket.IP_ADD_SOURCE_MEMBERSHIP
|
||||
_socket.IP_BLOCK_SOURCE
|
||||
_socket.IP_DROP_SOURCE_MEMBERSHIP
|
||||
_socket.IP_PKTINFO
|
||||
_socket.IP_UNBLOCK_SOURCE
|
||||
_winapi.CreateFileMapping
|
||||
_winapi.MapViewOfFile
|
||||
_winapi.NeedCurrentDirectoryForExePath
|
||||
_winapi.OpenFileMapping
|
||||
_winapi.VirtualQuerySize
|
||||
asyncio.IocpProactor.finish_socket_func
|
||||
asyncio.IocpProactor.recvfrom
|
||||
asyncio.IocpProactor.recvfrom_into
|
||||
asyncio.IocpProactor.sendto
|
||||
asyncio.windows_events.IocpProactor.finish_socket_func
|
||||
asyncio.windows_events.IocpProactor.recvfrom
|
||||
asyncio.windows_events.IocpProactor.recvfrom_into
|
||||
asyncio.windows_events.IocpProactor.sendto
|
||||
msvcrt.GetErrorMode
|
||||
ntpath.isdir
|
||||
os.EX_OK
|
||||
os.get_blocking
|
||||
os.listdrives
|
||||
os.listmounts
|
||||
os.listvolumes
|
||||
os.path.isdir
|
||||
os.set_blocking
|
||||
os.stat_result.st_birthtime
|
||||
os.stat_result.st_birthtime_ns
|
||||
socket.AddressFamily.AF_HYPERV
|
||||
socket.AF_HYPERV
|
||||
socket.HV_GUID_BROADCAST
|
||||
socket.HV_GUID_CHILDREN
|
||||
socket.HV_GUID_LOOPBACK
|
||||
socket.HV_GUID_PARENT
|
||||
socket.HV_GUID_WILDCARD
|
||||
socket.HV_GUID_ZERO
|
||||
socket.HV_PROTOCOL_RAW
|
||||
socket.HVSOCKET_ADDRESS_FLAG_PASSTHRU
|
||||
socket.HVSOCKET_CONNECT_TIMEOUT
|
||||
socket.HVSOCKET_CONNECT_TIMEOUT_MAX
|
||||
socket.HVSOCKET_CONNECTED_SUSPEND
|
||||
socket.IP_ADD_SOURCE_MEMBERSHIP
|
||||
socket.IP_BLOCK_SOURCE
|
||||
socket.IP_DROP_SOURCE_MEMBERSHIP
|
||||
socket.IP_PKTINFO
|
||||
socket.IP_UNBLOCK_SOURCE
|
||||
subprocess.STARTUPINFO.copy
|
||||
@@ -16,3 +16,4 @@ urllib.parse.parse_qsl
|
||||
# so are omitted from the stub
|
||||
pathlib.WindowsPath.group
|
||||
pathlib.WindowsPath.owner
|
||||
pathlib.WindowsPath.is_mount
|
||||
|
||||
@@ -17,3 +17,4 @@ subprocess.STARTUPINFO.copy
|
||||
# so are omitted from the stub
|
||||
pathlib.WindowsPath.group
|
||||
pathlib.WindowsPath.owner
|
||||
pathlib.WindowsPath.is_mount
|
||||
|
||||
@@ -8,3 +8,7 @@ asyncio.IocpProactor.sendto
|
||||
asyncio.windows_events.IocpProactor.recvfrom
|
||||
asyncio.windows_events.IocpProactor.sendto
|
||||
subprocess.STARTUPINFO.copy
|
||||
|
||||
# pathlib methods that exist on Windows, but always raise NotImplementedError,
|
||||
# so are omitted from the stub
|
||||
pathlib.WindowsPath.is_mount
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
ctypes.GetLastError # Is actually a pointer
|
||||
distutils.msvccompiler.HKEYS
|
||||
locale.[A-Z0-9_]+ # Constants that should be moved to _locale and re-exported conditionally
|
||||
locale.nl_langinfo # Function that should be moved to _locale and re-exported conditionally
|
||||
mmap.PAGESIZE
|
||||
@@ -15,9 +14,6 @@ winsound.SND_APPLICATION
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
_msi.MSIError
|
||||
distutils.msvccompiler.MSVCCompiler.manifest_get_embed_info
|
||||
distutils.msvccompiler.MSVCCompiler.manifest_setup_ldargs
|
||||
distutils.msvccompiler.OldMSVCCompiler
|
||||
msvcrt.SetErrorMode
|
||||
ssl.SSLSocket.recvmsg
|
||||
ssl.SSLSocket.recvmsg_into
|
||||
@@ -73,4 +69,3 @@ pathlib.Path.group
|
||||
# pathlib methods that exist on Windows, but always raise NotImplementedError,
|
||||
# so are omitted from the stub
|
||||
pathlib.Path.is_mount
|
||||
pathlib.WindowsPath.is_mount
|
||||
|
||||
Reference in New Issue
Block a user