VS Code python extension seeing some not all Django class
Simple problem: the Python extension of VS Code is not seeing a Django class, while all other classes in same file are presented. Restarting, disabling/enabling, switch to pre-release for the extension doesn't change anything. Confirmed it was the extension as disabling it removes all import objects.
edited to add code "text"
from django.contrib.auth.forms import UserChangeForm, AdminUserCreationForm
from .models import CoreUser
AdminUserCreationForm is not being detected while UserCreationForm and other classes are visible. If I visit the source file by CTRL+click I can clearly see the class there:
class AdminUserCreationForm(SetUnusablePasswordMixin, UserCreationForm):
usable_password = SetUnusablePasswordMixin.create_usable_password_field()
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields["password1"].required = False
self.fields["password2"].required = False
I've tried clearing a few VS Code caches (under AppData\Roaming\Code) to no avail.