diff options
| author | 2022-02-01 02:51:50 +0100 | |
|---|---|---|
| committer | 2022-02-01 02:51:50 +0100 | |
| commit | 3ad82bfd3f288dcd5eb270caa9f248cf7f97ffc5 (patch) | |
| tree | 1d95cf8e9c5161de401ca0f7a0d55363189d39ff | |
| parent | Fix delay when collapsing collapsibles. (diff) | |
Add type annotations for sort key method.
Diffstat (limited to '')
| -rw-r--r-- | pydis_site/apps/resources/views/resources.py | 2 |
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() |