mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Remove raise statements from function bodies (#3355)
While it may eventually be useful to mark the exceptions that can be raised from a function or method, the semantics are currently undefined and unclear.
This commit is contained in:
@@ -220,18 +220,15 @@ class deque(MutableSequence[_T], Generic[_T]):
|
||||
@overload
|
||||
def __getitem__(self, index: int) -> _T: ...
|
||||
@overload
|
||||
def __getitem__(self, s: slice) -> MutableSequence[_T]:
|
||||
raise TypeError
|
||||
def __getitem__(self, s: slice) -> MutableSequence[_T]: ...
|
||||
@overload
|
||||
def __setitem__(self, i: int, x: _T) -> None: ...
|
||||
@overload
|
||||
def __setitem__(self, s: slice, o: Iterable[_T]) -> None:
|
||||
raise TypeError
|
||||
def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...
|
||||
@overload
|
||||
def __delitem__(self, i: int) -> None: ...
|
||||
@overload
|
||||
def __delitem__(self, s: slice) -> None:
|
||||
raise TypeError
|
||||
def __delitem__(self, s: slice) -> None: ...
|
||||
|
||||
def __contains__(self, o: object) -> bool: ...
|
||||
def __reversed__(self) -> Iterator[_T]: ...
|
||||
|
||||
Reference in New Issue
Block a user