Add type annotations for emoji (#1506)

This adds type annotations for [`emoji` library](https://github.com/carpedm20/emoji/)
This commit is contained in:
Pavel Pletenev
2017-08-04 03:12:50 +04:00
committed by Guido van Rossum
parent 3638bc1f52
commit b2df503cde

18
third_party/2and3/emoji.pyi vendored Normal file
View 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]]]: ...