aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/resources
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2022-02-01 02:51:50 +0100
committerGravatar Leon Sandøy <[email protected]>2022-02-01 02:51:50 +0100
commit3ad82bfd3f288dcd5eb270caa9f248cf7f97ffc5 (patch)
tree1d95cf8e9c5161de401ca0f7a0d55363189d39ff /pydis_site/apps/resources
parentFix delay when collapsing collapsibles. (diff)
Add type annotations for sort key method.
Diffstat (limited to 'pydis_site/apps/resources')
-rw-r--r--pydis_site/apps/resources/views/resources.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/resources/views/resources.py b/pydis_site/apps/resources/views/resources.py
index 1895f12a..0e448ece 100644
--- a/pydis_site/apps/resources/views/resources.py
+++ b/pydis_site/apps/resources/views/resources.py
@@ -18,7 +18,7 @@ class ResourceView(View):
"""Our curated list of good learning resources."""
@staticmethod
- def _sort_key_disregard_the(tuple_):
+ def _sort_key_disregard_the(tuple_: tuple) -> str:
"""Sort a tuple by its key alphabetically, disregarding 'the' as a prefix."""
name, resource = tuple_
name = name.casefold()