mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
difflib: update for py39 (#4067)
Adds default values, the hi params can now be None Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -28,8 +28,10 @@ class SequenceMatcher(Generic[_T]):
|
||||
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: ...
|
||||
def find_longest_match(self, alo: int, ahi: int, blo: int,
|
||||
bhi: int) -> Match: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def find_longest_match(self, alo: int = ..., ahi: Optional[int] = ..., blo: int = ..., bhi: Optional[int] = ...) -> Match: ...
|
||||
else:
|
||||
def find_longest_match(self, alo: int, ahi: int, blo: int, bhi: int) -> Match: ...
|
||||
def get_matching_blocks(self) -> List[Match]: ...
|
||||
def get_opcodes(self) -> List[Tuple[str, int, int, int, int]]: ...
|
||||
def get_grouped_opcodes(self, n: int = ...
|
||||
|
||||
Reference in New Issue
Block a user