Open last-partizan opened 2 years ago
I'm raising this issue again, @sbdchd please take a look.
Django 4 removed this import, but django-types doesn't. I would be really helpful when upgrading django to see this type of issues.
Hmm on the one hand if we say we only support >3 something <4 something we'd prevent people from accessing the wrong thing, but we'd also prevent people using 4 from getting value from the stubs
I think, we need to make separate branch for 3.x and release version specifically for 3.x django with correctly set requirements. And then - main branch should target latest django. When next major django version is out, we're creating new branch for previous one, and again main targeting latest.
Ah yeah that makes sense, I think we'd need some github actions / CI jobs to make the release process smoother, right now I'm doing things pretty manually
FWIW, django-stubs recently made some changes so it's only supporting 3.2. If this project would support more modern versions (as separate branches or however you like) I'd be very inclined to make the switch and start contributing types for 4.0 (and 4.1) here.
@sbdchd yeah, that would be great.
I'm not familiar with Circle CI, do you think it's better alternative to github actions?
Maybe switch CI to github actions? I can help with that.
(And after adopting github actions, release is simple enough https://github.com/pypa/gh-action-pypi-publish)
https://github.com/last-partizan/django-types/pull/1/checks
Also, we can add stubtest django
to pipeline, when we decide on what versions to support.
stubtest
itself is currently crashing by default becouse of django not being configured, in my example i just patched it not to crash.
I was reading PEP 561 and it says
Which django-types are not specifying. This can lead to some unexpected results, like: we're using django 3.1, but type checker won't stop me from using
@admin.display
decorator which was added in 3.2.