-
Notifications
You must be signed in to change notification settings - Fork 898
check input variable type for .delete_variables() #1064
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1064 +/- ##
=======================================
Coverage 98.35% 98.35%
=======================================
Files 126 126
Lines 13089 13098 +9
=======================================
+ Hits 12874 12883 +9
Misses 215 215
Continue to review full report at Codecov.
|
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.
Let's also update the docstring for this method to include information on the arguments that are acceptable and the return value (none). For an example, look at the docstring for the add_interesting_values method.
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.
Looking good, but please also update the docstring for delete_variables()
to more clearly indicate what is expected for the variable_ids
argument.
…ols into warn_entity_delete
should I add anything else? |
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.
Looks good
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.
For the test case, can we confirm that the variable was not deleted, similar to how we check variables were removed in test_delete_variables
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.
Looks good
Pull Request Description
close #1059
If someone has better warning string that is more informative let me know.
After creating the pull request: in order to pass the changelog_updated check you will need to update the "Future Release" section of
docs/source/changelog.rst
to include this pull request.