sbdchd / django-types

:doughnut: Type stubs for Django
MIT License
186 stars 62 forks source link

`django.utils.deconstruct`: Improve types #238

Closed noelleleigh closed 4 months ago

noelleleigh commented 4 months ago

Adds generic type hints to @deconstructible 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.