# Bug report ### Bug description: ```python from array import array x = array("B") x.clear() # AttributeError: 'array.array' object has no attribute 'clear' ``` But `array` is a `MutableSequence`, so we expect the clear() method to be implemented. If this is correct, then I'm ready to work on PR. Original issue from the typeshed repository: https://github.com/python/typeshed/issues/11008 ### CPython versions tested on: CPython main branch ### Operating systems tested on: Linux <!-- gh-linked-prs --> ### Linked PRs * gh-114919 <!-- /gh-linked-prs -->
Activity
pythongh-114894: add array.array.clear() method
[-]We need to implement array.clear()[/-][+]Add array.clear()[/+]gh-114894: add array.array.clear() method (#114919)
JelleZijlstra commentedon Feb 10, 2024
Thanks for your contribution!
pythongh-114894: add array.array.clear() method (python#114919)