Skip to content

Keyword argument checking #713

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

Merged
merged 8 commits into from
Mar 30, 2022

Conversation

murrayrm
Copy link
Member

@murrayrm murrayrm commented Mar 23, 2022

This PR implements checks for unrecognized keywords in all functions that accept variable keywords (addressing #528). This is accomplished using a the kwargs_test unit test, which inspects the module, finds all functions with variable keyword arguments, and then makes sure there is a unit test that confirms that sending an unknown keyword generates an error.

@murrayrm murrayrm marked this pull request as draft March 23, 2022 05:49
@coveralls
Copy link

coveralls commented Mar 23, 2022

Coverage Status

Coverage increased (+0.8%) to 94.34% when pulling 87cb31a on murrayrm:kwargs_20Mar2022 into cfe21de on python-control:master.

@murrayrm murrayrm marked this pull request as ready for review March 30, 2022 05:36
@murrayrm
Copy link
Member Author

Rebased and changed from draft to ready to merge. While improvements are possible, this has already caught several bugs (eg, commit 3656968, issue #702) and so I think it is OK to merge in.

@bnavigator bnavigator merged commit cb6d9d7 into python-control:master Mar 30, 2022
@murrayrm murrayrm deleted the kwargs_20Mar2022 branch April 16, 2022 01:03
@murrayrm murrayrm added this to the 0.9.2 milestone Apr 17, 2022
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.

Add code to check for unrecognized keywords associated with default settings
3 participants