forked from typeddjango/django-stubs
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrib/admin/options: Improve types
Improve the type hints for `BaseModelAdmin`, `ModelAdmin`, and `InlineModelAdmin` by: 1. Removing private method definitions 2. Use the `_ModelT` generic variable more 3. Make `Any` return types more specific It think the highest value change here is `ModelAdmin.get_form`, which is what prompted me to make these changes in the fist place.
- Loading branch information
1 parent
d826549
commit f7958ea
Showing
1 changed file
with
59 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters