BrowserModel: fixed an issue causing classes containing only class attributes (e.g. enum.Enum) not be shown correctly.

Mon, 21 Sep 2020 19:51:00 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 21 Sep 2020 19:51:00 +0200
changeset 7708
b2c315bcb1c0
parent 7707
6abcf4275d0e
child 7709
7c3968742fd2

BrowserModel: fixed an issue causing classes containing only class attributes (e.g. enum.Enum) not be shown correctly.

eric6/UI/BrowserModel.py file | annotate | diff | comparison | revisions
diff -r 6abcf4275d0e -r b2c315bcb1c0 eric6/UI/BrowserModel.py
--- a/eric6/UI/BrowserModel.py	Mon Sep 21 19:03:35 2020 +0200
+++ b/eric6/UI/BrowserModel.py	Mon Sep 21 19:51:00 2020 +0200
@@ -1480,7 +1480,8 @@
             self._classObject and
             (self._classObject.methods or
              self._classObject.classes or
-             self._classObject.attributes)
+             self._classObject.attributes or
+             self._classObject.globals)
         ):
             self._populated = False
             self._lazyPopulation = True

eric ide

mercurial