1
0
forked from VimPlug/jedi

use Ellipsis instead of ..., for python 2.7 compatibility

This commit is contained in:
Claude
2016-01-23 23:09:45 +01:00
parent 244c9976e5
commit 079e3bbd28

View File

@@ -36,7 +36,7 @@ def factory(typing_name, indextypes):
class Tuple(Sequence, tuple):
def __getitem__(self, index):
if indextypes[1] == ...:
if indextypes[1] == Ellipsis:
# https://www.python.org/dev/peps/pep-0484/#the-typing-module
# Tuple[int, ...] means a tuple of ints of indetermined length
return indextypes[0]()