From 5b00c05c79469bbebbe6eba7118a3849437fbecc Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 8 May 2026 00:29:50 +0200 Subject: [PATCH 1/2] Remove `builtins.ellipsis` pseudo-type This type never existed at runtime, and was replaced by `types.EllipsisType`. --- stdlib/builtins.pyi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 0b87751437db..517c8d1f7cfd 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -1980,10 +1980,6 @@ def __import__( ) -> types.ModuleType: ... def __build_class__(func: Callable[[], CellType | Any], name: str, /, *bases: Any, metaclass: Any = ..., **kwds: Any) -> Any: ... -# Backwards compatibility hack for folks who relied on the ellipsis type -# existing in typeshed in Python 3.9 and earlier. -ellipsis = EllipsisType - Ellipsis: EllipsisType NotImplemented: NotImplementedType From f2b1bd64e57e97ab0581ada096d9755b64c6822c Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Thu, 8 Oct 2026 15:38:20 +0200 Subject: [PATCH 2/2] Remove stubtest allowlist entry --- stdlib/@tests/stubtest_allowlists/common.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 605e4809f793..a02939590f22 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -34,7 +34,6 @@ _frozen_importlib_external.WindowsRegistryFinder.REGISTRY_KEY _frozen_importlib_external.WindowsRegistryFinder.REGISTRY_KEY_DEBUG builtins.OSError.characters_written # GetSetDescriptor that always raises AttributeError -builtins.ellipsis # does not exist at runtime, see https://github.com/python/typeshed/issues/7580 builtins.float.__getformat__ # Internal method for CPython test suite # These super() dunders don't seem to be particularly useful,