Skip to content

Commit 6317148

Browse files
BrandonWiebeAWhetter
authored andcommitted
Replace usage of deprecated astroid.NodeNG.doc in inheritance_diagrams.py
1 parent 4d1bec0 commit 6317148

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

autoapi/inheritance_diagrams.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def recurse(cls):
8080
fullname = self.class_name(cls, 0, aliases)
8181

8282
tooltip = None
83-
if cls.doc:
84-
doc = cls.doc.strip().split("\n")[0]
83+
if cls.doc_node:
84+
doc = cls.doc_node.value.strip().split("\n")[0]
8585
if doc:
8686
tooltip = '"%s"' % doc.replace('"', '\\"')
8787

docs/changes/407.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Replace usage of removed astroid.NodeNG.doc when building inheritance diagram

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ commands =
5858
[testenv:release_notes]
5959
deps =
6060
towncrier
61+
importlib-resources<6 # pinned due to https://github.com/twisted/towncrier/issues/528
6162
commands =
6263
towncrier {posargs:check}
6364

0 commit comments

Comments
 (0)