Marti Raudsepp
Marti Raudsepp
I agree, there are a few hacks involved, including `_BaseQuerySet`, `ValuesQuerySet` and `QuerySetAny`. But I think any possible changes we could make now would have large downsides. Mypy 1.9 added...
Update: `ValuesQuerySet` and `QuerySetAny` have now been deprecated in https://github.com/typeddjango/django-stubs/pull/2104, https://github.com/typeddjango/django-stubs/discussions/2194. I have not looked into `_BaseQuerySet` yet.
You're probably experiencing a common `stubtest` issue with caching. Try deleting `.mypy_cache` between `stubtest` runs. btw: this issue isn't a good place for discussing such specific problems -- but we...
There is also a repository of code examples at https://github.com/vmware/pyvmomi-community-samples
@zbennett10 Hi, did you get anywhere with your attempt?
This should be more or less ready for initial merge. If we can get this merged, I can look into the stubtest allowlist issues separately. Unless you think I should...
> For your question (1) [...] unfortunately adding `django-stubs` and `djangorestframework-stubs` to the stub_uploader allowlist might not be sufficient to get CI passinghere. I think the stub_uploader might also check...
I think anything else we can fix/improve afterwards, but the `stub_uploader` error is a blocker: https://github.com/python/typeshed/pull/10919#issuecomment-1774068623 One idea would be to create a new `METADATA.toml` option e.g. `test_requires = [...]`...
Many months have gone past. Has anything changed in terms of introducing a dependency on `django-stubs`? Or maybe some fresh ideas to solve this blocker? There are a few other...
Thanks for helping push this forward. Note that stub_uploader tests are giving the following error: > E stub_uploader.metadata.InvalidRequires: Expected dependency django-stubs to be listed in django-filter's requires_dist or the sdist's...