@nedbat @bouncing after reading PEP636 I also felt that I would use match statements first with mapping patterns. That somehow feels like a very natural use case and improves readability of the code. Thanks for the awesome example!

#python #matchstatement #pep622 #pep634 #pep636