aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gintautas Kazlauskas <[email protected]>2021-10-09 20:01:28 +0300
committerGravatar GitHub <[email protected]>2021-10-09 20:01:28 +0300
commitbfec2c1807104c4b311595c9bb7ed21675986788 (patch)
treeb2bfdccf65a62521025ef9084b4a5a7f7c5a95ea
parentUpdate bot/exts/fun/uwu.py (diff)
Update bot/exts/fun/uwu.py
Co-authored-by: ToxicKidz <[email protected]>
-rw-r--r--bot/exts/fun/uwu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/fun/uwu.py b/bot/exts/fun/uwu.py
index a0b664e9..998fd40f 100644
--- a/bot/exts/fun/uwu.py
+++ b/bot/exts/fun/uwu.py
@@ -90,7 +90,7 @@ class Uwu(Cog):
"""Replaces some punctuation with emoticons."""
return REGEX_PUNCTUATION.sub(partial(self._emoji_replace, strength=strength), input_string, 0)
- def _emoji_replace(self, match: Callable, strength: float = 0.0) -> str:
+ def _emoji_replace(self, match: re.Match, strength: float = 0.0) -> str:
"""Replaces a punctuation character with an emoticon."""
match_string = match.string[slice(*match.span())]
if random.random() < strength: