@@ -2,9 +2,10 @@ import abc
22from _typeshed import Incomplete
33from abc import ABC , abstractmethod
44from collections .abc import Callable , Sequence
5- from typing import Any , TypeAlias
5+ from typing import Any , TypeAlias , TypeVar
66
77_Token : TypeAlias = Any
8+ _T = TypeVar ("_T" )
89
910ZERO_PERCENT : Incomplete
1011FIFTY_PERCENT : Incomplete
@@ -54,6 +55,6 @@ def get_target(token, base_url): ...
5455def get_content_list (tokens , base_url ): ...
5556def get_content_list_token (token , base_url ): ...
5657def single_keyword (function : Callable [[Incomplete ], Incomplete ]) -> Callable [[Sequence [_Token ]], Incomplete | None ]: ...
57- def single_token (function : Callable [[Incomplete ], Incomplete ]) -> Callable [[Incomplete ], Incomplete ]: ...
58- def comma_separated_list (function : Callable [[Incomplete ], Incomplete ]) -> Callable [[Incomplete ], Incomplete ]: ...
58+ def single_token (function : Callable [[Incomplete ], _T ]) -> Callable [[Incomplete ], _T | None ]: ...
59+ def comma_separated_list (function : Callable [[Incomplete ], _T ]) -> Callable [[Incomplete ], tuple [ _T , ...] | None ]: ...
5960def tokenize (item , function = None , unit = None ): ...
0 commit comments