Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'type' object is not subscriptable #19

Open
seyirex opened this issue Dec 13, 2023 · 2 comments
Open

TypeError: 'type' object is not subscriptable #19

seyirex opened this issue Dec 13, 2023 · 2 comments

Comments

@seyirex
Copy link

seyirex commented Dec 13, 2023

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
Copy link
Owner

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

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

@Yukonoshita
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants