Visitar URL original
Remove `builtins.ellipsis` pseudo-type (#15712) · python/typeshed@0d9b192 · GitHub
Skip to content

Commit 0d9b192

Browse files
authored
Remove builtins.ellipsis pseudo-type (#15712)
This type never existed at runtime, and was replaced by `types.EllipsisType`.
1 parent c333d5d commit 0d9b192

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

‎stdlib/@tests/stubtest_allowlists/common.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ _frozen_importlib_external.WindowsRegistryFinder.REGISTRY_KEY
3434
_frozen_importlib_external.WindowsRegistryFinder.REGISTRY_KEY_DEBUG
3535

3636
builtins.OSError.characters_written # GetSetDescriptor that always raises AttributeError
37-
builtins.ellipsis # does not exist at runtime, see https://github.com/python/typeshed/issues/7580
3837
builtins.float.__getformat__ # Internal method for CPython test suite
3938

4039
# These super() dunders don't seem to be particularly useful,

‎stdlib/builtins.pyi‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,10 +2356,6 @@ if sys.version_info >= (3, 15):
23562356

23572357
def __build_class__(func: Callable[[], CellType | Any], name: str, /, *bases: Any, metaclass: Any = ..., **kwds: Any) -> Any: ...
23582358

2359-
# Backwards compatibility hack for folks who relied on the ellipsis type
2360-
# existing in typeshed in Python 3.9 and earlier.
2361-
ellipsis = EllipsisType
2362-
23632359
Ellipsis: EllipsisType
23642360
NotImplemented: NotImplementedType
23652361

0 commit comments

Comments
 (0)