TypeError: 'type' object is not subscriptable
seyirex opened this issue · 2 comments
seyirex commented
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
Hi, can your provide your code examples, here is mine in the tutorial that works:
choice = ui.select(options=["Apple", "Banana", "Orange"])
Yukonoshita commented
Change the version of Python, Python lower than 3.9 doesn't support subscript in function declaration.