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

add a setter to avoid breaking Observable.return_type #4798

Merged
merged 5 commits into from Nov 8, 2023

Conversation

timmysilv
Copy link
Contributor

Context:
Some plugin tests failed because they were setting this property, which I did not expect.

Description of the Change:
Add a setter to the Observable.return_type property to avoid breaking things in this release. Also warn if someone uses it.

Benefits:
We don't break Observable.return_type in this release.

Possible Drawbacks:
People can still set it? idk seems like a safe call for now. I'm not validating the type provided

Related GitHub Issues:
missed in #4762

@timmysilv timmysilv requested a review from a team November 7, 2023 18:42
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2c7c0c1) 99.64% compared to head (6cd258c) 99.63%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4798      +/-   ##
==========================================
- Coverage   99.64%   99.63%   -0.01%     
==========================================
  Files         381      381              
  Lines       34324    34068     -256     
==========================================
- Hits        34202    33945     -257     
- Misses        122      123       +1     
Files Coverage Δ
pennylane/operation.py 97.26% <100.00%> (ø)

... and 42 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@timmysilv timmysilv requested a review from a team November 7, 2023 19:56
@timmysilv timmysilv enabled auto-merge (squash) November 8, 2023 14:06
@timmysilv timmysilv merged commit e5c42ea into master Nov 8, 2023
33 checks passed
@timmysilv timmysilv deleted the obs-return-type-setter branch November 8, 2023 14:25
@timmysilv
Copy link
Contributor Author

[sc-45858]

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.

None yet

3 participants