Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
django.utils.deconstruct
: Improve types (#238)
Adds generic type hints to [`@deconstructible`](https://docs.djangoproject.com/en/4.2/topics/migrations/#adding-a-deconstruct-method) so that it preserves the implicit types of the class it decorates. I don't know of a way to indicate that the class it returns has a `decorator()` method attached to it.
- Loading branch information