Comment Comment by CreRecombinase Why not just use a dictionary, or why not just leave the type unannotated? If you really can't (or don't want to) say anything about the type, then don't. Python is dynamically typed! parent CreRecombinase 5 months ago