summaryrefslogtreecommitdiff
path: root/pylint
diff options
context:
space:
mode:
authorTakahide Nojima <nozzy123nozzy@gmail.com>2021-10-21 05:16:32 +0000
committerTakahide Nojima <nozzy123nozzy@gmail.com>2021-10-26 15:01:12 +0000
commit4e3acd8e4451ae39dbd5a6c8c5eba79300136d2f (patch)
treedf350f05c65092ff97c70e14f58788a5f61bf53b /pylint
parent9323cf20afff416dabe61b7f303791a1ce7f2bb6 (diff)
downloadpylint-git-4e3acd8e4451ae39dbd5a6c8c5eba79300136d2f.tar.gz
Fix exception of pyreverse in handling property function within a class.
Diffstat (limited to 'pylint')
-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)
]