Skip to content

docs(vendor): fix AppType template prose and six crawler Args mismatches (#2175) - #2180

Merged
JarryShaw merged 1 commit into
mainfrom
docs/2175-apptype-prose-known-defects
Oct 25, 2026
Merged

JarryShaw merged 1 commit into
mainfrom
docs/2175-apptype-prose-known-defects

Conversation

@JarryShaw

@JarryShaw JarryShaw commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

What is the purpose of your pull request?

  • docs — documentation only

Description

Closes #2175.

  • AppType template: the template's prose carried change-relative wording ("after this change", "now", "the new logic"), call-site claims scoped to "this tree", and census counts. This covers the TransportProtocol class comment, TransportProtocol.get and its exception note, AppType.__repr__ and AppType.get_all. Each is reworded or cut, keeping the claims accurate. The edits are in pcapkit/vendor/reg/apptype/apptype.py and, with byte-identical lines, in the generated pcapkit/const/reg/apptype/apptype.py; regeneration needs IANA's live CSV. History tied to a named issue stays.
  • Crawler Args::
    • the four mh/*_flag.py context() methods document data, not soup, and drop the stale arguments-differ,arguments-renamed pragmas on context() and process() (pylint reports them as useless suppressions; the score is unchanged);
    • pcapng/option_type.context() and vlan/priority_level.process() document soup.
  • Test: KNOWN_DEFECTS in tests/test_docstring_contract.py is now empty, so test_documented_parameters_exist guards all six.
  • Overlap: docs(corekit): fifth whole-repo pass over corekit, const and vendor (#1103) #2156 touches option_type.py and priority_level.py in other hunks, and docs(tests): fifth whole-repo pass over tests (#1103) #2159 touches apptype tests. Both merge cleanly with this branch.

@JarryShaw JarryShaw added docs Pull requests that change documentation only (docs: subject prefix) test Pull requests that add or correct tests (test: subject prefix) review: running A cross-review is in flight against the current head - no verdict yet labels Oct 25, 2026
@JarryShaw JarryShaw moved this to In review in PyPCAPKit Oct 25, 2026
…hes (#2175)

Problem: the AppType template BASE (mirrored in the generated const
module) carried change-relative and counted prose, and six crawler
docstrings named the wrong parameter, held as KNOWN_DEFECTS.

Fix:
- Reword TransportProtocol's class comment, TransportProtocol.get
  (docstring and NOTE), AppType.__repr__'s NOTE and AppType.get_all in
  the template and, identically, in pcapkit/const/reg/apptype/apptype.py
  (regeneration needs IANA's live CSV): no counts, no timed wording.
- mh/{binding_ack,binding_update,handover_ack,handover_initiate}_flag:
  context() documents 'data'; drop the useless arguments-differ /
  arguments-renamed pragmas on context() and process().
- pcapng/option_type.context() and vlan/priority_level.process():
  document 'soup'.

Test: tests/test_docstring_contract.py drops the six KNOWN_DEFECTS
entries; test_documented_parameters_exist now guards all six.
@JarryShaw
JarryShaw force-pushed the docs/2175-apptype-prose-known-defects branch from 79d15c6 to 55416da Compare October 25, 2026 07:38
@JarryShaw

Copy link
Copy Markdown
Owner Author

Review: GOOD TO GO at 55416daeb (Sonnet): the two apptype files change identically, every rewritten claim checks out against the code (census, the classmethod caller, the only call site), pylint is unchanged on the four crawlers, and KNOWN_DEFECTS is empty with each of the six fixes load-bearing.

@JarryShaw JarryShaw added review: good-to-go Cross-review at the current head says ready; CI state is separate and removed review: running A cross-review is in flight against the current head - no verdict yet labels Oct 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage: 91.55% (unit tier, Python 3.15, 55416daeb, Unit Tests run success)

Package Statements Missed Branches Partial Cover
pcapkit (top level) 104 4 20 2 95.16%
pcapkit/const 19599 880 2618 866 92.12%
pcapkit/corekit 2589 75 816 37 96.48%
pcapkit/dumpkit 282 3 102 3 98.44%
pcapkit/foundation 2971 23 1036 25 98.80%
pcapkit/interface 138 4 52 3 96.32%
pcapkit/protocols 17418 219 4574 185 98.14%
pcapkit/toolkit 869 36 298 10 95.20%
pcapkit/utilities 504 7 146 5 98.15%
pcapkit/vendor 4432 1988 1018 167 51.87%

Per-file detail: the coverage-html artifact of this run.

@JarryShaw

Copy link
Copy Markdown
Owner Author

Ready to merge at 55416daeb. Merging closes #2175.

@JarryShaw
JarryShaw merged commit cc41f79 into main Oct 25, 2026
62 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in PyPCAPKit Oct 25, 2026
@JarryShaw
JarryShaw deleted the docs/2175-apptype-prose-known-defects branch October 25, 2026 14:23
@JarryShaw JarryShaw removed the review: good-to-go Cross-review at the current head says ready; CI state is separate label Oct 25, 2026
@JarryShaw JarryShaw added this to the PyPCAPKit v1.5 milestone Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Pull requests that change documentation only (docs: subject prefix) test Pull requests that add or correct tests (test: subject prefix)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

docs(vendor): change-relative prose in the AppType template, and six Args mismatches held as KNOWN_DEFECTS

1 participant