]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113878: Add `doc` parameter to `dataclasses.field` (gh-114051)
authorsobolevn <mail@sobolevn.me>
Fri, 27 Sep 2024 16:20:49 +0000 (19:20 +0300)
committerGitHub <noreply@github.com>
Fri, 27 Sep 2024 16:20:49 +0000 (12:20 -0400)
commit9c7657f09914254724683d91177aed7947637be5
treea3866271b1a8ad5602e12f64ac03de1a7b463c66
parent0a3577bdfcb7132c92a3f7fb2ac231bc346383c0
gh-113878: Add `doc` parameter to `dataclasses.field` (gh-114051)

If using `slots=True`, the `doc` parameter ends up in the `__slots__` dict. The `doc` parameter is also in the corresponding `Field` object.
Doc/library/dataclasses.rst
Lib/dataclasses.py
Lib/test/test_dataclasses/__init__.py
Lib/test/test_pydoc/test_pydoc.py
Misc/NEWS.d/next/Library/2024-01-14-11-43-31.gh-issue-113878.dmEIN3.rst [new file with mode: 0644]