Skip to content

Conversation

@tharvik
Copy link
Contributor

@tharvik tharvik commented Jul 11, 2016

bytearray(10).insert(0, 20)

is a valid python code but mypy shows

/tmp/asd.py:1: error: Cannot instantiate abstract class 'bytearray' with abstract attribute 'insert'

This PR fixes this.

@matthiaskramm matthiaskramm merged commit 9e43288 into python:master Jul 11, 2016
@tharvik tharvik deleted the fix_bytearray branch July 11, 2016 13:40
@JelleZijlstra JelleZijlstra mentioned this pull request Jul 11, 2017
25 tasks
hswong3i pushed a commit to alvistack/python-typeshed that referenced this pull request May 25, 2025
they keep segfaulting and it's nothing to do with us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants