-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
mypy 0.990 breaks mypy_django_plugin #1235
Labels
bug
Something isn't working
Comments
When I print out ctx: |
intgr
added a commit
to intgr/django-stubs
that referenced
this issue
Nov 7, 2022
Fixes typeddjango#1235. It seems this was caused by a new feature in mypy 0.990 involving `hasattr()`.
Seems to be caused this new feature of mypy 0.990: python/mypy#13544 |
sobolevn
pushed a commit
that referenced
this issue
Nov 8, 2022
Fixes #1235. It seems this was caused by a new feature in mypy 0.990 involving `hasattr()`.
Closed
djbrown
added a commit
to djbrown/hbscorez
that referenced
this issue
Dec 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mypy 0.990 was released today. When I have mypy 0.990 and
mypy_django_plugin
enabled, it fails withAssertionError
on code that uses thedjango_cas_ng
package.The problematic code appears to be:
Link to source: https://github.com/django-cas-ng/django-cas-ng/blob/a67653cf85244aa137edbabb3c2e94e07f97c773/django_cas_ng/utils.py#L50-L53
Output:
The stacktrace:
System information
python
version: 3.11.0django
version: 4.1.3mypy
version: 0.990django-stubs
version: 1.13.0django-stubs-ext
version: 0.7.0The text was updated successfully, but these errors were encountered: