Skip to content

Commit

Permalink
Fix deque.insert() signature (#1272)
Browse files Browse the repository at this point in the history
fixes #1260
  • Loading branch information
belm0 authored Nov 22, 2021
1 parent 96b4872 commit 775c8f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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?
============================
Expand Down
2 changes: 1 addition & 1 deletion astroid/brain/brain_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 775c8f7

Please sign in to comment.