-
Notifications
You must be signed in to change notification settings - Fork 60
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
Remove deprecation warning, remove old draw
, and rename display
as draw
in Circuit
class
#1464
Conversation
@renatomello is it here because you want to have it directly in the next release, or is it here just not to forget? In principle, we should collect breaking changes for 0.3. I would agree that we may be a bit more lenient, but just one/two months after seems a very short notice (especially given the amount of time |
The current warning says the change would happen in 0.2.13. |
Ok, I've not been careful in reviewing that... It's a small thing, and updating broken third-party code because of that won't be a massive effort. We can make an exception... Still, I'd like to increasingly improve our stability guarantees. We should definitely lower the number of semver exceptions abruptly, getting to zero as fast as possible... |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1464 +/- ##
=======================================
Coverage 99.94% 99.94%
=======================================
Files 81 81
Lines 11740 11737 -3
=======================================
- Hits 11733 11731 -2
+ Misses 7 6 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Note that circuit.draw()
(current circuit.display()
) is missing a newline \n
at the end. This leads to a bit weird behavior when using in a Python interpreter or if you have another print after it, for example
circuit.draw()
print("something else...")
It is also different than print(str(circuit))
which will include the default Python newline at the end of every print
.
@stavros11 can you confirm the right behavior before I merge 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.
@stavros11 can you confirm the right behavior before I merge this?
Yes, now the new line is added. Thanks @renatomello.
Checklist: