summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-03-06 23:54:15 +0100
committerGitHub <noreply@github.com>2022-03-06 23:54:15 +0100
commit40e1a64ad67d4613b0bef461b0227653c8f085a1 (patch)
tree4eb64539b53614c6c5858dfea5499590b3b68d29 /ChangeLog
parent393b27660f63c5c93d6e3bdb23da3534065564b2 (diff)
downloadastroid-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--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ec61695d..b0b573ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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+.