Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
4aca5905
Commit
4aca5905
authored
6 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Extend stubs for emoji_data
parent
ab15537c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gajim/gtk/emoji_data.pyi
+39
-1
39 additions, 1 deletion
gajim/gtk/emoji_data.pyi
with
39 additions
and
1 deletion
gajim/gtk/emoji_data.pyi
+
39
−
1
View file @
4aca5905
# Needs to be here because mypy get stuck on emoji_data.py
# This file is part of Gajim.
#
# Gajim is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; version 3 only.
#
# Gajim is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
from
enum
import
IntEnum
from
collections
import
OrderedDict
from
gi.repository
import
GdkPixbuf
class
Emoji
(
IntEnum
):
...
def
is_emoji
(
codepoints
:
str
)
->
bool
:
...
def
get_emoji_pixbuf
(
codepoints
:
str
)
->
GdkPixbuf
.
Pixbuf
:
...
class
EmojiData
(
OrderedDict
):
...
class
EmojiPixbufs
(
dict
):
...
class
EmojiAsciiData
(
dict
):
...
emoji_pixbufs
=
EmojiPixbufs
()
emoji_ascii_data
=
EmojiAsciiData
()
emoji_data
=
EmojiData
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment