mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -9,11 +9,11 @@ from typing import (Any, BinaryIO, Generic, Iterable, Iterator, List, MutableSeq
|
||||
_T = TypeVar('_T', int, float, Text)
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
typecodes = ... # type: str
|
||||
typecodes: str
|
||||
|
||||
class array(MutableSequence[_T], Generic[_T]):
|
||||
typecode = ... # type: str
|
||||
itemsize = ... # type: int
|
||||
typecode: str
|
||||
itemsize: int
|
||||
def __init__(self, typecode: str,
|
||||
__initializer: Union[bytes, Iterable[_T]] = ...) -> None: ...
|
||||
def append(self, x: _T) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user