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

Validate argument's combinations #1116

Closed
wants to merge 4 commits into from

Conversation

mgaitan
Copy link
Collaborator

@mgaitan mgaitan commented Mar 29, 2020

This is another PR for the #1089. Not all of the combinations are valid. This is a simpler approach to validate, doing assertions before "override" (calculate) values.

An alternative could be do some checking in advance using https://github.com/mgaitan/one (see examples), but I prefer to do it explicitly in a function and not in a decorator (explicit is better than implicit)

@mgaitan
Copy link
Collaborator Author

mgaitan commented Mar 29, 2020

@tburrows13 which other functions needs this kind of validations?

@coveralls
Copy link

coveralls commented Mar 29, 2020

Coverage Status

Coverage increased (+0.02%) to 64.403% when pulling 6549a93 on mgaitan:validate_arguments into 674257e on Zulko:master.

@mgaitan mgaitan changed the base branch from v2 to master March 29, 2020 03:59
@tburrows13 tburrows13 added this to the Release v2.0.0 milestone Mar 29, 2020
@tburrows13 tburrows13 added the breaking-change Must not merge without proper approval. Requires full documentation (own section) in the changelog. label May 6, 2020
@tburrows13 tburrows13 self-assigned this Jan 13, 2021
@OsaAjani
Copy link
Collaborator

Thank you for your contributions and for reporting issues in this repository. With the release of v2, which introduces significant changes to the codebase and API, we’ve reviewed the backlog of open PRs and issues. Due to the length of the backlog and the likelihood that many of these are either fixed or no longer applicable, we’ve made the decision to close all previous PRs and issues.

If you believe that any of these are still relevant to the current version or if you'd like to reopen a related discussion, please feel free to create a new issue or pull request, referencing the old one.

Thank you for your understanding and continued support!

@OsaAjani OsaAjani closed this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Must not merge without proper approval. Requires full documentation (own section) in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants