-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add django-stubs v1.10.0 compatibility #203
Add django-stubs v1.10.0 compatibility #203
Conversation
884c04a
to
27f32af
Compare
Struggling a bit to get CI passing ... |
27f32af
to
1acdb31
Compare
1acdb31
to
86feaa5
Compare
The remaining failure seems to be caused by |
Yeah, it should be |
@@ -20,8 +20,8 @@ def find_stub_files(name): | |||
readme = f.read() | |||
|
|||
dependencies = [ | |||
"mypy>=0.790", | |||
"django-stubs>=1.7.0", | |||
"mypy>=0.930,<0.950", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this upper bound on mypy necessary? (and does it relate to the purpose of this MR?)
This project releases rather infrequently. So as a user I'd prefer that it did not pin me to a mypy version that will soon become stale.
If and when mypy release a breaking change, I can always pin it myself - but the recent evidence (per the current requirement without an upper bound) is that that's probably not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mypy can break its plugin API in new releases. We do the same in django-stubs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, well if I'd known that I'd have asked you not to do it there too!
Perhaps you know something that I don't about mypy versioning, it seems mysterious to me. Is there any reason to suspect that 0.950 would be breaking but 0.949 would not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this upper bound on mypy necessary? (and does it relate to the purpose of this MR?
I just set it to the same one as django-stubs
as suggested in #203 (comment).
I've opened a PR against |
The PR against Edit: Ah wait, there's a new release on pypi already, I was looking at the Github releases. I'll update this PR |
Passing now, after fixing another unrelated failure 😅 |
56faa31
to
18400fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thank you!
This reverts commit abc8b80.
* Add django-stubs v1.10.0 compatibility * Bump django-stubs to v1.10.1 * Pin click for black * Bump Black to 22.3.0
Related issues