Repository navigation
docs/textures: the BCPack strict-mode sentence names the module's keyword arguments - #5573
evilclanker9000 wants to merge 1 commit into
Conversation
…word arguments tools/bcpack.py has no CLI, so 'Pass --history' read as a command for it did nothing. Name decode()'s history=/allow_provisional= and keep the CLI flags on ttpf_mips.py check/export.
Kam471
left a comment
There was a problem hiding this comment.
Reviewed head 0306d50b75 (base 3faac557b; merges clean into current main 561b65a83). Docs only; git diff --check clean.
Checked the claim on main: tools/bcpack.py decode/decode_with_info default allow_provisional=False and take history=; tools/ttpf_mips.py check/export are strict by default with --allow-provisional/--history. The new wording names the right functions and keyword arguments.
Verdict: merge.
|
Verified against main 561b65a (clean merge): every identifier in the sentence matches the code — decode/decode_with_info are keyword-only allow_provisional=False, history=None (tools/bcpack.py:1326, :1346) and ttpf_mips check/export take the same defaults (:1641, :1882) — and it is more accurate than the sentence it replaces, which implied bcpack.py had a CLI (it has no add_argument anywhere). Optional tightening: say explicitly that --history and --allow-provisional are ttpf_mips's flags. All docs guards green. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
EGEN-BCPACK-STRICT-DOCS (claimed in #5361)
What and why
The paragraph after the BCPack history table said
tools/bcpack.pyruns in strict mode and told the reader toPass --history <path>and--allow-provisional.tools/bcpack.pyhas no command line at all (python -I tools/bcpack.py --helpprints nothing and exits 0), so that instruction was a no-op for the module; the flags exist only ontools/ttpf_mips.py check/export. The paragraph also never named the module's keyword arguments, which are the only way to pass a calibrated history from Python.This names
check/exporton the CLI side anddecode/decode_with_infoon the module side, and addshistory=/allow_provisional=Truenext to the two flags. Docs only, no code change.Tested
python -I tools/bcpack.py --help-> no output, exit 0 (there is no CLI; the old sentence implied one)python -I tools/ttpf_mips.py check --helpand... export --help->--historyand--allow-provisionalare theretools/bcpack.pydefinesdef decode(raw, codec, out_size, *, allow_provisional=False, history=None)and the same keyword-only arguments ondecode_with_infopython -I tests/test_docs_links.py6/6 OK;test_docs_repo_paths.py2/2;test_docs_cli_flags.py3/3;test_docs_list_items.py2/2;test_docs_table_rows.py2/2;test_docs_python_deps.py3/3Notes
I left the table rows above this paragraph alone: #3877 already corrects their stale confirmed/provisional counts in the same section, and this paragraph is outside that PR's hunk, so the two touch different lines.
AI-assisted.