Repository navigation
refactor: update emoji package to 2.0.0 #8426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
57edd4d
refactor: update emoji package to 2.0.0
e0808e0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d812cd1
fix: remove comments
e56300f
fix: relative imports rather than fully qualified
e3e629d
remove missing at runtime function
d69cc3c
fix: missing at runtime method #2
5b36eb5
fix: feedback RE: Incomplete return, import, and version
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
refactor: update emoji package to 2.0.0
Fix: #8359
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| version = "1.7.*" | ||
| version = "2.0.*" | ||
|
|
||
| [tool.stubtest] | ||
| ignore_missing_stub = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,32 @@ | ||
| from .core import ( | ||
| from emoji.core import ( | ||
| emojize as emojize, | ||
| demojize as demojize, | ||
| distinct_emoji_lis as distinct_emoji_lis, | ||
| distinct_emoji_list as distinct_emoji_list, | ||
| emoji_count as emoji_count, | ||
| emoji_lis as emoji_lis, | ||
| emoji_list as emoji_list, | ||
| emojize as emojize, | ||
| get_emoji_regexp as get_emoji_regexp, | ||
| is_emoji as is_emoji, | ||
| distinct_emoji_list as distinct_emoji_list, | ||
| replace_emoji as replace_emoji, | ||
| version as version, | ||
| is_emoji as is_emoji, | ||
| ) | ||
| from .unicode_codes import ( | ||
| EMOJI_ALIAS_UNICODE_ENGLISH as EMOJI_ALIAS_UNICODE_ENGLISH, | ||
| EMOJI_DATA as EMOJI_DATA, | ||
| EMOJI_UNICODE_ENGLISH as EMOJI_UNICODE_ENGLISH, | ||
| EMOJI_UNICODE_FRENCH as EMOJI_UNICODE_FRENCH, | ||
| EMOJI_UNICODE_GERMAN as EMOJI_UNICODE_GERMAN, | ||
| EMOJI_UNICODE_ITALIAN as EMOJI_UNICODE_ITALIAN, | ||
| EMOJI_UNICODE_PORTUGUESE as EMOJI_UNICODE_PORTUGUESE, | ||
| EMOJI_UNICODE_SPANISH as EMOJI_UNICODE_SPANISH, | ||
| UNICODE_EMOJI_ALIAS_ENGLISH as UNICODE_EMOJI_ALIAS_ENGLISH, | ||
| UNICODE_EMOJI_ENGLISH as UNICODE_EMOJI_ENGLISH, | ||
| UNICODE_EMOJI_FRENCH as UNICODE_EMOJI_FRENCH, | ||
| UNICODE_EMOJI_GERMAN as UNICODE_EMOJI_GERMAN, | ||
| UNICODE_EMOJI_ITALIAN as UNICODE_EMOJI_ITALIAN, | ||
| UNICODE_EMOJI_PORTUGUESE as UNICODE_EMOJI_PORTUGUESE, | ||
| UNICODE_EMOJI_SPANISH as UNICODE_EMOJI_SPANISH, | ||
| ) | ||
| from emoji.unicode_codes import EMOJI_DATA, STATUS, LANGUAGES | ||
|
|
||
| __all__ = [ | ||
| # emoji.core | ||
| "emojize", | ||
| "demojize", | ||
| "emoji_count", | ||
| "emoji_list", | ||
| "distinct_emoji_list", | ||
| "replace_emoji", | ||
| "version", | ||
| "is_emoji", | ||
| # emoji.unicode_codes | ||
| "EMOJI_DATA", | ||
| "STATUS", | ||
| "LANGUAGES", | ||
| ] | ||
| __version__: str | ||
| __author__: str | ||
| __email__: str | ||
| __source__: str | ||
| __license__: str |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,7 @@ | ||
| EMOJI_ALIAS_UNICODE_ENGLISH: dict[str, str] | ||
| EMOJI_UNICODE_ENGLISH: dict[str, str] | ||
| UNICODE_EMOJI_ENGLISH: dict[str, str] | ||
| UNICODE_EMOJI_ALIAS_ENGLISH: dict[str, str] | ||
| from _typeshed import Incomplete | ||
| from .data_dict import EMOJI_DATA as EMOJI_DATA, STATUS as STATUS, LANGUAGES as LANGUAGES | ||
|
|
||
| EMOJI_UNICODE_GERMAN: dict[str, str] | ||
| UNICODE_EMOJI_GERMAN: dict[str, str] | ||
| __all__ = ["get_emoji_unicode_dict", "get_aliases_unicode_dict", "EMOJI_DATA", "STATUS", "LANGUAGES"] | ||
|
|
||
| EMOJI_UNICODE_SPANISH: dict[str, str] | ||
| UNICODE_EMOJI_SPANISH: dict[str, str] | ||
|
|
||
| EMOJI_UNICODE_FRENCH: dict[str, str] | ||
| UNICODE_EMOJI_FRENCH: dict[str, str] | ||
|
|
||
| EMOJI_UNICODE_ITALIAN: dict[str, str] | ||
| UNICODE_EMOJI_ITALIAN: dict[str, str] | ||
|
|
||
| EMOJI_UNICODE_PORTUGUESE: dict[str, str] | ||
| UNICODE_EMOJI_PORTUGUESE: dict[str, str] | ||
|
|
||
| EMOJI_UNICODE: dict[str, dict[str, str]] | ||
| UNICODE_EMOJI: dict[str, dict[str, str]] | ||
|
|
||
| EMOJI_DATA: dict[str, dict[str, str]] | ||
|
|
||
| STATUS: dict[str, int] | ||
| def get_emoji_unicode_dict(lang: str) -> Incomplete: ... | ||
|
kkirsche marked this conversation as resolved.
Outdated
|
||
| def get_aliases_unicode_dict() -> dict[str, str]: ... | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| from _typeshed import Incomplete | ||
|
|
||
| STATUS: Incomplete | ||
| EMOJI_DATA: Incomplete | ||
| __all__ = ["EMOJI_DATA", "STATUS", "LANGUAGES"] | ||
| STATUS: dict[str, int] | ||
| LANGUAGES: list[str] | ||
| EMOJI_DATA: dict[str, dict[str, Incomplete]] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.