You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add decimal.Decimal support to serializers and NumberVar (#5226)
* Add serializer for decimal.Decimal type that converts to float
Co-Authored-By: Alek Petuskey <[email protected]>
* Add tests for decimal.Decimal serializer and NumberVar support
Co-Authored-By: Alek Petuskey <[email protected]>
* Update NumberVar and related components to support decimal.Decimal
Co-Authored-By: Alek Petuskey <[email protected]>
* Simplify test_all_number_operations to fix type compatibility with decimal.Decimal
Co-Authored-By: Alek Petuskey <[email protected]>
* Fix decimal serialization to properly quote string values
Co-Authored-By: Alek Petuskey <[email protected]>
* Fix decimal serialization functions
Co-Authored-By: Alek Petuskey <[email protected]>
* Revert "Simplify test_all_number_operations to fix type compatibility with decimal.Decimal"
This reverts commit 758d55f.
* revert bad test change
* add overload for Decimal in Var.create
move test_decimal_var to test_var and tweak the expectations
override return type for NumberVar.__neg__
* revert changes in `float_input_event`
needed to add another `.to` overload for proper type checking
* update test_serializers expectation
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Alek Petuskey <[email protected]>
Co-authored-by: Masen Furer <[email protected]>
0 commit comments