mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-11-03 12:33:53 +00:00
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:
commit
c92bb3e426
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user