From 42a405d160112ba21f0bcd3b5e1c206c7fb967ef Mon Sep 17 00:00:00 2001 From: Gintautas Kazlauskas <53479485+gitautas@users.noreply.github.com> Date: Sat, 9 Oct 2021 20:00:58 +0300 Subject: Update bot/exts/fun/uwu.py Co-authored-by: Bluenix --- bot/exts/fun/uwu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') 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: -- cgit v1.2.3