mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Consistently use '= ...' for optional parameters.
This commit is contained in:
@@ -9,9 +9,9 @@ from typing import (
|
||||
_T = TypeVar('_T')
|
||||
|
||||
class SequenceMatcher(Generic[_T]):
|
||||
def __init__(self, isjunk: Callable[[_T], bool] = None,
|
||||
def __init__(self, isjunk: Callable[[_T], bool] = ...,
|
||||
a: Sequence[_T] = ..., b: Sequence[_T] = ...,
|
||||
autojunk: bool = True) -> None: ...
|
||||
autojunk: bool = ...) -> None: ...
|
||||
def set_seqs(self, a: Sequence[_T], b: Sequence[_T]) -> None: ...
|
||||
def set_seq1(self, a: Sequence[_T]) -> None: ...
|
||||
def set_seq2(self, b: Sequence[_T]) -> None: ...
|
||||
@@ -19,43 +19,43 @@ class SequenceMatcher(Generic[_T]):
|
||||
bhi: int) -> Tuple[int, int, int]: ...
|
||||
def get_matching_blocks(self) -> List[Tuple[int, int, int]]: ...
|
||||
def get_opcodes(self) -> List[Tuple[str, int, int, int, int]]: ...
|
||||
def get_grouped_opcodes(self, n: int = 3
|
||||
def get_grouped_opcodes(self, n: int = ...
|
||||
) -> Iterable[Tuple[str, int, int, int, int]]: ...
|
||||
def ratio(self) -> float: ...
|
||||
def quick_ratio(self) -> float: ...
|
||||
def real_quick_ratio(self) -> float: ...
|
||||
|
||||
def get_close_matches(word: Sequence[_T], possibilities: List[Sequence[_T]],
|
||||
n: int = 3, cutoff: float = 0.6) -> List[Sequence[_T]]: ...
|
||||
n: int = ..., cutoff: float = ...) -> List[Sequence[_T]]: ...
|
||||
|
||||
class Differ:
|
||||
def __init__(self, linejunk: Callable[[str], bool] = None,
|
||||
charjunk: Callable[[str], bool] = None) -> None: ...
|
||||
def __init__(self, linejunk: Callable[[str], bool] = ...,
|
||||
charjunk: Callable[[str], bool] = ...) -> None: ...
|
||||
def compare(self, a: Sequence[str], b: Sequence[str]) -> Iterable[str]: ...
|
||||
|
||||
def IS_LINE_JUNK(str) -> bool: ...
|
||||
def IS_CHARACTER_JUNK(str) -> bool: ...
|
||||
def unified_diff(a: Sequence[str], b: Sequence[str], fromfile: str = '',
|
||||
tofile: str = '', fromfiledate: str = '', tofiledate: str = '',
|
||||
n: int = 3, lineterm: str = '\n') -> Iterable[str]: ...
|
||||
def context_diff(a: Sequence[str], b: Sequence[str], fromfile: str='',
|
||||
tofile: str = '', fromfiledate: str = '', tofiledate: str = '',
|
||||
n: int = 3, lineterm: str = '\n') -> Iterable[str]: ...
|
||||
def unified_diff(a: Sequence[str], b: Sequence[str], fromfile: str = ...,
|
||||
tofile: str = ..., fromfiledate: str = ..., tofiledate: str = ...,
|
||||
n: int = ..., lineterm: str = ...) -> Iterable[str]: ...
|
||||
def context_diff(a: Sequence[str], b: Sequence[str], fromfile: str=...,
|
||||
tofile: str = ..., fromfiledate: str = ..., tofiledate: str = ...,
|
||||
n: int = ..., lineterm: str = ...) -> Iterable[str]: ...
|
||||
def ndiff(a: Sequence[str], b: Sequence[str],
|
||||
linejunk: Callable[[str], bool] = None,
|
||||
charjunk: Callable[[str], bool] = IS_CHARACTER_JUNK
|
||||
linejunk: Callable[[str], bool] = ...,
|
||||
charjunk: Callable[[str], bool] = ...
|
||||
) -> Iterable[str]: ...
|
||||
|
||||
class HtmlDiff(object):
|
||||
def __init__(self, tabsize: int = 8, wrapcolumn: int = None,
|
||||
linejunk: Callable[[str], bool] = None,
|
||||
charjunk: Callable[[str], bool] = IS_CHARACTER_JUNK
|
||||
def __init__(self, tabsize: int = ..., wrapcolumn: int = ...,
|
||||
linejunk: Callable[[str], bool] = ...,
|
||||
charjunk: Callable[[str], bool] = ...
|
||||
) -> None: ...
|
||||
def make_file(self, fromlines: Sequence[str], tolines: Sequence[str],
|
||||
fromdesc: str = '', todesc: str = '', context: bool = False,
|
||||
numlines: int = 5) -> str: ...
|
||||
fromdesc: str = ..., todesc: str = ..., context: bool = ...,
|
||||
numlines: int = ...) -> str: ...
|
||||
def make_table(self, fromlines: Sequence[str], tolines: Sequence[str],
|
||||
fromdesc: str = '', todesc: str = '', context: bool = False,
|
||||
numlines: int = 5) -> str: ...
|
||||
fromdesc: str = ..., todesc: str = ..., context: bool = ...,
|
||||
numlines: int = ...) -> str: ...
|
||||
|
||||
def restore(delta: Iterable[str], which: int) -> Iterable[int]: ...
|
||||
|
||||
Reference in New Issue
Block a user