Skip to content

Commit

Permalink
style: format code with Autopep8
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 0a3f747 according to the output
from Autopep8.

Details: cvzi#10
  • Loading branch information
deepsource-autofix[bot] authored May 16, 2024
1 parent 0a3f747 commit 0d95263
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions emoji/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def emojize(
variant: Optional[Literal['text_type', 'emoji_type']] = None,
language: str = 'en',
version: Optional[float] = None,
handle_version: Optional[Union[str, Callable[[str, Dict[str, str]], str]]] = None
handle_version: Optional[Union[str,
Callable[[str, Dict[str, str]], str]]] = None
) -> str:
"""
Replace emoji names in a string with Unicode codes.
Expand Down Expand Up @@ -184,7 +185,8 @@ def demojize(
delimiters: Tuple[str, str] = (_DEFAULT_DELIMITER, _DEFAULT_DELIMITER),
language: str = 'en',
version: Optional[float] = None,
handle_version: Optional[Union[str, Callable[[str, Dict[str, str]], str]]] = None
handle_version: Optional[Union[str,
Callable[[str, Dict[str, str]], str]]] = None
) -> str:
"""
Replace Unicode emoji in a string with emoji shortcodes. Useful for storage.
Expand Down
3 changes: 2 additions & 1 deletion emoji/unicode_codes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
]


_EMOJI_UNICODE: Dict[str, Any] = {lang: None for lang in LANGUAGES} # Cache for the language dicts
_EMOJI_UNICODE: Dict[str, Any] = {
lang: None for lang in LANGUAGES} # Cache for the language dicts

_ALIASES_UNICODE: Dict[str, str] = {} # Cache for the aliases dict

Expand Down

0 comments on commit 0d95263

Please sign in to comment.