Skip to content

Commit 7746d0a

Browse files
committed
un-expose fake ellipsis type
1 parent edf82e8 commit 7746d0a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

stdlib/_typeshed/__init__.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,8 @@ else:
184184
@final
185185
class NoneType:
186186
def __bool__(self) -> Literal[False]: ...
187+
188+
# Actually the type of Ellipsis is <type 'ellipsis'>, but since it's
189+
# not exposed anywhere under that name, we make it private here.
190+
@final
191+
class ellipsis: ...

stdlib/builtins.pyi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ from _typeshed import (
1818
SupportsNext,
1919
SupportsRDivMod,
2020
SupportsWrite,
21+
ellipsis
2122
)
2223
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
2324
from types import CodeType, MappingProxyType, TracebackType
@@ -1452,11 +1453,6 @@ def __import__(
14521453
level: int = ...,
14531454
) -> types.ModuleType: ...
14541455

1455-
# Actually the type of Ellipsis is <type 'ellipsis'>, but since it's
1456-
# not exposed anywhere under that name, we make it private here.
1457-
@final
1458-
class ellipsis: ...
1459-
14601456
Ellipsis: ellipsis
14611457

14621458
class BaseException(object):

0 commit comments

Comments
 (0)