title: Neovim built-in LSP shows No code actions available for Python files
body: <p>When I open a python file, diagnostics seem to be working fine. Then I navigate to a line with a diagnostic error, press the shortcut to invoke code actions ('&lt;space&gt;ca' in my case) and I get a message 'No code actions available'. I have tried running it for different errors, like the following ones:</p>
  <pre class="lang-py prettyprint-override"><code>b =1  #E225 missing whitespace around operator
  from jinja2 import StrictUndefined  #'jinja2.StricUndefined' imported but unused
  import jjj # import-error: Unable to import 'jjj'
  </code></pre>
  <p>I have tried two LSP servers so far: pyright and pylsp, both gave me the same 'No code actions available'</p>
  <p>I've seen a similar question but JavaScript asked <a href="https://www.reddit.com/r/neovim/comments/lizkx6/why_arent_code_actions_working_for_me_with_the_05/" rel="nofollow noreferrer">here</a> and it suggest installing a plugin but that didn't work for me.</p>