Skip to content

Commit e2d223a

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

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

stdlib/_typeshed/__init__.pyi

+5
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

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import sys
22
import types
33
from _typeshed import (
4+
ellipsis,
45
OpenBinaryMode,
56
OpenBinaryModeReading,
67
OpenBinaryModeUpdating,
@@ -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)