summaryrefslogtreecommitdiff
path: root/pylint/pyreverse/diagrams.py
diff options
context:
space:
mode:
authorAndreas Finkler <3929834+DudeNr33@users.noreply.github.com>2021-10-26 18:09:03 +0200
committerGitHub <noreply@github.com>2021-10-26 18:09:03 +0200
commit216da02ad659aad6edd14dbbebada5e0eb76fded (patch)
tree82bf996ca1c9d6d8b9525c9eeb68b8aa94307c68 /pylint/pyreverse/diagrams.py
parent9323cf20afff416dabe61b7f303791a1ce7f2bb6 (diff)
parent91fc4613453ab171edd11e92359954bd327dc49d (diff)
downloadpylint-git-216da02ad659aad6edd14dbbebada5e0eb76fded.tar.gz
Merge pull request #5198 from nozzy123nozzy/bugfix_of_property
Fix exception of pyreverse in handling property function within a class.
Diffstat (limited to 'pylint/pyreverse/diagrams.py')
-rw-r--r--pylint/pyreverse/diagrams.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pylint/pyreverse/diagrams.py b/pylint/pyreverse/diagrams.py
index 5c82df1e6..08a00a8f1 100644
--- a/pylint/pyreverse/diagrams.py
+++ b/pylint/pyreverse/diagrams.py
@@ -121,6 +121,7 @@ class ClassDiagram(Figure, FilterMixIn):
m
for m in node.values()
if isinstance(m, nodes.FunctionDef)
+ and not isinstance(m, astroid.objects.Property)
and not decorated_with_property(m)
and self.show_attr(m.name)
]