aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/uwu.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/fun/uwu.py')
-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 ff6247b0..3608096c 100644
--- a/bot/exts/fun/uwu.py
+++ b/bot/exts/fun/uwu.py
@@ -75,7 +75,7 @@ class Uwu(Cog):
"""Adds stuttering to a string."""
return REGEX_STUTTER.sub(partial(self._stutter_replace, strength=strength), input_string, 0)
- def _stutter_replace(self, match: Callable, strength: float = 0.0) -> str:
+ def _stutter_replace(self, match: re.Match, strength: float = 0.0) -> str:
"""Replaces a single character with a stuttered character."""
match_string = match.string[slice(*match.span())]
if random.random() < strength: