diff options
author | 2021-10-09 20:00:58 +0300 | |
---|---|---|
committer | 2021-10-09 20:00:58 +0300 | |
commit | 42a405d160112ba21f0bcd3b5e1c206c7fb967ef (patch) | |
tree | 01b9d772d9745643eb93930a857a58bf4886e628 | |
parent | Update bot/exts/fun/uwu.py (diff) |
Update bot/exts/fun/uwu.py
Co-authored-by: Bluenix <[email protected]>
-rw-r--r-- | bot/exts/fun/uwu.py | 2 |
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: |