Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typecheck failure introduced with django-stubs==4.2.5 #2042

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

richardebeling
Copy link
Member

With their 4.2.5 release (coming from 4.2.4), django-stubs did two things that broke type checking for us

  • They improved their typing on ManyToManyFields, but didn't add functionality to correctly resolve lazy model names ("UserProfile) without an app label ("evaluation.UserProfile" works).
  • They added AbstractBaseUser.REQUIRED_FIELDS as a ClassVar, we had it defined as an instance variable.

requirements-dev.txt Outdated Show resolved Hide resolved
@richardebeling richardebeling merged commit 0019af0 into e-valuation:main Oct 23, 2023
@richardebeling richardebeling deleted the typing branch October 23, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants