Skip to content

Commit

Permalink
code is formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
TahirJalilov committed Jun 8, 2023
1 parent 6d8a412 commit a4fd949
Show file tree
Hide file tree
Showing 14 changed files with 20,305 additions and 20,295 deletions.
Binary file added .DS_Store
Binary file not shown.
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
'show_related': False,
'canonical_url': 'https://carpedm20.github.io/emoji/docs/',
'extra_nav_links': {
'GitHub repository' : 'https://github.com/carpedm20/emoji',
'emoji on PyPI' : 'https://pypi.org/project/emoji/',
'All supported emoji' : 'https://carpedm20.github.io/emoji/',
'All emoji on unicode.org' : 'http://www.unicode.org/emoji/charts/full-emoji-list.html',
'Unicode Standard' : 'http://www.unicode.org/reports/tr51/',
'GitHub repository': 'https://github.com/carpedm20/emoji',
'emoji on PyPI': 'https://pypi.org/project/emoji/',
'All supported emoji': 'https://carpedm20.github.io/emoji/',
'All emoji on unicode.org': 'http://www.unicode.org/emoji/charts/full-emoji-list.html',
'Unicode Standard': 'http://www.unicode.org/reports/tr51/',
}
}
6 changes: 3 additions & 3 deletions emoji/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def demojize(
Python is fun 👍
>>> print(emoji.demojize("Python is fun 👍"))
Python is fun :thumbs_up:
>>> print(emoji.demojize(icode is tricky 😯", delimiters=("__", "__")))
>>> print(emoji.demojize("icode is tricky 😯", delimiters=("__", "__")))
Unicode is tricky __hushed_face__
:param string: String contains Unicode characters. MUST BE UNICODE.
Expand Down Expand Up @@ -314,7 +314,7 @@ def emoji_count(string, unique=False):

def is_emoji(string):
"""
Returns True if the string is an emoji and it is "recommended for
Returns True if the string is an emoji, and it is "recommended for
general interchange" by Unicode.org.
"""
return string in unicode_codes.EMOJI_DATA
Expand All @@ -324,7 +324,7 @@ def version(string):
"""
Returns the Emoji Version of the emoji.
See http://www.unicode.org/reports/tr51/#Versioning for more information.
See https://www.unicode.org/reports/tr51/#Versioning for more information.
>>> emoji.version("😁")
0.6
>>> emoji.version(":butterfly:")
Expand Down
8 changes: 4 additions & 4 deletions emoji/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def data_copy(self) -> Dict[str, Any]:
'match_end': self.end
}

def is_zwj(self)-> bool:
def is_zwj(self) -> bool:
"""
Checks if this is a ZWJ-emoji.
Expand All @@ -66,7 +66,7 @@ def is_zwj(self)-> bool:

return _ZWJ in self.emoji

def split(self)-> Union['EmojiMatchZWJ', 'EmojiMatch']:
def split(self) -> Union['EmojiMatchZWJ', 'EmojiMatch']:
"""
Splits a ZWJ-emoji into its constituents.
Expand Down Expand Up @@ -162,7 +162,7 @@ def tokenize(string, keep_zwj: bool) -> Iterator[Token]:
:param string: String contains unicode characters. MUST BE UNICODE.
:param keep_zwj: Should ZWJ-characters (``\\u200D``) that join non-RGI emoji be
skipped or should the be yielded as normal characters
skipped or should be yielded as normal characters
:return: An iterable of tuples :class:`Token` ``(char, char)`` or :class:`Token` ``(chars, EmojiMatch)``
"""

Expand Down Expand Up @@ -243,7 +243,7 @@ def filter_tokens(matches: Iterator[Token], emoji_only: bool, join_emoji: bool)
where ``result`` is either an EmojiMatch or a string.
:param emoji_only: If True, only EmojiMatch are returned in the output.
If False all characters are returned
:param combine_nonrgi_emoji: If True, multiple EmojiMatch are merged into
:param join_emoji: If True, multiple EmojiMatch are merged into
a single :class:`EmojiMatchZWJNonRGI` if they are separated only by a ZWJ.
:return: An iterable of tuples :class:`Token` ``(char, char)``,
Expand Down
Loading

0 comments on commit a4fd949

Please sign in to comment.