-
Notifications
You must be signed in to change notification settings - Fork 984
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
Fix serialization breakage due to sympy.Rational now being a numbers.Number #2655
Conversation
…Number - Reorder the sympy checks to come before generic number checks - Rename json.py to json_serialization.py to avoid collisions with the built-in json library
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.
Awesome. Happy to see it was such a simple fix. I imagine sympy changed something so isinstance(obj, numbers.Integral)
now returns True
for sympy.Integer
?
Automerge cancelled: Need a fresh 🍪. |
Yayyyy thanks! |
Yeah something like that. |
Automerge cancelled: A status check is failing. |
Automerge cancelled: A status check is failing. |
You are killing me here, cirqbot. |
Urgh, just found sympy/sympy#18056 which puts a big blocker on using the new version of sympy. I am going to pin to the old one. |
Sympy v1.5.1 is now available, fixes sympy/sympy#18056. See https://github.com/sympy/sympy/releases/tag/sympy-1.5.1 & changelog: https://github.com/sympy/sympy/wiki/Release-Notes-for-1.5.1 Ref: #2648 #2655
Fixes #2650
Fixes #2646