diff options
| author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-03-06 23:54:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-06 23:54:15 +0100 |
| commit | 40e1a64ad67d4613b0bef461b0227653c8f085a1 (patch) | |
| tree | 4eb64539b53614c6c5858dfea5499590b3b68d29 /ChangeLog | |
| parent | 393b27660f63c5c93d6e3bdb23da3534065564b2 (diff) | |
| download | astroid-git-40e1a64ad67d4613b0bef461b0227653c8f085a1.tar.gz | |
Deprecate accessing and setting the ``doc`` attribute on nodes (#1434)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -9,6 +9,10 @@ Release date: TBA * Add new (optional) ``doc_node`` attribute to ``nodes.Module``, ``nodes.ClassDef``, and ``nodes.FunctionDef``. +* Accessing the ``doc`` attribute of ``nodes.Module``, ``nodes.ClassDef``, and + ``nodes.FunctionDef`` has been deprecated in favour of the ``doc_node`` attribute. + Note: ``doc_node`` is an (optional) ``nodes.Const`` whereas ``doc`` was an (optional) ``str``. + * Replace custom ``cachedproperty`` with ``functools.cached_property`` and deprecate it for Python 3.8+. |
