Skip to content

Conversation

@noamkush
Copy link

This enables the disallow_any_generics configuration in mypy and makes serializer classes generic. The motivation for this is that currently when using nested serializers, mypy doesn't know that we use the inherited (drf) serializer with a specific model due to the intermediate nested serializer class.

@noamkush noamkush changed the title Enable disallow_any_generics in mypy configuration. Make serializer classes generic (for mypy) Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant