Skip to content

[DOC] Fix malformed :param directive in HTTP2.gen_txt_repr docstring#5023

Merged
gpotter2 merged 1 commit into
secdev:masterfrom
neil-cipher:patch-1
Jun 22, 2026
Merged

[DOC] Fix malformed :param directive in HTTP2.gen_txt_repr docstring#5023
gpotter2 merged 1 commit into
secdev:masterfrom
neil-cipher:patch-1

Conversation

@neil-cipher

@neil-cipher neil-cipher commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Description

The docstring for HTTP2.gen_txt_repr documents its second argument with :param bool:, which names the type (bool) rather than the parameter. The actual parameter is register (signature: gen_txt_repr(self, hdrs, register=True)), so register was effectively undocumented and the directive was malformed. Corrected to :param bool register:, matching the Sphinx :param : style already used for hdrs on the line above. Docs only, no behaviour change.

@gpotter2 gpotter2 merged commit abdf889 into secdev:master Jun 22, 2026
1 check passed
@gpotter2

Copy link
Copy Markdown
Member

Thanks for the PR !

polybassa pushed a commit to polybassa/scapy-1 that referenced this pull request Jun 27, 2026
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.

2 participants