ObservedObserver / streamlit-shadcn-ui

Using shadcn-ui components in streamlit
https://shadcn.streamlit.app/
MIT License
759 stars 57 forks source link

TypeError: 'type' object is not subscriptable #19

Open seyirex opened 10 months ago

seyirex commented 10 months ago

def select_options(options: list[str], x, y, open_status=False, key=None, default_value=None, on_change=None, args=None, kwargs=None): TypeError: 'type' object is not subscriptable

Unable to use component cos of this error

ObservedObserver commented 9 months ago

Hi, can your provide your code examples, here is mine in the tutorial that works:

choice = ui.select(options=["Apple", "Banana", "Orange"])
Yukonoshita commented 5 months ago

Change the version of Python, Python lower than 3.9 doesn't support subscript in function declaration.