mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Convert namedtuples to class syntax (#3321)
This commit is contained in:
@@ -16,11 +16,10 @@ else:
|
||||
|
||||
_JunkCallback = Union[Callable[[Text], bool], Callable[[str], bool]]
|
||||
|
||||
Match = NamedTuple('Match', [
|
||||
('a', int),
|
||||
('b', int),
|
||||
('size', int),
|
||||
])
|
||||
class Match(NamedTuple):
|
||||
a: int
|
||||
b: int
|
||||
size: int
|
||||
|
||||
class SequenceMatcher(Generic[_T]):
|
||||
def __init__(self, isjunk: Optional[Callable[[_T], bool]] = ...,
|
||||
|
||||
Reference in New Issue
Block a user