-
-
Notifications
You must be signed in to change notification settings - Fork 504
Open
Labels
blockedBlocked by some other PR, discussion or third party dependency.Blocked by some other PR, discussion or third party dependency.bugSomething isn't workingSomething isn't workingupstream otherBugs in other upstreams (not mypy)Bugs in other upstreams (not mypy)
Description
Bug report
What's wrong
Using a django project created with a the cookiecutter/django-cookiecutter/ template
(Pycharm as IDE)
autocompletion of attributes / methods of certain classes no longer work.
example tests with some class-based-views:
import logging
from django.views.generic import CreateView, DetailView, DeleteView, UpdateView
logger = logging.getLogger(__name__)
class MyCreateView(CreateView):
# nothing is no longer autocompleted / suggested
class MyDeleteView(DeleteView):
# nothing is no longer autocompleted / suggested
class MyUpdateView(UpdateView):
# nothing is no longer autocompleted / suggested
# However DetailView still works with all auto-completions
class MyDetailView(DetailView):
template_name = "" # this is still autocompleted
def get_queryset(self) -> models.query.QuerySet[_M]: # this is still autocompleted ...
How is that should be
Like normal, you can see what the class offers for attributes / methods...
System information
- OS: Ubuntu 22 LTS
- IDE: Pycharm Professional 2023.1.1
python
version: 3.10.11django
version: 4.2.6mypy
version: 1.6.1django-stubs
version: 4.2.6django-stubs-ext
version: 4.2.5
viktor-yunenko and gleb-sevruk
Metadata
Metadata
Assignees
Labels
blockedBlocked by some other PR, discussion or third party dependency.Blocked by some other PR, discussion or third party dependency.bugSomething isn't workingSomething isn't workingupstream otherBugs in other upstreams (not mypy)Bugs in other upstreams (not mypy)