mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 13:32:26 +08:00
Change numerous default values to ... (#1722)
This is the convention, and some default values (e.g. strings) apparently break pytype.
This commit is contained in:
committed by
Matthias Kramm
parent
66821993f6
commit
54dd6ba27c
@@ -180,7 +180,7 @@ if sys.version_info >= (3, 6):
|
||||
def asend(self, value: _T_contra) -> Awaitable[_T_co]: ...
|
||||
|
||||
@abstractmethod
|
||||
def athrow(self, typ: Type[BaseException], val: Optional[BaseException] = None,
|
||||
def athrow(self, typ: Type[BaseException], val: Optional[BaseException] = ...,
|
||||
tb: Any = None) -> Awaitable[_T_co]: ...
|
||||
|
||||
@abstractmethod
|
||||
@@ -214,7 +214,7 @@ class Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]):
|
||||
def __getitem__(self, s: slice) -> Sequence[_T_co]: ...
|
||||
# Mixin methods
|
||||
if sys.version_info >= (3, 5):
|
||||
def index(self, x: Any, start: int = 0, end: int = 0) -> int: ...
|
||||
def index(self, x: Any, start: int = ..., end: int = ...) -> int: ...
|
||||
else:
|
||||
def index(self, x: Any) -> int: ...
|
||||
def count(self, x: Any) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user