Skip to content

Commit 5a32966

Browse files
committed
fix type annotation for PY3.8
1 parent daa4ce7 commit 5a32966

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cogs/modmail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import re
33
from datetime import datetime, timezone
44
from itertools import zip_longest
5-
from typing import Optional, Union
5+
from typing import Optional, Union, List, Tuple
66
from types import SimpleNamespace
77

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

252-
def _fix_aliases(self, snippet_being_deleted: str) -> tuple[list[str]]:
252+
def _fix_aliases(self, snippet_being_deleted: str) -> Tuple[List[str]]:
253253
"""
254254
Remove references to the snippet being deleted from aliases.
255255

runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.10.3

0 commit comments

Comments
 (0)