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

Doc: use consistent repeated-args syntax #4583

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

mwichmann
Copy link
Collaborator

@mwichmann mwichmann commented Aug 3, 2024

For now, keep to the key=value, ... form for Functions/Method signatures instead of using **kwargs, since that terminology hasn't been formally introduced. May switch signatures to a more Python-like syntax later, but if so, make a bulk switch, don't piecemeal - I'm assuming consistency is worth something here. Affects three functions: AddOption, Tool and DefaultEnvironment.

Small wording tweaks to AddOption and DefaultEnvironment as well, because sometimes it's hard to resist.

Doc-only change.

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt (and read the README.rst)
  • I have updated the appropriate documentation

For now, want to keep the "key=value, ..." form for Functions/Method
signatures instead of using **kwargs, since that terminology hasn't
been introduced.  May switch signatures later, but if so, do them all,
let's not be piecemeal.

Signed-off-by: Mats Wichmann <mats@linux.com>
@bdbaddog bdbaddog merged commit 876bb06 into SCons:master Aug 6, 2024
5 of 8 checks passed
@mwichmann mwichmann added this to the NextRelease milestone Aug 6, 2024
@mwichmann mwichmann deleted the doc/consistent-signatures branch August 6, 2024 13:06
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