Skip to content

Commit

Permalink
Replace usage of deprecated astroid.NodeNG.doc in inheritance_diagram…
Browse files Browse the repository at this point in the history
…s.py
  • Loading branch information
BrandonWiebe authored and AWhetter committed Sep 26, 2023
1 parent 4d1bec0 commit 6317148
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoapi/inheritance_diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def recurse(cls):
fullname = self.class_name(cls, 0, aliases)

tooltip = None
if cls.doc:
doc = cls.doc.strip().split("\n")[0]
if cls.doc_node:
doc = cls.doc_node.value.strip().split("\n")[0]
if doc:
tooltip = '"%s"' % doc.replace('"', '\\"')

Expand Down
1 change: 1 addition & 0 deletions docs/changes/407.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replace usage of removed astroid.NodeNG.doc when building inheritance diagram
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ commands =
[testenv:release_notes]
deps =
towncrier
importlib-resources<6 # pinned due to https://github.com/twisted/towncrier/issues/528
commands =
towncrier {posargs:check}

Expand Down

0 comments on commit 6317148

Please sign in to comment.