Skip to content

Commit 3ad82bf

Browse files
committed
Add type annotations for sort key method.
1 parent e07d21a commit 3ad82bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydis_site/apps/resources/views/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ResourceView(View):
1818
"""Our curated list of good learning resources."""
1919

2020
@staticmethod
21-
def _sort_key_disregard_the(tuple_):
21+
def _sort_key_disregard_the(tuple_: tuple) -> str:
2222
"""Sort a tuple by its key alphabetically, disregarding 'the' as a prefix."""
2323
name, resource = tuple_
2424
name = name.casefold()

0 commit comments

Comments
 (0)