Documentation
The documentation for the email.headerregistry module say that the parse() method of custom header classes must ensure that kwds contains the keys decoded and defects:
|
values for at least the keys ``decoded`` and ``defects``. ``decoded`` |
However, there is a third key required, parse_tree, as mentioned in the source code:
|
the dictionary must contain two additional keys: parse_tree, set to the |
The documentation should mention this required key as well. Ideally, it would also explain what its content should be.
Linked PRs
Documentation
The documentation for the
email.headerregistrymodule say that theparse()method of custom header classes must ensure thatkwdscontains the keysdecodedanddefects:cpython/Doc/library/email.headerregistry.rst
Line 99 in 8edfa0b
However, there is a third key required,
parse_tree, as mentioned in the source code:cpython/Lib/email/headerregistry.py
Line 165 in 8edfa0b
The documentation should mention this required key as well. Ideally, it would also explain what its content should be.
Linked PRs