Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add bytearray.insert #351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2016
Merged

add bytearray.insert #351

merged 1 commit into from
Jul 11, 2016

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