-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: First pass of ui.table functionality #95
Conversation
mofojed
commented
Oct 25, 2023
- Basic ui.table on_row_double_press functionality added
- Does not include the JS side that can handle the ui.table for now
- Basic ui.table on_row_double_press functionality added - Does not include the JS side that can handle the ui.table for now
|
||
self.source = empty_table(100).update(["X = i", "Y = i * 2"]) | ||
|
||
def expect_render(self, ui_table, expected_props: dict[str, Any]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing type for ui_table
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm actually not really sure how to type this properly - if I import the type to early, I get an error when writing the tests (because importing deephaven before the server starts causes an error). Any idea how I should handle this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can do this with postponed evaluation (PEP 563). Try importing from __future__ import annotations
https://stackoverflow.com/questions/70883599/type-hints-for-types-from-modules-which-may-not-be-loaded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've cleaned this up, though my editor is still complaining about it...
- Some tests were failing, incorrectly named functions - Added type annotation for UITable