mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 06:45:51 +08:00
fix some TODOs (#1994)
- Made deque.maxlen read-only - We don't support 3.2, so we don't care about signature changes in it - There don't seem to be any missing set operations (I compared the dir() of this class to that of builtins.set)
This commit is contained in:
1 parent
a62c6be905
commit
103056eecf
3 files changed
+2
-6
No files matched your search
@@ -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: ...
|
||||
|
||||
Reference in new issue
Block a user