-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use old serializer system in LiteralVar #3875
Conversation
Raises: | ||
VarTypeError: The operand types are unsupported. | ||
""" | ||
raise VarTypeError( |
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 the proper thing to do in this scenario is to return NotImplemented
[1]
Not sure if that totally makes sense for us though, because ostensibly we're not expecting an incompatible type to have a better comparison checker than the Var itself, and raising the exception means we fail loud and fast (and record the exception type for telemetry).
Not suggesting a change here, just posing a point for discussion.
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.
that seems valid, we would need to also remove .operation
from Var
for both to work. Then Python should do the heavy lifting for us.
When emitting a state update, restore `_self_mutable` to the value it had previously so that `yield` in the middle of `async with self` does not result in an immutable StateProxy. Fix #3869
If a component in the markdown component_map contains children components, use `_get_all_imports` to recursively enumerate them. Fix #3880
* Added API Endpoint * Added API Endpoint * Added Unit Tests * Added Unit Tests * main * Apply suggestions from Code Review * Fix Ruff Formatting * Update Socket Events * Async Functions
* Added API Endpoint * Added API Endpoint * Added Unit Tests * Added Unit Tests * main * Apply suggestions from Code Review * Fix Ruff Formatting * Update Socket Events * Async Functions
* Added API Endpoint * Added API Endpoint * Added Unit Tests * Added Unit Tests * main * Apply suggestions from Code Review * Fix Ruff Formatting * Update Socket Events * Async Functions
Co-authored-by: Masen Furer <m_github@0x26.net>
* simplify ImmutableComputedVar.__get__ * ruff it
This reverts commit a5c73ad.
No description provided.