Merge branch 'fix-typehint' into 'v5.x'

[FIX] Typehint to account for translation promises in menu hook

See merge request allianceauth/allianceauth!1805
This commit is contained in:
Ariel Rin committed 2026-03-05 03:08:50 +00:00
commit c92bb3e426
1 file changed
+2 -1
+2 -1
View File
@@ -2,6 +2,7 @@
from django.template.loader import render_to_string
from django.utils.functional import Promise
from allianceauth.menu.constants import DEFAULT_MENU_ITEM_ORDER
@@ -29,7 +30,7 @@ class MenuItemHook:
def __init__(
self,
text: str,
text: str | Promise,
classes: str,
url_name: str,
order: int | None = None,