ObservedObserver/streamlit-shadcn-ui

TypeError: 'type' object is not subscriptable

seyirex opened this issue · 2 comments

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

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

choice = ui.select(options=["Apple", "Banana", "Orange"])

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