diff options
| author | 2023-05-06 16:12:32 +0100 | |
|---|---|---|
| committer | 2023-05-09 15:41:50 +0100 | |
| commit | 613840ebcf303e84048d48ace37fb001c1afe687 (patch) | |
| tree | 9acaf0bae0527fe8389483a419b44e06997ca060 /bot/exts/fun/uwu.py | |
| parent | Migrate to ruff (diff) | |
Apply fixes for ruff linting
Co-authored-by: wookie184 <[email protected]>
Co-authored-by: Amrou Bellalouna <[email protected]>
Diffstat (limited to 'bot/exts/fun/uwu.py')
| -rw-r--r-- | bot/exts/fun/uwu.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/fun/uwu.py b/bot/exts/fun/uwu.py index 7a9d55d0..488c68f3 100644 --- a/bot/exts/fun/uwu.py +++ b/bot/exts/fun/uwu.py @@ -30,7 +30,7 @@ EMOJIS = [ "o.O", "-.-", ">w<", - "σωσ", + "σωσ", # noqa: RUF001 "òωó", "ʘwʘ", ":3", @@ -74,7 +74,7 @@ class Emoji: return bot.get_emoji(self.uid) is not None @classmethod - def from_match(cls, match: tuple[str, str, str]) -> t.Optional['Emoji']: + def from_match(cls, match: tuple[str, str, str]) -> t.Optional["Emoji"]: """Creates an Emoji from a regex match tuple.""" if not match or len(match) != 3 or not match[2].isdecimal(): return None @@ -155,7 +155,7 @@ class Uwu(Cog): return input_string @commands.command(name="uwu", aliases=("uwuwize", "uwuify",)) - async def uwu_command(self, ctx: Context, *, text: t.Optional[str] = None) -> None: + async def uwu_command(self, ctx: Context, *, text: str | None = None) -> None: """ Echo an uwuified version the passed text. |