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

Fix bad typing in Action.py #4473

Merged
merged 3 commits into from
Feb 7, 2024
Merged

Conversation

mwichmann
Copy link
Collaborator

Two methods had added type hints for the new override parameter, but not got them right: it's a dict if defined, else None; had been hinted as a bool. Corrected this and made a few other minor tweaks.

No test changes: existing tests should exercise the minor changes.

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

Two methods had added type hints for the new override parameter,
but not got them right: it's a dict if defined, else None.
Corrected this and made a few other minor tweaks.

Signed-off-by: Mats Wichmann <[email protected]>
@mwichmann mwichmann added the maintenance Tasks to maintain internal SCons code/tools label Feb 5, 2024
SCons/Action.py Outdated Show resolved Hide resolved
@bdbaddog bdbaddog merged commit 7e120e8 into SCons:master Feb 7, 2024
4 of 6 checks passed
@mwichmann mwichmann added this to the 4.7 milestone Feb 7, 2024
@mwichmann mwichmann deleted the maint/action-typing branch February 7, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Tasks to maintain internal SCons code/tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants