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

Use old serializer system in LiteralVar #3875

Merged
merged 77 commits into from
Sep 10, 2024

Conversation

adhami3310
Copy link
Member

No description provided.

masenf
masenf previously approved these changes Sep 4, 2024
Raises:
VarTypeError: The operand types are unsupported.
"""
raise VarTypeError(
Copy link
Collaborator

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.

Copy link
Member Author

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.

masenf and others added 11 commits September 9, 2024 11:26
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
samarth9201 and others added 14 commits September 9, 2024 11:36
* 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
@adhami3310 adhami3310 merged commit a5c73ad into main Sep 10, 2024
46 checks passed
benedikt-bartscher added a commit to benedikt-bartscher/reflex that referenced this pull request Sep 10, 2024
@masenf masenf deleted the use-old-serializer-in-literalvar branch December 12, 2024 07:09
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.

8 participants