Allow the first argument to SequenceMatcher.__init__ to be None. (#566)

This commit is contained in:
Stephen Thorne
2016-09-22 01:06:02 +01:00
committed by Guido van Rossum
parent 9de69f9cf2
commit 4b0efd9343
2 changed files with 4 additions and 4 deletions

View File

@@ -4,13 +4,13 @@
from typing import (
TypeVar, Callable, Iterable, Iterator, List, NamedTuple, Sequence, Tuple,
Generic
Generic, Optional
)
_T = TypeVar('_T')
class SequenceMatcher(Generic[_T]):
def __init__(self, isjunk: Callable[[_T], bool] = ...,
def __init__(self, isjunk: Optional[Callable[[_T], bool]] = ...,
a: Sequence[_T] = ..., b: Sequence[_T] = ...,
autojunk: bool = ...) -> None: ...
def set_seqs(self, a: Sequence[_T], b: Sequence[_T]) -> None: ...