Skip to content

Commit 775c8f7

Browse files
authored
Fix deque.insert() signature (#1272)
fixes #1260
1 parent 96b4872 commit 775c8f7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Release date: TBA
1414

1515
* Require Python 3.6.2 to use astroid.
1616

17+
* Fix ``deque.insert()`` signature in ``collections`` brain.
18+
19+
Closes #1260
20+
1721

1822
What's New in astroid 2.9.0?
1923
============================

astroid/brain/brain_collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __len__(self): return len(self.iterable)
6161
def __copy__(self): return deque(self.iterable)
6262
def copy(self): return deque(self.iterable)
6363
def index(self, x, start=0, end=0): return 0
64-
def insert(self, x, i): pass
64+
def insert(self, i, x): pass
6565
def __add__(self, other): pass
6666
def __iadd__(self, other): pass
6767
def __mul__(self, other): pass

0 commit comments

Comments
 (0)