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

Error on setting parameter if this already exists as an attribute #6174

Merged
merged 6 commits into from
Jun 27, 2024

Conversation

jenshnielsen
Copy link
Collaborator

@jenshnielsen jenshnielsen commented Jun 12, 2024

Since it now becomes more common for parameters to be assigned as real attributes it makes sense to also test for this

I have added a work around where a property of the same name is allowed to exist. This is done to support a known pattern where a property is added to define an interface

  • Document

@jenshnielsen jenshnielsen requested a review from a team as a code owner June 12, 2024 12:02
@jenshnielsen jenshnielsen marked this pull request as draft June 12, 2024 12:02
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.17%. Comparing base (458ca17) to head (81465a1).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6174      +/-   ##
==========================================
+ Coverage   66.11%   67.17%   +1.05%     
==========================================
  Files         352      352              
  Lines       32121    32128       +7     
==========================================
+ Hits        21238    21582     +344     
+ Misses      10883    10546     -337     

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

@jenshnielsen jenshnielsen force-pushed the error_on_existing_attribute branch from 8d209d3 to 77b1794 Compare June 27, 2024 09:20
@jenshnielsen jenshnielsen marked this pull request as ready for review June 27, 2024 11:13
@jenshnielsen jenshnielsen enabled auto-merge June 27, 2024 11:13
@jenshnielsen jenshnielsen added this pull request to the merge queue Jun 27, 2024
Merged via the queue into microsoft:main with commit 1908aa0 Jun 27, 2024
17 checks passed
@jenshnielsen jenshnielsen deleted the error_on_existing_attribute branch June 27, 2024 11:55
jenshnielsen added a commit to jenshnielsen/Qcodes that referenced this pull request Jun 27, 2024
…_attribute

Error on setting parameter if this already exists as an attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants