Skip to content

Make boolean arguments keyword-only in the decommutator - #81

Merged
namurphy merged 2 commits into
PlasmaPy:mainfrom
namurphy:fbt
Oct 23, 2026
Merged

namurphy merged 2 commits into
PlasmaPy:mainfrom
namurphy:fbt

Conversation

@namurphy

@namurphy namurphy commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Makes every bool argument in pyfaradaycup.decommutator keyword-only and removes the now-unneeded FBT001/FBT002 suppressions.

This is a breaking change for code that passes booleans positionally to the public functions read_file, read_file_sc, and swp_spc_l0_to_l05.main; all call sites in this repository already use keywords. Because apidreq (in swp_spc_l0_to_l05.main) and filename (in _get_layout_sc) follow boolean arguments, they are now keyword-only too.

🤖 Generated with Claude Code

namurphy and others added 2 commits October 23, 2026 17:42
Positional boolean arguments make call sites hard to read (e.g.,
read_file(path, True, False)). Requiring them to be passed by name
lets us drop the FBT001/FBT002 suppressions, and a new test keeps
the decommutator from regressing.

In swp_spc_l0_to_l05.main and _get_layout_sc, the arguments apidreq
and filename follow boolean arguments, so they are now keyword-only
as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@namurphy
namurphy merged commit 9616be5 into PlasmaPy:main Oct 23, 2026
15 checks passed
@namurphy
namurphy deleted the fbt branch October 23, 2026 21:50
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.

1 participant