Add cmp to list.sort in python 2.7

This commit is contained in:
Eklavya Sharma
2016-06-19 13:34:45 +05:30
parent 5088131e5a
commit 5962927d3d

View File

@@ -492,7 +492,7 @@ class list(MutableSequence[_T], Generic[_T]):
def insert(self, index: int, object: _T) -> None: ...
def remove(self, object: _T) -> None: ...
def reverse(self) -> None: ...
def sort(self, *, key: Callable[[_T], Any] = ..., reverse: bool = ...) -> None: ...
def sort(self, cmp: Callable[[_T, _T], Any] = ..., key: Callable[[_T], Any] = ..., reverse: bool = ...) -> None: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[_T]: ...