Closed bsnresearcher closed 3 months ago
If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.
Your feedback helps us prioritize which bugs to investigate and address first.
Hey @bsnresearcher, thanks for raising the issue! I have been able to reproduce it. It looks like it was broken by this commit: 45a732c4bfe700fc0d2741a97568f515e16b88e0 It seems like ensure_indexable was preserving the dict structure whereas now something else seems to happen with the dict_items
Streamlit helps my work. Thank you for its modification and provision of Streamlit package!
Checklist
Summary
Streamlit 1.37.0 and 1.37.1 have a bug format_func corruption used dict in st.selectbox
Reproducible Code Example
Steps To Reproduce
Run the above code in streamlit 1.37.0 and 1.37.1.
Expected Behavior
Item labels are generated following the format f"{x[0]} - {x[1]}". That is "Key Num-Vale".
Current Behavior
TypeError: 'int' object is not subscriptable
Is this a regression?
Debug info
Additional Information
No response