mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-17 13:59:45 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Dict, List, Pattern, Text, Tuple, Union
|
||||
from typing import Dict, List, Pattern, Text, Tuple
|
||||
from typing_extensions import Literal
|
||||
|
||||
_DEFAULT_DELIMITER: str
|
||||
@@ -12,6 +12,6 @@ def emojize(
|
||||
) -> str: ...
|
||||
def demojize(string: str, use_aliases: bool = ..., delimiters: Tuple[str, str] = ..., language: str = ...) -> str: ...
|
||||
def get_emoji_regexp(language: str = ...) -> Pattern[Text]: ...
|
||||
def emoji_lis(string: str, language: str = ...) -> List[Dict[str, Union[int, str]]]: ...
|
||||
def emoji_lis(string: str, language: str = ...) -> List[Dict[str, int | str]]: ...
|
||||
def distinct_emoji_lis(string: str) -> List[str]: ...
|
||||
def emoji_count(string: str) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user