Skip to content

Commit

Permalink
fix type annotation for PY3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjr committed May 3, 2022
1 parent daa4ce7 commit 5a32966
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re
from datetime import datetime, timezone
from itertools import zip_longest
from typing import Optional, Union
from typing import Optional, Union, List, Tuple
from types import SimpleNamespace

import discord
Expand Down Expand Up @@ -249,7 +249,7 @@ async def snippet_add(self, ctx, name: str.lower, *, value: commands.clean_conte
)
return await ctx.send(embed=embed)

def _fix_aliases(self, snippet_being_deleted: str) -> tuple[list[str]]:
def _fix_aliases(self, snippet_being_deleted: str) -> Tuple[List[str]]:
"""
Remove references to the snippet being deleted from aliases.
Expand Down
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.10.3

0 comments on commit 5a32966

Please sign in to comment.