mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-15 22:42:00 +08:00
Consistently use '= ...' for optional parameters.
This commit is contained in:
@@ -25,8 +25,8 @@ namedtuple = object()
|
||||
MutableMapping = typing.MutableMapping
|
||||
|
||||
class deque(Sized, Iterable[_T], Reversible[_T], Generic[_T]):
|
||||
def __init__(self, iterable: Iterable[_T] = None,
|
||||
maxlen: int = None) -> None: ...
|
||||
def __init__(self, iterable: Iterable[_T] = ...,
|
||||
maxlen: int = ...) -> None: ...
|
||||
@property
|
||||
def maxlen(self) -> Optional[int]: ...
|
||||
def append(self, x: _T) -> None: ...
|
||||
@@ -73,8 +73,8 @@ class Counter(Dict[_T, int], Generic[_T]):
|
||||
Iterable[_T]]) -> None: ...
|
||||
|
||||
class OrderedDict(Dict[_KT, _VT], Generic[_KT, _VT]):
|
||||
def popitem(self, last: bool = True) -> Tuple[_KT, _VT]: ...
|
||||
def move_to_end(self, key: _KT, last: bool = True) -> None: ...
|
||||
def popitem(self, last: bool = ...) -> Tuple[_KT, _VT]: ...
|
||||
def move_to_end(self, key: _KT, last: bool = ...) -> None: ...
|
||||
|
||||
class defaultdict(Dict[_KT, _VT], Generic[_KT, _VT]):
|
||||
default_factory = ... # type: Callable[[], _VT]
|
||||
|
||||
Reference in New Issue
Block a user