Skip to content

Commit b2df503

Browse files
asmfreakgvanrossum
authored andcommitted
Add type annotations for emoji (#1506)
This adds type annotations for [`emoji` library](https://github.com/carpedm20/emoji/)
1 parent 3638bc1 commit b2df503

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

third_party/2and3/emoji.pyi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from typing import Tuple, Pattern, List, Dict, Union
2+
3+
_DEFAULT_DELIMITER = ... # type: str
4+
5+
def emojize(
6+
string: str,
7+
use_aliases: bool=...,
8+
delimiters: Tuple[str, str]=...
9+
) -> str: ...
10+
11+
def demojize(
12+
string: str,
13+
delimiters: Tuple[str, str]=...
14+
) -> str: ...
15+
16+
def get_emoji_regexp() -> Pattern: ...
17+
18+
def emoji_lis(string: str) -> List[Dict[str, Union[int, str]]]: ...

0 commit comments

Comments
 (0)