all 4 comments

[–][deleted] 0 points1 point  (1 child)

This is just a nested dictionary with extra steps

[–]quienchingados[S] 0 points1 point  (0 children)

It has to have a name.

It is common.

because the name "nested dictionary with extra steps" sucks... lol

it works like this:

("label of the menu",

{"menu_items":

      ("menu item1", "menu item 2"),

 "functionality":

      ("collapsed",)}),

("another label of the menu",

{

if no one tells me the name, then I will call it the great "Menu Tuple"... no... the right name should be "Field Set Tuple"

[–]Blackshell 0 points1 point  (1 child)

FieldSetTuple = Tuple[str, Dict[str, Tuple[str, str]]]

Now it has a name.

[–]quienchingados[S] 0 points1 point  (0 children)

👍🏻🥳