Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
fromarrayimportarrayx=array("B")x.clear()# AttributeError: 'array.array' object has no attribute 'clear'
Butarray is aMutableSequence, 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:python/typeshed#11008
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux