sbdchd / django-types

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

`django.utils.deconstruct.deconstructable` should return the calling class, not `Any` #117

Open alex-way opened 2 years ago

alex-way commented 2 years ago

This should be typed to return the value for the calling class, not Any:

https://github.com/sbdchd/django-types/blob/main/django-stubs/utils/deconstruct.pyi#L3

def deconstructible(*args: Any, path: Optional[Any] = ...) -> Any: ...