mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Allow the first argument to SequenceMatcher.__init__ to be None. (#566)
This commit is contained in:
committed by
Guido van Rossum
parent
9de69f9cf2
commit
4b0efd9343
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user