|
| None | __init__ (self, str name, Union[str, Style] style="none", Optional[EmojiVariant] variant=None) |
| |
| str | replace (cls, str text) |
| |
|
str | __repr__ (self) |
| |
|
str | __str__ (self) |
| |
|
"RenderResult" | __rich_console__ (self, "Console" console, "ConsoleOptions" options) |
| |
|
|
dict | VARIANTS = {"text": "\uFE0E", "emoji": "\uFE0F"} |
| |
|
|
Dict[str, str] | _repr_mimebundle_ ("ConsoleRenderable" self, Sequence[str] include, Sequence[str] exclude, **Any kwargs) |
| |
◆ __init__()
| None pip._vendor.rich.emoji.Emoji.__init__ |
( |
|
self, |
|
|
str |
name, |
|
|
Union[str, Style] |
style = "none", |
|
|
Optional[EmojiVariant] |
variant = None |
|
) |
| |
A single emoji character.
Args:
name (str): Name of emoji.
style (Union[str, Style], optional): Optional style. Defaults to None.
Raises:
NoEmoji: If the emoji doesn't exist.
◆ replace()
| str pip._vendor.rich.emoji.Emoji.replace |
( |
|
cls, |
|
|
str |
text |
|
) |
| |
Replace emoji markup with corresponding unicode characters.
Args:
text (str): A string with emojis codes, e.g. "Hello :smiley:!"
Returns:
str: A string with emoji codes replaces with actual emoji.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/pip/_vendor/rich/emoji.py