Implement array.array as a MutableSequence (#1649)

It also improves the type checking of contained values. Some methods
were removed because they are implemented by a base class (i.e.,
*__iter__()*, *__str__()*, and *__contains__()*).  *__hash__()* was
removed because arrays are unhashable types.
This commit is contained in:
hashstat
2017-10-09 10:12:01 -07:00
committed by Matthias Kramm
parent 898299969c
commit 29473745a8
2 changed files with 35 additions and 20 deletions

View File

@@ -8,6 +8,11 @@ stdlib/2/typing.pyi
stdlib/3/builtins.pyi
stdlib/3/typing.pyi
# pytype doesn't yet support "# type: ignore" after decorators, sometimes
# used when overriding methods, especially those inherited from container
# abstract base classes:
stdlib/3/array.pyi
# Because of 'from . import path':
stdlib/2/os/__init__.pyi
stdlib/3/os/__init__.pyi