UI/BrowserModel.py

changeset 3966
969a3d41c402
parent 3656
441956d8fce5
child 4021
195a471c327b
--- a/UI/BrowserModel.py	Sat Dec 06 20:19:07 2014 +0100
+++ b/UI/BrowserModel.py	Thu Dec 11 19:51:05 2014 +0100
@@ -1348,6 +1348,9 @@
                 self.icon = UI.PixmapCache.getIcon("method.png")
             self.itemData[0] = "{0}({1})".format(
                 name, ", ".join(self._classObject.parameters))
+            if self._classObject.annotation:
+                self.itemData[0] = "{0} {1}".format(
+                    self.itemData[0], self._classObject.annotation)
             # if no defaults are wanted
             # ....format(name,
             #            ", ".join([e.split('=')[0].strip() \
@@ -1473,6 +1476,9 @@
             self.icon = UI.PixmapCache.getIcon("method.png")
         self.itemData[0] = "{0}({1})".format(
             name, ", ".join(self._functionObject.parameters))
+        if self._functionObject.annotation:
+            self.itemData[0] = "{0} {1}".format(
+                self.itemData[0], self._functionObject.annotation)
         # if no defaults are wanted
         # ....format(name,
         #            ", ".join([e.split('=')[0].strip()

eric ide

mercurial