Add __all__ declaration to expose public API for emojize and demojize functions (#17)

This commit is contained in:
2025-05-29 13:41:52 +02:00
committed by GitHub
parent ad98dd9a58
commit 47aa6a3fc1

View File

@@ -66,3 +66,11 @@ def demojize(s: str) -> str:
return f":{REVERSE_EMOJI_MAPPING[emoji]}:"
return EMOJI_CHARS_PATTERN.sub(replace, s)
__all__ = (
"EMOJI_MAPPING",
"REVERSE_EMOJI_MAPPING",
"demojize",
"emojize",
)