Rename _ellipsis to ellipsis.

mypy depends on the latter.
This commit is contained in:
Matthias Kramm
2015-10-21 10:54:28 -07:00
parent e158a97ab2
commit 33036f1b3b
2 changed files with 4 additions and 4 deletions

View File

@@ -727,8 +727,8 @@ def locals() -> Dict[str, Any]: ...
# Actually the type of Ellipsis is <type 'ellipsis'>, but since it's
# not exposed anywhere under that name, we make it private here.
class _ellipsis: ...
Ellipsis = ... # type: _ellipsis
class ellipsis: ...
Ellipsis = ... # type: ellipsis
# TODO: buffer support is incomplete; e.g. some_string.startswith(some_buffer) doesn't type check.
AnyBuffer = TypeVar('AnyBuffer', str, unicode, bytearray, buffer)

View File

@@ -714,8 +714,8 @@ def __import__(name: str, globals: Dict[str, Any] = {}, locals: Dict[str, Any] =
# Actually the type of Ellipsis is <type 'ellipsis'>, but since it's
# not exposed anywhere under that name, we make it private here.
class _ellipsis: ...
Ellipsis = ... # type: _ellipsis
class ellipsis: ...
Ellipsis = ... # type: ellipsis
# Exceptions