mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-05 22:54:17 +08:00
Re-organize directory structure (#4971)
See discussion in #2491 Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
2
stubs/emoji/METADATA.toml
Normal file
2
stubs/emoji/METADATA.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
version = "0.1"
|
||||
python2 = true
|
||||
13
stubs/emoji/emoji/__init__.pyi
Normal file
13
stubs/emoji/emoji/__init__.pyi
Normal file
@@ -0,0 +1,13 @@
|
||||
from .core import (
|
||||
demojize as demojize,
|
||||
emoji_count as emoji_count,
|
||||
emoji_lis as emoji_lis,
|
||||
emojize as emojize,
|
||||
get_emoji_regexp as get_emoji_regexp,
|
||||
)
|
||||
from .unicode_codes import (
|
||||
EMOJI_ALIAS_UNICODE as EMOJI_ALIAS_UNICODE,
|
||||
EMOJI_UNICODE as EMOJI_UNICODE,
|
||||
UNICODE_EMOJI as UNICODE_EMOJI,
|
||||
UNICODE_EMOJI_ALIAS as UNICODE_EMOJI_ALIAS,
|
||||
)
|
||||
9
stubs/emoji/emoji/core.pyi
Normal file
9
stubs/emoji/emoji/core.pyi
Normal file
@@ -0,0 +1,9 @@
|
||||
from typing import Dict, List, Optional, Pattern, Text, Tuple, Union
|
||||
|
||||
_DEFAULT_DELIMITER: 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[Text]: ...
|
||||
def emoji_lis(string: str) -> List[Dict[str, Union[int, str]]]: ...
|
||||
def emoji_count(string: str) -> int: ...
|
||||
6
stubs/emoji/emoji/unicode_codes.pyi
Normal file
6
stubs/emoji/emoji/unicode_codes.pyi
Normal file
@@ -0,0 +1,6 @@
|
||||
from typing import Dict, Text
|
||||
|
||||
EMOJI_ALIAS_UNICODE: Dict[Text, Text]
|
||||
EMOJI_UNICODE: Dict[Text, Text]
|
||||
UNICODE_EMOJI: Dict[Text, Text]
|
||||
UNICODE_EMOJI_ALIAS: Dict[Text, Text]
|
||||
Reference in New Issue
Block a user