shinneider / django-admin-inline-paginator

MIT License
127 stars 21 forks source link

Add `mypy` stub files for `admin.py` #14

Closed aitorres closed 2 years ago

aitorres commented 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.

I think a .pyi stub file for admin.py can be constructed upon the stubs for Django's admin/options.pyi.

If it seems like a good idea, I can work on it and submit a PR with the stub!

shinneider commented 2 years ago

@aitorres is a valid point!

You can work at PR, which I'll approve

shinneider commented 2 years ago

@aitorres i generated a new version 0.3.0 with your type hint and ISSUE-18 (your PR, removing ugetext).

update your requirements please.