How do I make the following work,
for i in ['int', 'bool']:
x = eval(f'match 1: \
case {i}(): print(1)')
that is I want to run a match-case f-string inside an eval.
How do I make the following work,
for i in ['int', 'bool']:
x = eval(f'match 1: \
case {i}(): print(1)')
that is I want to run a match-case f-string inside an eval.