Add stubs for django-import-export#11709
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
882abe4 to
5b4791a
Compare
This comment has been minimized.
This comment has been minimized.
`render` and `clean` should be redefined on each subclass as the return value can change. However, this is usually not an API users will have to deal with, so not worth the trouble
This comment has been minimized.
This comment has been minimized.
9e3c783 to
0248aa5
Compare
This comment has been minimized.
This comment has been minimized.
60a0ee7 to
affd870
Compare
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
cb688bc to
81ff10c
Compare
|
I know there's a lot being added here, so I'd understand if this can't get merged. I'm also wondering how to fix the issue when Django is being imported? 🤔 |
django-import-exportdjango-import-export
This comment has been minimized.
This comment has been minimized.
|
The pyright tests are failing, since from _typeshed import Incomplete
Dataset: TypeAlias = Incomplete # tablib.DatasetThe easiest way to work around the stubtest problem for now is to set |
This comment has been minimized.
This comment has been minimized.
fed5004 to
d78b26f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Interesting |
Considering that We also need to add django-stubs to the stub uploader allowlist. |
This comment has been minimized.
This comment has been minimized.
|
Any news on this one? I suppose I will just suppress mypy for this package then. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
There's a few remaining CI issues:
|
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
|
Once merged, I can tackle the update in a separate PR |
Was discussed in django-import-export/django-import-export#1783
Checklist:
formatstemplatetags__init__.pyiadmin.pyiexceptions.pyifields.pyiforms.pyiinstance_loaders.pyimixins.pyiresources.pyiresults.pyisignals.pyitmp_storages.pyiutils.pyiwidgets.pyi