3
0
Fork 0

fix: fix 'too-many-nested-blocks' for pylint

This commit is contained in:
Lance Edgar 2025-09-01 11:04:31 -05:00
parent 1dd184622f
commit deaf1976f3
2 changed files with 2 additions and 3 deletions

View file

@ -8,4 +8,3 @@ disable=fixme,
duplicate-code,
keyword-arg-before-vararg,
no-member,
too-many-nested-blocks,

View file

@ -229,7 +229,7 @@ class MenuHandler(GenericHandler):
# that somewhat to produce our final menus
self._mark_allowed(request, raw_menus)
final_menus = []
for topitem in raw_menus:
for topitem in raw_menus: # pylint: disable=too-many-nested-blocks
if topitem["allowed"]:
@ -323,7 +323,7 @@ class MenuHandler(GenericHandler):
Traverse the menu set, and mark each item as "allowed" (or
not) based on current user permissions.
"""
for topitem in menus:
for topitem in menus: # pylint: disable=too-many-nested-blocks
if topitem.get("type", "menu") == "link":
topitem["allowed"] = True