mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Add type annotations for emoji (#1506)
This adds type annotations for [`emoji` library](https://github.com/carpedm20/emoji/)
This commit is contained in:
committed by
Guido van Rossum
parent
3638bc1f52
commit
b2df503cde
18
third_party/2and3/emoji.pyi
vendored
Normal file
18
third_party/2and3/emoji.pyi
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
from typing import Tuple, Pattern, List, Dict, Union
|
||||
|
||||
_DEFAULT_DELIMITER = ... # type: str
|
||||
|
||||
def emojize(
|
||||
string: str,
|
||||
use_aliases: bool=...,
|
||||
delimiters: Tuple[str, str]=...
|
||||
) -> str: ...
|
||||
|
||||
def demojize(
|
||||
string: str,
|
||||
delimiters: Tuple[str, str]=...
|
||||
) -> str: ...
|
||||
|
||||
def get_emoji_regexp() -> Pattern: ...
|
||||
|
||||
def emoji_lis(string: str) -> List[Dict[str, Union[int, str]]]: ...
|
||||
Reference in New Issue
Block a user