diff --git a/ChangeLog b/ChangeLog index 987ed49009..7a5a34cd1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,10 @@ Release date: TBA * Require Python 3.6.2 to use astroid. +* Fix ``deque.insert()`` signature in ``collections`` brain. + + Closes #1260 + What's New in astroid 2.9.0? ============================ diff --git a/astroid/brain/brain_collections.py b/astroid/brain/brain_collections.py index 47699ca39f..46cdef3552 100644 --- a/astroid/brain/brain_collections.py +++ b/astroid/brain/brain_collections.py @@ -61,7 +61,7 @@ def __len__(self): return len(self.iterable) def __copy__(self): return deque(self.iterable) def copy(self): return deque(self.iterable) def index(self, x, start=0, end=0): return 0 - def insert(self, x, i): pass + def insert(self, i, x): pass def __add__(self, other): pass def __iadd__(self, other): pass def __mul__(self, other): pass