diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index 5a9739336..06e08793d 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -653,7 +653,6 @@ class set(MutableSet[_T], Generic[_T]): def __lt__(self, s: AbstractSet[object]) -> bool: ... def __ge__(self, s: AbstractSet[object]) -> bool: ... def __gt__(self, s: AbstractSet[object]) -> bool: ... - # TODO more set operations class frozenset(AbstractSet[_T], Generic[_T]): @overload diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index f6d33534b..ffe291443 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -503,7 +503,6 @@ class bytearray(MutableSequence[int], ByteString): def __gt__(self, x: bytes) -> bool: ... def __ge__(self, x: bytes) -> bool: ... - class memoryview(Sized, Container[bytes]): format = ... # type: str itemsize = ... # type: int @@ -537,7 +536,6 @@ class memoryview(Sized, Container[bytes]): if sys.version_info >= (3, 5): def hex(self) -> str: ... - class bool(int): def __init__(self, o: object = ...) -> None: ... @overload # type: ignore @@ -720,7 +718,6 @@ class set(MutableSet[_T], Generic[_T]): def __lt__(self, s: AbstractSet[object]) -> bool: ... def __ge__(self, s: AbstractSet[object]) -> bool: ... def __gt__(self, s: AbstractSet[object]) -> bool: ... - # TODO more set operations class frozenset(AbstractSet[_T], Generic[_T]): def __init__(self, iterable: Iterable[_T] = ...) -> None: ... @@ -888,7 +885,6 @@ else: errors: Optional[str] = ..., newline: Optional[str] = ..., closefd: bool = ...) -> IO[Any]: ... def ord(c: Union[str, bytes, bytearray]) -> int: ... -# TODO: in Python 3.2, print() does not support flush def print(*values: Any, sep: str = ..., end: str = ..., file: Optional[IO[str]] = ..., flush: bool = ...) -> None: ... @overload def pow(x: int, y: int) -> Any: ... # The return type can be int or float, depending on y diff --git a/stdlib/3/collections/__init__.pyi b/stdlib/3/collections/__init__.pyi index 5241a65ce..29eed2e32 100644 --- a/stdlib/3/collections/__init__.pyi +++ b/stdlib/3/collections/__init__.pyi @@ -187,7 +187,8 @@ class UserString(Sequence[str]): # methods did not exist). # But in practice it's not worth losing sleep over. class deque(MutableSequence[_T], Generic[_T]): - maxlen = ... # type: Optional[int] # TODO readonly + @property + def maxlen(self) -> Optional[int]: ... def __init__(self, iterable: Iterable[_T] = ..., maxlen: int = ...) -> None: ... def append(self, x: _T) -> None: ...