Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django.utils.deconstruct: Improve types #238

Merged
merged 2 commits into from
May 4, 2024

Conversation

noelleleigh
Copy link

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.

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.
Copy link
Owner

@sbdchd sbdchd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kodiakhq kodiakhq bot merged commit fa9ee69 into sbdchd:main May 4, 2024
2 checks passed
@noelleleigh noelleleigh deleted the django.utils.deconstruct branch August 5, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants