diff --git a/stdlib/_typeshed/__init__.pyi b/stdlib/_typeshed/__init__.pyi index 6dd0b38c2e65..4d54cbcf902c 100644 --- a/stdlib/_typeshed/__init__.pyi +++ b/stdlib/_typeshed/__init__.pyi @@ -184,3 +184,8 @@ else: @final class NoneType: def __bool__(self) -> Literal[False]: ... + +# Actually the type of Ellipsis is , but since it's +# not exposed anywhere under that name, we make it private here. +@final +class ellipsis: ... diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 4ccaf52d4c8c..f8f34451c018 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -18,6 +18,7 @@ from _typeshed import ( SupportsNext, SupportsRDivMod, SupportsWrite, + ellipsis ) from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper from types import CodeType, MappingProxyType, TracebackType @@ -1452,11 +1453,6 @@ def __import__( level: int = ..., ) -> types.ModuleType: ... -# Actually the type of Ellipsis is , but since it's -# not exposed anywhere under that name, we make it private here. -@final -class ellipsis: ... - Ellipsis: ellipsis class BaseException(object):