From c56cb34d2b7782097d4e2ba2e2b08081ca7aad55 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Thu, 12 Apr 2018 15:17:56 +0200 Subject: deque.rotate has a default paramter. Close PyCQA/pylint#2013 --- astroid/brain/brain_collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astroid/brain/brain_collections.py b/astroid/brain/brain_collections.py index 48eba485..d0594571 100644 --- a/astroid/brain/brain_collections.py +++ b/astroid/brain/brain_collections.py @@ -36,7 +36,7 @@ def _deque_mock(): def popleft(self): pass def remove(self, value): pass def reverse(self): pass - def rotate(self, n): pass + def rotate(self, n=1): pass def __iter__(self): return self def __reversed__(self): return self.iterable[::-1] def __getitem__(self, index): pass -- cgit v1.2.1