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 stubs for django-import-export
#11709
base: main
Are you sure you want to change the base?
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-export
django-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.Dataset The 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.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Interesting |
Considering that We also need to add django-stubs to the stub uploader allowlist. |
Was discussed in django-import-export/django-import-export#1783
Checklist:
formats
templatetags
__init__.pyi
admin.pyi
exceptions.pyi
fields.pyi
forms.pyi
instance_loaders.pyi
mixins.pyi
resources.pyi
results.pyi
signals.pyi
tmp_storages.pyi
utils.pyi
widgets.pyi