mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 02:57:14 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user