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

Allow interact to use basic type hint annotations #3908

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

corranwebster
Copy link

@corranwebster corranwebster commented Apr 17, 2024

This lets interact use type annotation information to create widgets, as proposed in #3907. Since type annotations are used as a last resort, this should not change the behavior of any currently working code.

image

Work that is needed:

  • tests
  • update documentation
  • code style clean-up

Fixes #3907

Copy link

Binder 👈 Launch a binder notebook on branch corranwebster/ipywidgets/feat/interact-type-hints

@corranwebster
Copy link
Author

I am assuming that the failures for Javascript-related stuff is not related to the changes I have made.

Also, I couldn't find a python style guide or flake8/black/isort config, so I'm assuming that reasonably clean code is good enough. If not, let me know and I will lint appropriately.

With those caveats I think this is ready for review.

@corranwebster corranwebster marked this pull request as ready for review April 18, 2024 09:32
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

Successfully merging this pull request may close these issues.

Proposal: allow interact to use type hint annotations for abbreviations
1 participant