Django stubs interrupt Pycharm autocomplete

671 Views Asked by At

I have a django app with several models. Here is autocomplete when I filter objects

enter image description here

Then I install django-stubs for MyPy

pip install django-stubs

Now my autocomplete looks like this

enter image description here enter image description here

When I delete django-stubs autocomplete works well, like on the first picture

pip uninstall django-stubs

So, is there a way to use django-stubs with Pycharm Django autocomplete?

I use Pycharm Professional 2019.1 and Python3.7

1

There are 1 best solutions below

0
On BEST ANSWER

There is currently no known workaround for this issue.

A ticket open since August 2019 tracks the issue at JetBrains and they confirmed it was on their end.

This particular one is on our side, but I'm working on identifying all the integration issues with django-stubs and will definitely let you know if I find something

At the time of writing, there has been no reported progress.