Update describeClass method in PythonDocumentationProvider.

Now all expressions are printed and links are injected into unqualified references and subscriptions.
This commit is contained in:
Semyon Proshev
2017-09-22 15:52:15 +03:00
parent 924ed716d6
commit adddb531d8
13 changed files with 136 additions and 44 deletions
@@ -1 +1 @@
<html><body><small>Assigned to <code>c1</code><br></small><code><small>class <a href="psi_element://#class#">list</a>()</small><br><br>def <b>count</b>(self,&nbsp;object:&nbsp;_T)<br>Inferred&nbsp;type:&nbsp;(self:&nbsp;<a href="psi_element://#typename#list">list</a>,&nbsp;object:&nbsp;TypeVar('_T'))&nbsp;-&gt;&nbsp;<a href="psi_element://#typename#int">int</a><br><br>L.count(value)&nbsp;-&gt;&nbsp;integer&nbsp;--&nbsp;return&nbsp;number&nbsp;of&nbsp;occurrences&nbsp;of&nbsp;value&nbsp;</code></body></html>
<html><body><small>Assigned to <code>c1</code><br></small><code><small>class <a href="psi_element://#class#">list</a>(<a href="psi_element://#parent#MutableSequence">MutableSequence</a>[_T], Generic[_T])</small><br><br>def <b>count</b>(self,&nbsp;object:&nbsp;_T)<br>Inferred&nbsp;type:&nbsp;(self:&nbsp;<a href="psi_element://#typename#list">list</a>,&nbsp;object:&nbsp;TypeVar('_T'))&nbsp;-&gt;&nbsp;<a href="psi_element://#typename#int">int</a><br><br>L.count(value)&nbsp;-&gt;&nbsp;integer&nbsp;--&nbsp;return&nbsp;number&nbsp;of&nbsp;occurrences&nbsp;of&nbsp;value&nbsp;</code></body></html>