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

Feature: Allow Union types #48

Open
2 of 3 tasks
ashvardanian opened this issue Mar 27, 2023 · 0 comments
Open
2 of 3 tasks

Feature: Allow Union types #48

ashvardanian opened this issue Mar 27, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ashvardanian
Copy link
Collaborator

Describe what you are looking for

Sometimes you may want to allow Union types in callbacks like this:

def update_user_age(id: Union[int, str], age: Union[float, int]):
    pass

We don't support that yet, but we should.

Related Reddit request.

Can you contribute to the implementation?

  • I can contribute

Is your feature request specific to a certain interface?

Official Python bindings

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ashvardanian ashvardanian added the enhancement New feature or request label Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants