From 009f5b8dfd007e765171457f66398bd8560e37f5 Mon Sep 17 00:00:00 2001 From: Jarry Shaw Date: Mon, 19 Oct 2026 10:32:08 -0400 Subject: [PATCH] docs: date the __excluded__ and Raw directives to the release that shipped them (#1933) - Info: iteration skipping __excluded__ names first shipped in 1.3.1.post8, not 1.3.3. - data.misc.raw.Raw: packet left Raw's fields, and the constructor's signature, in 1.3.1.post8, when the base Protocol data class took it over, not in 1.3.3. Docstrings only; the AST is identical with docstrings blanked. Closes #1933 --- pcapkit/corekit/infoclass.py | 2 +- pcapkit/protocols/data/misc/raw.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcapkit/corekit/infoclass.py b/pcapkit/corekit/infoclass.py index c6f704251..555e90484 100644 --- a/pcapkit/corekit/infoclass.py +++ b/pcapkit/corekit/infoclass.py @@ -317,7 +317,7 @@ class Info(Mapping[str, VT], Generic[VT], metaclass=InfoMeta): accessing such renamed keys, the original key name should always be used, i.e., such renaming is totally transparent to the user. - .. versionchanged:: 1.3.3 + .. versionchanged:: 1.3.1.post8 Iterating an instance skips the names listed in :attr:`__excluded__`. diff --git a/pcapkit/protocols/data/misc/raw.py b/pcapkit/protocols/data/misc/raw.py index 98618a18c..3e9938d3b 100644 --- a/pcapkit/protocols/data/misc/raw.py +++ b/pcapkit/protocols/data/misc/raw.py @@ -16,7 +16,7 @@ class Raw(Protocol): """Raw packet is an unknown protocol. - .. versionchanged:: 1.3.3 + .. versionchanged:: 1.3.1.post8 ``packet`` is not a field of this class, so its constructor takes ``protocol`` and ``error`` only.