Closed aitorres closed 2 years ago
Hi everyone! I am trying to use this package on a project that has mypy type checking as part of the CI/CD, and I had to deactivate type-checks on my admin models that use the TabularInlinePaginated class since there are no type stub files.
mypy
TabularInlinePaginated
I think a .pyi stub file for admin.py can be constructed upon the stubs for Django's admin/options.pyi.
.pyi
admin.py
admin/options.pyi
If it seems like a good idea, I can work on it and submit a PR with the stub!
@aitorres is a valid point!
You can work at PR, which I'll approve
@aitorres i generated a new version 0.3.0 with your type hint and ISSUE-18 (your PR, removing ugetext).
0.3.0
update your requirements please.
Hi everyone! I am trying to use this package on a project that has
mypy
type checking as part of the CI/CD, and I had to deactivate type-checks on my admin models that use theTabularInlinePaginated
class since there are no type stub files.I think a
.pyi
stub file foradmin.py
can be constructed upon the stubs for Django'sadmin/options.pyi
.If it seems like a good idea, I can work on it and submit a PR with the stub!