From 5f805f60a8ce148482d625b7db7c8d12f580a2cf Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Thu, 11 Jul 2024 23:34:19 +0100 Subject: [PATCH] fix argument error with _small_caps --- src/mutators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mutators.py b/src/mutators.py index a667eba..ff70477 100644 --- a/src/mutators.py +++ b/src/mutators.py @@ -125,6 +125,7 @@ class SmallCaps(TextMutator): def mutate(self, text: str) -> str: return "".join(self._small_cap(char) for char in text) + @staticmethod def _small_cap(char: str) -> str: if "a" <= char <= "z": return chr(ord(char) + 0x1D00 - ord("a")) @@ -229,4 +230,3 @@ r.register("dbl_chars", DoubleCharacters) r.register("backwards_words", BackwardsWords) r.register("shakespear", ShakeSpearean) # r.register("", ) -